*, *::before, *::after {
    box-sizing: border-box;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

a:focus,
a:active,
button:focus,
button:active {
    outline: none;
}

/* Remove tap highlight and outline on header logo and footer links */
.logo-pro,
.dw-logo,
.site-footer a {
    -webkit-tap-highlight-color: transparent;
}

.logo-pro:focus,
.logo-pro:active,
.dw-logo:focus,
.dw-logo:active,
.site-footer a:focus,
.site-footer a:active {
    outline: none;
}

:root {
    /* --- CONSOLIDATED POLISHED LIGHT MODE --- */
    --primary-color: #f57224;
    --primary-dark: #d45703;
    --accent-color: #fe724c;
    --brand-start: #f57224;
    --brand-end: #ff1744;

    --ink: #101114;
    --ink-light: #555;
    --ink-weak: #888;

    /* Light mode background color softened for a lighter appearance */
    --background-color: #f5f5f5;
    --surface-bg: var(--background-color);
    --card-background: #ffffff;
    --card-bg: var(--card-background);

    --border-color: #e0e0e0;
    --border: var(--border-color);

    --shadow-color: rgba(245, 114, 36, 0.1);
    --shadow: 0 8px 32px var(--shadow-color);
    
    --success-color: #28a745;
    --badge-green: #28a745;
    --badge-green-light: #e8f5e9;
    --hot-color: #ff3a5e;
    --badge-red: #ff3a5e;
    --flash-color: #ffc107;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --radius: 16px; /* Default radius */
}


html, body {
    background-color: var(--background-color);
    color: var(--ink);
    font-family: 'Inter', 'Poppins', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    overflow-y: auto;
}
/* ADD THIS NEW BANNER CSS */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 1rem auto;
}

#hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
    border-radius: 8px;
    background-color: #e0e0e0; /* A fallback background color */
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

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

/* Slider Navigation Buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.slider-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.slider-nav.prev {
    left: 15px;
}

.slider-nav.next {
    right: 15px;
}
    .search-bar-modern {
      position: relative;
      z-index: 9;
      display: flex;
      align-items: center;
      background: #fff;
      border-radius: 24px;
      padding: 2px 10px;
      box-shadow: 0 2px 12px #0001;
      margin: 12px auto 16px auto;
      max-width: 600px;
      top: 0;
      transition: top 0.3s ease;
    }
    .search-bar-modern.sticky-search {
      position: fixed;
      top: 8px;
      left: 50%;
      transform: translateX(-50%);
      max-width: 580px;
      box-shadow: 0 4px 24px rgba(255, 114, 76, 0.6);
      animation: popIn 0.3s forwards;
      z-index: 1050;
    }
    @keyframes popIn {
      from {
        opacity: 0;
        transform: translateX(-50%) translateY(-15px);
      }
      to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
      }
    }
    .category-dropdown {
      border: none;
      background: none;
      font-weight: bold;
      color: #f57224;
      font-size: 1.1em;
      margin-right: 10px;
      border-radius: 14px;
      padding: 9px 12px;
      background: #fff7f5;
      box-shadow: 0 2px 8px #f5722422;
    }
    .search-bar-modern input[type="text"] {
      flex: 1;
      border: none;
      outline: none;
      font-size: 1.13em;
      padding: 10px 12px;
      background: transparent;
      color: #333;
    }
    .search-btn-modern {
      background: #f57224;
      color: #fff;
      border: none;
      border-radius: 25px;
      padding: 8px 26px;
      font-size: 1.12em;
      font-weight: bold;
      cursor: pointer;
      transition: background 0.15s;
      margin-left: 8px;
    }
    .search-btn-modern:hover {
      background: #d45703;
    }
    .search-suggestions {
      position: absolute;
      top: 110%;
      left: 0;
      right: 0;
      background: #fff;
      border-radius: 0 0 24px 24px;
      box-shadow: 0 6px 24px #f5722414;
      z-index: 99;
      max-height: 260px;
      overflow-y: auto;
      border-top: 1px solid #f5722433;
      font-size: 1.08rem;
      padding-top: 6px;
      padding-bottom: 4px;
      display: none;
      animation: fadein 0.22s;
    }
    @keyframes fadein {
      from {
        opacity: 0;
        transform: translateY(-10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    .suggestion-item {
      padding: 13px 22px;
      cursor: pointer;
      color: #222;
      border-radius: 7px;
      font-weight: 600;
      transition: background 0.13s, color 0.12s;
    }
    .suggestion-item b {
      color: #fe724c;
    }
    .suggestion-item:hover {
      background: #ffe4d1;
      color: #d45703;
    }
    .main-section {
      background: var(--card-bg);
      margin: 30px auto 36px auto;
      padding: 30px 12px 38px 12px;
      border-radius: var(--radius);
      max-width: 1200px;
      box-shadow: var(--shadow);
      border: 1px solid var(--border);
    }
    .section-title {
      font-size: 1.32rem;
      font-weight: 900;
      margin: 0 0 18px 7px;
      color: #ff3a5e;
    }
    
    
    
    .mini-cart-overlay {
      position: fixed;
      z-index: 2100;
      left: 0;
      top: 0;
      right: 0;
      bottom: 0;
      background: #1a1a1a80;
      display: none;
      animation: fadein 0.22s;
    }
    .mini-cart-overlay.active {
      display: block;
    }
    .mini-cart-drawer {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) scale(0.8);
      width: 390px;
      max-width: 95vw;
      max-height: 80vh;
      background: #fff;
      box-shadow: 0 4px 28px #fe724c33;
      z-index: 2200;
      border-radius: 18px;
      display: flex;
      flex-direction: column;
      transition: transform 0.35s cubic-bezier(0.5, 1.1, 0.5, 1);
      opacity: 0;
      pointer-events: none;
    }
    .mini-cart-drawer.active {
      opacity: 1;
      pointer-events: auto;
      transform: translate(-50%, -50%) scale(1);
      animation: popupScale 0.35s cubic-bezier(0.5, 1.1, 0.5, 1) forwards;
    }
    @keyframes popupScale {
      0% {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 0;
      }
      100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
      }
    }
    .mini-cart-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 23px 26px 8px 23px;
      border-bottom: 1.6px solid #fee0d1;
      font-size: 1.17em;
      font-weight: 900;
      background: #fff;
      border-radius: 18px 18px 0 0;
    }
    .mini-cart-close {
      cursor: pointer;
      font-size: 2em;
      color: #fd7e1a;
      font-weight: 900;
      transition: color 0.15s;
      background: none;
      border: none;
      line-height: 1;
      padding: 0;
    }
    .mini-cart-close:hover {
      color: #ff3a5e;
    }
    .mini-cart-items {
      flex: 1;
      overflow-y: auto;
      padding: 19px 20px 0 20px;
      max-height: calc(80vh - 134px);
    }
    .mini-cart-item {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 18px;
      border-radius: 9px;
      background: #fffa;
      box-shadow: 0 2px 12px #fd7e1a12;
      padding: 10px 8px 10px 8px;
      position: relative;
      animation: cartItemPop 0.44s cubic-bezier(0.49, 2.3, 0.48, 1);
    }
    @keyframes cartItemPop {
      0% {
        opacity: 0;
        transform: translateX(24px) scale(0.94);
      }
      76% {
        opacity: 1;
        transform: scale(1.06);
      }
      100% {
        opacity: 1;
        transform: translateX(0) scale(1);
      }
    }
    .mini-cart-item-img {
      width: 44px;
      height: 44px;
      object-fit: contain;
      border-radius: 7px;
      border: 1.5px solid #fee0d1;
      background: #fff;
    }
    .mini-cart-item-details {
      flex: 1;
      min-width: 0;
    }
    .mini-cart-item-title {
      font-weight: 900;
      color: #fe724c;
      font-size: 1.02em;
      margin-bottom: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .mini-cart-item-qty {
      font-size: 0.96em;
      color: #888;
      margin-bottom: 1px;
    }
    .mini-cart-item-price {
      font-weight: 700;
      color: #fd7e1a;
      font-size: 1.07em;
    }
    .mini-cart-item-remove {
      cursor: pointer;
      color: #ff3a5e;
      font-size: 1.24em;
      font-weight: 900;
      margin-left: 7px;
      transition: color 0.12s;
    }
    .mini-cart-item-remove:hover {
      color: #1a1a1a;
    }
    .mini-cart-footer {
      border-top: 1.7px solid #fee0d1;
      background: #fff7f5;
      padding: 19px 23px;
      text-align: right;
      border-radius: 0 0 18px 18px;
    }
    .mini-cart-total {
      font-weight: 900;
      color: #fd7e1a;
      font-size: 1.15em;
      margin-bottom: 13px;
    }
    .mini-cart-checkout {
      background: linear-gradient(90deg, #fe724c, #fd7e1a);
      color: #fff;
      padding: 11px 29px;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 900;
      font-size: 1.08em;
      transition: background 0.18s;
      box-shadow: 0 2px 12px #fd7e1a12;
    }
    .mini-cart-checkout:hover {
      background: #fff;
      color: #fd7e1a;
      border: 2px solid #fe724c;
      box-shadow: 0 4px 20px #fd7e1a26;
    }
    .site-footer {
        background: #fff;
        color: #4a4a4a;
        padding: 50px 20px;
        margin-top: 40px;
        border-top: 4px solid var(--primary);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    }
    .footer-grid {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 40px;
    }
    .footer-col h3 {
        font-size: 1.2rem;
        font-weight: 900;
        color: var(--primary-dark);
        margin-bottom: 15px;
        position: relative;
        padding-bottom: 8px;
    }
    .footer-col h3::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 40px;
        height: 3px;
        background: var(--accent);
        border-radius: 2px;
    }
    .footer-col ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .footer-col ul li {
        margin-bottom: 10px;
    }
    .footer-col ul a {
        color: #555;
        text-decoration: none;
        font-weight: 700;
        transition: color 0.2s;
    }
    .footer-col ul a:hover {
        color: var(--primary);
    }
    .footer-col .footer-contact a {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .newsletter-form {
        display: flex;
        margin-top: 10px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .newsletter-form input {
        flex-grow: 1;
        border: 1px solid #ddd;
        border-right: none;
        padding: 12px 15px;
        font-size: 1rem;
        outline: none;
    }
    .newsletter-form button {
        background: var(--primary);
        color: white;
        border: none;
        padding: 0 20px;
        font-weight: 700;
        cursor: pointer;
        transition: background-color 0.2s;
    }
    .newsletter-form button:hover {
        background: var(--primary-dark);
    }
    .social-links {
        display: flex;
        gap: 15px;
        margin-top: 15px;
    }
    .social-links a {
        color: var(--primary);
        font-size: 1.5rem;
        transition: transform 0.2s, color 0.2s;
    }
    .social-links a:hover {
        color: var(--accent);
        transform: scale(1.1);
    }
    .footer-bottom {
        max-width: 1200px;
        margin: 40px auto 0 auto;
        padding-top: 20px;
        border-top: 1px solid #eee;
        text-align: center;
        font-weight: 700;
        color: #999;
    }
    #scrollProgressBar {
      position: fixed;
      top: 0;
      left: 0;
      height: 4px;
      width: 0;
      background: var(--primary);
      z-index: 10000;
    }
    
    #dwBackToTop {
      display: none;
      position: fixed;
      right: 17px;
      bottom: 70px;
      z-index: 9998; /* Increased z-index */
      background: #fe724c;
      color: #fff;
      border-radius: 50%;
      width: 44px;
      height: 44px;
      font-size: 1.43em;
      box-shadow: 0 2px 8px #fd7e1a33;
      border: none;
      cursor: pointer;
      align-items: center;
      justify-content: center;
      outline: none;
      transition: opacity 0.18s;
    }
    @media (max-width: 650px) {
      #dwBackToTop {
        display: flex;
      }
    }
    @media (max-width: 900px) {
      .main-section,
      .banner-slider {
        max-width: 100%;
      }
    }
    @media (max-width: 650px) {
      .mini-cart-drawer {
        width: 99vw;
        min-width: 0;
        border-radius: 14px 14px 0 0;
      }
      .banner-slider,
      .banner-slide img {
        height: 110px !important;
      }
      .main-section {
        margin: 16px 0 18px 0;
        padding: 18px 2vw 18px 2vw;
      }
    }
    @media (max-width: 480px) {
      .banner-slider,
      .banner-slide img {
        height: 65px !important;
      }
      .action-button {
        padding: 12px 16px;
        font-size: 0.95rem;
      }
      .container {
        padding: 15px;
      }
        .action-button {
        padding: 12px 16px;
        font-size: 0.95rem;
      }
    }
.cart-btn.animated {
  animation: cart-bounce 0.43s cubic-bezier(.68,-0.6,.32,1.6);
}
.auth-btn,
.account-btn {
  background: #fff3;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 8px 19px 8px 11px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 2px 8px #f5722422;
  transition: background 0.13s, color 0.13s;
  user-select: none;
}
.auth-btn:hover,
.account-btn:hover {
  background: #fff5;
  color: var(--primary-dark);
}
.auth-btn svg,
.account-btn svg {
  stroke: #fff;
}
.nav-link-pro {
  background: #fff3;
  color: #fff;
  border-radius: 50px;
  padding: 8px 19px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: background 0.13s, color 0.13s;
  cursor: pointer;
  user-select: none;
}
.nav-link-pro:hover,
.nav-link-pro.active {
  background: #fff5;
  color: var(--primary-dark);
}
.lang-currency-switcher .dropdown-toggle {
  background: rgba(255 255 255 / 0.55);
  color: #fe724c;
  border: none;
  border-radius: 9px;
  padding: 4px 10px;
  font-weight: 600;
  font-size: 0.93rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: none;
  transition: background 0.15s ease, color 0.15s ease;
  user-select: none;
  min-width: 80px;
}
.lang-currency-switcher .dropdown-toggle:hover,
.lang-currency-switcher .dropdown-toggle:focus {
  background: rgba(255 255 255 / 0.8);
  color: #d45703;
  outline: none;
}
.lang-currency-switcher .dropdown-toggle svg {
  stroke: #fe724c;
  width: 12px;
  height: 7px;
}
.lang-currency-switcher .dropdown-toggle {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 6px 16px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.3s ease;
  user-select: none;
  box-shadow: 0 2px 8px #f5722422;
}
.lang-currency-switcher .dropdown-toggle:hover,
.lang-currency-switcher .dropdown-toggle:focus {
  background-color: var(--primary-dark);
  outline: none;
}
.lang-currency-switcher .dropdown-toggle svg {
  stroke: white;
  width: 12px;
  height: 7px;
}
.lang-currency-switcher .dropdown-toggle {
  background: #fff3;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 8px 19px 8px 11px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 2px 8px #f5722422;
  transition: background 0.13s, color 0.13s;
  user-select: none;
  min-width: 90px;
}
.lang-currency-switcher .dropdown-toggle:hover,
.lang-currency-switcher .dropdown-toggle:focus {
  background: #fff5;
  color: var(--primary-dark);
  outline: none;
}
.lang-currency-switcher .dropdown-toggle svg {
  stroke: #fff;
  width: 12px;
  height: 7px;
}
.lang-currency-switcher .dropdown-toggle {
  background: #fff3 !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 8px 19px 8px 11px !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  box-shadow: 0 2px 8px #f5722422 !important;
  transition: background 0.13s, color 0.13s !important;
  user-select: none !important;
}
.lang-currency-switcher .dropdown-toggle {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 8px 19px 8px 11px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 2px 8px #f5722422;
  transition: background-color 0.13s, color 0.13s;
  user-select: none;
}
.lang-currency-switcher .dropdown-toggle:hover,
.lang-currency-switcher .dropdown-toggle:focus {
  background-color: var(--primary-dark);
  outline: none;
}
.lang-currency-switcher .dropdown-toggle svg {
  stroke: white;
  width: 12px;
  height: 7px;
}
.lang-currency-switcher {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.lang-currency-switcher .dropdown-toggle {
  background: #fff3 !important;
  padding: 8px 14px !important;
  border-radius: 50px !important;
  box-shadow: 0 2px 8px #f5722422 !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  border: none !important;
  transition: background 0.13s ease !important;
}
.lang-currency-switcher .dropdown-toggle:hover,
.lang-currency-switcher .dropdown-toggle:focus {
  background: #fff5 !important;
  color: var(--primary-dark) !important;
  outline: none !important;
}
.lang-currency-switcher .dropdown-toggle svg {
  stroke: #fff !important;
  width: 12px !important;
  height: 7px !important;
}
.lang-currency-switcher .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}
.lang-currency-switcher .dropdown-toggle .flag {
  font-size: 1.1em;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}
.account-menu {
 position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(255, 114, 76, 0.3);
  padding: 12px 0;
  min-width: 160px;
  /* Start hidden */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 1500;
  display: flex;
  flex-direction: column;
}
.account-menu a,
.account-menu button {
  padding: 10px 24px;
  font-weight: 700;
  color: #fe724c;
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.account-menu a:hover,
.account-menu button:hover {
  background-color: #fe724c;
  color: white;
  border-radius: 8px; /* Optional: adds a nice touch */
}
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.12);
  max-height: 240px;
  overflow-y: auto;
  z-index: 3000;
  font-size: 0.95rem;
  color: #111;
}
.search-suggestion-item {
  padding: 12px 18px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}
.search-suggestion-item:last-child {
  border-bottom: none;
}
.search-suggestion-item:hover,
.search-suggestion-item:focus {
  background: #f97316;
  color: #fff;
  outline: none;
}
.ali-modal {
  display: none;
  position: fixed;
  z-index: 4000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.32);
  align-items: center;
  justify-content: center;
}
.ali-modal-content {
  background: #fff;
  border-radius: 18px;
  padding: 28px 20px;
  max-width: 340px;
  width: 90vw;
  margin: auto;
  box-shadow: 0 4px 22px rgba(249,115,22,0.10);
  text-align: left;
}
.ali-modal-content label {
  font-weight: 600;
  margin-top: 8px;
  display: block;
}
.ali-modal-content select {
  width: 100%;
  padding: 8px 12px;
  margin: 6px 0 14px 0;
  border-radius: 8px;
  border: 1px solid #eee;
  font-size: 1rem;
}
.ali-modal-save {
  background: #f97316;
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 10px 24px;
  font-weight: bold;
  margin-right: 8px;
  cursor: pointer;
}
.ali-modal-close {
  background: #eee;
  color: #f97316;
  border: none;
  border-radius: 9px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
}

   .site-footer {
        background: #fff;
        color: #4a4a4a;
        padding: 50px 20px;
        margin-top: 40px;
        border-top: 4px solid var(--primary);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    }
    .footer-grid {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 40px;
    }
    .footer-col h3 {
        font-size: 1.2rem;
        font-weight: 900;
        color: var(--primary-dark);
        margin-bottom: 15px;
    }
    .footer-col ul { list-style: none; padding: 0; margin: 0; }
    .footer-col ul li { margin-bottom: 10px; }
    .footer-col ul a {
        color: #555;
        text-decoration: none;
        font-weight: 700;
        transition: color 0.2s;
    }
    .footer-col ul a:hover { color: var(--primary); }
    .payment-methods-logos {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
    }
    .payment-methods-logos img {
        height: 30px;
        opacity: 0.8;
    }
    .footer-bottom {
        max-width: 1200px;
        margin: 40px auto 0 auto;
        padding-top: 20px;
        border-top: 1px solid #eee;
        text-align: center;
        font-weight: 700;
        color: #999;
    }
    100% { background-position: 200% 0; }
}
    html { scroll-behavior: smooth; }
    .mini-cart-overlay {
      position: fixed; z-index: 2100; left: 0; top: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.5); 
      backdrop-filter: blur(8px);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s, visibility 0.3s;
    }
    .mini-cart-overlay.active { 
      opacity: 1;
      visibility: visible;
    }
    .mini-cart-drawer {
      position: fixed;
      top: 50%;
      left: 50%;
      width: 390px;
      max-width: 90vw;
      max-height: 80vh;
      background: #fff;
      box-shadow: 0 10px 40px rgba(0,0,0,0.2);
      z-index: 2200;
      border-radius: var(--radius);
      display: flex; flex-direction: column;
      transform: translate(-50%, -50%) scale(0.8);
      opacity: 0;
      transition: transform 0.4s cubic-bezier(0.4, 1.5, 0.6, 1), opacity 0.3s;
    }
    .mini-cart-overlay.active .mini-cart-drawer {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    .mini-cart-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 20px 25px; border-bottom: 1.6px solid #eee;
      font-size: 1.25em; font-weight: 900;
    }
    .mini-cart-close { cursor: pointer; font-size: 1.5em; color: #aaa; transition: color 0.2s; background:none; border:none; padding:0; }
    .mini-cart-close:hover { color: var(--primary); }
    .mini-cart-items { flex: 1; overflow-y: auto; padding: 20px 25px 0 25px; }
    .mini-cart-item { 
        display: flex; align-items: center; gap: 15px; margin-bottom: 20px; 
    }
    .mini-cart-item-img { width: 50px; height: 50px; object-fit: contain; border-radius: 8px; border: 1px solid #eee; }
    .mini-cart-item-details { flex: 1; min-width: 0; text-align: left; }
    .mini-cart-item-title {
      font-weight: 700; color: #333; font-size: 1rem; margin-bottom: 2px;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .mini-cart-item-price { font-weight: 700; color: var(--primary); font-size: 1rem; }
    .mini-cart-item-remove { cursor: pointer; color: #ff3a5e; font-size: 1.1em; transition: color 0.2s; }
    .mini-cart-footer { border-top: 1.7px solid #eee; background: #fafafa; padding: 20px 25px; border-radius: 0 0 var(--radius) var(--radius); }
    .mini-cart-total { font-weight: 900; color: #333; font-size: 1.2em; margin-bottom: 15px; display: flex; justify-content: space-between; }
    .mini-cart-checkout {
      background: linear-gradient(90deg,#fe724c,#fd7e1a); color: #fff;
      padding: 14px; border: none; border-radius: 12px; cursor: pointer;
      font-weight: 700; font-size: 1.1em; transition: all 0.2s; width: 100%;
    }
    .mini-cart-checkout:hover { transform: scale(1.03); box-shadow: 0 4px 15px rgba(245,114,36,0.3); }

    .site-footer {
        background: #fff;
        color: #4a4a4a;
        padding: 50px 20px;
        margin-top: 40px;
        border-top: 4px solid var(--primary);
    }
    .footer-grid {
        max-width: 1200px; margin: 0 auto; display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px;
    }
    .footer-col h3 { font-size: 1.2rem; font-weight: 900; color: var(--primary-dark); margin-bottom: 15px; }
    .footer-col ul { list-style: none; padding: 0; margin: 0; }
    .footer-col ul li { margin-bottom: 10px; }
    .footer-col ul a { color: #555; text-decoration: none; font-weight: 700; transition: color 0.2s; }
    .footer-col ul a:hover { color: var(--primary); }
    .payment-methods-logos { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
    .payment-methods-logos img { height: 30px; opacity: 0.8; }
    .footer-bottom {
        max-width: 1200px; margin: 40px auto 0 auto; padding-top: 20px;
        border-top: 1px solid #eee; text-align: center; font-weight: 700; color: #999;
    }

    @media (max-width: 650px) {
        .footer-grid {
            grid-template-columns: 1fr;
            gap: 20px;
            text-align: left;
        }

        .footer-col h3::after {
            left: 0;
            transform: none;
        }

        .footer-bottom {
            margin: 20px auto 0 auto;
        }

        .footer-bottom .theme-toggle {
            justify-content: center;
        }
    }

    /* --- PAGE SPECIFIC STYLES --- */
    
    .review-card {
        border-bottom: 1px solid #eee;
        padding: 25px 0;
    }
    .review-card:last-child { border-bottom: none; }
    .review-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 10px;
    }
    .review-author-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .review-author-info i {
        font-size: 1.5rem;
        color: var(--primary);
        background-color: #fef4f0;
        padding: 8px;
        border-radius: 50%;
    }
    .review-author {
        font-weight: 900;
        font-size: 1.1rem;
    }
    .review-date {
        font-size: 0.85rem;
        color: #888;
    }
    .star-rating {
        color: var(--star-color);
        font-size: 1.2rem;
    }
    .review-text {
        font-size: 1rem;
        line-height: 1.6;
        color: #555;
        padding-left: 54px;
    }
    #review-form {
        background: #fdfdfd;
        border: 1px solid #eee;
        border-radius: var(--radius);
        padding: 30px;
    }
    .form-group { margin-bottom: 20px; }
    .form-group label { display: block; font-weight: 700; margin-bottom: 8px; }
    .form-group input, .form-group textarea {
        width: 100%;
        padding: 12px;
        border-radius: 10px;
        border: 1px solid #ddd;
        font-size: 1rem;
        box-sizing: border-box;
        transition: border-color 0.2s, box-shadow 0.2s;
    }
    .form-group input:focus, .form-group textarea:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(245, 114, 36, 0.2);
    }
    .form-group textarea { min-height: 120px; resize: vertical; }
    .star-rating-input {
        display: flex;
        flex-direction: row-reverse;
        justify-content: flex-end;
        gap: 5px;
    }
    .star-rating-input input { display: none; }
    .star-rating-input label {
        font-size: 2rem;
        color: var(--star-color-inactive);
        cursor: pointer;
        transition: color 0.2s;
    }
    .star-rating-input input:checked ~ label,
    .star-rating-input label:hover,
    .star-rating-input label:hover ~ label {
        color: var(--star-color);
    }
    .submit-button {
        background-color: var(--primary-dark);
        color: white;
        padding: 12px 25px;
        border: none;
        border-radius: 10px;
        font-weight: 700;
        font-size: 1.1rem;
        cursor: pointer;
        transition: background-color 0.3s;
    }
    .submit-button:hover { background-color: var(--primary); }
    #form-message {
        margin-top: 15px;
        font-weight: 700;
        text-align: center;
        padding: 10px;
        border-radius: 8px;
    }
    
    /* === RELATED PRODUCTS & HOT BADGE STYLES === */
    .related-products-container {
        margin-top: 40px;
    }
    .products-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 25px;
    }
    .product-card-img {
        width: 100%;
        height: 180px;
        object-fit: contain;
        padding: 10px;
        background-color: var(--bg);
    }
    .product-card-info {
        padding: 15px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
    .product-card-title {
        font-weight: 700;
        font-size: 1rem;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    .product-card-price {
        font-weight: 900;
        font-size: 1.2rem;
        color: var(--primary);
        margin-top: auto;
    }
    .hot-badge {
        position: absolute;
        top: 12px;
        left: 12px;
        background: linear-gradient(45deg, #ff4e50, #f9d423);
        color: white;
        padding: 5px 12px;
        border-radius: 50px;
        font-size: 0.85rem;
        font-weight: 900;
        display: flex;
        align-items: center;
        gap: 5px;
        box-shadow: 0 2px 8px #00000033;
    }

    /* --- ✨ NEW SKELETON STYLES ✨ --- */
    .skeleton-details-grid {
        display: grid; grid-template-columns: 1fr; gap: 30px;
        background: var(--card-bg); padding: 40px; border-radius: var(--radius);
        box-shadow: var(--shadow); align-items: flex-start;
    }
    @media (min-width: 900px) {
        .skeleton-details-grid { grid-template-columns: 1fr 1.2fr; gap: 50px; }
    }
    .skeleton-image-container {
        width: 100%; padding-top: 100%;
        background-color: #eef0f2; border-radius: var(--radius);
        animation: pulse 1.5s infinite ease-in-out;
    }
    .skeleton-info { padding-top: 10px; }
    .skeleton-line {
        height: 1em; background-color: #eef0f2;
        border-radius: 4px; margin-bottom: 20px;
        animation: pulse 1.5s infinite ease-in-out;
    }
    .skeleton-line.title { height: 2.2em; width: 85%; }
    .skeleton-line.price { width: 45%; height: 2.5em; margin-bottom: 30px; }
    .skeleton-line.text { width: 100%; height: 1em; }
    .skeleton-line.text-short { width: 90%; }
    .skeleton-button {
        height: 52px; width: 220px;
        background-color: #eef0f2; border-radius: 12px;
        margin-top: 30px; animation: pulse 1.5s infinite ease-in-out;
    }
    @keyframes pulse {
        0% { background-color: #eef0f2; }
        50% { background-color: #e2e5e7; }
        100% { background-color: #eef0f2; }
    }
/* Auth Modal Styles */
.auth-modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 5000;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}
.auth-modal-overlay.show {
    display: flex;
}
.auth-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: modal-pop 0.3s ease-out;
}
.auth-modal-close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 2rem;
    background: none; border: none;
    color: #aaa; cursor: pointer;
}
.auth-modal-content h3 {
    text-align: center;
    margin: 0 0 5px 0;
    font-weight: 900;
}
.auth-modal-content p {
    text-align: center;
    color: #888;
    margin-bottom: 25px;
}
.auth-providers { display: flex; flex-direction: column; gap: 10px; }
.auth-provider-btn {
    width: 100%; padding: 12px;
    border-radius: 8px; border: 1px solid #ddd;
    font-size: 1rem; font-weight: 700;
    cursor: pointer; display: flex; align-items: center;
    justify-content: center; gap: 10px;
    background: #fff;
}
.auth-provider-btn.google { color: #db4437; }
.auth-separator { text-align: center; margin: 20px 0; color: #ccc; font-weight: 700; }
#emailLoginForm label { display: block; font-weight: 700; margin-bottom: 5px; }
#emailLoginForm input { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid #ccc; font-size: 1rem; box-sizing: border-box; }
.auth-continue-btn {
    width: 100%; padding: 12px;
    margin-top: 15px; border-radius: 8px;
    border: none; font-size: 1.1rem; font-weight: 700;
    cursor: pointer; background: var(--primary); color: white;
}
/* Add this to the end of styles.css */

/* Auth Dropdown Menu Styles */
.account-control {
    position: relative; /* Required for the dropdown positioning */
}

.auth-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    padding: 15px;
    margin-top: 10px;
    z-index: 2000;
    
    /* Animation setup */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Show the dropdown on hover */
.account-control:hover .auth-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.auth-dropdown-signin-btn {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    background: var(--primary-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin-bottom: 10px;
}

.auth-dropdown-menu .register-link {
    display: block;
    text-align: center;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.auth-dropdown-menu hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 15px 0;
}

.auth-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    color: #333;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.auth-dropdown-menu a:hover {
    background-color: #f0f2f5;
}

.auth-dropdown-menu .fas {
    width: 20px;
    text-align: center;
    color: #888;
}
/* =================================================================== */
/* ================== BANNER 1: UNIQUE MICROSOFT KEYS ================ */
/* =================================================================== */

.unique-banner {
    position: relative;
    width: 100%; /* Changed for slider */
    height: 100%; /* Changed for slider */
    background: linear-gradient(135deg, #1e1e1e 0%, #121212 100%);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 107, 0, 0.2);
    transform-style: preserve-3d;
    display: flex; /* Added for centering */
    justify-content: center; /* Added for centering */
    align-items: center; /* Added for centering */
}

.banner-content-layer {
    position: relative;
    z-index: 5;
    padding: 3rem 4rem;
    width: 50%;
    text-align: left;
}

.unique-banner h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 87, 34, 0.4);
    animation: slide-up 1s ease-out 0.2s forwards;
    opacity: 0;
}

.unique-banner p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.8);
    max-width: 450px;
    animation: slide-up 1s ease-out 0.4s forwards;
    opacity: 0;
}

.unique-banner .pro-btn {
    background: linear-gradient(45deg, #FF4500, #FF6347);
    color: #fff;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 69, 0, 0.4);
    display: inline-block;
    animation: slide-up 1s ease-out 0.6s forwards;
    opacity: 0;
}

.unique-banner .pro-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.6);
}

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

.visuals-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.visual-element {
    position: absolute;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.logo-windows {
    top: 15%;
    right: 10%;
    width: 250px;
    color: #FF4500;
    animation: float-logo 8s ease-in-out infinite;
    z-index: 3;
}

.logo-office {
    bottom: 10%;
    right: 35%;
    width: 180px;
    color: #d32f2f;
    animation: float-logo 10s ease-in-out infinite 1s;
    z-index: 2;
}

.shape-1 {
    top: 5%; left: 45%; width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255, 69, 0, 0.2) 0%, transparent 70%);
    animation: pulse-shape 12s infinite;
}

.shape-2 {
    bottom: -20%; right: -10%; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(211, 47, 47, 0.15) 0%, transparent 70%);
    animation: pulse-shape 15s infinite 2s;
}

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

@keyframes pulse-shape {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

/* =================================================================== */
/* =============== BANNER 2: STREAMING & VPNS (POWERFUL) ============= */
/* =================================================================== */

.powerful-banner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 5%;
    background: linear-gradient(135deg, #2a2a2e 0%, #1a1a1a 100%);
    color: #fff;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 0, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.powerful-banner::before, .powerful-banner::after {
    content: '';
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    background: linear-gradient(45deg, #FF4500, #FF6347);
    animation: pulse-glow 8s infinite alternate;
}

.powerful-banner::before {
    width: 400px; height: 400px; top: -150px; left: -100px; opacity: 0.2; filter: blur(80px);
}

.powerful-banner::after {
    width: 300px; height: 300px; bottom: -120px; right: -80px; opacity: 0.25; filter: blur(60px); animation-delay: -4s;
}

@keyframes pulse-glow {
    from { transform: scale(0.9); opacity: 0.15; }
    to { transform: scale(1.1); opacity: 0.25; }
}

.promo-badge {
    position: absolute;
    top: 25px; left: -10px;
    background-color: #d32f2f;
    color: #fff;
    padding: 0.8rem 1.5rem 0.8rem 2.5rem;
    font-weight: bold;
    z-index: 3;
    clip-path: polygon(0% 0%, 100% 0%, 90% 50%, 100% 100%, 0% 100%, 10% 50%);
    animation: slide-in-badge 1s ease-out 0.5s forwards;
    opacity: 0;
}

@keyframes slide-in-badge {
    from { transform: translateX(-100%); opacity: 0;}
    to { transform: translateX(0); opacity: 1;}
}

.left-content {
    flex-basis: 55%;
    padding-right: 2rem;
    z-index: 2;
}

.powerful-banner h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(255, 87, 34, 0.5);
}

.powerful-banner p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 500px;
}

.cta-buttons a {
    display: inline-block;
    padding: 1rem 2rem;
    margin: 0.5rem 1rem 0.5rem 0;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.cta-primary {
    background: linear-gradient(45deg, #FF4500, #FF6347);
    box-shadow: 0 4px 20px rgba(255, 69, 0, 0.4);
}

.cta-secondary {
    background-color: transparent;
    border: 2px solid #ff6347;
}

.cta-buttons a:hover {
    transform: translateY(-3px) scale(1.05);
}

.right-visual {
    flex-basis: 45%;
    position: relative;
    z-index: 2;
    animation: float-main 6s ease-in-out infinite;
}

@keyframes float-main {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.right-visual .card-stack {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 16/10;
}

.card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: transform 0.5s ease-out;
    background: linear-gradient(45deg, #FF6347, #FF4500);
    padding: 10px;
}

.card-1 {
    transform: rotate(-5deg) translate(-10%, -5%);
    z-index: 1;
}

.card-2 {
    transform: rotate(5deg) translate(10%, 5%);
    z-index: 2;
}

.image-container {
     width: 100%;
     height: 100%;
     background-size: cover;
     background-position: center;
     border-radius: 10px;
}

.card-1 .image-container {
    background-image: url('https://images.unsplash.com/photo-1558507314-78326ade135d?q=80&w=2070&auto=format&fit=crop');
}

.card-2 .image-container {
    background-image: url('https://images.unsplash.com/photo-1593359677879-a4bb92f829d1?q=80&w=2070&auto=format&fit=crop');
}

.powerful-banner:hover .card-1 {
     transform: rotate(-8deg) translate(-20%, -5%) scale(1.05);
}

.powerful-banner:hover .card-2 {
     transform: rotate(8deg) translate(0%, 5%) scale(1.05);
}

/* =================================================================== */
/* ============= BANNER 3: ANTIVIRUS & GAMING (GLASS) ================ */
/* =================================================================== */

.glass-banner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.glass-banner .background-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(-45deg, #d32f2f, #ff4500, #ff6347, #b71c1c);
    background-size: 400% 400%;
    animation: gradient-flow 15s ease infinite;
}

.glass-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    box-sizing: border-box;
}

.content-section {
    flex-basis: 45%;
    text-align: center;
    animation: fade-in-content 1s ease-out 0.5s forwards;
    opacity: 0;
}

@keyframes fade-in-content {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-section .icon {
    font-size: 6rem;
    color: #fff;
    text-shadow: 0 0 25px rgba(255, 107, 0, 0.6);
    margin-bottom: 1rem;
    animation: float-icon 6s ease-in-out infinite;
}

.content-section.gaming .icon { animation-delay: -3s; }

@keyframes float-icon {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.content-section h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.content-section p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.pro-btn-glass {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 107, 0, 0.5);
    backdrop-filter: blur(5px);
}

.pro-btn-glass:hover {
    background: rgba(255, 107, 0, 0.8);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.4);
}

.separator {
    width: 2px;
    height: 70%;
    background: linear-gradient(to bottom, transparent, rgba(255,107,0,0.7), transparent);
    z-index: 3;
}

/* =================================================================== */
/* ================== BANNER 4: FLASH SALE PROMOTION ================= */
/* =================================================================== */

.flash-sale-banner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.background-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    animation: ken-burns 20s infinite;
}

.background-slideshow .slide.active {
    opacity: 1;
}

.background-slideshow .slide:nth-child(2) { animation-delay: -5s; }
.background-slideshow .slide:nth-child(3) { animation-delay: -10s; }
.background-slideshow .slide:nth-child(4) { animation-delay: -15s; }

@keyframes ken-burns {
    0% { transform: scale(1.1) translateX(-5%); }
    50% { transform: scale(1.2) translateX(5%); }
    100% { transform: scale(1.1) translateX(-5%); }
}

.flash-sale-banner .flash-sale-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1;
}

.flash-sale-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.flash-sale-content h2 {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 5px;
    animation: flicker 2s infinite alternate;
    text-shadow: 0 0 10px #FF4500, 0 0 20px #FF4500, 0 0 40px #d32f2f, 0 0 60px #d32f2f;
}

@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 0 0 10px #FF4500, 0 0 20px #FF4500, 0 0 40px #d32f2f, 0 0 60px #d32f2f;
    }
    20%, 24%, 55% {        
        text-shadow: none;
    }
}

.flash-sale-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

#countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.timer-unit {
    background: rgba(0,0,0,0.5);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 0, 0.5);
}

.timer-unit span {
    display: block;
}

.timer-unit .number {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
    color: #FF6B00;
}

.timer-unit .label {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.pro-btn-flash {
    background: linear-gradient(45deg, #FF4500, #FF6347);
    color: #fff;
    padding: 1.2rem 3rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(255, 69, 0, 0.5);
    display: inline-block;
    text-transform: uppercase;
    animation: pulse-button 1.5s infinite;
}

@keyframes pulse-button {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* =================================================================== */
/* ===================== RESPONSIVE ADJUSTMENTS ====================== */
/* =================================================================== */

@media (max-width: 992px) {
    /* Banner 1 */
    .unique-banner {
        flex-direction: column;
        height: auto;
        padding: 2rem;
    }
    .banner-content-layer {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
    .unique-banner p { max-width: 100%; }
    .visuals-layer { display: none; }

    /* Banner 2 */
    .powerful-banner {
        flex-direction: column;
        text-align: center;
        padding: 4rem 2rem;
    }
    .left-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    .cta-buttons {
        justify-content: center;
    }
    .powerful-banner h2 { font-size: 2.5rem; }
    .powerful-banner p { max-width: 100%; }

    /* Banner 3 */
    .glass-banner { height: auto; }
    .glass-panel { flex-direction: column; padding: 3rem 5%; height: auto;}
    .separator { display: none; }
    .content-section:first-child { margin-bottom: 3rem; }
    .content-section h3 { font-size: 2rem; }

    /* Banner 4 */
    .flash-sale-banner { height: auto; padding: 4rem 2rem; }
    .flash-sale-content h2 { font-size: 3rem; }
    .timer-unit .number { font-size: 2rem; }
    #countdown-timer { gap: 0.5rem; }
}
/* =================================================================== */
/* ===================== HERO SLIDER STYLES (Final) ================== */
/* =================================================================== */

.hero-slider-wrapper {
    position: relative;
    width: 98%;
    max-width: 1400px;
    margin: 1.5rem auto 3rem;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

#hero-slider {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #e0e0e0;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

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

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.slider-nav:hover {
    background-color: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* =================================================================== */
/* ============== FLASH SALE BANNER SPACING FIX ====================== */
/* =================================================================== */

.flash-sale-content h2 {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
}

.flash-sale-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

#countdown-timer {
    margin: 1.2rem 0;
}

.pro-btn-flash {
    padding: 0.9rem 2.5rem; /* Further reduced vertical padding */
}

/* Responsive adjustment for smaller screens */
/* =================================================================== */
/* ====================== WISHLIST BUTTON STYLE ====================== */
/* =================================================================== */

.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid #eee;
    color: #888;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
}

.wishlist-btn:hover {
    background-color: #ff3a5e;
    color: white;
    transform: scale(1.1);
    border-color: transparent;
}

/* Style for when the item is already in the wishlist */
.wishlist-btn.active {
    background-color: #ff3a5e;
    color: white;
    border-color: transparent;
}
/* =================================================================== */
/* ============== WISHLIST BUTTON FEEDBACK STYLE ===================== */
/* =================================================================== */

.wishlist-btn .fa-heart {
    font-family: "Font Awesome 5 Free";
    font-weight: 400; /* Regular (hollow) heart */
}

.wishlist-btn.active {
    background-color: #ffe0e6;
    color: #ff3a5e;
    border-color: #ffc2cf;
}

.wishlist-btn.active .fa-heart {
    font-family: "Font Awesome 5 Free";
    font-weight: 900; /* Solid heart when active */
}
/* =================================================================== */
/* ============== PRODUCT CARD STAR RATING STYLES ==================== */
/* =================================================================== */

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    color: #ffc107; /* Star color */
}

.product-rating .review-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: #888; /* Grey color for the count */
}
/* ======================================= */
/* FLASH SALE CAROUSEL STYLES              */
/* ======================================= */
.flash-sale-section {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.flash-sale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 2rem;
}

.flash-sale-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.flash-sale-title .fa-bolt {
    font-size: 2rem;
    color: #ffc107;
}

.flash-sale-heading h2 {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-dark);
    margin: 0;
}
.flash-sale-subheading {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.flash-sale-countdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: inherit;
}

.flash-sale-countdown .time-box {
    background-color: #1a1a1a;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    line-height: 1;
}

.flash-sale-countdown em {
    font-style: normal;
    font-size: 1.5rem;
    font-weight: bold;
    color: inherit;
}


.flash-sale-carousel-wrapper {
    position: relative;
    overflow: hidden;
}
.flash-sale-carousel-wrapper .swiper-button-next,
.flash-sale-carousel-wrapper .swiper-button-prev {
    display: flex;
    width: 48px;
    height: 48px;
    justify-content: center;
    align-items: center;
}

.flash-sale-carousel-wrapper .swiper-slide {
    display: flex;
    justify-content: center;
}

/* Ensure flash sale carousel has height so skeletons and slides are visible */
#flashSaleCarousel {
    min-height: 260px;
}
/* Slightly smaller images for flash sale cards to reduce grid height */

/* Flash sale carousel cards use square images for a modern look */
.flash-sale-carousel-wrapper .card-image-container {
    height: auto;
    aspect-ratio: 1 / 1;
}
.flash-sale-carousel-wrapper .card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flash-sale-carousel-wrapper .product-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.flash-sale-carousel-wrapper .card-content-wrapper {
    padding: 0.5rem;
    text-align: center;
}
.flash-sale-carousel-wrapper .product-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.5rem 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.flash-sale-carousel-wrapper .swiper-pagination {
    position: static;
    margin-top: 0.5rem;
}

.flash-sale-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 200px;
}
.flash-sale-progress-track {
    flex: 1;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}
.flash-sale-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #ff5722, #ff9800);
    transition: width 0.5s ease;
}
.flash-sale-progress-label {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 768px) {
    #flashSaleCarousel {
        min-height: 220px;
    }
    .flash-sale-carousel-wrapper .card-image-container {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    /* Smaller flash sale buttons on mobile */
    .flash-sale-carousel-wrapper .card-btn.flash-sale-btn {
        padding: 8px;
        font-size: 0;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .flash-sale-carousel-wrapper .card-btn.flash-sale-btn i {
        font-size: 1rem;
    }

    /* Place the cart button directly under the product price */
    .flash-sale-carousel-wrapper .card-content-wrapper {
        display: flex;
        flex-direction: column;
    }
    .flash-sale-carousel-wrapper .product-price { order: 2; }
    .flash-sale-carousel-wrapper .card-buttons { order: 3; }
}
#flashSaleCarousel .product-card .product-price {
    color: var(--badge-red); /* Discounted price color */
}

.original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

/* Swiper.js Navigation Arrows */
.swiper-button-next, .swiper-button-prev {
    color: var(--primary);
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background-color 0.2s;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: #fff;
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}
.swiper-button-prev { left: 0; }
.swiper-button-next { right: 0; }
/* ======================================= */
/* FINAL FLASH SALE BADGE & BUTTON STYLES  */
/* ======================================= */

/* New Badge for Flash Sale Items */
.badge-flash-sale {
    position: absolute;
    top: 10px;
    left: -10px;
    background: linear-gradient(45deg, #ffc107, #ff9800);
    color: #1a1a1a;
    padding: 6px 12px 6px 20px;
    font-size: 0.85rem;
    font-weight: 900;
    border-radius: 0 20px 20px 0;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Tag for flash sale products on detail pages */
.flash-sale-tag {
    display: inline-block;
    background: linear-gradient(45deg, #ffc107, #ff9800);
    color: #1a1a1a;
    padding: 4px 10px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* Special Button for Carousel Flash Sale Cards */
.card-btn.flash-sale-btn {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s;
}

.card-btn.flash-sale-btn:active {
    transform: scale(0.96);
}

/* Progress bar and layout for flash sale cards */
.flash-sale-card .flash-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
}

.flash-progress-bar {
    flex: 1;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.flash-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff5722, #ff9800);
}

.flash-progress-info {
    font-size: 0.75rem;
    color: #555;
    white-space: nowrap;
}

.flash-progress-wrapper .flash-sale-btn {
    width: 40px;
    height: 40px;
}

@media (hover: hover) {
    .card-btn.flash-sale-btn {
        animation: pulse-animation 2s infinite;
    }

    @keyframes pulse-animation {
        0% {
            transform: scale(1);
            box-shadow: 0 0 0 0 rgba(245, 114, 36, 0.7);
        }
        70% {
            transform: scale(1);
            box-shadow: 0 0 0 10px rgba(245, 114, 36, 0);
        }
        100% {
            transform: scale(1);
            box-shadow: 0 0 0 0 rgba(245, 114, 36, 0);
        }
    }
}/* ======================================= */
/* PRODUCT COMPARISON POP-UP STYLES        */
/* ======================================= */

.comparison-popup-container {
    position: absolute;
    z-index: 1100; /* Ensure it appears above other content */
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 10px 50px rgba(0,0,0,0.2);
    padding: 30px;
    
    /* Start hidden */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none; /* Can't interact with it when hidden */
}

.comparison-popup-container.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.comparison-table th, .comparison-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.comparison-table th {
    font-weight: 700;
    font-size: 1.1rem;
}

.comparison-table .product-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.comparison-table .feature-label {
    text-align: left;
    font-weight: 700;
    color: #555;
}

.comparison-table .fa-check-circle {
    color: var(--success);
    font-size: 1.5rem;
}

.comparison-table .fa-times-circle {
    color: var(--danger);
    font-size: 1.5rem;
}

.comparison-table .current-product-col {
    background-color: #fef4f0; /* Highlight the current product */
    border: 2px solid var(--primary);
    border-radius: var(--radius);
}
/* ======================================= */
/* LAYOUT FOR CENTERED PAGES               */
/* ======================================= */

/* This wrapper ensures the header, main content, and footer behave correctly */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Make the main content area grow to fill available space */
.page-wrapper main {
    flex-grow: 1;
    width: 100%; /* Ensure main takes up full width for centering */
}

/* Prevent header and footer from shrinking */
.page-wrapper .site-header,
.page-wrapper .site-footer {
    flex-shrink: 0;
}

/* ======================================= */
/* CART & BUTTON ANIMATIONS               */
/* ======================================= */

/* Simple bump animation for cart icons */
@keyframes cart-bump {
    0% { transform: scale(1); }
    30% { transform: scale(1.2); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Button pop animation when item added */
@keyframes button-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Trigger bump on any cart icon */
.cart-btn.animated,
#dwNavCart.animated {
    animation: cart-bump 0.4s ease-out;
}

/* Style for the "Added!" button state */
.card-btn.add-to-cart.added {
    background: var(--badge-green);
    color: white;
    animation: button-pop 0.4s ease;
}
/* =================================================================== */
/* ======================== BLOG PAGE STYLES ========================= */
/* =================================================================== */

.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 60px 20px;
    background: linear-gradient(90deg, #fd7e1a 0%, #ff3a5e 100%);
    color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.page-header h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin: 0;
}
.page-header p {
    font-size: 1.2rem;
    margin-top: 10px;
    color: #fff;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.post-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: #333;
    overflow: hidden;
display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
}
.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 40px rgba(245, 114, 36, 0.2);
}

.post-card-content {
    padding: 25px;
}

.post-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 15px 0;
}

.post-snippet {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-meta {
    font-size: 0.9rem;
    font-weight: 600;
    color: #888;
}

/* Single Post Page Styles */
.blog-post {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: auto;
}

.post-title-main {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-dark);
    line-height: 1.2;
}

.post-meta-main {
    font-size: 1rem;
    font-weight: 700;
    color: #777;
    margin: -10px 0 30px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    .post-main-image {
    width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}
.post-content h2 { font-size: 1.8rem; color: var(--primary-dark); margin-top: 2rem; }
.post-content h3 { font-size: 1.5rem; color: var(--accent); margin-top: 1.5rem; }
.post-content p { margin-bottom: 1.5em; }
.post-content a { color: var(--primary); font-weight: 700; }
.post-content ul, .post-content ol { padding-left: 25px; }
.post-content li { margin-bottom: 10px; }
@media (max-width: 600px) {
    .page-header {
        padding: 40px 15px;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .post-card-image {
        height: 140px;
    }
}
/* === ADMIN MODAL FIX === */
.modal-overlay.show {
    display: flex !important;
    opacity: 1 !important;
}
/* === MOBILE UX ENHANCEMENTS === */
/* (removed legacy mobile header styles) */

/* PRODUCT COMPARISON POP-UP STYLES        */
/* ======================================= */

.comparison-popup-container {
    position: absolute;
    z-index: 1100; /* Ensure it appears above other content */
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 10px 50px rgba(0,0,0,0.2);
    padding: 30px;
    
    /* Start hidden */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none; /* Can't interact with it when hidden */
}

.comparison-popup-container.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.comparison-table th, .comparison-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.comparison-table th {
    font-weight: 700;
    font-size: 1.1rem;
}

.comparison-table .product-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.comparison-table .feature-label {
    text-align: left;
    font-weight: 700;
    color: #555;
}

.comparison-table .fa-check-circle {
    color: var(--badge-green);
    font-size: 1.5rem;
}

.comparison-table .fa-times-circle {
    color: var(--danger);
    font-size: 1.5rem;
}

.comparison-table .current-product-col {
    background-color: #fef4f0; /* Highlight the current product */
    border: 2px solid var(--primary);
    border-radius: var(--radius);
}
/* ======================================= */
/* UPGRADED PRODUCT COMPARISON POP-UP      */
/* ======================================= */

.comparison-popup-container {
    position: fixed; /* Changed to fixed to center on the screen */
    top: 50%;
    left: 50%;
    z-index: 2000;
    width: 90%;
    max-width: 800px; /* Limits the maximum width */
    max-height: 80vh; /* Limits the maximum height */
    overflow-y: auto; /* Allows scrolling if content is too long */
    
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 10px 50px rgba(0,0,0,0.2);
    padding: 30px;
    
    /* Start hidden and off-center */
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -40%) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.comparison-popup-container.show {
    opacity: 1;
    visibility: visible;
    /* Animate to the perfect center */
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th, .comparison-table td {
    padding: 12px; /* Reduced padding */
    text-align: center;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.comparison-table th {
    font-weight: 700;
    font-size: 1rem; /* Slightly smaller font */
}

.comparison-table .product-image {
    width: 80px; /* Smaller image */
    height: 80px;
    object-fit: contain;
}

.comparison-table .feature-label {
    text-align: left;
    font-weight: 700;
    color: #555;
    font-size: 0.9rem; /* Smaller font */
}

.comparison-table .fa-check-circle {
    color: var(--badge-green);
    font-size: 1.3rem; /* Smaller icon */
}

.comparison-table .fa-times-circle {
    color: var(--danger);
    font-size: 1.3rem; /* Smaller icon */
}

.comparison-table .current-product-col {
    background-color: #fef4f0;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
}
@media (max-width: 480px) {
    .comparison-popup-container {
        overflow-x: auto;
        width: 100%;
        padding: 15px;
    }

    .comparison-table {
width: 100%;
        table-layout: fixed;
    }
    .comparison-table td {
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
}
/* =================================================================== */
/* ============== FINAL UNIFIED SWIPER STYLES ======================== */
/* =================================================================== */

#hero-swiper-container {
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
}

#hero-swiper-container .swiper-slide {
    width: 100%;
    height: 100%;
}

/* --- Desktop Styles --- */
@media (min-width: 769px) {
    /* Hide mobile dots on desktop */
    #hero-swiper-container .swiper-pagination {
        display: none;
    }
}

/* =================================================================== */
/* =================== MOBILE HOMEPAGE OPTIMIZATION ================== */
/* =================================================================== */

@media (max-width: 768px) {
    .hero-slider-wrapper { display: block; }
    #hero-slider { height: auto; min-height: 420px; }
    .slider-nav { display: block; }
    .flash-sale-section { padding: 1rem; margin-top: 0; }
    .flash-sale-header { padding-bottom: 1rem; margin-bottom: 1rem; }
    .flash-sale-title h2 { font-size: 1.2rem; }
    .flash-sale-countdown { font-size: 0.9rem; }
    .flash-sale-countdown .time-box { font-size: 1.1rem; padding: 0.4rem 0.6rem; }
    .flash-sale-carousel-wrapper { padding: 0; }
    .flash-sale-carousel-wrapper .swiper-button-next,
    .flash-sale-carousel-wrapper .swiper-button-prev { display: none; }
    .main-section { padding: 1rem; }
}

@media (max-width: 768px) {
    .card-btn.add-to-cart,
    .card-btn.flash-sale-btn {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* ------- Global Empty State Styles ------- */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--primary-dark);
}

.empty-state i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.empty-state .btn-primary {
    display: inline-block;
    margin-top: 15px;
    background: var(--primary);
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.empty-state .btn-primary:hover {
    background: var(--primary-dark);
}

/* Hotfix for coupon modal styles not applying from polished.css */
.coupon-close-modern {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    color: #fff;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s;
}

.coupon-close-modern:hover {
    background: rgba(0, 0,0, 0.3);
}

/* --- Polished Coupon Modal --- */
.coupon-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.coupon-modal-overlay[hidden] {
    display: none;
}

.coupon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.coupon-card {
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 0;
    animation: slideInUp 0.4s ease-out;
}

.coupon-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    animation: rotate 10s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


.coupon-content {
    padding: 24px 32px 32px;
}

.coupon-badge {
    position: absolute;
    top: 16px;
    left: -30px;
    background: #ffffff;
    color: #ff7e5f;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 30px;
    transform: rotate(-45deg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.coupon-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.coupon-body h2 {
    font-size: 2.8rem;
    margin: 0 0 8px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.coupon-body p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    opacity: 0.9;
}

.coupon-signup {
    background: #fff;
    color: #ff7e5f;
    padding: 14px 24px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.coupon-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.coupon-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.2);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    line-height: 30px;
    transition: background 0.2s ease;
}

.coupon-close:hover {
    background: rgba(0,0,0,0.4);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* --- Polished Products Page CSS --- */
.products-page-container { max-width: 1400px; margin: 24px auto; padding: 0 16px; display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: flex-start; }
.filter-sidebar { background: var(--card-background); border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 8px 32px var(--shadow-color); position: sticky; top: 24px; }
.sidebar-header { display: none; }
.filter-group { margin-bottom: 24px; }
.filter-group h4 { font-family: 'Poppins', sans-serif; margin: 0 0 12px 0; }
.filter-group .category-label { display: block; margin-bottom: 8px; cursor: pointer; }
.filter-group input[type="checkbox"] { margin-right: 8px; accent-color: var(--primary-color); }
.price-filter input[type="range"] { width: 100%; accent-color: var(--primary-color); }
.price-label { text-align: center; font-weight: 500; color: var(--ink-light); }
.products-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
#page-title { font-family: 'Poppins', sans-serif; font-size: 2rem; margin: 0; }

/* --- Custom Sort Dropdown --- */
.sort-control { position: relative; }
.sort-trigger { background: var(--card-background); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 8px 16px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.sort-trigger .fa-chevron-down { transition: transform 0.3s ease; }
.sort-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: var(--card-background); border-radius: var(--radius-md); box-shadow: 0 8px 20px rgba(0,0,0,0.1); z-index: 100; min-width: 200px; padding: 8px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; }
.sort-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.sort-dropdown.open + .sort-trigger .fa-chevron-down { transform: rotate(180deg); }
.sort-option { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-weight: 500; }
.sort-option:hover { background-color: #f0f2f5; }
.sort-option.active { background-color: #fff7f5; color: var(--primary-color); font-weight: 600; }


/* --- Skeleton Loader --- */
.skeleton-card { background-color: #fff; border-radius: var(--radius-lg); overflow: hidden; }
.skeleton-image { height: 180px; background-color: #e0e0e0; }
.flash-sale-card .skeleton-image { height: 100%; }
.skeleton-content { padding: 16px; }
.skeleton-line { height: 16px; background-color: #e0e0e0; border-radius: 4px; margin-bottom: 12px; }
.skeleton-line.short { width: 60%; }
.skeleton-button { height: 45px; background-color: #e0e0e0; border-radius: var(--radius-md); }
.skeleton-flash-footer { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.skeleton-progress { width: 100%; height: 8px; background-color: #e0e0e0; border-radius: 4px; }
.skeleton-image, .skeleton-line, .skeleton-button, .skeleton-progress { background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 32px; }
.pagination button { background: var(--card-background); border: 1px solid var(--border-color); color: var(--primary-color); padding: 8px 14px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.pagination button:hover { background: #fff7f5; }
.pagination button.active { background: var(--primary-color); color: #fff; }
.pagination button:disabled { opacity: 0.5; cursor: not-allowed; }
.mobile-filter-toggle { display: none; }

@media (max-width: 992px) {
    .products-page-container { grid-template-columns: 1fr; }
    .mobile-filter-toggle { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-color); color: #fff; border: none; padding: 10px 20px; border-radius: var(--radius-pill); font-weight: 600; font-size: 1rem; cursor: pointer; margin-bottom: 24px; }
    .filter-sidebar { position: fixed; top: 0; left: 0; width: 300px; height: 100%; z-index: 2000; transform: translateX(-100%); transition: transform 0.4s ease; box-shadow: 0 0 40px rgba(0,0,0,0.2); }
    .filter-sidebar.open { transform: translateX(0); }
    .sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
    .sidebar-header h3 { margin: 0; font-family: 'Poppins', sans-serif; }
    .close-filters { background: none; border: none; font-size: 2rem; cursor: pointer; }
}
@media (min-width: 651px) {
}

/* =================== Flash Rush Hour Banner =================== */
.flash-rush-banner {
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
    padding: 4rem 1rem;
}

.flash-rush-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(-45deg, #f57224, #f57224 10px, #000 10px, #000 20px);
    background-size: 200% 100%;
    animation: rush-bg 2s linear infinite;
    z-index: -1;
}

@keyframes rush-bg {
    from { background-position: 0 0; }
    to { background-position: -200px 0; }
}

.rush-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.rush-content p { margin-bottom: 1rem; }

.rush-countdown {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.rush-countdown .time-box {
    background: rgba(0,0,0,0.5);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.rush-countdown .time-box .number {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.rush-countdown .time-box .label {
    font-size: 0.75rem;
    text-transform: uppercase;
}

.flash-rush-banner .cta-btn {
    background: #f57224;
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

.flash-rush-banner .cta-btn:hover {
    background: #d45703;
}

@media (min-width: 768px) {
    .rush-content h2 { font-size: 3rem; }
    .rush-countdown .time-box .number { font-size: 2rem; }
}

/* === Home Page Enhancements === */
/* Modern notice bar */
.digital-notice {
    background: linear-gradient(90deg, #fff8e1, #ffe3c2) !important;
    color: #8a4500;
    padding: 0.75rem 1rem !important;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem !important;
    border-bottom: 1px solid #ffd59e;
}
@media (min-width: 600px) {
    .digital-notice {
        font-size: 1.05rem !important;
    }
}

/* Responsive hero slider */
.hero-slider-wrapper {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
#hero-slider {
    min-height: 280px;
}

/* Flash sale section styling */
.flash-sale-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem 1rem;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.flash-sale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.flash-sale-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.flash-sale-title h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-dark);
}
.flash-sale-countdown {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 700;
}
.flash-sale-countdown .time-box {
    background: var(--primary);
    color: #fff;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    min-width: 2.5rem;
    text-align: center;
}
.flash-sale-carousel-wrapper {
    position: relative;
}
.flash-sale-carousel-wrapper .swiper-button-next,
.flash-sale-carousel-wrapper .swiper-button-prev {
    color: var(--primary);
}
@media (max-width: 768px) {
    .flash-sale-section {
        padding: 1.5rem 0.5rem;
    }
    .flash-sale-title h2 {
        font-size: 1.2rem;
    }
    .flash-sale-countdown .time-box {
        padding: 0.3rem 0.5rem;
        font-size: 0.9rem;
    }
}


/* Responsive hero slider fix */
.hero-slider-wrapper #hero-slider {
    aspect-ratio: 16 / 9;
    height: auto;
}


@media (min-width: 1024px) {
  /* Reduce hero banner height on large screens */
  #hero-slider {
    aspect-ratio: 16 / 5;
    height: auto;
    max-height: 400px;
  }
}

/* Ensure hero banners fit on small screens */
@media (max-width: 600px) {
  #hero-slider {
    aspect-ratio: auto;
    height: auto;
    min-height: 420px;
  }
}

.font-poppins {
  font-family: 'Poppins', sans-serif;
}

.category-card:hover .category-icon {
  transform: scale(1.1);
  color: var(--brand-primary);
}

.category-icon {
  transition: transform 0.3s ease, color 0.3s ease;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* =================================================================== */
/* ============== 1. POLISHED FOOTER STYLES ========================== */
/* =================================================================== */

.site-footer {
    background-color: var(--card-background);
    color: var(--ink-light);
    padding: 50px 24px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    box-shadow: none;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 20px 0;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: var(--ink-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 15px;
}

.social-links a {
    color: var(--primary-color);
    font-size: 1.6rem;
    transition: transform 0.2s, color 0.2s;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.payment-methods-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.payment-methods-logos img {
    height: 28px;
    opacity: 0.8;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    border-top: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: #999;
    flex-wrap: wrap;
    gap: 16px;
}

.theme-toggle { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.theme-toggle .switch { position: relative; display: inline-block; width: 50px; height: 24px; }
.theme-toggle .switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.theme-toggle .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.theme-toggle .slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 2px; bottom: 2px; background-color: white; transition: .4s; border-radius: 50%; }
.theme-toggle input:checked + .slider { background-color: var(--primary-color); }
.theme-toggle input:checked + .slider:before { transform: translateX(26px); }

/* Remove focus outline and tap highlight on mobile */
.theme-toggle .switch input:focus + .slider { outline: none; box-shadow: none; }
.theme-toggle .slider { -webkit-tap-highlight-color: transparent; }

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

/* =================================================================== */
/* ============== HERO BANNER ASPECT RATIO FIX ======================= */
/* =================================================================== */

#hero-slider {
    width: 100%;
    max-width: 1200px;
    margin: 24px auto 0;
    /* This is the crucial line that fixes the cropping */
    aspect-ratio: 16 / 9; 
    background-color: #e0e0e0;
    border-radius: 18px;
    overflow: hidden; /* Ensures content within the banner respects the boundary */
}

/* Ensure the slides and their content fit perfectly */
#hero-slider .swiper-slide,
#hero-slider .slider-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* =================================================================== */
/* ============== POLISHED CHECKOUT PAGE STYLES =================== */
/* =================================================================== */

/* --- Base Styles & Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.checkout-container {
    max-width: 1100px;
    margin: 24px auto;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 32px;
    align-items: flex-start;
    animation: fadeIn 0.6s ease-out forwards;
    padding: 0 16px; /* Added for mobile padding */
}

/* --- Main Checkout Content (Left Column) --- */
.checkout-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.checkout-card {
    background: var(--card-background);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px var(--shadow-color);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.card-header .icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.card-header .title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--ink-light);
}

.form-group input {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(245, 114, 36, 0.2);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.payment-option input[type="radio"] {
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
}

.payment-option:has(input:checked), .payment-option:hover {
    border-color: var(--primary-color);
    background-color: #fff7f5;
}

.payment-logos {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

.payment-logos img {
    height: 24px;
}

/* --- Order Summary (Right Column) --- */
.order-summary {
    background: var(--card-background);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px var(--shadow-color);
    position: sticky;
    top: 24px;
}

.summary-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 24px 0;
    text-align: center;
}

.summary-items {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 24px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.item-image {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: var(--radius-md);
    background-color: #f9f9f9;
    border: 1px solid var(--border-color);
}

.item-details { flex-grow: 1; }
.item-title { font-weight: 600; margin: 0 0 4px 0; }
.item-price { color: var(--ink-light); }
.item-total { font-weight: 600; }

.summary-total {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
}

.total-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.place-order-btn {
    width: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.place-order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 114, 36, 0.3);
}

.place-order-btn:active {
    transform: scale(0.98);
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.place-order-btn.processing .loader { display: block; }
.place-order-btn.processing span { display: none; }

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Checkout Responsive Design --- */
@media (max-width: 992px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    .order-summary {
        position: static;
        margin-top: 24px;
    }
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .checkout-card, .order-summary {
        padding: 20px;
    }
}

/* =================================================================== */
/* ============== 3. GLOBAL ANIMATIONS & INTERACTIONS ============== */
/* =================================================================== */

/* --- Universal Smooth Transitions --- */
/* This applies a smooth transition to all buttons, links, and cards. */
.btn-primary,
.action-btn,
.category-card,
.account-nav-link,
.download-button,
.place-order-btn,
.feature-item {
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Hover "Lift" Effect --- */
/* This makes elements subtly lift up when a user hovers over them. */
.btn-primary:hover,
.action-btn:hover,
.category-card:hover,
.account-nav-link:hover,
.download-button:hover,
.place-order-btn:hover,
.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 114, 36, 0.15);
}

/* --- Active/Click "Press Down" Effect --- */
/* This gives a satisfying "press" feedback when an element is clicked. */
.btn-primary:active,
.action-btn:active,
.category-card:active,
.account-nav-link:active,
.download-button:active,
.place-order-btn:active,
.feature-item:active {
    transform: translateY(0px) scale(0.98);
    box-shadow: 0 4px 10px rgba(245, 114, 36, 0.1);
}

/* --- Specific Enhancement for Add to Cart Button --- */
/* Adds a visual pop when the button changes to "Added!" */
.add-to-cart-btn.added {
    animation: button-pop 0.4s ease;
}

@keyframes button-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* =================================================================== */
/* ============= FINAL POLISHED STATIC PAGES (ABOUT, CONTACT, FAQ) ========= */
/* =================================================================== */

.static-page-container {
    max-width: 900px;
    margin: 24px auto;
    padding: 0 16px;
    animation: fadeIn 0.5s ease-out;
}

.account-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    text-align: center;
    margin: 0 0 24px;
    background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.account-auth-btn {
    display: block;
    width: fit-content;
    margin: 0 auto 24px;
}


.account-nav {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 24px;
}

.account-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    text-decoration: none;
    background: var(--card-background);
    color: var(--ink);
    border-radius: var(--radius-pill);
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: background 0.3s ease, color 0.3s ease, transform 0.15s ease;
}

.account-nav-link:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.account-nav-link.active {
    background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
    color: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    .account-nav {
        justify-content: center;
        overflow: visible;
    }
}

.account-card {
    background: var(--card-background);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.account-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0,0,0,0.12);
}

.card-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    margin: 0;
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.order-history-table {
    padding: 24px;
}

.empty-state {
    text-align: center;
    color: var(--ink-light);
    padding: 40px 20px;
}

.empty-state i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.empty-state h3 {
    margin: 0 0 8px;
    color: var(--ink);
}

.empty-state p {
    margin: 0 0 16px;
}

.static-page-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 40px 20px;
    background: var(--card-background);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px var(--shadow-color);
}

.static-page-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-dark);
}

.static-page-header p {
    font-size: 1.2rem;
    margin-top: 10px;
    color: var(--ink-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.static-content-card {
    background: var(--card-background);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 8px 32px var(--shadow-color);
    line-height: 1.7;
}

.static-content-card h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    margin: 0 0 16px 0;
}

/* --- About Us Page --- */
.about-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
}
.about-us-item { text-align: center; }
.about-us-item .icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 12px; }
.about-us-item h3 { font-family: 'Poppins', sans-serif; margin: 0 0 8px 0; }

/* --- Contact Page --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; }
.contact-info .info-item { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.contact-info .info-item i { font-size: 1.5rem; color: var(--primary-color); }
.contact-info .info-item a { color: var(--primary-color); font-weight: 600; text-decoration: none; }
.contact-info .info-item a:hover { text-decoration: underline; }
.contact-form form { display: flex; flex-direction: column; gap: 16px; }
.contact-form .form-group label { font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.contact-form .form-group input, .contact-form .form-group textarea { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: var(--radius-md); font-size: 1rem; box-sizing: border-box; }
.contact-form .form-group textarea { resize: vertical; }
.contact-form .btn-primary { padding: 12px; font-size: 1rem; font-weight: 600; border: none; cursor: pointer; }

/* --- FAQ Page --- */
.faq-container { padding: 16px 32px; }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-item:last-child { border-bottom: none; }
.faq-question { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 20px 0; background: none; border: none; font-size: 1.2rem; font-weight: 600; cursor: pointer; font-family: 'Poppins', sans-serif; text-align: left; }
.faq-question i { transition: transform 0.3s ease; }
.faq-item[open] .faq-question i { transform: rotate(180deg); }
.faq-answer { padding: 0 0 20px 0; line-height: 1.7; animation: fadeIn 0.4s; }
.faq-answer a { color: var(--primary-color); font-weight: 600; }

/* --- Responsive for Static Pages --- */
@media (max-width: 768px) {
    .static-page-header h1 { font-size: 2.2rem; }
    .about-us-grid, .contact-grid { grid-template-columns: 1fr; }
}

/* =================================================================== */
/* ============== FINAL POLISHED MOBILE BOTTOM NAVIGATOR ============= */
/* =================================================================== */
.has-bottom-nav {
    padding-bottom: 90px;
}

.dw-bottom-nav {
    /* Structure & Positioning */
    display: flex;
    position: fixed;
    left: 50%;
    bottom: 16px;
    width: 95%;
    max-width: 400px;
    height: 65px;
    z-index: 1000;

    /* Polished "Frosted Glass" Appearance */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    
    /* Styling */
    border-radius: 999px; /* Pill shape */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(224, 224, 224, 0.5);

    /* Entry Animation */
    transform: translateX(-50%);
    animation: nav-slide-up 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes nav-slide-up {
    from {
        transform: translate(-50%, 100px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.dw-nav-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #888; /* Default icon color */
    position: relative;
    transition: color 0.3s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent; /* Removes blue tap highlight on mobile */
}

.dw-nav-link:active {
    transform: scale(0.95);
}

.dw-nav-link i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.dw-nav-link span {
    font-size: 0.75rem;
    font-weight: 500;
}

.dw-nav-link.active {
    color: #f57224; /* Active icon color */
    font-weight: 600;
}







/* --- Active Link Indicator Animation --- */
.dw-nav-link.active::before {
    content: '';
    position: absolute;
    top: 4px;
    width: 32px;
    height: 32px;
    background-color: #f57224; /* Active indicator color */
    border-radius: 999px;
    z-index: -1;
    opacity: 0.15;
    animation: active-pop 0.4s ease-out forwards;
}

@keyframes active-pop {
    0% { transform: scale(0.5); opacity: 0; }
    80% { transform: scale(1.1); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.15; }
}

/* --- Cart Badge --- */
.cart-icon-wrapper {
    position: relative;
}

.cart-icon-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    transform: translate(40%, -40%);
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    padding: 0.1em 0.5em;
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 1.8em;
    height: 1.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid var(--card-background); /* White border that matches the nav background */
}

/* --- Notification Badge --- */
.notification-icon-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    transform: translate(40%, -40%);
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    padding: 0.1em 0.5em;
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 1.8em;
    height: 1.8em;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid var(--card-background);
}

/* --- Track Order Page --- */
.track-form .form-group {
    margin-bottom: 16px;
}

.track-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.track-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    box-sizing: border-box;
}

.track-form .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-md);
    background: var(--primary-color);
    color: #fff;
    transition: background-color 0.2s;
}

.track-form .btn-primary:hover {
    background: var(--primary-dark);
}

.track-form .btn-primary .loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.track-form .btn-primary.loading .loader {
    display: block;
}

.track-form .btn-primary.loading span {
    display: none;
}

#track-results {
    display: none;
    animation: fadeIn 0.5s;
}

.results-header {
    text-align: center;
    margin-bottom: 32px;
}

.results-header h2 {
    font-family: 'Poppins', sans-serif;
    margin: 0 0 8px 0;
}

.results-header p {
    margin: 0;
    color: var(--ink-light);
}

.results-header .order-id {
    font-weight: 600;
    color: var(--primary-color);
}

.tracking-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 48px;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--border-color);
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-progress {
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    background-color: var(--success-color);
    transform: translateY(-50%);
    z-index: 2;
    width: 0%;
    transition: width 0.5s ease;
}

.timeline-step {
    position: relative;
    z-index: 3;
    text-align: center;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-background);
    border: 4px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    transition: all 0.4s ease;
}

.step-icon i {
    font-size: 1.2rem;
    color: var(--ink-weak);
}

.step-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink-weak);
}

.timeline-step.completed .step-icon {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.timeline-step.completed .step-icon i {
    color: #fff;
}

.timeline-step.completed .step-label {
    color: var(--ink);
}

.order-details-summary {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.order-details-summary h3 {
    font-family: 'Poppins', sans-serif;
    margin: 0 0 16px 0;
}

.summary-item {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
}

.item-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: var(--radius-md);
    background-color: #f9f9f9;
}

.item-title {
    font-weight: 600;
}

.not-found {
    text-align: center;
    color: var(--ink-weak);
}

.not-found i {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 16px;
}

.not-found h3 {
    color: var(--ink);
}

body { font-family: 'Inter', sans-serif; background-color: var(--background-color); margin: 0; }

/* --- Polished Products Page CSS --- */
.products-page-container { max-width: 1400px; margin: 24px auto; padding: 0 16px; display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: flex-start; }
.filter-sidebar { background: var(--card-background); border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 8px 32px var(--shadow-color); position: sticky; top: 24px; }
.sidebar-header { display: none; }
.filter-group { margin-bottom: 24px; }
.filter-group h4 { font-family: 'Poppins', sans-serif; margin: 0 0 12px 0; }
.filter-group .category-label { display: block; margin-bottom: 8px; cursor: pointer; }
.filter-group input[type="checkbox"] { margin-right: 8px; accent-color: var(--primary-color); }
.price-filter input[type="range"] { width: 100%; accent-color: var(--primary-color); }
.price-label { text-align: center; font-weight: 500; color: var(--ink-light); }
.products-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
#page-title { font-family: 'Poppins', sans-serif; font-size: 2rem; margin: 0; }

/* --- Custom Sort Dropdown --- */
.sort-control { position: relative; }
.sort-trigger { background: var(--card-background); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 8px 16px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.sort-trigger .fa-chevron-down { transition: transform 0.3s ease; }
.sort-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: var(--card-background); border-radius: var(--radius-md); box-shadow: 0 8px 20px rgba(0,0,0,0.1); z-index: 100; min-width: 200px; padding: 8px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; }
.sort-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.sort-dropdown.open + .sort-trigger .fa-chevron-down { transform: rotate(180deg); }
.sort-option { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-weight: 500; }
.sort-option:hover { background-color: #f0f2f5; }
.sort-option.active { background-color: #fff7f5; color: var(--primary-color); font-weight: 600; }


/* --- Skeleton Loader --- */
.skeleton-card { background-color: #fff; border-radius: var(--radius-lg); overflow: hidden; }
.skeleton-image { height: 180px; background-color: #e0e0e0; }
.flash-sale-card .skeleton-image { height: 100%; }
.skeleton-content { padding: 16px; }
.skeleton-line { height: 16px; background-color: #e0e0e0; border-radius: 4px; margin-bottom: 12px; }
.skeleton-line.short { width: 60%; }
.skeleton-button { height: 45px; background-color: #e0e0e0; border-radius: var(--radius-md); }
.skeleton-flash-footer { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.skeleton-progress { width: 100%; height: 8px; background-color: #e0e0e0; border-radius: 4px; }
.skeleton-image, .skeleton-line, .skeleton-button, .skeleton-progress { background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 32px; }
.pagination button { background: var(--card-background); border: 1px solid var(--border-color); color: var(--primary-color); padding: 8px 14px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.pagination button:hover { background: #fff7f5; }
.pagination button.active { background: var(--primary-color); color: #fff; }
.pagination button:disabled { opacity: 0.5; cursor: not-allowed; }
.mobile-filter-toggle { display: none; }

@media (max-width: 992px) {
    .products-page-container { grid-template-columns: 1fr; }
    .mobile-filter-toggle { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-color); color: #fff; border: none; padding: 10px 20px; border-radius: var(--radius-pill); font-weight: 600; font-size: 1rem; cursor: pointer; margin-bottom: 24px; }
    .filter-sidebar { position: fixed; top: 0; left: 0; width: 300px; height: 100%; z-index: 2000; transform: translateX(-100%); transition: transform 0.4s ease; box-shadow: 0 0 40px rgba(0,0,0,0.2); }
    .filter-sidebar.open { transform: translateX(0); }
    .sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
    .sidebar-header h3 { margin: 0; font-family: 'Poppins', sans-serif; }
.close-filters { background: none; border: none; font-size: 2rem; cursor: pointer; }
}

body { font-family: 'Inter', sans-serif; background-color: var(--background-color); margin: 0; }
.dummy-header { background: var(--primary-color); color: white; padding: 1rem; text-align: center; font-family: 'Poppins', sans-serif; }

/* --- Polished Product Grid & Card Styles (Modernized) --- */
.products-page-container #product-grid-container {
    max-width: 1400px;
    margin: 24px auto;
    padding: 0 16px;
}

.products-page-container .section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    color: var(--ink);
    margin: 0 0 24px 0;
}

.products-page-container .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.products-page-container .product-card {
    background: var(--card-background);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--ink);
    box-shadow: 0 4px 16px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

.products-page-container .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(245, 114, 36, 0.2);
}

.products-page-container .card-image-container {
    position: relative;
    aspect-ratio: 4 / 3;
    background-color: #f9f9f9;
    padding: 1rem;
    overflow: hidden;
}

.products-page-container .card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.products-page-container .product-card:hover .card-image {
    transform: scale(1.05);
}

.products-page-container .card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background: rgba(0, 0, 0, 0.65);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    backdrop-filter: blur(6px);
    z-index: 3;
    animation: badge-pop 0.35s ease-out;
}

@keyframes badge-pop {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.products-page-container .card-badge.hot { background: linear-gradient(135deg, #ff512f, #dd2476); }
.products-page-container .card-badge.flash { background: linear-gradient(135deg, var(--flash-color), #ffa751); color: var(--ink); }

.products-page-container .card-badge i { font-size: 0.9rem; }

.products-page-container .card-wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-color);
    color: var(--ink-weak);
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
    z-index: 3;
}

.products-page-container .card-wishlist-btn:hover { background: var(--hot-color); color: #fff; transform: scale(1.1); }
.products-page-container .card-wishlist-btn.active { background-color: var(--hot-color); color: #fff; }

.products-page-container .card-content-wrapper {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    z-index: 2;
    background: var(--card-background);
}

.products-page-container .tag-delivery {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--success-color);
    margin-bottom: 8px;
}

.products-page-container .product-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0 0 8px 0;
    min-height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.products-page-container .product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    color: #ffc107;
}

.products-page-container .product-rating .review-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-weak);
}

.products-page-container .product-price {
    margin-top: auto;
    padding-top: 8px;
}

.products-page-container .product-price .current-price {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.products-page-container .product-price .original-price {
    font-size: 0.9rem;
    color: var(--ink-weak);
    text-decoration: line-through;
    margin-left: 8px;
}

.products-page-container .card-buttons {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 70%, rgba(255, 255, 255, 0));
    z-index: 3;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.products-page-container .product-card:hover .card-buttons {
    opacity: 1;
    visibility: visible;
}

.products-page-container .card-btn {
    flex: 1;
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.products-page-container .card-btn.add-to-cart {
    background: var(--primary-color);
    color: #fff;
}

.products-page-container .card-btn:hover {
    transform: scale(1.05);
}

@keyframes button-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.products-page-container .card-btn.add-to-cart.added {
    background: var(--success-color);
    animation: button-pop 0.4s ease;
}

@media (max-width: 600px) {
    .products-page-container .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
/* =================================================================== */
/* ============== AUTH PAGES STYLES (LOGIN/SIGNUP/PROFILE) =========== */
/* =================================================================== */
body.auth-page {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.auth-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 16px;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.auth-container {
    width: 100%;
    max-width: 450px;
    animation: fadeIn 0.5s ease-out;
}

.auth-card, .profile-card {
    background: var(--card-background);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}
.auth-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    margin: 0 0 8px 0;
    color: var(--ink);
}
.auth-header p {
    color: var(--ink-light);
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    box-sizing: border-box;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-md);
    background: var(--primary-color);
    color: #fff;
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-weight: 500;
}
.auth-switch a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.auth-switch a:hover { text-decoration: underline; }

/* Social Login Buttons */
.social-login {
    text-align: center;
    margin-top: 24px;
}
.social-login p {
    color: var(--ink-light);
    margin-bottom: 12px;
}
.social-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow 0.2s, background-color 0.2s;
}
.social-btn img,
.social-btn i {
    width: 20px;
    height: 20px;
    display: inline-block;
}

.social-btn i {
    font-size: 20px;
    line-height: 20px;
}
.social-btn.google {
    background-color: #fff;
    border: 1px solid #dadce0;
    color: #3c4043;
}
.social-btn.google i {
    color: #4285F4;
}
.social-btn.google:hover {
    background-color: #f5f5f5;
    box-shadow: 0 4px 12px var(--shadow-color);
}
.social-btn.apple {
    background-color: #000;
    color: #fff;
    border: 1px solid #000;
}
.social-btn.apple:hover {
    background-color: #333;
    box-shadow: 0 4px 12px var(--shadow-color);
}

/* Profile Page Styles */
.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}
.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-family: 'Poppins', sans-serif;
}
.profile-greeting h2 { font-family: 'Poppins', sans-serif; margin: 0 0 4px 0; }
.profile-greeting p { margin: 0; color: var(--ink-light); }

.profile-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.profile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 24px;
    border-radius: var(--radius-lg);
    background-color: #f9f9f9;
    border: 1px solid var(--border-color);
    color: var(--ink-light);
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
}
.profile-nav-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--shadow-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.profile-nav-link i { font-size: 1.8rem; margin-bottom: 12px; }

.logout-btn {
    width: 100%;
    margin-top: 24px;
    background: none;
    border: none;
    color: var(--ink-weak);
    font-weight: 600;
    cursor: pointer;
    padding: 12px;
    border-radius: var(--radius-md);
}
.logout-btn:hover { background-color: #f0f2f5; }

/* Hide views by default */
#signup-view, #profile-view { display: none; }

/* =================================================================== */

/* ======================= ACCOUNT PAGE STYLES ======================= */

.account-container {
    max-width: 900px;
    margin: 24px auto;
    padding: 0 16px;
    animation: fadeIn 0.5s ease-out;
}

.account-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    text-align: center;
    margin: 0 0 24px;
    background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.account-auth-btn {
    display: block;
    width: fit-content;
    margin: 0 auto 24px;
}


.account-nav {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 24px;
}

.account-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    text-decoration: none;
    background: var(--card-background);
    color: var(--ink);
    border-radius: var(--radius-pill);
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: background 0.3s ease, color 0.3s ease, transform 0.15s ease;
}

.account-nav-link:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.account-nav-link.active {
    background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
    color: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    .account-nav {
        justify-content: center;
        overflow: visible;
    }
}

.account-card {
    background: var(--card-background);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.account-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0,0,0,0.12);
}

.card-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    margin: 0;
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.order-history-table {
    padding: 24px;
}

.empty-state {
    text-align: center;
    color: var(--ink-light);
    padding: 40px 20px;
}

.empty-state i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.empty-state h3 {
    margin: 0 0 8px;
    color: var(--ink);
}

.empty-state p {
    margin: 0 0 16px;
}










/* =================================================================== */
/* ============= FINAL POLISHED WEBSITE NIGHT MODE =================== */
/* =================================================================== */

/* --- Key Features Section --- */
body.dark-mode .features-grid-container {
    background-color: var(--card-background);
    border-color: var(--border-color);
    box-shadow: 0 8px 32px var(--shadow-color);
}

body.dark-mode .feature-item {
    color: var(--ink);
}

body.dark-mode .feature-item:hover {
    background-color: #2a2a2a;
}

body.dark-mode .feature-icon {
    background-color: #2a2a2a;
    color: var(--primary-color);
}

/* --- Flash Sale Section --- */
body.dark-mode .flash-sale-section {
    background: var(--card-background);
    border-color: var(--border-color);
}

body.dark-mode .flash-sale-header {
    border-bottom-color: var(--border-color);
}

body.dark-mode .flash-sale-heading h2 {
    color: var(--primary-color);
}

body.dark-mode .flash-sale-countdown .time-box {
    background-color: var(--ink);
    color: var(--card-background);
}

/* --- Category Showcase --- */
body.dark-mode .category-card {
    background-color: var(--card-background);
    border-color: var(--border-color);
    box-shadow: 0 4px 16px var(--shadow-color);
}

body.dark-mode .category-card:hover {
    box-shadow: 0 8px 32px var(--shadow-color);
}

body.dark-mode .category-icon {
    background-image: linear-gradient(140deg, #2a2a2a, #1e1e1e);
    color: var(--brand-start);
}

body.dark-mode .category-name {
    color: var(--ink);
}

/* --- Featured Products Section --- */
body.dark-mode .product-card {
    background: var(--card-background);
    border-color: var(--border-color);
    box-shadow: 0 4px 16px var(--shadow-color);
    color: var(--ink);
}

body.dark-mode .product-card:hover {
    box-shadow: 0 12px 40px rgba(245, 114, 36, 0.2);
}

body.dark-mode .card-delivery-tag {
    color: var(--success-color);
}

body.dark-mode .card-title {
    color: var(--ink);
}

body.dark-mode .original-price {
    color: var(--ink-weak);
}

body.dark-mode .flash-sale-progress .progress-bar {
    background: var(--border-color);
}

body.dark-mode .flash-sale-progress .progress-text {
    color: var(--ink-weak);
}

body.dark-mode .add-to-cart-btn {
    background: var(--primary-color);
    color: #fff;
}

body.dark-mode .add-to-cart-btn:hover {
    background: var(--primary-dark);
}

/* --- General Elements --- */
body.dark-mode {
    /* Override root variables for dark theme */
    --background-color: #121212;
    --surface-bg: #1e1e1e;
    --card-background: #1e1e1e;
    --card-bg: var(--card-background);
    --ink: #f0f0f0;
    --ink-light: #bbbbbb;
    --ink-weak: #888888;
    --border-color: #333333;
    --border: var(--border-color);
    --shadow-color: rgba(0, 0, 0, 0.6);
    --shadow: 0 8px 32px var(--shadow-color);

    background-color: var(--background-color);
    color: var(--ink);
}

body.dark-mode a {
    color: var(--accent-color);
}

/* --- Account Page --- */
body.dark-mode .account-nav-link {
    background: #2a2a2a;
    color: #fff;
}
body.dark-mode .account-nav-link:hover,
body.dark-mode .account-nav-link.active {
    background: var(--primary-color);
    color: #fff;
}
body.dark-mode .empty-state {
    color: var(--ink-light);
}
body.dark-mode .empty-state i {
    color: var(--ink-light);
}

/* --- Headers & Footers --- */

body.dark-mode .dw-bottom-nav {
    background: rgba(28, 28, 28, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.dark-mode .site-footer {
    background-color: var(--card-background);
    border-top-color: var(--primary-dark);
}

/* --- Cards & Containers --- */
body.dark-mode .static-content-card,
body.dark-mode .profile-card,
body.dark-mode .auth-card,
body.dark-mode .product-card,
body.dark-mode .key-features-section,
body.dark-mode .flash-sale-section,
body.dark-mode .category-showcase,
body.dark-mode .product-details-container .details-grid,
body.dark-mode .product-tabs,
body.dark-mode .checkout-card,
body.dark-mode .order-summary,
body.dark-mode .account-card,
body.dark-mode .filter-sidebar,
body.dark-mode .sort-trigger,
body.dark-mode .sort-dropdown,
body.dark-mode .pagination button {
    background-color: var(--card-background);
    border-color: var(--border-color);
}

/* --- Specific Component Polishing --- */
body.dark-mode .static-page-header {
    background-color: #1a1a1a;
}
body.dark-mode .profile-nav-link,
body.dark-mode .logout-btn:hover {
    background-color: #2a2a2a;
}
body.dark-mode .profile-nav-link:hover {
    border-color: var(--primary-color);
    background-color: #222;
}

body.dark-mode .form-group input,
body.dark-mode .sort-trigger,
body.dark-mode .pagination button {
    background-color: #2a2a2a;
    color: var(--ink);
}

body.dark-mode .form-group input:focus {
    box-shadow: 0 0 0 3px rgba(245, 114, 36, 0.3);
}

body.dark-mode .payment-option {
    background-color: #2a2a2a;
}

body.dark-mode .payment-option:has(input:checked), 
body.dark-mode .payment-option:hover {
    background-color: #333;
    border-color: var(--primary-color);
}

body.dark-mode .faq-question:hover,
body.dark-mode .sort-option:hover {
    background-color: #2a2a2a;
}

body.dark-mode .sort-option.active {
    background-color: #333;
    color: var(--primary-color);
}

body.dark-mode .card-image-container {
    background-color: #2a2a2a;
}

body.dark-mode .card-wishlist-btn {
    background: rgba(28, 28, 28, 0.8);
    border-color: #444;
    color: var(--ink-weak);
}

/* --- KEY FEATURES (INSTANT BAR) - ENHANCED --- */
.key-features-section {
    max-width: 1200px;
    margin: 32px auto; /* Increased margin */
    padding: 0 16px;
}
.features-grid-container {
    background: var(--card-bg); /* Use variable */
    border-radius: var(--radius-lg);
    padding: 24px; /* Increased padding */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07); /* Softer shadow */
    border: 1px solid var(--border);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* More responsive */
    gap: 24px; /* Increased gap */
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    text-decoration: none;
    color: var(--ink);
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.feature-item:hover {
    transform: translateY(-5px);
    background-color: #fff7f5;
    box-shadow: 0 8px 25px rgba(248, 86, 6, 0.1);
}
.feature-icon {
    flex-shrink: 0;
    width: 50px; /* Larger icon container */
    height: 50px;
    display: grid;
    place-items: center;
    background-color: #fff7f5;
    border-radius: 50%;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}
.feature-item:hover .feature-icon {
    transform: scale(1.1);
}
.feature-icon svg {
    width: 24px; /* Slightly larger SVG */
    height: 24px;
}
.feature-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem; /* Slightly larger font */
    font-weight: 600;
    line-height: 1.4;
}

body.dark-mode .feature-item:hover {
    background-color: #2a2a2a;
    box-shadow: 0 8px 25px rgba(248, 86, 6, 0.1);
}

body.dark-mode .feature-icon {
    background-color: #2a2a2a;
}

/* --- Global Section Title --- */
.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    color: var(--ink);
    margin: 0 0 24px 0;
    letter-spacing: 0.5px;
}

/* --- FLASH SALE GRID --- */
.flash-sale-section {
    max-width: 1200px;
    margin: 48px auto;
    padding: 24px;
    background-color: var(--card-background);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}
.flash-sale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.flash-sale-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--ink);
}
.flash-sale-title .fa-bolt {
    font-size: 2.2rem;
    color: var(--primary-color);
}
.flash-sale-heading h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    line-height: 1;
}
.flash-sale-countdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--ink);
}
.flash-sale-countdown .time-box {
    background-color: var(--primary-color);
    color: #fff;
    font-size: 1.3rem;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    line-height: 1;
}
.flash-sale-countdown span { margin: 0 0.2rem; }

.flash-sale-carousel-wrapper { position: relative; padding: 0 40px; }

.swiper-button-next, .swiper-button-prev {
     width: 44px;
     height: 44px;
     background-color: #fff;
     border: 1px solid var(--border-color);
     border-radius: 50%;
     color: var(--primary-color);
     box-shadow: 0 4px 15px rgba(0,0,0,0.05);
     transition: all 0.3s ease;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: scale(1.05);
}
.swiper-button-next { right: -15px; }
.swiper-button-prev { left: -15px; }
.swiper-button-next:after, .swiper-button-prev:after { font-size: 1.2rem !important; font-weight: 800; }

.flash-pagination {
     bottom: -5px !important;
}
.flash-pagination .swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.3;
}
.flash-pagination .swiper-pagination-bullet-active {
    opacity: 1;
}
.flash-sale-card {
     position: relative;
     background-color: var(--card-background);
     border-radius: var(--radius-md);
     overflow: hidden;
     display: flex;
     flex-direction: column;
     border: 1px solid var(--border-color);
     transition: transform 0.3s ease, box-shadow 0.3s ease;
     width: 100%; /* Ensure the card fills the swiper slide */
}
 .flash-sale-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 8px 25px rgba(0,0,0,0.1);
 }
.flash-sale-card .card-image-link {
    display: block;
    aspect-ratio: 1/1;
}
.flash-sale-card .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.flash-sale-details {
    padding: 12px;
    display: grid;
    gap: 8px;
}
.flash-sale-details .price-container .product-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
}
 .flash-sale-details .price-container .original-price {
     font-size: 0.85rem;
     text-decoration: line-through;
     color: var(--ink-weak);
     margin-left: 8px;
 }
.flash-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}
.flash-progress-bar {
    flex-grow: 1;
    height: 8px;
    background-color: #ffdede;
    border-radius: 4px;
    overflow: hidden;
}
.flash-progress-fill {
    height: 100%;
    background-image: linear-gradient(90deg, #ff8a65, var(--primary-color));
    border-radius: 4px;
}
.flash-progress-info {
    font-size: 0.75rem;
    color: var(--ink-weak);
    font-weight: 500;
}
.flash-sale-card .flash-sale-btn {
     background-color: var(--primary-color);
     color: #fff;
     border: none;
     border-radius: var(--radius-md);
     padding: 10px;
     font-size: 1.2rem;
     cursor: pointer;
     transition: background-color 0.3s ease;
     width: 100%;
}
 .flash-sale-card .flash-sale-btn:hover {
     background-color: var(--brand-end);
 }

/* --- CATEGORY SHOWCASE --- */
.category-showcase {
    padding: 24px 16px;
    max-width: 1200px;
    margin: 48px auto;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    text-decoration: none;
    background-color: var(--card-background);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 32px var(--shadow-color);
}
.category-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background-image: linear-gradient(140deg, #fff7f5, #ffebe3);
    color: var(--brand-start);
}
.category-icon svg {
    width: 32px;
    height: 32px;
}
.category-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink);
    text-align: center;
}

@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .feature-item { flex-direction: column; text-align: center; gap: 8px; padding: 16px 8px; }
    .feature-text { font-size: 0.9rem; }
    .flash-sale-heading h2 { font-size: 1.6rem; }
    .flash-sale-section { padding: 16px; }
    .flash-sale-carousel-wrapper { padding: 0; }
    .swiper-button-next { right: 0px; }
    .swiper-button-prev { left: 0px; }
}
@media (max-width: 480px) {
     .features-grid { gap: 8px; }
     .flash-sale-heading h2 { font-size: 1.4rem; }
     .flash-sale-countdown .time-box { font-size: 1.1rem; padding: 0.5rem 0.7rem; }
}

/* --- Polished Product Grid & Card Styles (Modernized) --- */
#product-grid-container {
    max-width: 1400px;
    margin: 24px auto;
    padding: 0 16px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    color: var(--ink);
    margin: 0 0 24px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--card-background);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--ink);
    box-shadow: 0 4px 16px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(245, 114, 36, 0.2);
}

.card-image-container {
    position: relative;
    aspect-ratio: 4 / 3;
    background-color: #f9f9f9;
    padding: 1rem;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .card-image {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background: rgba(0, 0, 0, 0.65);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    backdrop-filter: blur(6px);
    z-index: 3;
    animation: badge-pop 0.35s ease-out;
}

@keyframes badge-pop {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.card-badge.hot { background: linear-gradient(135deg, #ff512f, #dd2476); }
.card-badge.flash { background: linear-gradient(135deg, var(--flash-color), #ffa751); color: var(--ink); }

.card-badge i { font-size: 0.9rem; }

.card-wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-color);
    color: var(--ink-weak);
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
    z-index: 3;
}

.card-wishlist-btn:hover { background: var(--hot-color); color: #fff; transform: scale(1.1); }
.card-wishlist-btn.active { background-color: var(--hot-color); color: #fff; }

.card-content-wrapper {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    z-index: 2;
    background: var(--card-background);
}

.tag-delivery {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--success-color);
    margin-bottom: 8px;
}

.product-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0 0 8px 0;
    min-height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    color: #ffc107;
}

.product-rating .review-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-weak);
}

.product-price {
    margin-top: auto;
    padding-top: 8px;
}

.product-price .current-price {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.product-price .original-price {
    font-size: 0.9rem;
    color: var(--ink-weak);
    text-decoration: line-through;
    margin-left: 8px;
}

.card-buttons {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 70%, rgba(255, 255, 255, 0));
    z-index: 1;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.product-card:hover .card-buttons {
    transform: translateY(0);
}

.card-btn {
    flex: 1;
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.card-btn.add-to-cart {
    background: var(--primary-color);
    color: #fff;
}

.card-btn:hover {
    transform: scale(1.05);
}

@keyframes button-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.card-btn.add-to-cart.added {
    background: var(--success-color);
    animation: button-pop 0.4s ease;
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ------- Global Empty State Styles ------- */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--primary-dark);
}

.empty-state i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.empty-state .btn-primary {
    display: inline-block;
    margin-top: 15px;
    background: var(--primary);
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.empty-state .btn-primary:hover {
    background: var(--primary-dark);
}
