/* ecommerce.css - Premium E-commerce Addon Styles for Thozhan Crackers */

:root {
  --color-gold: hsl(45, 85%, 52%);
  --color-gold-hover: hsl(45, 85%, 45%);
  --color-dark-bg: hsl(220, 45%, 12%);
  --color-nav-bg: rgba(20, 24, 38, 0.95);
  
  --ecommerce-radius: 12px;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Reset specific ecommerce overrides */
body {
  min-width: 100% !important;
  background-color: hsl(220, 20%, 97%);
}

.container {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Global Nav Overrides */
.main-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--color-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 0.85rem 0;
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-emoji {
  font-size: 2.25rem;
  animation: sparkle 2s infinite ease-in-out;
}

@keyframes sparkle {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px var(--color-gold)); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 10px var(--color-gold)); }
}

.logo-text {
  display: flex;
  flex-direction: column;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinning {
  animation: spin 1s linear infinite;
  display: inline-block;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-inverse);
  letter-spacing: 0.5px;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--color-gold);
  font-weight: 500;
  opacity: 0.9;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-inverse);
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.menu-toggle .material-symbols-outlined {
  font-size: 2.25rem !important;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-item {
  color: var(--text-inverse);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.85;
}

.nav-item:hover, .nav-item.active {
  opacity: 1;
  color: var(--color-gold);
  background-color: rgba(255, 255, 255, 0.05);
}

.cart-nav-item {
  position: relative;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
}

.cart-nav-item:hover {
  background-color: var(--color-primary);
  color: var(--text-inverse);
}

.cart-badge {
  background-color: var(--color-gold);
  color: var(--color-dark-bg);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  margin-left: 0.25rem;
}

.login-btn {
  background-color: var(--color-primary);
  opacity: 1;
  color: var(--text-inverse);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.25rem;
  box-shadow: 0 4px 10px rgba(162, 28, 22, 0.3);
}

.login-btn:hover {
  background-color: var(--color-primary-hover);
  color: var(--text-inverse);
  transform: translateY(-1px);
}

/* Profile Dropdown */
.profile-dropdown {
  position: relative;
  display: inline-block;
}

.profile-dropdown-btn {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-inverse);
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

.profile-dropdown-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.dropdown-arrow {
  font-size: 1.2rem;
  transition: transform 0.2s;
}

.profile-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.profile-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: var(--bg-surface);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  z-index: 1010;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (hover: hover) {
  .profile-dropdown:hover .profile-dropdown-content {
    display: block !important;
  }
  .profile-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
  }
}

.profile-dropdown.open .profile-dropdown-content {
  display: block !important;
}

.profile-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.profile-dropdown-content a {
  color: var(--text-main);
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.profile-dropdown-content a:hover {
  background-color: var(--bg-app);
  color: var(--color-primary);
}

.profile-dropdown-content a span {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.flash-container {
  max-width: 1200px;
  margin: 1rem auto 0;
  padding: 0 1.5rem;
}

/* Home Hero Banner */
.hero-banner {
  position: relative;
  height: 480px;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(20, 24, 38, 0.9) 0%, rgba(20, 24, 38, 0.4) 60%, rgba(20, 24, 38, 0.8) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 600px;
  padding-left: 4rem;
  color: var(--text-inverse);
}

.hero-tag {
  background-color: var(--color-gold);
  color: var(--color-dark-bg);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 1rem;
}

.hero-content h2 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-inverse);
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  color: hsl(220, 15%, 85%);
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-gold);
  color: var(--color-dark-bg);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(230, 175, 46, 0.4);
  transition: var(--transition-smooth);
}

.hero-btn:hover {
  background-color: var(--color-gold-hover);
  transform: translateY(-2px);
  color: var(--color-dark-bg);
}

/* Category Cards Grid */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.section-title h2 {
  font-size: 1.85rem;
  color: var(--color-dark-bg);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.section-title a {
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.category-card {
  position: relative;
  height: 140px;
  border-radius: var(--ecommerce-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
  background-color: var(--color-dark-bg);
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.75) 100%);
  z-index: 1;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.category-card-content {
  position: relative;
  z-index: 2;
}

.category-card h3 {
  font-size: 1.15rem;
  color: var(--text-inverse);
  margin-bottom: 0.15rem;
  letter-spacing: 0.5px;
}

.category-count {
  font-size: 0.8rem;
  color: var(--color-gold);
  font-weight: 600;
}

/* Category Grid Gradients */
.cat-sparkles { background: linear-gradient(135deg, #FF416C, #FF4B2B); }
.cat-chakkars { background: linear-gradient(135deg, #1A2980, #26D0CE); }
.cat-flowerpot { background: linear-gradient(135deg, #f857a6, #ff5858); }
.cat-rocket { background: linear-gradient(135deg, #11998e, #38ef7d); }
.cat-twinkling { background: linear-gradient(135deg, #FC466B, #3F5EFB); }
.cat-pencil { background: linear-gradient(135deg, #F3904F, #3B4371); }
.cat-loosecrackers { background: linear-gradient(135deg, #ee0979, #ff6a00); }
.cat-atombomb { background: linear-gradient(135deg, #4b6cb7, #182848); }
.cat-digitallar { background: linear-gradient(135deg, #8A2387, #E94057); }
.cat-aerial { background: linear-gradient(135deg, #00B4DB, #0083B0); }
.cat-multishots { background: linear-gradient(135deg, #f12711, #f5af19); }
.cat-fancyitems { background: linear-gradient(135deg, #7F00FF, #E100FF); }
.cat-giftbox { background: linear-gradient(135deg, #02AAB0, #00CDAC); }
.cat-others { background: linear-gradient(135deg, #5c258d, #4389a2); }

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.product-card {
  background-color: var(--bg-surface);
  border-radius: var(--ecommerce-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  position: relative;
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border-color: var(--color-primary-hover);
}

.fav-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition-smooth);
  color: var(--text-muted);
}

.fav-btn:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: scale(1.1);
}

.fav-btn.active {
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  border-color: var(--color-primary);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--color-primary);
  color: var(--text-inverse);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  z-index: 5;
}

.product-badge.out-stock {
  background-color: var(--color-danger);
}

.product-badge.savings-badge {
  background-color: var(--color-success);
}

.product-card-body {
  margin-top: 3.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-cat-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark-bg);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.product-offer-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary);
}

.product-list-price {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card-footer {
  margin-top: auto;
}

/* Quantity Adjuster Widget */
.qty-widget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.2rem;
  gap: 0.5rem;
}

.qty-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  transition: var(--transition-smooth);
}

.qty-btn:hover {
  background-color: var(--color-primary);
  color: var(--text-inverse);
  border-color: var(--color-primary);
}

.qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.qty-input {
  width: 45px;
  border: none;
  background: none;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-dark-bg);
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Category Page Specific Layout */
.category-page-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.category-sidebar {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--ecommerce-radius);
  padding: 1.5rem;
  align-self: start;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.category-sidebar h3 {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--bg-app);
  padding-bottom: 0.5rem;
  color: var(--color-dark-bg);
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.category-link:hover, .category-link.active {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
}

.category-link-count {
  font-size: 0.75rem;
  background-color: var(--bg-app);
  color: var(--text-muted);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
}

.category-link.active .category-link-count {
  background-color: var(--color-primary);
  color: var(--text-inverse);
}

/* Cart Page */
.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.cart-items-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--ecommerce-radius);
  padding: 2rem;
  box-shadow: var(--shadow-premium);
}

.cart-empty-box {
  text-align: center;
  padding: 4rem 2rem;
}

.cart-empty-icon {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 2.2fr 3fr 40px;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  gap: 1.25rem;
}

.cart-item-row:last-child {
  border-bottom: none;
}

.cart-item-pricing-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
  gap: 1rem;
}

.cart-item-details h4 {
  font-size: 0.9rem;
  color: var(--color-dark-bg);
  margin-bottom: 0.25rem;
}

.cart-item-prices {
  display: flex;
  flex-direction: column;
}

.cart-item-offer {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.9rem;
}

.cart-item-list {
  font-size: 0.75rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

.cart-item-subtotal {
  font-weight: 800;
  color: var(--color-dark-bg);
  font-size: 0.95rem;
  text-align: right;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--color-danger);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-summary-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--ecommerce-radius);
  padding: 2rem;
  align-self: start;
  box-shadow: var(--shadow-premium);
  position: sticky;
  top: 100px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.summary-total {
  border-top: 2px dashed var(--border-color);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-primary);
}

/* Modal and Authentication popups */
.checkout-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(20, 24, 38, 0.6);
  backdrop-filter: blur(5px);
  z-index: 2000;
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem;
}

.checkout-modal.open {
  display: flex;
}

.modal-content {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: modalSlide 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin: 1.5rem auto;
}

@keyframes modalSlide {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 2010;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

/* Profile forms styling */
.profile-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--ecommerce-radius);
  padding: 2.5rem;
  max-width: 800px;
  margin: 2rem auto;
  box-shadow: var(--shadow-premium);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Footer styling */
.ecommerce-footer {
  background-color: var(--color-dark-bg);
  color: var(--text-inverse);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  border-top: 4px solid var(--color-primary);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.footer-brand h2, .footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-inverse);
  display: block;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  color: hsl(220, 15%, 75%);
  line-height: 1.6;
  font-size: 0.9rem;
}

.footer-links h4, .footer-contact h4 {
  font-size: 1.1rem;
  color: var(--color-gold);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: hsl(220, 15%, 80%);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--color-gold);
  padding-left: 5px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: hsl(220, 15%, 80%);
}

.footer-contact p span {
  color: var(--color-gold);
}

.footer-bottom {
  text-align: center;
  padding: 1.25rem 1.5rem;
  font-size: 0.85rem;
  color: hsl(220, 15%, 65%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  margin: 0;
  line-height: 1.6;
}

/* Miscellaneous / Utility */
.badge-status {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-block;
}

.w-full {
  width: 100%;
}

.text-center {
  text-align: center;
}

/* Glassmorphism auth panel */
.auth-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 480px;
  width: 100%;
  margin: 3rem auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2.25rem;
  border-bottom: 2px solid var(--border-color);
}

.auth-tab {
  background: none;
  border: none;
  padding: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: var(--transition-smooth);
}

.auth-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .category-page-container {
    grid-template-columns: 1fr;
  }
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  /* 2 categories per row on mobile */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem;
  }
  .category-card {
    height: 120px;
    padding: 1rem;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-nav-bg);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 2px solid var(--color-primary);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
  }
  
  .nav-menu.open {
    display: flex;
  }
  
  .hero-banner {
    height: 360px;
  }
  
  .hero-content h2 {
    font-size: 2.25rem;
  }
  
  .profile-grid {
    grid-template-columns: 1fr;
  }
  
  .cart-item-row {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    background-color: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--ecommerce-radius) !important;
    margin-bottom: 0.75rem !important;
    box-shadow: var(--shadow-sm) !important;
  }
  
  .cart-item-details {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }
  
  .cart-item-remove-box {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: start !important;
  }
  
  .cart-item-pricing-row {
    grid-column: 1 / span 2 !important;
    grid-row: 2 !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1px dashed var(--border-color) !important;
    padding-top: 0.5rem !important;
    margin-top: 0.15rem !important;
    gap: 0.5rem !important;
  }
  
  .cart-item-prices,
  .cart-item-qty-box,
  .cart-item-subtotal-box {
    display: block !important;
    width: auto !important;
  }
  
  .cart-item-qty-box .qty-widget {
    width: 105px !important;
  }
  
  .cart-item-subtotal-box {
    text-align: right !important;
  }
  
  /* Mobile-specific reduced cart font sizes */
  .cart-item-details h4 {
    font-size: 0.85rem !important;
  }
  .cart-item-offer {
    font-size: 0.85rem !important;
  }
  .cart-item-subtotal {
    font-size: 0.9rem !important;
  }
}

/* Collapsible sidebar styles */
.category-sidebar-toggle {
  display: none;
}

@media (max-width: 992px) {
  .category-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 1.25rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--color-dark-bg);
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--ecommerce-radius);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
  }
  .category-sidebar-toggle:hover {
    background-color: var(--bg-app);
    border-color: var(--color-primary);
    color: var(--color-primary);
  }
  .category-sidebar-toggle span {
    display: flex;
    align-items: center;
  }
  .category-sidebar-toggle .toggle-chevron {
    transition: transform 0.3s ease;
  }
  .category-sidebar-toggle .toggle-chevron.rotate {
    transform: rotate(180deg);
  }
  .category-sidebar {
    position: sticky !important;
    top: 60px;
    z-index: 990;
    background-color: var(--bg-app, #fffdfa) !important;
    padding: 0.75rem 0 !important;
    border: none !important;
    box-shadow: 0 4px 6px -2px rgba(0,0,0,0.05) !important;
    max-height: none !important;
    overflow-y: visible !important;
  }
  .category-sidebar-content {
    display: none;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--ecommerce-radius);
    padding: 1.25rem;
    margin-top: 0.75rem;
    box-shadow: var(--shadow-md);
    max-height: 70vh;
    overflow-y: auto;
  }
  .category-sidebar-content.open {
    display: block;
    animation: slideDown 0.3s ease-out;
  }
  .category-sidebar-content h3 {
    display: none;
  }
  
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* Quick Order Sheet Mobile Responsive Cards */
@media (max-width: 768px) {
  /* Hide the table headers */
  table.modern-table thead {
    display: none !important;
  }
  
  /* Make table components block elements */
  table.modern-table, 
  table.modern-table tbody, 
  table.modern-table tr.prodrow {
    display: block !important;
    width: 100% !important;
  }
  
  /* Style product row as a card */
  table.modern-table tr.prodrow {
    background-color: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--ecommerce-radius) !important;
    padding: 1.25rem !important;
    margin-bottom: 1rem !important;
    box-shadow: var(--shadow-sm) !important;
    box-sizing: border-box !important;
  }
  
  /* Highlight selected card on mobile */
  table.modern-table tr.prodrow.highlight-row {
    background-color: hsla(142, 70%, 45%, 0.08) !important;
    border-color: hsla(142, 70%, 45%, 0.3) !important;
  }
  
  /* Table cells styles on mobile */
  table.modern-table tr.prodrow td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.5rem 0 !important;
    border: none !important;
    font-size: 0.95rem !important;
    width: 100% !important;
    text-align: left !important;
    box-sizing: border-box !important;
  }
  
  /* Custom labels for card cells */
  table.modern-table tr.prodrow td:nth-of-type(1) {
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    border-bottom: 1px solid var(--bg-app) !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }
  table.modern-table tr.prodrow td:nth-of-type(1):before {
    content: "Product Code" !important;
    font-weight: 600 !important;
  }
  
  table.modern-table tr.prodrow td:nth-of-type(2) {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--color-dark-bg) !important;
    display: block !important;
    padding: 0.25rem 0 0.5rem !important;
  }
  
  table.modern-table tr.prodrow td:nth-of-type(3) {
    display: inline-flex !important;
    width: auto !important;
    margin-right: 1rem !important;
    font-size: 0.9rem !important;
    color: var(--text-muted) !important;
  }
  table.modern-table tr.prodrow td:nth-of-type(3):before {
    content: "List Price: " !important;
    font-weight: 600 !important;
    margin-right: 0.25rem !important;
  }
  
  table.modern-table tr.prodrow td:nth-of-type(4) {
    display: inline-flex !important;
    width: auto !important;
    font-size: 1rem !important;
  }
  table.modern-table tr.prodrow td:nth-of-type(4):before {
    content: "Offer Price: " !important;
    font-weight: 600 !important;
    margin-right: 0.25rem !important;
    color: var(--text-muted) !important;
  }
  
  /* Qty row styling */
  table.modern-table tr.prodrow td:nth-of-type(5) {
    border-top: 1px solid var(--bg-app) !important;
    margin-top: 0.5rem !important;
    padding-top: 0.75rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  table.modern-table tr.prodrow td:nth-of-type(5):before {
    content: "Quantity" !important;
    font-weight: 700 !important;
    color: var(--color-dark-bg) !important;
  }
  table.modern-table tr.prodrow td .qty-widget {
    width: auto !important;
    margin: 0 !important;
    padding: 0.1rem !important;
    gap: 0.2rem !important;
  }
  table.modern-table tr.prodrow td .qty-widget .qty-btn {
    width: 26px !important;
    height: 26px !important;
    font-size: 0.85rem !important;
    min-width: 26px !important;
  }
  table.modern-table tr.prodrow td .qty-widget .qty-input {
    width: 70px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--color-dark-bg) !important;
  }
  
  /* Subtotal row styling */
  table.modern-table tr.prodrow td:nth-of-type(6) {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 0.25rem !important;
  }
  table.modern-table tr.prodrow td:nth-of-type(6):before {
    content: "Subtotal" !important;
    font-weight: 700 !important;
    color: var(--color-dark-bg) !important;
  }
  
  /* Category headers on mobile */
  table.modern-table tr.category-header-row {
    display: block !important;
    margin: 1.75rem 0 0.75rem !important;
    padding: 0.5rem 0.25rem !important;
    background-color: var(--bg-surface-alt) !important;
    border-radius: var(--radius-sm) !important;
  }
  table.modern-table tr.category-header-row td {
    display: block !important;
    text-align: center !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: var(--color-primary) !important;
    padding: 0.4rem !important;
    border: none !important;
  }
  
  /* Out of stock spanning */
  table.modern-table tr.prodrow td[colspan="2"] {
    display: block !important;
    text-align: center !important;
    border-top: 1px solid var(--bg-app) !important;
    margin-top: 0.5rem !important;
    padding-top: 0.5rem !important;
  }
  table.modern-table tr.prodrow td[colspan="2"] .text-center {
    display: inline-block !important;
    width: 100% !important;
  }
  
  /* Sticky totals bar on mobile */
  .sticky-totals {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    grid-template-rows: auto auto !important;
    justify-items: center !important;
    align-items: center !important;
    gap: 0.35rem 0.25rem !important;
    padding: 0.5rem 0.75rem !important;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.12) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    border: none !important;
    border-top: 1px solid var(--border-color) !important;
  }
  
  /* Price Column 1: MRP/List Total */
  .sticky-totals .total-val-box:nth-of-type(1) {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: block !important;
    text-align: center !important;
    margin: 0 !important;
  }
  
  /* Price Column 2: You Save */
  .sticky-totals .total-val-box:nth-of-type(2) {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: block !important;
    text-align: center !important;
    margin: 0 !important;
  }
  
  /* Price Column 3: Grand Total */
  .sticky-totals .total-val-box:nth-of-type(3) {
    grid-column: 3 !important;
    grid-row: 1 !important;
    display: block !important;
    text-align: center !important;
    margin: 0 !important;
  }
  
  /* Mobile font sizes for total val boxes */
  .sticky-totals .total-val-label {
    font-size: 0.7rem !important;
    margin-bottom: 1px !important;
  }
  .sticky-totals .total-val-box:nth-of-type(1) .total-val {
    font-size: 0.9rem !important;
  }
  .sticky-totals .total-val-box:nth-of-type(2) .total-val {
    font-size: 0.9rem !important;
  }
  .sticky-totals .total-val-box:nth-of-type(3) .total-val {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
  }
  
  /* Row 2: View Cart & Checkout Button (Centered) */
  .sticky-totals > div:last-of-type {
    grid-column: 1 / span 3 !important;
    grid-row: 2 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 0.25rem !important;
  }
  
  .sticky-totals .btn-place {
    width: 90% !important;
    padding: 0.6rem 1.25rem !important;
    font-size: 0.9rem !important;
    border-radius: var(--radius-full) !important;
    white-space: nowrap !important;
    justify-content: center !important;
  }
  
  /* Prevent sticky fixed footer from overlaying last elements */
  .container.mt-4 {
    padding-bottom: 90px !important;
  }
  
  /* Responsive Track Order Page */
  .track-search-card {
    padding: 1.5rem !important;
    margin: 1rem auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .track-details-card {
    padding: 1.5rem !important;
    box-sizing: border-box !important;
  }
  .track-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .track-header-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }
  .track-header-row > div:nth-of-type(2) {
    text-align: left !important;
    width: 100% !important;
  }
  .track-header-row .badge-status {
    display: inline-block !important;
    text-align: left !important;
  }
  .track-details-card p {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
  }
  
  /* Responsive summary table layouts on mobile viewports */
  table.responsive-table thead {
    display: none !important;
  }
  table.responsive-table, 
  table.responsive-table tbody, 
  table.responsive-table tr:not(.total-row) {
    display: block !important;
    width: 100% !important;
  }
  
  /* Render normal rows as card layouts */
  table.responsive-table tr:not(.total-row) {
    background-color: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--ecommerce-radius) !important;
    padding: 0.85rem 1.15rem !important;
    margin-bottom: 0.75rem !important;
    box-shadow: var(--shadow-sm) !important;
    box-sizing: border-box !important;
  }
  
  /* Normal row cells styles */
  table.responsive-table tr:not(.total-row) td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.4rem 0 !important;
    border: none !important;
    font-size: 0.9rem !important;
    text-align: left !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Inject custom label on the left using the data-label attribute */
  table.responsive-table tr:not(.total-row) td:before {
    content: attr(data-label) !important;
    font-weight: 600 !important;
    color: var(--text-muted) !important;
  }
  
  /* Ensure proper layouts for total summary rows */
  table.responsive-table tr.total-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.65rem 1rem !important;
    border-radius: var(--radius-sm) !important;
    margin-bottom: 0.35rem !important;
    box-sizing: border-box !important;
  }
  table.responsive-table tr.total-row td {
    display: block !important;
    border: none !important;
    padding: 0 !important;
    width: auto !important;
  }
  table.responsive-table tr.total-row td.total-label {
    font-weight: 700 !important;
    text-align: left !important;
  }
  table.responsive-table tr.total-row td.total-value {
    font-weight: 800 !important;
    text-align: right !important;
  }
  
  /* Responsive invoice layout elements */
  .invoice-box {
    padding: 1.25rem !important;
    margin: 1rem 0.25rem !important;
    border-radius: var(--ecommerce-radius) !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    width: auto !important;
  }
  .invoice-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }
  .invoice-header > div:nth-of-type(2) {
    text-align: left !important;
    margin-top: 0.5rem !important;
  }
  
  /* Responsive invoice bottom actions */
  .invoice-footer-actions {
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: center !important;
    text-align: center !important;
  }
  .invoice-footer-actions h5 {
    margin-bottom: 0.25rem !important;
    font-size: 1.15rem !important;
  }
  .invoice-footer-actions .d-flex {
    justify-content: center !important;
    width: 100% !important;
    flex-wrap: wrap !important;
  }
  
  /* Prevent header logo title from wrapping to a second line on mobile */
  .invoice-logo-title h2 {
    font-size: 1.35rem !important;
    white-space: nowrap !important;
  }
  .invoice-logo-title img {
    height: 38px !important;
    width: 38px !important;
  }
  
  /* Shrink section titles on mobile to prevent wrapping */
  .section-title {
    margin-bottom: 1rem !important;
  }
  .section-title h2 {
    font-size: 1.35rem !important;
  }
  .section-title span {
    font-size: 0.85rem !important;
  }
}

/* Responsive Track Order Container styling */
.track-container-box {
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Prevent Rupee symbol and amount line break wrapping globally */
.price-nowrap,
.cart-item-offer,
.cart-item-list,
.cart-item-subtotal,
.total-val,
.product-price,
.prod-offer-price,
.prod-list-price,
.total-value,
.discounted-price,
.original-price,
.subtotal,
span[id^="subtotal-"] {
  white-space: nowrap !important;
  word-break: keep-all !important;
  display: inline-block !important;
}

/* Highlight selected product card */
.product-card.highlight-card {
  background-color: hsla(142, 70%, 45%, 0.08) !important;
  border-color: hsla(142, 70%, 45%, 0.3) !important;
  box-shadow: 0 4px 12px hsla(142, 70%, 45%, 0.1) !important;
}

/* Floating Cart FAB */
.floating-cart-fab {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  z-index: 2000;
  text-decoration: none !important;
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}

.floating-cart-fab.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.floating-cart-fab:hover {
  background-color: hsl(28, 90%, 48%);
  transform: scale(1.05);
}

.floating-cart-fab .material-symbols-outlined {
  font-size: 1.75rem;
}

.floating-cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--color-danger);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: 1.5px solid #fff;
}

/* Adjust FAB position on mobile when sticky footers exist */
@media (max-width: 768px) {
  .floating-cart-fab {
    bottom: 95px; /* Safely above mobile totals bar */
    width: 52px;
    height: 52px;
    right: 15px;
  }
  .floating-cart-fab .material-symbols-outlined {
    font-size: 1.5rem;
  }
}

/* ==========================================
   COLORFUL FESTIVE SYSTEM OVERHAUL
   ========================================== */

/* Body & Layout */
body.festive-theme {
  background: linear-gradient(135deg, #fffcf5 0%, #fff2e0 100%) !important;
  color: #3e2723 !important;
  min-height: 100vh;
}

body.festive-theme .container {
  max-width: 1200px !important;
}

/* Glassmorphic Navbar & Footer */
body.festive-theme .main-navbar {
  background: rgba(255, 253, 250, 0.95) !important;
  border-bottom: 3px solid #ff7b00 !important;
  box-shadow: 0 4px 20px rgba(255, 123, 0, 0.15) !important;
}

body.festive-theme .nav-item {
  color: #5d4037 !important;
  font-weight: 700;
}

body.festive-theme .login-btn {
  background: linear-gradient(135deg, #ff9100, #ff3d00) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(255, 61, 0, 0.35) !important;
}

body.festive-theme .login-btn * {
  color: #ffffff !important;
}

body.festive-theme .login-btn:hover {
  background: linear-gradient(135deg, #e65100, #d84315) !important;
  color: #ffffff !important;
}

body.festive-theme .profile-dropdown-btn {
  color: #5d4037 !important;
  border-color: rgba(216, 67, 21, 0.2) !important;
  background-color: rgba(216, 67, 21, 0.04) !important;
}

body.festive-theme .profile-dropdown-btn:hover {
  background-color: rgba(216, 67, 21, 0.08) !important;
}

body.festive-theme .profile-dropdown-btn span {
  color: #d84315 !important;
}

body.festive-theme .nav-item:hover,
body.festive-theme .nav-item.active {
  color: #d84315 !important;
  background-color: rgba(255, 123, 0, 0.08) !important;
}

body.festive-theme .brand-name {
  background: linear-gradient(45deg, #d81b60, #ff7b00, #ad1457, #ffb300);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 4s ease infinite;
  font-weight: 900;
}

/* Legal Notice Marquee */
body.festive-theme .legal-ticker-container {
  background: linear-gradient(90deg, #d84315 0%, #ff8f00 50%, #d84315 100%) !important;
  border-bottom: 2px solid #ffb300 !important;
}

/* Section Title & Subheading */
body.festive-theme .section-title {
  border-bottom: 3px dashed #ffb74d !important;
  margin-top: 3.5rem;
  margin-bottom: 2rem;
}

body.festive-theme .section-title h2 {
  color: #d84315 !important;
  font-weight: 800;
}

body.festive-theme .section-title a {
  color: #e65100 !important;
  font-weight: 700;
}

/* Hero Section Overhaul */
body.festive-theme .hero-banner {
  border: 3px solid #ffb74d;
  box-shadow: 0 8px 30px rgba(230, 81, 0, 0.12);
  background-color: #fffaf5;
}

body.festive-theme .hero-slide::before {
  background: linear-gradient(90deg, rgba(255, 250, 245, 0.45) 0%, rgba(255, 250, 245, 0.15) 50%, rgba(255, 250, 245, 0.45) 100%) !important;
}

body.festive-theme .hero-tag {
  background: linear-gradient(135deg, #ff9100, #ff3d00) !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 10px rgba(255, 61, 0, 0.35);
  letter-spacing: 1px;
}

body.festive-theme .hero-content h2 {
  color: #d84315 !important;
}

body.festive-theme .hero-content p {
  color: #4e342e !important;
}

body.festive-theme .hero-btn {
  background: linear-gradient(135deg, #ff9100, #ff3d00) !important;
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(255, 61, 0, 0.4) !important;
}

body.festive-theme .hero-btn:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 8px 25px rgba(255, 61, 0, 0.6) !important;
}

/* Category Cards Overhaul */
body.festive-theme .category-card {
  border: 2px solid #ffe0b2 !important;
  box-shadow: 0 6px 18px rgba(230, 81, 0, 0.08) !important;
}

body.festive-theme .category-card:hover {
  transform: translateY(-8px) scale(1.03) !important;
  border-color: #ff9100 !important;
  box-shadow: 0 10px 25px rgba(230, 81, 0, 0.2) !important;
}

body.festive-theme .category-emoji {
  animation: dance 3s infinite ease-in-out alternate;
}

@keyframes dance {
  0% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-5px) rotate(5deg); }
  100% { transform: translateY(0) rotate(-5deg); }
}

/* Product Cards Overhaul */
body.festive-theme .product-card {
  background: #ffffff !important;
  border: 2px solid #ffe0b2 !important;
  box-shadow: 0 6px 18px rgba(230, 81, 0, 0.05) !important;
}

body.festive-theme .product-card:hover {
  transform: translateY(-8px) !important;
  border-color: #ff9100 !important;
  box-shadow: 0 12px 30px rgba(230, 81, 0, 0.15) !important;
}

body.festive-theme .product-title {
  color: #4e342e !important;
  font-weight: 700;
}

body.festive-theme .product-badge.savings-badge {
  background: linear-gradient(135deg, #00c853, #64dd17) !important;
  box-shadow: 0 4px 10px rgba(0, 200, 83, 0.25);
}

body.festive-theme .product-offer-price {
  color: #d84315 !important;
}

body.festive-theme .product-list-price {
  color: #8d6e63 !important;
  opacity: 0.8;
}

body.festive-theme .qty-widget {
  background: #fff8f0 !important;
  border: 1.5px solid #ffe0b2 !important;
}

body.festive-theme .qty-btn {
  background: #ffffff !important;
  color: #d84315 !important;
  border-color: #ffe0b2 !important;
}

body.festive-theme .qty-btn:hover {
  background: #ff9100 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(255, 145, 0, 0.3);
}

body.festive-theme .qty-input {
  color: #3e2723 !important;
}

body.festive-theme .product-card.highlight-card {
  background: #e8f5e9 !important;
  border-color: #4caf50 !important;
  box-shadow: 0 0 25px rgba(76, 175, 80, 0.15) !important;
}

/* Floating Cart FAB */
body.festive-theme .floating-cart-fab {
  background: linear-gradient(135deg, #ff9100, #ff3d00) !important;
  box-shadow: 0 6px 20px rgba(255, 61, 0, 0.4) !important;
  border: 2px solid #ffffff;
}

body.festive-theme .floating-cart-fab:hover {
  transform: scale(1.1) rotate(5deg) !important;
  box-shadow: 0 10px 25px rgba(255, 61, 0, 0.6) !important;
}

/* Footer Overhaul */
body.festive-theme .ecommerce-footer {
  background: #3e2723 !important;
  border-top: 4px solid #ff7b00 !important;
  color: #ffecd1 !important;
}

body.festive-theme .ecommerce-footer h4 {
  color: #ffb74d !important;
  border-bottom: 2px dashed rgba(255, 183, 77, 0.3);
  padding-bottom: 0.5rem;
}

body.festive-theme .footer-bottom {
  border-top: 1px solid rgba(255, 183, 77, 0.2) !important;
  background-color: #2d1b18 !important;
  color: #ffd9a8 !important;
  padding: 1.25rem 1.5rem !important;
  text-align: center !important;
}

body.festive-theme .footer-bottom p {
  margin: 0;
}

/* Price List Lead Modal */
body.festive-theme .modal-card {
  background: #ffffff !important;
  border: 3px solid #ff9100 !important;
  box-shadow: 0 15px 40px rgba(230, 81, 0, 0.25) !important;
  color: #4e342e !important;
}

body.festive-theme .modal-card h3 {
  color: #d84315 !important;
}

body.festive-theme .modal-card input {
  background: #fffdfa !important;
  border: 1.5px solid #ffe0b2 !important;
  color: #4e342e !important;
}

body.festive-theme .modal-card input::placeholder {
  color: rgba(93, 64, 55, 0.5) !important;
}

body.festive-theme .modal-card button[type="submit"] {
  background: linear-gradient(135deg, #ff9100, #ff3d00) !important;
  box-shadow: 0 4px 15px rgba(255, 61, 0, 0.3) !important;
}

/* Diyas Flickering Animation */
.diya-holder {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.diya-flame {
  width: 12px;
  height: 18px;
  background: radial-gradient(ellipse at bottom, #ffea00 0%, #ff5e00 50%, #d00000 100%);
  border-radius: 50% 50% 20% 20%;
  animation: flicker 0.15s infinite alternate ease-in-out;
  transform-origin: center bottom;
  box-shadow: 0 -2px 10px rgba(255, 234, 0, 0.8);
}

@keyframes flicker {
  0% { transform: scaleX(0.9) rotate(-2deg); opacity: 0.95; }
  100% { transform: scaleX(1.1) rotate(2deg); opacity: 1; }
}

/* Brand Item Logo Box */
body.festive-theme .brand-item {
  background: #ffffff !important;
  border-color: #ffe0b2 !important;
}

body.festive-theme .brand-item h4 {
  color: #4e342e !important;
}

body.festive-theme .brand-item:hover {
  border-color: #ff9100 !important;
  box-shadow: 0 10px 25px rgba(230, 81, 0, 0.15) !important;
}

/* Modern Split Hero Section Styles */
body.festive-theme .modern-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3.5rem;
  min-height: 520px;
  background: radial-gradient(circle at 100% 100%, rgba(255, 224, 178, 0.2) 0%, rgba(255, 252, 245, 0) 70%), #ffffff;
  border-radius: 24px;
  border: 2.5px solid #ffe0b2;
  box-shadow: 0 15px 35px rgba(230, 81, 0, 0.08);
  margin-top: 1.5rem;
  margin-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
}

body.festive-theme .hero-left {
  flex: 1.25;
  max-width: 600px;
  z-index: 5;
  text-align: left;
}

body.festive-theme .hero-right {
  flex: 0.9;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
}

/* Estimator Card styling */
.estimator-card {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border: 2px solid #ffcc80;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(230, 81, 0, 0.1);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.estimator-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(230, 81, 0, 0.18);
  border-color: #ff9100;
}

.package-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem;
  border: 1.5px solid #ffe0b2;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  cursor: pointer;
  background: #fffdfa;
  transition: all 0.2s ease;
}

.package-option:hover, .package-option.selected {
  border-color: #ff9100;
  background: #fff8f0;
}

.package-option.selected {
  box-shadow: 0 0 0 1.5px #ff9100;
  border-color: #ff9100;
}

/* Bullet list */
.feature-bullets {
  list-style: none;
  margin: 1.5rem 0 2rem 0;
  padding: 0;
}

.feature-bullets li {
  font-size: 1.05rem;
  font-weight: 600;
  color: #5d4037;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
}

.feature-bullets li span {
  color: #ff9100;
  font-size: 1.25rem;
}

/* Responsive styles */
@media (max-width: 991px) {
  body.festive-theme .hero-banner {
    height: 400px !important;
  }
  
  body.festive-theme .modern-hero {
    flex-direction: column;
    padding: 2rem;
    min-height: auto;
    text-align: center;
  }
  body.festive-theme .hero-left {
    max-width: 100%;
    text-align: center;
  }
  body.festive-theme .hero-right {
    justify-content: center;
    width: 100%;
  }
  .feature-bullets {
    justify-content: center;
    display: inline-block;
  }
}

@media (max-width: 768px) {
  body.festive-theme .hero-banner {
    height: 300px !important;
  }
  
  /* Hide the estimator card inside the slider on mobile to fit the banner */
  body.festive-theme .hero-slide .hero-right {
    display: none !important;
  }
  body.festive-theme .hero-slide .hero-left {
    flex: 1;
    max-width: 100%;
    padding: 0.5rem !important;
    text-align: center;
  }
  body.festive-theme .hero-slide .feature-bullets {
    display: none !important;
  }
  body.festive-theme .hero-slide h2 {
    font-size: 1.75rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.25 !important;
  }
  body.festive-theme .hero-slide p {
    font-size: 0.9rem !important;
    margin-bottom: 0.75rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  /* Responsive Glass Cards inside Slides 3 & 4 */
  body.festive-theme .hero-glass-card {
    padding: 1.25rem !important;
    max-width: 90% !important;
    margin: 0 auto;
    text-align: center;
  }
  body.festive-theme .hero-glass-card h2 {
    font-size: 1.45rem !important;
  }
  body.festive-theme .hero-glass-card p {
    font-size: 0.85rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  /* Center the slides container padding */
  body.festive-theme .hero-slide {
    padding: 1.25rem 2rem !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .slider-arrow {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.4rem !important;
  }
  body.festive-theme .hero-slide.no-overlay {
    padding: 0 !important;
    background-size: 100% 100% !important;
  }
}

@media (max-width: 480px) {
  body.festive-theme .hero-banner {
    height: 220px !important;
  }
  body.festive-theme .hero-slide h2 {
    font-size: 1.2rem !important;
    margin-bottom: 0.25rem !important;
  }
  body.festive-theme .hero-slide p {
    display: none !important; /* Hide description entirely on tiny screens to save space */
  }
  body.festive-theme .hero-glass-card h2 {
    font-size: 1.15rem !important;
  }
  body.festive-theme .hero-glass-card p {
    display: none !important;
  }
  body.festive-theme .hero-slide .hero-btn {
    padding: 0.5rem 1.25rem !important;
    font-size: 0.8rem !important;
  }
  body.festive-theme .hero-glass-card .hero-btn {
    padding: 0.5rem 1.25rem !important;
    font-size: 0.8rem !important;
  }
}

/* Slider navigation controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid #ffcc80;
  color: #d84315;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100 !important;
  pointer-events: auto !important;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.slider-arrow:hover {
  background: #ff9100;
  color: #fff;
  border-color: #ff9100;
}

.slider-arrow.prev { left: 1.5rem; }
.slider-arrow.next { right: 1.5rem; }

.slider-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 100 !important;
  pointer-events: auto !important;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(93, 64, 55, 0.3);
  border: 1.5px solid #fff;
  cursor: pointer;
  transition: all 0.25s ease;
}

.slider-dot.active {
  background: #ff9100;
  width: 24px;
  border-radius: 10px;
}

/* Unique sparkling border outline for glass card */
@keyframes sparkGlow {
  0% { border-color: #ff9100; box-shadow: 0 15px 35px rgba(230, 81, 0, 0.12), 0 0 10px rgba(255, 145, 0, 0.2); }
  50% { border-color: #ff3d00; box-shadow: 0 15px 35px rgba(230, 81, 0, 0.2), 0 0 20px rgba(255, 61, 0, 0.5); }
  100% { border-color: #ff9100; box-shadow: 0 15px 35px rgba(230, 81, 0, 0.12), 0 0 10px rgba(255, 145, 0, 0.2); }
}

body.festive-theme .hero-glass-card {
  animation: sparkGlow 3s infinite ease-in-out;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
}

body.festive-theme .hero-slide.no-overlay::before {
  display: none !important;
}

body.festive-theme .menu-toggle {
  color: #d84315 !important;
}

/* Responsive Why Choose Us Promise Grid */
.promise-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3rem;
  align-items: center;
}

.promise-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  text-align: left;
}

@media (max-width: 992px) {
  .promise-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    padding: 2.5rem 2rem !important;
  }
}

@media (max-width: 576px) {
  .promise-pillars {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

/* Mobile Responsive Navigation Menus & Dropdown */
@media (max-width: 768px) {
  body.festive-theme .nav-menu {
    background-color: #fffdfa !important;
    border-bottom: 3px solid #ff7b00 !important;
  }
  
  body.festive-theme .nav-menu .nav-item {
    color: #5d4037 !important;
    width: 100%;
    padding: 0.75rem 1rem !important;
    box-sizing: border-box;
  }
  
  body.festive-theme .profile-dropdown {
    width: 100%;
    margin-top: 0.5rem;
  }
  
  body.festive-theme .profile-dropdown-btn {
    width: 100%;
    justify-content: space-between;
    box-sizing: border-box;
  }
  
  body.festive-theme .profile-dropdown-content {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    border-left: 2px solid #ff7b00 !important;
    background-color: rgba(255, 123, 0, 0.03) !important;
    width: 100% !important;
    margin-top: 0.5rem;
    padding-left: 1rem;
    box-sizing: border-box;
  }
  
  body.festive-theme .profile-dropdown-content a {
    color: #5d4037 !important;
    padding: 0.65rem 1rem !important;
  }

  /* Force display: none for hovered dropdown on mobile to prevent sticky hover */
  .profile-dropdown:hover .profile-dropdown-content {
    display: none !important;
  }
  .profile-dropdown.open .profile-dropdown-content {
    display: block !important;
  }
}
