/* Styles extracted for Netlify */
  *, *::before, *::after {
    box-sizing: border-box;
  }
  :root {
    --primary-color: #1B9B49;
    --primary-hover: #15803d;
    --bg-color: #f3f4f6; /* Softer background to frame content */
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --accent-color: #ecfdf5;
    --border-radius: 16px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --box-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  }

  /* Page Loader Styles */
  .page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.4); /* Semi-transparent background */
    backdrop-filter: blur(2px); /* Slight blur to make GIF pop out while still seeing home page */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }
  .page-loader.hidden {
    opacity: 0;
    visibility: hidden;
  }

  html,
  body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: clip;
    width: 100%;
  }

  .sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background-color: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    background-color: transparent;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
  }

  .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.5px;
  }

  .desktop-nav {
    display: none; /* Hidden on mobile */
    gap: 1.5rem;
  }

  .desktop-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
  }

  .desktop-nav a:hover {
    color: var(--primary-color);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  @media (min-width: 900px) {
    .desktop-nav { display: flex; }
    .mobile-menu-toggle { display: none; }
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  @media (min-width: 768px) {
    .nav-actions { gap: 1rem; }
  }

  .nav-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-btn:hover {
    background: #f0f0f0;
  }

  .cart-icon {
    cursor: pointer;
    font-weight: 600;
    background: #f0fdf4;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #dcfce7;
    color: var(--primary-color);
    font-size: 0.9rem;
  }

  .cart-icon:hover {
    background: #dcfce7;
  }

  .badge {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
  }

  /* Search & Category Bars */
  .search-bar-container, .category-bar-container {
    background: white;
    border-bottom: 1px solid var(--border-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
  }

  .search-bar-container.open, .category-bar-container.open {
    max-height: 100px;
    padding: 1rem 0;
  }

  #search-input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
  }

  #search-input:focus {
    border-color: var(--primary-color);
  }

  .category-chips {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none;
  }

  .category-chips::-webkit-scrollbar { display: none; }

  .category-chip {
    padding: 6px 16px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    border: 1px solid transparent;
  }

  .category-chip:hover, .category-chip.active {
    background: #dcfce7;
    color: var(--primary-color);
    border-color: #86efac;
  }

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

  .main-content {
    flex: 1; /* Pushes footer to bottom */
    margin-top: 2rem;
    margin-bottom: 3rem;
  }

  /* Page Sections */
  .page-section {
    display: none;
    animation: fadeIn 0.4s ease;
  }
  
  .page-section.active {
    display: block;
  }

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

  .page-header {
    text-align: center;
    margin-bottom: 2rem;
  }

  .page-header h2 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
  }

  .page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0;
  }

  /* Page Banners */
  .page-banner {
    display: none !important; /* Hide old inline page banners globally since we use general-page-banner-container instead */
  }

  .page-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); /* Dark overlay to make text readable */
  }

  .page-banner h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 1.5rem; /* Scaled down for mobile aspect ratio */
    font-weight: 700;
  }

  @media (min-width: 768px) {
    .page-banner h2 {
      font-size: 3.5rem;
    }
  }

  .box-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    max-width: 800px;
    margin: 0 auto;
  }

  .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  @media (min-width: 768px) {
    .product-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }
  }

  @media (min-width: 1024px) {
    .product-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  .product-card {
    position: relative; /* Added to support absolute badge-discount positioning */
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 0;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover);
  }

  .product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
  }

  .product-card-link:hover {
    text-decoration: none;
    color: inherit;
  }

  .product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background-color: #f0f5f0;
    margin-bottom: 0;
  }

  @media (min-width: 768px) {
    .product-img {
      height: 250px;
      aspect-ratio: auto;
      margin-bottom: 0.5rem;
    }
  }

  .product-category {
    font-size: 0.75rem;
    color: var(--primary-color);
    background: var(--accent-color);
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin: 0.75rem 0.75rem 0.25rem;
  }

  .product-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0.75rem 0.25rem;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
  }

  @media (min-width: 768px) {
    .product-title {
      font-size: 1rem;
    }
  }

  .product-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0.75rem 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .price-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0.75rem 0.75rem;
  }

  .product-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
  }

  @media (min-width: 768px) {
    .product-price {
      font-size: 1.2rem;
    }
  }

  .product-old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.95rem;
    margin-left: 0.75rem;
  }

  .btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
  }

  @media (min-width: 768px) {
    .btn {
      padding: 10px 24px;
      font-size: 1rem;
    }
  }

  .btn-primary {
    background-color: var(--primary-color);
    color: white;
    width: calc(100% - 1.5rem);
    margin: 0 0.75rem 0.75rem;
  }

  .btn-primary:hover {
    background-color: var(--primary-hover);
  }

  .btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
  }

  .btn-secondary:hover {
    background-color: #f0fdf4;
  }

  /* Wide Cart Layout */
  .cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 900px;
    height: 100vh;
    background: white;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
  }

  @media (max-width: 768px) {
    .cart-sidebar { max-width: 100%; }
  }

  .cart-sidebar.open {
    right: 0;
  }

  /* Mini Cart Popup */
  .mini-cart-popup {
    position: absolute;
    top: 50px;
    right: 0;
    width: 280px;
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 1rem;
    z-index: 1002;
    display: none;
    border: 1px solid var(--border-color);
    animation: slideDownFade 0.3s ease;
  }

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

  .mini-cart-popup.show {
    display: block;
  }

  .mini-cart-item {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
  }

  .mini-cart-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
  }

  .mini-cart-item-info {
    flex: 1;
    font-size: 0.8rem;
  }

  .mini-cart-item-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
  }

  /* Options Popup */
  .product-card {
    position: relative;
    overflow: visible;
  }

  .options-popup {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    border-radius: 12px 12px 0 0;
    z-index: 10;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .product-card:not(.has-in-cart):hover .options-popup,
  .product-card.show-options .options-popup {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .options-popup .pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
  }

  .options-popup .pill {
    padding: 4px 8px;
    font-size: 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
  }

  .options-popup .pill.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
  }

  .cart-header-wide {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .progress-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: center;
    font-size: 0.9rem;
    color: #9ca3af;
  }

  .progress-bar .step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .progress-bar .step.active {
    color: var(--primary-color);
    font-weight: 600;
  }

  .progress-bar .dot {
    width: 10px;
    height: 10px;
    background: #d1d5db;
    border-radius: 50%;
  }

  .progress-bar .step.active .dot {
    background: var(--primary-color);
    box-shadow: 0 0 0 4px #dcfce7;
  }

  .progress-bar .line {
    width: 40px;
    height: 1px;
    background: #e5e7eb;
  }

  .cart-content-wide {
    display: flex;
    flex: 1;
    overflow: hidden;
  }

  @media (max-width: 900px) {
    .cart-content-wide { flex-direction: column; overflow-y: auto; }
  }

  .cart-items-column {
    flex: 1.5;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }

  .cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .cart-item-horizontal {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f3f4f6;
  }

  .cart-item-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
  }

  .cart-item-details {
    flex: 1;
  }

  .cart-item-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--text-color);
  }

  .cart-item-variants {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
  }

  .cart-item-price-val {
    font-weight: 700;
    color: var(--text-color);
  }

  .qty-selector-wide {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 6px;
    padding: 4px;
    gap: 0.5rem;
  }

  .qty-selector-wide button {
    background: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  }

  .qty-selector-wide span {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
  }

  .remove-item-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
  }

  .remove-item-btn:hover { color: #ef4444; }

  .continue-shopping {
    background: none;
    border: none;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    margin-top: 2rem;
    text-align: left;
    padding: 0;
  }

  .cart-summary-column {
    flex: 1;
    background: #f9fafb;
    padding: 2rem;
  }

  .order-summary-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
  }

  .order-summary-card h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
  }

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

  .summary-row.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-top: 1rem;
  }

  .btn-large {
    padding: 14px;
    font-size: 1rem;
    margin-top: 1.5rem;
    background: #1B9B49; /* Matching green from reference */
  }

  /* Inline Qty Selector for Cards */
  .qty-selector-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0.5rem;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 8px;
  }

  .qty-selector-inline button {
    background: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    font-weight: bold;
  }

  .qty-selector-inline span {
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 1.5rem;
    text-align: center;
  }

  .muted { color: #9ca3af; font-size: 0.85rem; }

  .checkout-summary {
    background: #fdfdfd;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-top: 1rem;
  }

  /* Payment Method Buttons */
  .payment-method-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
  }
  .payment-method-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
    color: var(--text-color);
  }
  .payment-method-btn.active {
    border-color: var(--primary-color);
    background: #f0fdf4;
    color: var(--primary-color);
  }

  /* Coupon Section */
  .coupon-section {
    display: flex;
    gap: 8px;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e5e7eb;
  }
  .coupon-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
  }
  .coupon-input:focus {
    border-color: var(--primary-color);
  }
  .coupon-btn {
    padding: 8px 16px;
    background: var(--text-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
  }
  .coupon-btn:hover {
    background: #111;
  }
  .coupon-message {
    font-size: 0.8rem;
    margin-top: 4px;
    font-weight: 600;
  }
  .coupon-message.success { color: var(--primary-color); }
  .coupon-message.error { color: #ef4444; }

  /* Video Styles */
  .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 12px;
    background: #000;
  }
  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
  }

  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
  }

  .overlay.show {
    opacity: 1;
    visibility: visible;
  }

  .close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    transition: color 0.3s;
  }

  .close-btn:hover {
    color: var(--text-color);
  }

  /* Modal */
  .modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
  }

  .modal-content {
    background-color: var(--card-bg);
    margin: 2% auto;
    padding: 1.5rem;
    border-radius: 12px;
    width: 95%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalFadeIn 0.3s ease;
  }

  @keyframes modalFadeIn {
    from {
      opacity: 0;
      transform: scale(0.95);
    }

    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  @media (max-width: 768px) {
    .modal-content {
      width: 90%;
      margin: 10% auto;
      border-radius: 16px;
    }
    
    .cart-sidebar {
      top: 5%;
      right: -100%;
      height: 90%;
      width: 95%;
      border-radius: 20px;
      margin-right: 2.5%;
      font-size: 0.8rem;
    }
    
    .cart-sidebar.open {
      right: 0;
    }
    
    .cart-header-wide {
      padding: 0.75rem;
    }
    
    .progress-bar {
      display: none;
    }

    .cart-content-wide {
      flex-direction: column;
      position: relative;
      padding-bottom: 70px; /* Space for sticky summary */
    }

    .cart-items-column {
      padding: 0.5rem;
      flex: 1;
    }

    .cart-item-horizontal {
      gap: 0.4rem !important;
      padding-bottom: 0.5rem !important;
      margin-bottom: 0.5rem !important;
      border-bottom: 1px solid var(--border-color);
      align-items: center;
    }

    .cart-item-img {
      width: 45px !important;
      height: 45px !important;
      border-radius: 6px !important;
    }

    .cart-item-title {
      font-size: 0.72rem !important;
      line-height: 1.2 !important;
      margin-bottom: 2px !important;
    }

    .cart-item-variants {
      font-size: 0.58rem !important;
      color: var(--text-muted) !important;
      margin-bottom: 2px !important;
    }

    .cart-item-price-val {
      font-size: 0.72rem !important;
      font-weight: 700 !important;
    }

    .qty-selector-wide {
      padding: 2px !important;
      gap: 0.3rem !important;
      border-radius: 4px !important;
    }

    .qty-selector-wide button {
      width: 18px !important;
      height: 18px !important;
      font-size: 0.7rem !important;
      border-radius: 3px !important;
    }

    .qty-selector-wide span {
      min-width: 14px !important;
      font-size: 0.72rem !important;
      font-weight: 500 !important;
    }

    .remove-item-btn {
      padding: 4px !important;
      font-size: 0.9rem !important;
    }
    
    .cart-summary-column {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 0;
      background: white;
      border-top: 1px solid var(--border-color);
      z-index: 10;
    }
    
    .order-summary-card {
      padding: 0.5rem 0.75rem;
      border: none;
      border-radius: 0;
      position: static;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
    }

    .order-summary-card h3 { display: none; }
    .order-summary-card hr { display: none; }
    .order-summary-card .summary-row:not(.total) { display: none; }
    
    .order-summary-card .summary-row.total {
      margin-top: 0;
      flex-direction: column;
      align-items: flex-start;
      gap: 1px;
    }

    .order-summary-card .summary-row.total span:first-child {
      font-size: 0.62rem !important;
      color: var(--text-muted);
    }

    .order-summary-card .summary-row.total span:last-child {
      font-size: 0.85rem !important;
      font-weight: 700 !important;
    }

    .order-summary-card .btn-large {
      margin-top: 0;
      padding: 8px 16px !important;
      font-size: 0.75rem !important;
      width: auto;
      flex: 1;
      height: 32px !important;
      line-height: 1 !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
    }

    .modal-content {
      width: 95%;
      margin: 5% auto;
      font-size: 0.8rem;
    }

    .form-group label {
      font-size: 0.7rem;
    }

    .form-group input, .form-group select, .form-group textarea {
      padding: 0.5rem;
      font-size: 0.75rem;
    }
  }

  /* Green Outline for variant add */
  .btn-outline-green {
    background: transparent !important;
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
  }

  .modal-content h2 {
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    font-size: 1.2rem;
  }

  .modal-content .close-btn {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
  }

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

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

  .form-group {
    margin-bottom: 1.2rem;
  }

  .form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    width: 100%;
    padding: 0.65rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.85rem;
    transition: border-color 0.3s;
    background-color: var(--card-bg);
  }

  .form-group input:focus,
  .form-group textarea:focus,
  .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
  }

  .payment-section {
    background: #fafafa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
  }

  .payment-section h3 {
    margin-top: 0;
    color: var(--text-color);
  }



  /* Product Detail Layout */
  .product-detail {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: modalFadeIn 0.3s ease;
  }

  @media (min-width: 768px) {
    .product-detail {
      padding: 3rem;
    }
  }

  .detail-back-btn {
    align-self: flex-start;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0;
  }

  .detail-back-btn:hover {
    color: var(--primary-color);
  }

  .detail-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .detail-main-img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 12px;
    background: #f0f5f0;
  }

  .detail-gallery {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .detail-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
  }

  .detail-thumb.active {
    border-color: var(--primary-color);
  }

  .detail-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
  }

  .detail-price {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
  }

  .detail-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .detail-section-title {
    font-weight: 600;
    font-size: 0.95rem;
  }

  .pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .pill {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    user-select: none;
  }

  .pill:hover {
    border-color: var(--primary-hover);
  }

  .pill.selected {
    border-color: var(--primary-color);
    background: #f0fdf4;
    color: var(--primary-color);
    font-weight: 600;
  }

  .quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
  }

  .qty-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
  }

  .qty-btn:hover {
    background: #f0f0f0;
  }

  .qty-input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-size: 1rem;
    font-family: inherit;
    -moz-appearance: textfield;
    appearance: textfield;
  }

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

  .detail-desc-container {
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
  }

  .detail-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    white-space: pre-wrap;
  }
/* End of styles */

  /* --- Mobile Menu Sidebar --- */
  .mobile-menu-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
  }

  .mobile-menu-sidebar.open {
    left: 0;
  }

  .mobile-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-menu-links {
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
  }

  .mobile-menu-links a {
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
  }

  .mobile-menu-links a:hover {
    background: #f9fafb;
    color: var(--primary-color);
  }

  /* --- Footer --- */
  .site-footer {
    background-color: #111827; /* Dark Gray / Black */
    color: #f9fafb;
    padding: 3rem 0 1rem;
    margin-top: auto;
    width: 100% !important;
    box-sizing: border-box;
  }

  .footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  @media (min-width: 768px) {
    .footer-content {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  .footer-col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .footer-col h3.footer-logo {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 0;
    color: white;
  }

  .footer-col h4 {
    color: white;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.1rem;
  }

  .footer-toggle-btn {
    background: none;
    border: none;
    padding: 12px;
    margin: 0;
    margin-right: 0.5rem; /* Maintain standard gap from right border */
    cursor: pointer;
    display: none; /* Hidden on desktop */
    align-items: center;
    justify-content: center;
    outline: none;
  }

  .footer-toggle-icon {
    display: block;
    color: #f9fafb;
    transition: transform 0.2s ease;
  }

  .footer-col-content {
    margin-top: 1rem;
  }

  .footer-col a {
    display: block;
    color: #9ca3af;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
  }

  .footer-col a:hover {
    color: white;
  }

  .footer-col p {
    color: #9ca3af;
    margin-bottom: 0.5rem;
  }

  .footer-social-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding: 0 1rem;
  }

  .desktop-only-social {
    display: flex !important;
    gap: 15px;
    margin-top: 15px;
  }

  .mobile-only-social {
    display: none;
  }

  .footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #374151;
    color: #6b7280;
    font-size: 0.85rem;
  }

  /* --- Hero & General Banners --- */
  #hero-banner-container, #general-page-banner-container {
    width: 100%;
    background-color: var(--card-bg);
  }
  
  #hero-banner-container img, #general-page-banner-container img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    display: block;
  }
  
  @media (min-width: 900px) {
    #hero-banner-container, #general-page-banner-container {
      max-width: 1200px;
      margin: 0 auto;
      border-radius: var(--border-radius);
      overflow: hidden;
      margin-top: 1rem;
      box-shadow: var(--box-shadow);
    }
  }

  /* Preserving formatting for dynamic page content and footer text */
  .page-content, #footer-text {
    white-space: pre-wrap;
  }

  /* Reduce space between lines in contact info and footer connect sections */
  #contact-info-content p, #footer-connect p {
    margin-top: 0.15rem;
    margin-bottom: 0.15rem;
    white-space: pre-wrap;
  }

  /* Compact contact form styling */
  #contact-form .form-group {
    margin-bottom: 0.5rem;
  }

  #contact-form label {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.85rem;
    font-weight: 600;
  }

  #contact-form input,
  #contact-form textarea {
    padding: 0.5rem;
    border-radius: 4px;
  }

  /* Premium Category Group and Title Styles */
  .category-group {
    margin-bottom: 3.5rem;
  }

  .category-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 auto 1.5rem auto;
    position: relative;
    display: block;
    width: max-content;
    text-align: center;
    padding-bottom: 6px;
  }

  .category-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 35px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
  }

  /* Limit to 1 row (4 products) when not expanded */
  .category-group:not(.expanded) .product-grid .product-card:nth-child(n+5) {
    display: none !important;
  }

  /* Explore More Button Styling */
  .explore-btn {
    background: transparent;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    outline: none;
  }

  .explore-btn:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .explore-icon {
    transition: transform 0.3s ease;
  }

  /* Shipping Toggle Buttons */
  .shipping-toggle-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
  }
  .shipping-toggle-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
    color: var(--text-color);
  }
  .shipping-toggle-btn.active {
    border-color: var(--primary-color);
    background: #f0fdf4;
    color: var(--primary-color);
  }

  /* Compact Checkout Modal */
  #checkout-modal .modal-content {
    margin: 1% auto;
    padding: 1rem;
  }
  #checkout-modal h2 {
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    font-size: 1.1rem;
  }
  #checkout-modal .form-group {
    margin-bottom: 0.65rem;
  }
  #checkout-modal .form-group label {
    margin-bottom: 0.2rem;
    font-size: 0.75rem;
  }
  #checkout-modal .form-group input,
  #checkout-modal .form-group textarea,
  #checkout-modal .form-group select {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
  #checkout-modal .shipping-toggle-btn,
  #checkout-modal .payment-method-btn {
    padding: 8px;
    font-size: 0.8rem;
  }
  #checkout-modal .payment-section {
    padding: 8px;
    margin: 8px 0;
  }
  #checkout-modal .coupon-section {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }
  #checkout-modal .checkout-summary {
    margin-top: 0.5rem;
    padding: 8px;
  }

  /* --- MOBILE RESPONSIVENESS UPGRADES --- */
  
  @media (max-width: 767px) {
    .page-loader img {
      max-width: 100vw !important;
    }

    /* Compact category bar overrides on mobile */
    .category-bar-container.open {
      padding: 0.2rem 0 !important;
    }
    .category-chips {
      gap: 0.35rem !important;
      padding: 0.1rem 0 !important;
    }
    .category-chip {
      padding: 2px 8px !important;
      font-size: 0.65rem !important;
    }

    /* Mobile style for detail page thumbnail gallery */
    .detail-left {
      width: 100% !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 1rem !important;
    }

    .detail-main-img {
      max-height: 350px !important;
      width: 100% !important;
      object-fit: contain !important;
    }

    .detail-gallery {
      display: flex !important;
      gap: 0.75rem !important;
      overflow-x: auto !important;
      -webkit-overflow-scrolling: touch !important;
      padding-bottom: 0.5rem !important;
    }

    .detail-thumb {
      width: 64px !important;
      height: 64px !important;
      flex-shrink: 0 !important;
    }
  
    /* Stack layout wrapper and adjust widths */
    .product-detail-flex-container {
      flex-direction: column !important;
      gap: 1.5rem !important;
    }
  
    .detail-right {
      width: 100% !important;
      min-width: 100% !important;
      padding: 0;
    }
  
    /* Compact Touch Targets: 38px minimum height for mobile */
    .btn, 
    .qty-btn, 
    .coupon-btn, 
    .continue-shopping,
    .pill,
    .explore-btn {
      min-height: 38px !important;
      padding: 6px 16px !important;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
    }
  
    /* Quantity controls touch target */
    .quantity-control {
      height: 38px !important;
    }
    .qty-btn {
      padding: 0 12px !important;
      min-height: 38px !important;
    }
    .qty-input {
      height: 100%;
      font-size: 1rem;
    }

    /* Mobile Collapsible Footer styling */
    .footer-col-header {
      padding: 0.4rem 0 !important;
      border-bottom: 1px solid #374151;
    }
    
    .footer-col h3.footer-logo {
      margin: 0;
      font-size: 1.1rem !important;
    }
    .footer-col h4 {
      margin: 0;
      font-size: 0.9rem !important;
    }
 
    .footer-toggle-btn {
      display: inline-flex !important;
      margin-right: 1.5rem !important; /* Maintain standard gap from border (3x 0.5rem) */
      padding: 8px !important;
    }
 
    .footer-col-content {
      display: none;
      margin-top: 0.4rem !important;
      padding-bottom: 0.5rem !important;
    }
    .footer-col-content a,
    .footer-col-content p,
    .footer-col-content div {
      font-size: 0.8rem !important;
      margin-bottom: 0.35rem !important;
    }
 
    .footer-col.open .footer-col-content {
      display: block !important;
    }
 
    .footer-col.open .footer-toggle-icon {
      transform: rotate(180deg);
    }
    
    .footer-social-container {
      margin-top: 0.5rem !important;
      margin-bottom: 0.25rem !important;
    }
    .footer-bottom {
      font-size: 0.75rem !important;
      padding-top: 1rem !important;
    }

    .desktop-only-social {
      display: none !important;
    }

    .mobile-only-social {
      display: flex !important;
      justify-content: center;
      gap: 36px !important; /* Half gap spacing */
      margin-top: 1rem !important;
      margin-bottom: 0.5rem !important;
      width: 100%;
    }

    /* Reduce vertical gaps and margins of buttons/containers on mobile */
    .btn, 
    .coupon-btn, 
    .qty-btn, 
    .checkout-btn, 
    .continue-shopping {
      margin-top: 6px !important;
      margin-bottom: 6px !important;
    }

    .navbar {
      padding: 0.5rem 1rem !important;
    }

    .main-content {
      margin-top: 1rem !important;
    }

    .site-footer {
      padding: 1rem 0 !important;
      margin: 0 !important;
      width: 100% !important;
    }

    .footer-content {
      gap: 1rem !important;
    }

    .product-detail {
      padding: 1rem !important;
    }

    .account-sidebar-tab {
      min-height: 38px !important;
      padding: 6px 12px !important;
      font-size: 0.8rem !important;
    }
  }

  /* ─── User Accounts CSS ──────────────────────────────────────────────────────── */

  .account-auth-tabs {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
  }

  .auth-tab {
    padding: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
  }

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

  .auth-tab:not(.active) {
    color: var(--text-muted);
  }

  .account-dashboard-wrapper {
    animation: fadeIn 0.4s ease;
  }

  .account-header-wrapper {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
  }

  .account-panel-container {
    display: flex;
    gap: 2rem;
    flex-direction: column;
  }

  @media (min-width: 768px) {
    .account-panel-container {
      flex-direction: row;
      align-items: flex-start;
    }
    
    .account-sidebar {
      width: 250px;
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
  }

  .account-sidebar {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    scrollbar-width: none;
  }

  .account-sidebar::-webkit-scrollbar {
    display: none;
  }

  @media (min-width: 768px) {
    .account-sidebar {
      flex-direction: column;
      overflow-x: visible;
    }
  }

  .account-sidebar-tab {
    padding: 12px 20px;
    background: white;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    white-space: nowrap;
    box-shadow: var(--box-shadow);
  }

  .account-sidebar-tab:hover {
    background: #fafafa;
  }

  .account-sidebar-tab.active {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
  }

  .profile-pic-container:hover .profile-img-upload-overlay {
    opacity: 1 !important;
  }

  .profile-img-upload-overlay {
    opacity: 0.8;
  }

  /* Order cards styling matching design 28.JPG */
  .user-order-card {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    overflow: hidden;
  }

  .user-order-card-header {
    background: #d97706; /* yellow background matching 28.JPG */
    padding: 12px 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  @media (min-width: 576px) {
    .user-order-card-header {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  .order-header-info {
    display: flex;
    flex-direction: column;
  }

  .order-header-info .label {
    font-size: 0.75rem;
    color: #374151;
    text-transform: uppercase;
    font-weight: 500;
  }

  .order-header-info .value {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-color);
  }

  .user-order-card-body {
    padding: 20px;
  }

  .user-order-item-row {
    display: flex;
    gap: 15px;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
  }

  .user-order-item-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
  }

  .user-order-item-details {
    flex: 1;
  }

  .user-order-item-name {
    font-weight: 600;
    font-size: 0.95rem;
  }

  .user-order-item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
  }

  .user-order-card-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
  }

  .order-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
  }

  .order-status-badge.pending {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
  }

  .order-status-badge.delivered {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
  }

  .order-status-badge.processing, .order-status-badge.shipped {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
  }

  /* Modals inputs reset */
  .modal-content .form-group textarea,
  .modal-content .form-group input {
    font-family: inherit;
    font-size: 0.95rem;
  }

  /* Star Rating Hover Effects */
  .star-item:hover,
  .star-item.active {
    color: #d97706 !important;
  }

  /* Print Invoice styles */
  @media print {
    body * {
      visibility: hidden;
    }
    #invoice-modal-content, #invoice-modal-content * {
      visibility: visible;
    }
    #invoice-modal-content {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
    }
    .modal, .modal-content {
      box-shadow: none !important;
      border: none !important;
      overflow: visible !important;
      max-height: none !important;
    }
    .close-btn, .modal-content button {
      display: none;
    }
  }

  /* ─── HOME STOREFRONT CUSTOM LAYOUTS & COMPONENTS ─── */
  .hero-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  @media (min-width: 900px) {
    .hero-layout {
      flex-direction: row;
      align-items: stretch;
    }
    
    .banner-side-menu {
      width: 280px;
      background: white;
      border: 1px solid var(--border-color);
      border-radius: var(--border-radius);
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      box-shadow: var(--box-shadow);
      min-height: 400px;
    }
    
    .home-banner-slider {
      flex: 1;
      height: auto;
      min-height: 400px;
    }
  }

  /* Banner Side Menu styling */
  .banner-side-menu {
    display: none; /* Hidden on mobile */
  }

  @media (min-width: 900px) {
    .banner-side-menu {
      display: flex;
    }
  }

  .side-menu-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
  }

  .side-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .side-menu-list li {
    padding: 10px 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-color);
  }

  .side-menu-list li:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding-left: 16px;
  }

  .side-menu-list li svg {
    color: var(--text-muted);
    transition: transform 0.2s;
  }

  .side-menu-list li:hover svg {
    color: var(--primary-color);
    transform: translateX(3px);
  }

  /* Banner Slider Container */
  .home-banner-slider {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 300px;
    box-shadow: var(--box-shadow);
  }

  @media (min-width: 768px) {
    .home-banner-slider {
      height: 400px;
    }
  }

  .banner-slides {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    display: flex;
    align-items: center;
    padding: 3rem;
    color: white;
  }

  .banner-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
  }

  .banner-slide-content {
    max-width: 550px;
    z-index: 5;
    animation: fadeInUp 0.8s ease;
  }

  .banner-slide-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.25;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  }

  .banner-slide-content p {
    font-size: 1.05rem;
    opacity: 0.9;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }

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

  /* Slider Navigation Arrows */
  .banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
  }

  .banner-nav:hover {
    background: rgba(255, 255, 255, 0.4);
    color: white;
  }

  .banner-nav.prev { left: 20px; }
  .banner-nav.next { right: 20px; }

  /* Slider Dots Indicators */
  .banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
  }

  .banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .banner-dot.active {
    background: white;
    width: 20px;
    border-radius: 10px;
  }

  /* Category Grid Cards Layout */
  .categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
  }

  @media (min-width: 768px) {
    .categories-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (min-width: 1024px) {
    .categories-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  .category-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    position: relative;
    min-height: 180px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
  }

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

  .category-card-left {
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    max-width: 36%; /* Reduced to minimize overlap */
  }

  .category-card-left .count {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.62rem; /* Reduced text size */
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 8px;
  }

  .category-card-left h3 {
    font-size: 0.95rem; /* Reduced text size */
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
  }

  .category-card-left span {
    font-size: 0.65rem !important; /* Reduced text size */
  }

  .category-card img {
    position: absolute;
    right: -15px;
    bottom: -15px;
    height: 105%;
    width: 75%;
    object-fit: contain;
    transition: transform 0.5s ease;
    z-index: 1;
  }

  .category-card:hover img {
    transform: scale(1.08) rotate(-3deg);
  }

  /* Badge Discount */
  .badge-discount {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #d97706; /* Match review star yellow color */
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(217, 119, 6, 0.3);
  }

  .badge-custom-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #d97706; /* Yellow matching review stars */
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(217, 119, 6, 0.3);
    pointer-events: none;
    line-height: 1.2;
    text-transform: uppercase;
  }

  /* Testimonials slider area */
  .testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  @media (min-width: 768px) {
    .testimonials-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (min-width: 1024px) {
    .testimonials-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  .testimonial-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
  }

  .testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover) !important;
  }

  /* STYLES OVERRIDES FOR HOMEPAGE REDESIGN (FULL-SCREEN BANNER) */
  
  /* Header Overrides on Homepage - Desktop Only */
  @media (min-width: 769px) {
    body:has(#page-home.active) .sticky-header {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      background: transparent;
      box-shadow: none;
      z-index: 1000;
      transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }

    body:has(#page-home.active) .sticky-header:not(.scrolled) {
      background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%) !important;
    }

    body:has(#page-home.active) .sticky-header:not(.scrolled) .navbar {
      background-color: transparent !important;
      background: transparent !important;
    }

    body:has(#page-home.active) .sticky-header.scrolled {
      position: fixed;
      background-color: var(--card-bg);
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    body:has(#page-home.active) .main-content {
      margin-top: 0 !important;
    }

    /* Transition for navigation links and buttons */
    .sticky-header .desktop-nav a,
    .sticky-header .logo span,
    .sticky-header .nav-btn,
    .sticky-header .cart-icon {
      transition: color 0.3s ease;
    }

    .sticky-header .logo img {
      transition: filter 0.3s ease;
    }

    /* White text when header is transparent on load */
    body:has(#page-home.active) .sticky-header:not(.scrolled) .desktop-nav a {
      color: #ffffff;
    }
    body:has(#page-home.active) .sticky-header:not(.scrolled) .logo span {
      color: #ffffff !important;
    }
    body:has(#page-home.active) .sticky-header:not(.scrolled) .nav-btn {
      color: #ffffff;
    }
    body:has(#page-home.active) .sticky-header:not(.scrolled) .cart-icon {
      color: #ffffff !important;
      background: rgba(255, 255, 255, 0.15) !important;
      border-color: rgba(255, 255, 255, 0.25) !important;
    }
    body:has(#page-home.active) .sticky-header:not(.scrolled) .logo img {
      filter: brightness(0) invert(1);
    }
  }

  /* Hero Section CSS Viewport Breakout to go full width */
  body:has(#page-home.active) .hero-section {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 4rem;
    background-color: #141b15; /* Default dark background so overlay header is readable on load */
  }

  body:has(#page-home.active) .home-banner-slider {
    width: 100%;
    height: 100vh !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body:has(#page-home.active) .banner-slides {
    width: 100%;
    height: 100%;
    border-radius: 0 !important;
  }

  body:has(#page-home.active) .banner-slide {
    height: 100vh !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    box-sizing: border-box !important;
    padding: 0 !important; /* Reset padding to support splits */
    background-color: #141b15 !important; /* Solid dark background for split screen text half */
  }

  body:has(#page-home.active) .banner-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2 !important;
  }

  body:has(#page-home.active) .slide-image {
    position: absolute !important;
    top: 0 !important;
    height: 100% !important;
    background-size: cover !important;
    z-index: 1 !important;
  }

  /* Content Wrapper and Content styles */
  body:has(#page-home.active) .banner-slide-content-wrapper {
    width: 100%;
    height: 100%;
    box-sizing: border-box !important;
  }


  body:has(#page-home.active) .banner-slide-content {
    max-width: 600px !important; /* More compact width */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* Center horizontally in flex column */
    text-align: center !important; /* Center align text */
    z-index: 5 !important;
    box-sizing: border-box !important;
    padding: 0 2rem !important; /* Compact padding */
    margin-top: 10vh !important; /* Push 10% down relative to 100vh banner */
  }

  /* Compact text and button over banner */
  body:has(#page-home.active) .banner-slide-content h2 {
    font-size: 2.2rem !important; /* Down from 2.8rem */
    font-weight: 700 !important;
    margin-bottom: 0.75rem !important; /* Down from 1.25rem */
    line-height: 1.2 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
    color: #ffffff !important;
  }

  body:has(#page-home.active) .banner-slide-content p {
    font-size: 1.0rem !important; /* Down from 1.15rem */
    opacity: 0.9 !important;
    line-height: 1.4 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
    margin-bottom: 1.25rem !important; /* Down from 2rem */
    color: rgba(255, 255, 255, 0.95) !important;
  }

  body:has(#page-home.active) .banner-slide-content .btn-primary {
    font-size: 0.8rem !important; /* Shrunk button text */
    padding: 8px 18px !important; /* Shrunk button padding */
  }

  @media (max-width: 768px) {
    /* Set hero section and banner slides height on mobile to 40vh (proportionate scale down) */
    body:has(#page-home.active) .hero-section {
      height: 45vh !important;
      min-height: 250px !important;
      margin-bottom: 2rem;
    }
    body:has(#page-home.active) .home-banner-slider {
      height: 45vh !important;
      min-height: 250px !important;
    }
    body:has(#page-home.active) .banner-slide {
      height: 45vh !important;
      min-height: 250px !important;
    }

    /* Reset mobile layout to match desktop layout (no vertical stacking) */
    body:has(#page-home.active) .banner-slide.split-left .slide-image,
    body:has(#page-home.active) .banner-slide.split-right .slide-image {
      position: absolute !important;
      width: 65% !important;
      height: 100% !important;
    }
    body:has(#page-home.active) .banner-slide.split-left .slide-image {
      left: 0 !important;
    }
    body:has(#page-home.active) .banner-slide.split-right .slide-image {
      left: 35% !important;
    }

    body:has(#page-home.active) .slide-image {
      background-size: cover !important; /* Standard cover representation matching desktop */
      background-repeat: no-repeat !important;
      background-position: center !important;
    }

    body:has(#page-home.active) .banner-slide-content h2 {
      font-size: 0.9rem !important; /* Shrunk from 1.05rem to fit mobile view */
      margin-bottom: 0.15rem !important;
      font-weight: 700 !important;
      line-height: 1.2 !important;
    }
    body:has(#page-home.active) .banner-slide-content p {
      font-size: 0.65rem !important; /* Shrunk from 0.72rem to fit mobile view */
      margin-bottom: 0.3rem !important;
      line-height: 1.25 !important;
    }

    /* Allow the layout display (grid/flex) and columns to follow inline styles from Google Sheet */
    body:has(#page-home.active) .banner-slide-content-wrapper {
      width: 100% !important;
      height: 100% !important;
      padding-top: 10px !important; /* Scale down padding-top on mobile to prevent overflow */
    }

    body:has(#page-home.active) .banner-nav {
      display: none;
    }

    body:has(#page-home.active) .banner-slide-content {
      padding: 0 1.25rem !important; /* Slightly more space for text on mobile */
      margin-top: 2vh !important; /* Shrunk from 4vh to prevent overflow */
    }

    body:has(#page-home.active) .banner-slide-content .btn-primary {
      font-size: 0.68rem !important; /* Smaller button size on mobile */
      padding: 5px 12px !important; /* Smaller button padding on mobile */
    }

    /* Scale down Categories section on mobile */
    .categories-grid {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 0.75rem !important;
      margin-bottom: 2.5rem !important;
    }

    .categories-grid .category-card {
      padding: 0.85rem !important;
      min-height: 110px !important;
      border-radius: 12px !important;
    }

    .categories-grid .category-card-left {
      max-width: 36% !important; /* Reduced to minimize overlap */
    }

    .categories-grid .category-card-left .count {
      font-size: 0.42rem !important; /* Further reduced text size */
      padding: 2px 6px !important;
      margin-bottom: 4px !important;
      width: fit-content;
    }

    .categories-grid .category-card-left h3 {
      font-size: 0.64rem !important; /* Further reduced text size */
      margin-bottom: 4px !important;
    }

    .categories-grid .category-card-left span {
      font-size: 0.46rem !important; /* Further reduced text size */
    }

    .categories-grid .category-card img {
      right: -8px !important; /* Positioned for larger appearance */
      bottom: -8px !important;
      height: 105% !important; /* Enlarged image height */
      width: 75% !important; /* Enlarged image width */
    }
  }

  /* Custom Banner Dots */
  body:has(#page-home.active) .banner-dots {
    bottom: 10px !important; /* Moved down to prevent overlapping the Shop Now button */
    z-index: 10 !important;
  }

  body:has(#page-home.active) .banner-dot {
    width: 8px !important;
    height: 8px !important;
    background: rgba(255, 255, 255, 0.4) !important;
    border: none !important;
    margin: 0 6px !important;
    transition: all 0.3s ease !important;
  }

  body:has(#page-home.active) .banner-dot.active {
    width: 24px !important;
    border-radius: 4px !important;
    background: #ffffff !important;
  }

  /* Custom Banner Nav Arrows - Hidden by default, show on hover */
  body:has(#page-home.active) .banner-nav {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: opacity 0.3s ease, background-color 0.2s, color 0.2s !important;
    z-index: 10 !important;
    font-size: 1.1rem !important;
    opacity: 0 !important; /* Hidden by default */
    pointer-events: none !important;
  }

  body:has(#page-home.active) .home-banner-slider:hover .banner-nav {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body:has(#page-home.active) .banner-nav:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-50%) scale(1.05) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
  }

  /* Homepage Compact Layout & Header Text Size Synchronization */
  body:has(#page-home.active) #page-home section {
    margin-bottom: 2.5rem !important; /* Shrunk from 4rem for compact vertical spacing */
  }

  body:has(#page-home.active) .section-header {
    margin-bottom: 1.25rem !important; /* Shrunk from 2rem/2.5rem for compact vertical spacing */
  }

  body:has(#page-home.active) .section-header h2 {
    font-size: 1.4rem !important; /* Matches shop category header text size (.category-title) */
    font-weight: 600 !important; /* Matches shop category header weight */
  }

  body:has(#page-home.active) .section-header span {
    margin-bottom: 2px !important; /* Compact spacing between subtitle and title */
  }

  body:has(#page-home.active) .tabs-container {
    margin-bottom: 1.5rem !important; /* Shrunk from 2.5rem for compact layout */
  }

  /* --- PRODUCT DETAIL TABS, REVIEWS, AND RELATED PRODUCTS --- */

  .product-detail-tabs {
    margin-top: 2.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
  }

  .product-detail-tabs .tabs-header {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    justify-content: flex-start;
  }

  .product-detail-tabs .tab-title {
    font-size: 1.05rem;
    font-weight: 600;
    padding-bottom: 0.75rem;
    cursor: pointer;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .product-detail-tabs .tab-title.active {
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
  }

  .product-detail-tabs .tab-content {
    animation: tabFadeIn 0.3s ease-in-out;
  }

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

  .product-detail-tabs .detail-desc {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-line;
  }

  /* Reviews Layout */
  .reviews-layout-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }

  /* Rating Summary Box */
  .rating-summary-box {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: #fcfdfc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
  }

  @media (min-width: 768px) {
    .rating-summary-box {
      flex-direction: row;
      align-items: center;
    }
  }

  .rating-summary-left {
    text-align: center;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  @media (min-width: 768px) {
    .rating-summary-left {
      border-right: 1px solid var(--border-color);
      padding-right: 3rem;
      min-width: 180px;
    }
  }

  .rating-avg-num {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-color);
  }

  .rating-avg-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
  }

  .rating-total-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
  }

  .rating-summary-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  /* Rating Bar Rows */
  .rating-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
  }

  .rating-bar-label {
    width: 50px;
    font-weight: 600;
    color: var(--text-color);
    text-align: right;
    white-space: nowrap;
  }

  .rating-bar-track {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
  }

  .rating-bar-fill {
    height: 100%;
    background: #d97706;
    border-radius: 99px;
    transition: width 0.5s ease-out;
  }

  .rating-bar-count {
    width: 30px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: left;
  }

  /* Review List */
  .review-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 1.5rem;
  }

  .review-list-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
  }

  .review-showing-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
  }

  .reviews-list-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  /* Review Cards */
  .detail-review-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.01);
  }

  .detail-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
  }

  .detail-review-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .detail-review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #dcfce7;
  }

  .detail-reviewer-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .verified-badge {
    background: #dcfce7;
    color: #16a34a;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  .detail-review-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
  }

  .detail-review-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
    white-space: pre-line;
  }

  /* Related Products Layout */
  .related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
  }

  .related-product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  }
  .related-product-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06) !important;
  }

  @media (max-width: 767px) {
    .product-detail-tabs .tabs-header {
      gap: 1rem;
    }
    .product-detail-tabs .tab-title {
      font-size: 0.95rem;
    }
    .rating-summary-box {
      padding: 1.25rem;
    }
    .rating-avg-num {
      font-size: 3rem;
    }
    .detail-review-card {
      padding: 1rem;
    }
    .detail-review-header {
      flex-direction: column;
      gap: 10px;
    }
    .detail-review-date {
      align-self: flex-start;
      margin-left: 56px;
      margin-top: -8px;
    }
    .related-products-grid {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 12px !important;
    }
    .related-product-card h3 {
      font-size: 0.75rem !important;
      height: 30px !important;
    }
  }

  /* --- FAQ Page Layout --- */
  .faq-layout-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
  }

  @media (min-width: 768px) {
    .faq-layout-container {
      flex-direction: row;
      align-items: flex-start;
    }
  }

  .faq-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 250px;
  }

  .faq-tab-btn {
    padding: 14px 20px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-color);
  }

  .faq-tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
  }

  .faq-tab-btn.active {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
  }

  .faq-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .faq-accordion-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
  }

  .faq-accordion-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
  }

  .faq-accordion-header .faq-toggle-icon {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
  }

  .faq-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 1.5rem;
    background: inherit;
    color: inherit;
  }

  .faq-accordion-body p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    padding-bottom: 1.25rem;
  }

  /* Expanded Accordion Item Styles */
  .faq-accordion-item.expanded {
    background: #14532d !important; /* Premium dark forest green background from mockup */
    color: white !important;
    border-color: #14532d !important;
  }

  .faq-accordion-item.expanded .faq-accordion-header {
    color: white !important;
  }

  .faq-accordion-item.expanded .faq-toggle-icon {
    color: #d97706 !important; /* Gold/yellow toggle icon in expanded state */
  }

  .faq-accordion-item.expanded .faq-accordion-body {
    max-height: 500px; /* High enough to contain the text */
    padding: 0 1.5rem;
  }

  @media (max-width: 767px) {
    .faq-sidebar {
      flex-direction: row;
      overflow-x: auto;
      padding-bottom: 0.5rem;
      scrollbar-width: none;
      min-width: 0 !important;
      width: 100%;
      gap: 6px !important;
      margin-bottom: 1rem;
    }
    .faq-sidebar::-webkit-scrollbar {
      display: none;
    }
    .faq-tab-btn {
      white-space: nowrap;
      padding: 6px 12px !important;
      font-size: 0.75rem !important;
      border-radius: 20px !important;
    }

    /* Testimonials Horizontal 3 each line on mobile */
    .testimonials-grid {
      grid-template-columns: repeat(3, 1fr) !important;
      gap: 8px !important;
    }
    .testimonial-card {
      padding: 8px !important; /* Compact padding */
      border-radius: 6px !important;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      min-height: 120px; /* Consistent height */
    }
    .testimonial-user {
      margin-bottom: 6px !important; /* Compact gap */
    }
    .testimonial-card h4 {
      font-size: 0.7rem !important; /* Compact font */
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .testimonial-rating {
      margin-bottom: 4px !important; /* Compact star gap */
    }
    .testimonial-rating span {
      font-size: 0.75rem !important; /* Compact stars */
    }
    .testimonial-card p {
      font-size: 0.65rem !important; /* Compact text */
      line-height: 1.3 !important;
    }
    .testimonial-user-info {
      gap: 6px !important;
    }
    .testimonial-user-info img {
      width: 28px !important;
      height: 28px !important;
    }
    .testimonial-quote-icon {
      display: none;
    }

    /* Deals Horizontal 2 each line on mobile */
    #home-deals-container {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 10px !important;
    }
    .deal-card-wide {
      flex-direction: column !important;
      align-items: stretch !important;
      gap: 4px !important; /* Shrunk gap */
      padding: 6px !important; /* Shrunk padding */
    }
    .deal-card-wide-left {
      width: 100% !important;
      height: 100px !important; /* Compact image height */
    }
    .deal-card-wide-left img {
      max-height: 100% !important;
      max-width: 100% !important;
    }
    .deal-card-wide-right h3 {
      font-size: 0.72rem !important;
      height: 34px !important;
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      margin-bottom: 2px !important;
    }
    .deal-card-wide-right .product-rating {
      margin-bottom: 2px !important;
      font-size: 0.68rem !important;
    }
    .deal-card-wide-right p {
      display: none !important; /* Forced display none to override inline style */
    }
    .deal-card-wide-right .deal-action-row {
      margin-top: 3px !important;
      gap: 4px !important;
    }
    .deal-card-wide-right .product-price-row .current-price {
      font-size: 0.85rem !important;
    }
    .deal-card-wide-right .product-price-row .old-price {
      font-size: 0.7rem !important;
    }
    .deal-card-wide-right .deal-view-offer {
      font-size: 0.7rem !important;
    }
  }

  /* Premium circular color options on detail page */
  .color-circle {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
  }
  .color-circle.selected {
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary-color) !important;
    transform: scale(1.08);
  }
  .color-circle:hover {
    transform: scale(1.1);
  }

  /* Wishlist button hover */
  .wishlist-btn:hover {
    background-color: #f3f4f6 !important;
    border-color: #9ca3af !important;
  }
  .wishlist-btn:hover svg {
    color: #ef4444 !important;
  }

  /* Social Share Icons styling */
  .detail-share-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f3f4f6;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-left: 6px;
    vertical-align: middle;
  }
  .detail-share-icons a:hover {
    transform: scale(1.1);
    background-color: var(--primary-color);
    color: white !important;
  }

  /* Gallery slideshow nav buttons */
  .gallery-nav-btn {
    opacity: 0;
    transition: opacity 0.2s, background-color 0.2s;
  }
  #detail-main-media-container:hover .gallery-nav-btn {
    opacity: 1;
  }
  .gallery-nav-btn:hover {
    background: rgba(0, 0, 0, 0.7) !important;
  }

  /* Custom home category grid layout styles */
  .categories-grid-custom .category-card-img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .categories-grid-custom .category-card:hover .category-card-img {
    transform: scale(1.05);
  }

  @media (max-width: 768px) {
    /* Align mobile category layouts */
    .categories-grid-custom.even-layout,
    .categories-grid-custom.odd-first-layout,
    .categories-grid-custom.odd-last-layout {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 12px !important;
      margin-bottom: 0 !important;
    }

    .categories-grid-custom.odd-last-layout {
      margin-top: 12px !important;
    }

    /* Force the odd last layout cards to default to 2 columns */
    .categories-grid-custom.odd-last-layout .category-card {
      grid-column: span 1 !important;
    }

    /* Standardized Mobile Category Card: 140px height */
    .categories-grid-custom .category-card {
      height: 140px !important;
      min-height: 140px !important;
      position: relative !important;
      display: flex !important;
      flex-direction: row !important;
      border-radius: 12px !important;
      box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
      width: 100% !important;
      overflow: hidden !important;
    }

    /* Left panel: floating white transparent mask overlay, rounded corners, thin white outline */
    .categories-grid-custom .category-card .category-card-left {
      position: absolute !important;
      top: 6px !important;
      bottom: 6px !important;
      left: 6px !important;
      width: 46% !important;
      max-width: 46% !important;
      background: rgba(255, 255, 255, 0.7) !important; /* Highly transparent mask overlay */
      color: #000000 !important;
      padding: 8px !important;
      z-index: 2 !important;
      display: flex !important;
      flex-direction: column !important;
      justify-content: space-between !important; /* Stack: Count+Title at top, Browse Now at bottom */
      border-radius: 8px !important;
      border: 1.5px solid #ffffff !important; /* Solid thin white outline border overlaying image */
      box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
      box-sizing: border-box !important;
    }

    .categories-grid-custom .category-card .category-card-left > div:first-child {
      display: block !important;
      width: 100% !important;
    }

    .categories-grid-custom .category-card .category-card-left h3 {
      color: #000000 !important; /* Pure black text */
      font-size: 0.58rem !important; /* Reduced 20% from 0.72rem */
      line-height: 1.2 !important;
      font-weight: 700 !important;
      margin: 4px 0 0 0 !important; /* Positioned directly under count badge */
      white-space: normal !important; /* Allow wrapping to multiple lines naturally */
      display: block !important; /* Remove line clamping to show full name */
      overflow: visible !important;
      width: 100% !important;
    }

    .categories-grid-custom .category-card .category-card-left .count-badge {
      position: static !important; /* Reset absolute positioning to stack */
      background-color: #d97706 !important;
      color: white !important;
      padding: 3px 6px !important;
      font-size: 0.52rem !important;
      margin: 0 !important;
      display: inline-block !important;
      border-radius: 20px !important;
      line-height: 1 !important;
      white-space: nowrap !important; /* Locked to single line */
    }

    .categories-grid-custom .category-card .category-card-left .browse-link {
      color: var(--primary-color) !important;
      font-size: 0.58rem !important;
      font-weight: 700 !important;
      white-space: nowrap !important;
      margin: 0 !important;
      line-height: 1.15 !important;
      display: block !important;
    }

    /* Right panel: 60% width, image container occupies the full frame background under the mask */
    .categories-grid-custom .category-card .category-card-right-img-container {
      position: absolute !important;
      top: 0 !important;
      left: 0 !important;
      right: 0 !important;
      bottom: 0 !important;
      width: 100% !important;
      height: 100% !important;
      z-index: 1 !important;
      border-radius: 12px !important;
      background: #f1f5f9 !important;
      overflow: hidden !important;
      margin: 0 !important;
    }

    .categories-grid-custom .category-card .category-card-img {
      width: 100% !important;
      height: 100% !important;
      object-fit: contain !important; /* Shows full image in the 60% split part with full height */
      object-position: right center !important; /* Align image slightly to the right */
      display: block !important;
    }

    /* 1 Category Card Layout (the very last card when N is odd) spans full row */
    .categories-grid-custom .category-card.odd-last-single {
      grid-column: span 2 !important; /* Full width row */
      height: 140px !important;
      min-height: 140px !important;
    }
  }

  /* ─── Order Tracking Timeline ─────────────────────────────────────────────── */

  .track-timeline-wrapper {
    position: relative;
    padding: 1rem 0;
  }

  .track-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin: 2rem 0;
  }

  .track-timeline::before {
    content: '';
    position: absolute;
    top: 96px; /* Vertical alignment with the dot centers */
    left: 10%;
    right: 10%;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
    border-radius: 2px;
  }

  .track-timeline-progress {
    position: absolute;
    top: 96px;
    left: 10%;
    height: 4px;
    background: var(--primary-color, #1B9B49);
    z-index: 1;
    transition: width 0.4s ease;
    border-radius: 2px;
  }

  .track-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    text-align: center;
    z-index: 2;
  }

  .track-icon-container {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: #94a3b8;
    transition: all 0.3s ease;
  }

  .track-icon-container svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
  }

  .track-step.active .track-icon-container {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #d97706;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.15);
  }

  .track-step-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 12px;
    transition: color 0.3s;
    height: 18px;
  }

  .track-step.active .track-step-label {
    color: #0f172a;
  }

  .track-node-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    margin-bottom: 10px;
    z-index: 3;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s;
  }

  .track-step.active .track-node-dot {
    background: var(--primary-color, #1B9B49);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 0 1px var(--primary-color, #1B9B49), 0 4px 8px rgba(27, 155, 73, 0.2);
  }

  .track-step-date {
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.4;
    white-space: pre-line;
    transition: color 0.3s;
  }

  .track-step.active .track-step-date {
    color: #334155;
    font-weight: 500;
  }

  /* Responsive Mobile Layout (Vertical Timeline) */
  @media (max-width: 767px) {
    .track-timeline {
      flex-direction: column;
      align-items: flex-start;
      margin: 1.5rem 0;
      padding-left: 3rem;
    }

    .track-timeline::before {
      top: 15px;
      bottom: 15px;
      left: 27px;
      width: 4px;
      height: calc(100% - 30px);
      right: auto;
    }

    .track-timeline-progress {
      top: 15px;
      left: 27px;
      width: 4px;
      /* height will be set or handled dynamically, fallback to 100% since we stack it vertically */
      height: calc(100% - 30px);
      display: none; /* Hide progress bar in vertical layout to rely on step node styles */
    }

    .track-step {
      flex-direction: row;
      align-items: center;
      text-align: left;
      flex: none;
      width: 100%;
      margin-bottom: 2rem;
      gap: 15px;
    }

    .track-step:last-child {
      margin-bottom: 0;
    }

    .track-icon-container {
      margin-bottom: 0;
      width: 42px;
      height: 42px;
      flex-shrink: 0;
    }
    
    .track-icon-container svg {
      width: 18px;
      height: 18px;
    }

    .track-node-dot {
      position: absolute;
      left: -32px;
      margin-bottom: 0;
      width: 20px;
      height: 20px;
      border-width: 2px;
      font-size: 0.65rem;
    }

    .track-step-info-container {
      display: flex;
      flex-direction: column;
      flex: 1;
    }

    .track-step-label {
      margin-bottom: 2px;
      font-size: 0.85rem;
      height: auto;
    }

    .track-step-date {
      font-size: 0.75rem;
      white-space: normal;
    }
  }

/* --- Premium Blog Styles --- */
.blog-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .blog-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-hero-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--border-radius, 12px);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 3rem;
  border: 1px solid var(--border-color, #e2e8f0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .blog-hero-card {
    flex-direction: row;
    min-height: 380px;
  }
  .blog-hero-img-wrapper {
    flex: 1.2;
    min-height: 100%;
  }
  .blog-hero-content {
    flex: 1;
    padding: 3rem !important;
  }
}

.blog-hero-img-wrapper {
  overflow: hidden;
  position: relative;
  min-height: 240px;
  background: #f1f5f9;
}

.blog-hero-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-hero-card:hover .blog-hero-img-wrapper img {
  transform: scale(1.03);
}

.blog-hero-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-color, #14532d);
  margin-bottom: 0.75rem;
}

.blog-hero-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-color, #0f172a);
  margin: 0 0 1rem 0;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.blog-hero-title:hover {
  color: var(--primary-color, #14532d);
}

.blog-hero-excerpt {
  color: var(--text-muted, #64748b);
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  font-size: 0.95rem;
}

/* Standard Blog Card */
.blog-card {
  background: white;
  border-radius: var(--border-radius, 12px);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  border: 1px solid var(--border-color, #e2e8f0);
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.blog-card-img-wrapper {
  overflow: hidden;
  height: 200px;
  background: #f1f5f9;
}

.blog-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img-wrapper img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color, #0f172a);
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.blog-card-excerpt {
  color: var(--text-muted, #64748b);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
  flex: 1;
}

.blog-card-link {
  color: var(--primary-color, #14532d);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  transition: gap 0.2s ease;
}

.blog-card:hover .blog-card-link {
  color: var(--primary-color-dark, #0f3d21);
}

/* Blog Detail Page */
.blog-detail-banner-card {
  width: 100%;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: var(--border-radius, 12px);
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
  box-sizing: border-box;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .blog-detail-banner-card {
    min-height: 400px;
    padding: 4rem;
  }
}

.blog-detail-banner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: white;
}

.blog-detail-banner-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.blog-detail-banner-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

@media (max-width: 767px) {
  .blog-detail-banner-title {
    font-size: 1.75rem;
  }
}

.blog-detail-banner-sub {
  font-size: 1.05rem;
  opacity: 0.9;
  line-height: 1.5;
  margin: 0;
}

.blog-detail-paragraph {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 1.25rem;
}

/* Comments Styling */
.blog-comment-item {
  display: flex;
  gap: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 1.25rem;
  border-radius: 8px;
}

.blog-comment-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #cbd5e1;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.blog-comment-content {
  flex: 1;
}

.blog-comment-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  align-items: center;
}

.blog-comment-author {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-color, #0f172a);
}

.blog-comment-date {
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
}

.blog-comment-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #334155;
}

.no-comments-msg {
  color: var(--text-muted, #64748b);
  font-style: italic;
  font-size: 0.9rem;
  text-align: center;
  padding: 1.5rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  margin: 0;
}

/* --- Compact Product Details & Mobile Alignment --- */
.detail-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.5rem;
  flex: 1;
  min-width: 320px;
}

.detail-title {
  font-size: 1.25rem !important;
  font-weight: 700;
  color: var(--text-color);
  margin: 0 0 2px 0 !important;
  line-height: 1.25;
}

.detail-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 1px !important;
  margin-bottom: 6px !important;
  font-size: 0.8rem !important;
}

.detail-rating-row span {
  font-size: 0.8rem !important;
}

.detail-price {
  font-size: 1.35rem !important;
  font-weight: 700;
  color: var(--primary-color);
}

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

.detail-section {
  margin-bottom: 0.4rem !important;
}

.detail-section-title {
  font-size: 0.78rem !important;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 4px;
}

.product-action-row {
  display: flex;
  align-items: center;
  gap: 8px !important;
  margin: 0.5rem 0 !important;
  flex-wrap: nowrap !important; /* Force same line always */
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem !important;
  width: 100%;
}

.product-action-row .quantity-control {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  height: 36px !important;
  background: white;
  width: 100px !important; /* Widened to 100px to prevent clipping */
}

.product-action-row .qty-btn {
  width: 32px !important; /* Increased width */
  height: 100%;
  border: none;
  background: #f1f5f9 !important; /* Distinct grey background */
  color: #475569 !important; /* Normal slate text instead of bold black */
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 400 !important; /* Normal weight instead of bold */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  user-select: none;
}

.product-action-row .qty-btn:hover {
  background: #e2e8f0 !important;
}

.product-action-row .qty-input {
  width: 36px !important; /* Increased width */
  height: 100%;
  border: none;
  text-align: center;
  font-weight: 500 !important; /* Normal/medium weight instead of bold */
  font-size: 0.9rem;
  color: #1e293b !important;
  background: white !important;
}

.product-action-row .btn-add-to-cart {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
  height: 36px !important;
  font-weight: 600;
  padding: 0 10px !important;
  font-size: 0.75rem !important;
  flex: 1.2 !important;
  min-width: 0 !important;
  white-space: nowrap;
  border-radius: 8px !important; /* Changed from 20px to 8px to match others */
  cursor: pointer;
  border: none !important;
}

.product-action-row .btn-buy-now {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
  height: 36px !important;
  font-weight: 600;
  padding: 0 10px !important;
  font-size: 0.75rem !important;
  flex: 1 !important;
  min-width: 0 !important;
  white-space: nowrap;
  border-radius: 8px !important; /* Changed from 20px to 8px to match others */
  cursor: pointer;
  border: none !important;
}

.product-action-row .wishlist-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  cursor: pointer;
  flex-shrink: 0;
}

.product-metadata-block {
  display: flex;
  flex-direction: column;
  gap: 4px !important;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}

.product-metadata-block > div {
  font-size: 0.78rem !important;
}

/* Related Products View Options Button (Outline style) */
.btn-outline-green {
  background-color: transparent !important;
  border: 1px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  transition: all 0.2s ease;
}

.btn-outline-green:hover {
  background-color: var(--primary-color) !important;
  color: white !important;
}

@media (max-width: 480px) {
  .product-action-row .btn-add-to-cart,
  .product-action-row .btn-buy-now {
    font-size: 0.7rem !important;
    padding: 0 6px !important;
  }
}

/* Size Pills sizing override in product details */
.product-detail-flex-container .pill {
  font-size: 0.8rem !important;
  padding: 0.35rem 0.75rem !important;
}

/* Description font size slightly scaled down */
.detail-desc,
.product-detail-tabs .detail-desc {
  font-size: 0.88rem !important;
  line-height: 1.6 !important;
}

/* Card action buttons outline style globally (Shop, Home, and Related products) */
.product-card .btn-primary,
.product-card .btn-outline-green {
  background-color: white !important;
  color: var(--primary-color) !important;
  border: 0.75px solid rgba(20, 83, 45, 0.4) !important;
  border-radius: 8px !important;
  transition: all 0.2s ease-in-out !important;
  font-weight: 600 !important;
  font-size: 0.7rem !important;        /* Compressed text size */
  padding: 5px 10px !important;         /* Compressed padding */
  height: 30px !important;             /* Standardized height */
  line-height: 18px !important;        /* Standardized alignment */
  width: 100% !important;
  margin: 8px 0 0 0 !important;        /* Standardized margin */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.product-card .btn-primary:hover,
.product-card .btn-outline-green:hover {
  background-color: var(--primary-color) !important;
  color: white !important;
  border-color: var(--primary-color) !important;
}

/* --- Mobile View Layout Refinements --- */
@media (max-width: 768px) {
  /* Prevent clipping on product detail right-hand column and align borders */
  .detail-left, 
  .detail-right {
    min-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Center footer social links as a single clean row */
  .footer-social-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
  }
  .mobile-only-social {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
  }

  /* Force horizontal overflow safety on mobile view */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Keep homepage blog cards 3 in a line matching collection section padding */
  #home-blog-posts-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* 3 in a line */
    gap: 8px !important;
    width: 100% !important;
    padding: 0 !important; /* Aligns side borders perfectly with parent container */
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  #home-blog-posts-container .blog-card {
    width: 100% !important;
    min-width: 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
  }
  #home-blog-posts-container .blog-card-img-wrapper {
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
  }
  #home-blog-posts-container .blog-card-content {
    padding: 4px !important;
  }
  #home-blog-posts-container .blog-card-tag {
    font-size: 0.45rem !important; /* Reduced tag size to fit */
    margin-bottom: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  #home-blog-posts-container .blog-card-title {
    font-size: 0.55rem !important; /* Reduced title size to fit */
    height: 26px !important;
    margin-bottom: 2px !important;
    line-height: 1.25 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  #home-blog-posts-container .blog-card-link {
    font-size: 0.52rem !important; /* Reduced link size to fit */
  }

  /* Fit 3 reviews in frame side-by-side with maintaining border alignment */
  .testimonials-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* 3 in a line */
    gap: 8px !important;
    width: 100% !important;
    padding: 0 !important; /* Aligns side borders perfectly with parent container */
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  .testimonial-card {
    padding: 6px !important; /* Shrunk padding to fit */
    border-radius: 8px !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
  }
  .testimonial-user {
    flex-direction: column !important; /* Stack user content vertically */
    align-items: center !important;
    text-align: center !important;
    margin-bottom: 4px !important;
    gap: 2px !important;
  }
  .testimonial-user-info {
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
    width: 100% !important;
  }
  .testimonial-user-info img {
    width: 20px !important; /* Shrunk avatar size */
    height: 20px !important;
  }
  .testimonial-user-info h4 {
    font-size: 0.6rem !important; /* Increased user name size */
    margin: 0 !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    text-align: center !important;
  }
  .testimonial-user-info span {
    font-size: 0.5rem !important; /* Increased date size */
    display: block !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .testimonial-quote-icon {
    display: none !important; /* Hide quote icon */
  }
  .testimonial-rating {
    font-size: 0.5rem !important; /* Shrunk star size */
    margin-bottom: 4px !important;
    text-align: center !important;
  }
  .testimonial-rating span {
    font-size: 0.5rem !important;
  }
  .testimonial-card p {
    font-size: 0.62rem !important; /* Increased review text size for legibility */
    line-height: 1.25 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important; /* Limit lines to prevent vertical overflow */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-align: center !important;
  }

  /* General scaling down of section header titles across pages */
  .section-header h2,
  section h2,
  .category-title,
  .related-products-section h2,
  #page-home h2,
  .blog-detail-title {
    font-size: 1.2rem !important; /* Scaled down section headers for home and others */
  }

  /* Homepage product collection tab buttons in a single line with smaller text */
  body:has(#page-home.active) .tabs-container {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: center !important; /* Center on tablets or wider screens */
    gap: 6px !important;
    margin-bottom: 1rem !important;
    scrollbar-width: none;
    width: 100%;
    padding: 0 10px 5px 10px !important;
  }
  body:has(#page-home.active) .tabs-container::-webkit-scrollbar {
    display: none;
  }
  body:has(#page-home.active) .tabs-container .tab-btn {
    flex: 0 0 auto !important;
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
    border-radius: 15px !important;
    white-space: nowrap !important;
  }
}

/* ==========================================================================
   GLOBAL TYPOGRAPHY OPTIMIZATION & COMPACTNESS (SCALE DOWN TEXT SIZES)
   ========================================================================== */

/* Global body font scaling */
body {
  font-size: 0.9rem !important; /* Shrunk from 0.95rem/1rem */
}
.logo {
  font-size: 1.3rem !important; /* Shrunk from 1.5rem brand name/logo */
}

/* Headings scale down */
h1 {
  font-size: 1.8rem !important;
}
h2, .page-header h2 {
  font-size: 1.45rem !important;
}
h3, .section-header h2 {
  font-size: 1.15rem !important;
}
h4 {
  font-size: 1.0rem !important;
}

/* Page banners scale down */
@media (min-width: 768px) {
  .page-banner h2 {
    font-size: 2.6rem !important; /* Shrunk from 3.5rem */
  }
}
@media (max-width: 767px) {
  .page-banner h2 {
    font-size: 1.25rem !important; /* Shrunk from 1.5rem */
  }
}

/* Desktop and mobile navigation links scale down */
.desktop-nav a {
  font-size: 0.88rem !important; /* Shrunk from 0.95rem */
}
.cart-icon {
  font-size: 0.82rem !important; /* Shrunk from 0.9rem */
}
.badge {
  font-size: 0.7rem !important;
}
#search-input {
  font-size: 0.9rem !important;
}

/* Product list grid cards text sizes scale down */
.product-title {
  font-size: 0.9rem !important; /* Shrunk from 1rem */
}
.product-desc {
  font-size: 0.8rem !important; /* Shrunk from 0.85rem */
}
.product-price {
  font-size: 1.05rem !important; /* Shrunk from 1.2rem */
}
.product-old-price {
  font-size: 0.82rem !important; /* Shrunk from 0.95rem */
}

/* Buttons default size scale down */
.btn, .coupon-btn, .checkout-btn, .continue-shopping {
  font-size: 0.82rem !important; /* Shrunk from 0.9rem */
}

/* FAQ sidebar and question accordion texts scale down */
.faq-tab-btn {
  font-size: 0.8rem !important;
  padding: 8px 12px !important;
}
.faq-accordion-header {
  font-size: 0.85rem !important;
  padding: 0.8rem 1rem !important;
}
.faq-accordion-header .faq-toggle-icon {
  font-size: 1.0rem !important;
}
.faq-accordion-body p {
  font-size: 0.78rem !important;
  line-height: 1.5 !important;
  padding-bottom: 0.8rem !important;
}

/* Blog list titles and links scale down */
.blog-card-title {
  font-size: 0.95rem !important;
}
.blog-card-excerpt {
  font-size: 0.8rem !important;
}
.blog-card-link {
  font-size: 0.75rem !important;
}

/* Product detail metadata and forms scale down */
.product-detail-flex-container label,
.product-detail-flex-container select,
.product-metadata-block {
  font-size: 0.8rem !important;
}

@media (max-width: 768px) {
  /* Mobile-specific text scale down optimizations */
  body {
    font-size: 0.85rem !important;
  }
  .logo {
    font-size: 0.95rem !important; /* Shrunk mobile logo/brand text size */
  }
  h1 {
    font-size: 1.2rem !important;
  }
  h2 {
    font-size: 0.8rem !important; /* Reduced section headers size on mobile */
  }
  .page-header h2 {
    font-size: 1.3rem !important; /* Scaled up page title on mobile */
    margin-bottom: 0.25rem !important;
  }
  .page-header p {
    font-size: 0.8rem !important; /* Scaled down page subtitle on mobile */
    line-height: 1.4 !important;
  }
  body:has(#page-home.active) .section-header h2,
  h3, .section-header h2 {
    font-size: 1.00rem !important; /* Set Home section titles size to 1.00rem on mobile */
    line-height: 1.2 !important;
  }
  .section-header span {
    font-size: 0.52rem !important; /* Shrunk subtitle font size */
  }
  .category-title {
    font-size: 1.0rem !important; /* Set Shop page category title size to 1.0rem on mobile */
    line-height: 1.2 !important;
  }
  .product-title {
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
    height: 28px !important; /* Exactly 2 lines */
    margin: 0 0 2px 0 !important; /* Decreased margin-bottom to prevent overlaps */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  .product-price {
    font-size: 0.85rem !important;
  }
  .product-desc {
    font-size: 0.72rem !important;
  }

  /* Reduce vertical padding gaps and button margin spacing to give titles more room */
  .product-info {
    padding: 6px 6px 0px 6px !important;
  }
  .product-card > div:last-child {
    padding: 0px 6px 6px 6px !important;
  }
  .product-card .btn-primary,
  .product-card .btn-outline-green,
  .qty-selector-inline {
    margin-top: 3px !important;
  }

  /* Aligns current price, original price, and rating on a single line with minimal gaps */
  .product-price-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-top: 4px !important; /* Increased slightly to create a very little vertical gap from title */
    gap: 2px !important;
  }
  .product-price-row > div {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 3px !important; /* Shrunk current and original price inner gap */
  }
  .product-price-row .current-price {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
  }
  .product-price-row .product-old-price,
  .product-price-row .old-price {
    font-size: 0.58rem !important; /* Shrunk original price font size */
    text-decoration: line-through !important;
    margin-left: 0px !important;
    white-space: nowrap !important;
    color: var(--text-muted, #64748b) !important;
  }
  .product-price-row .product-rating {
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    color: #d97706 !important;
    white-space: nowrap !important;
    margin-left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  /* Fixed Mobile Top Navigation Bar positioning (sticky) */
  .sticky-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background-color: var(--card-bg) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
  }
  
  /* Page content offsets to clear fixed header */
  .main-content {
    margin-top: 34px !important; /* Pushes page content down below the fixed navbar */
  }

  /* Shop page banner offset to clear navbar on mobile (no overlap) */
  body:has(#page-shop.active) #hero-banner-container,
  #general-page-banner-container {
    margin-top: 34px !important; /* Clears navbar exactly on mobile viewports */
  }



  /* Push main content on Shop page when banner is not visible */
  body:has(#page-shop.active) .main-content {
    margin-top: 34px !important;
  }

  /* Spacing when Shop banner is visible */
  body:has(#page-shop.active) #hero-banner-container[style*="display: block"] + .main-content,
  #general-page-banner-container[style*="display: block"] + .main-content {
    margin-top: 15px !important; /* Flows naturally below the banner */
  }

  /* Compact Mobile Navigation Bar Sizing & Balancing */
  .navbar {
    padding: 0.5rem 10px !important;
  }
  .logo-nav-group {
    gap: 0.4rem !important;
  }
  #store-logo {
    gap: 0.4rem !important;
  }
  #store-logo img {
    max-height: 26px !important; /* Scaled up logo img */
  }
  #store-logo span {
    font-size: 0.9rem !important; /* Scaled up branding name */
  }
  .nav-actions {
    gap: 0.35rem !important;
  }
  .nav-btn {
    padding: 4px !important;
    width: 28px !important; /* Scaled up action icon buttons */
    height: 28px !important;
  }
  .nav-btn svg, #mobile-menu-toggle-btn svg, #nav-account-link svg {
    width: 16px !important; /* Scaled up icons SVGs size */
    height: 16px !important;
  }
  .cart-icon {
    padding: 0.15rem 0.25rem !important; /* Balanced cart button layout (kept original as requested) */
    font-size: 0.62rem !important; /* Balanced cart text size (kept original as requested) */
  }
  #mobile-menu-toggle-btn {
    padding: 4px !important;
    width: 28px !important;
    height: 28px !important;
  }
  #nav-profile-pic {
    width: 26px !important; /* Scaled up user profile avatar size */
    height: 26px !important;
  }

  /* Mobile Product Tags Scaling down to 0.52rem */
  .badge-discount,
  .badge-custom-tag {
    font-size: 0.52rem !important;
    padding: 2px 5px !important;
    top: 6px !important;
    left: 6px !important;
    border-radius: 12px !important;
  }
  .badge-custom-tag {
    left: auto !important;
    right: 6px !important;
  }

  /* Mobile Options Selector Scale Down (Fits inline inside small card viewports) */
  .options-popup {
    padding: 4px !important;
    border-radius: 6px 6px 0 0 !important;
  }
  .options-popup > div:first-child {
    margin-bottom: 4px !important;
  }
  .options-popup h4 {
    font-size: 0.58rem !important;
    margin: 0 !important;
  }
  .options-popup .popup-price {
    font-size: 0.62rem !important;
  }
  .options-popup .pill-group {
    gap: 2px !important;
    margin-bottom: 4px !important;
  }
  .options-popup .pill {
    padding: 2px 4px !important;
    font-size: 0.52rem !important;
    border-radius: 3px !important;
    margin: 0 !important;
  }
  .options-popup .btn-primary,
  .options-popup .btn-primary.btn-outline-green {
    font-size: 0.52rem !important;
    padding: 1px 4px !important;
    height: 18px !important; /* Reduced button height inside mobile option selector popup */
    margin-top: 4px !important;
    border-radius: 4px !important;
    line-height: 1 !important;
  }

  /* Mobile Blog Card edge curve alignment */
  .blog-card {
    border-radius: 8px !important;
  }
  .blog-card-img-wrapper {
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
  }

  /* Homepage Compact Blog Cards edge curve alignment and 3-line title clamp */
  #home-blog-posts-container .blog-card {
    border-radius: 8px !important;
  }
  #home-blog-posts-container .blog-card-img-wrapper {
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
  }
  #home-blog-posts-container .blog-card-content {
    padding: 4px !important;
  }
  #home-blog-posts-container .blog-card-title {
    font-size: 0.55rem !important;
    height: 38px !important; /* Increased height to fit 3 lines */
    margin-bottom: 2px !important;
    line-height: 1.25 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important; /* Changed from 2 to 3 lines */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  /* Footer Spacing and Title Line Gaps */
  .footer-col-header {
    padding: 0.2rem 0 !important; /* Reduced vertical gap */
  }
  .footer-col h3.footer-logo {
    font-size: 0.85rem !important; /* Reduced footer branding title size */
    margin: 0 !important;
    line-height: 1.1 !important;
  }
  .footer-col h4 {
    font-size: 0.75rem !important; /* Reduced footer menu headers size */
    margin: 0 !important;
    line-height: 1.1 !important;
  }
  .footer-toggle-btn {
    padding: 4px !important; /* Reduced button padding */
  }
  .footer-social-container {
    margin-top: 0px !important; /* Removed vertical spacing over social container */
    margin-bottom: 0px !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
  }
  .mobile-only-social {
    margin-top: 0px !important; /* Removed space over mobile social icons */
    margin-bottom: 0.5rem !important;
    gap: 20px !important; /* Reduced icon gap width */
  }
  .footer-social-links a svg {
    width: 18px !important; /* Reduced SVG dimensions for social links */
    height: 18px !important;
  }

  /* Compact mobile navigation sidebar menu */
  .mobile-menu-header {
    padding: 0.75rem 1rem !important;
  }
  .mobile-menu-header h3 {
    font-size: 1.1rem !important;
  }
  .mobile-menu-links {
    padding: 0.5rem 0 !important;
  }
  .mobile-menu-links a {
    padding: 0.5rem 1.2rem !important; /* Shrunk line gap significantly */
    font-size: 0.82rem !important;
  }
}

/* Desktop View Banner Content Alignment (Aligns pages content with the 1200px max-width banner) */
@media (min-width: 900px) {
  /* Aligns pages content boxes with the 1200px max-width banner, except home, shop, and FAQs */
  .page-section:not(#page-home):not(#page-shop):not(#page-faq):not(#page-account) .box-card {
    max-width: 1200px !important;
    margin: 0 auto;
  }
  
  /* Logged-in customer account dashboard stretch to 1200px banner width */
  .account-dashboard-wrapper {
    max-width: 1200px !important;
    margin: 0 auto;
  }

  /* Stretch the track page layout container to 1200px banner width */
  .track-layout-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
  }

  /* Blog page grids (list and detail views) stretch to 1200px banner width */
  #page-blog .container {
    max-width: 1200px !important;
  }
}


