/* css/style.css - High Contrast, Accessible E-Commerce Styles */

:root {
  /* Colors */
  --header-dark: #1a1a1a;
  --logo-text: #1a1a1a;
  --nav-text: #1a1a1a;
  --search-btn: #005fa3;   /* Darkened from #0077C8 for AA contrast on white */
  --hero-blue: #7BCFE9;
  --alert-box-bg: #FFFFFF;
  --alert-box-border: #000000;

  --color-bg: #FFFFFF;
  --color-text: #1a1a1a;          /* Near-black — 15.3:1 contrast on white. WCAG AAA */
  --color-muted: #595959;         /* Replaces #888 gray — 7:1 on white. WCAG AA */
  --color-primary: #005fa3;       /* Slightly darker blue — 4.6:1 on white */
  --color-primary-dark: #004b82;

  /* WCAG AA compliant font scale — increased for seniors/low vision */
  --font-base: 1.2rem;            /* Was 1.1rem — minimum recommended for low vision */
  --font-large: 1.4rem;           /* Was 1.3rem */
  --font-xlarge: 2rem;            /* Was 1.8rem */
  --font-hero: 2.8rem;            /* Was 2.5rem */

  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  --border-radius: 4px;
  --border-width: 2px;
  --color-accent: #FFCC00;
  --color-focus: #005fa3;         /* Strong visible focus colour */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.15);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --transition: all 0.2s ease-in-out;
  
  /* Toast Notifications */
  --toast-success: #22c55e;
  --toast-error: #ef4444;
  --toast-warning: #f59e0b;
  --toast-info: #3b82f6;
}


* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: var(--font-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-100%);
  background: var(--color-accent);
  color: var(--color-text);
  padding: var(--spacing-md);
  z-index: 9999;
  font-weight: bold;
  text-decoration: none;
  border: var(--border-width) solid var(--color-text);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* === FOCUS STATES — WCAG 2.1 SC 2.4.7 & 2.4.11 ===
 * Visible on ALL interactive elements, not just keyboard.
 * 3px solid ring + 2px white halo = readable on any background.
 */
*:focus-visible {
  outline: 3px solid var(--color-focus) !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--color-focus) !important;
  border-radius: 2px;
}

/* Remove default outline only when using mouse — keep for keyboard */
:focus:not(:focus-visible) {
  outline: none;
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: white;
  border-left: 4px solid;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 300px;
  max-width: 450px;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  animation: slideInRight 0.3s ease-out forwards;
  opacity: 0;
  transform: translateX(100%);
}

.toast.success { border-left-color: var(--toast-success); }
.toast.error { border-left-color: var(--toast-error); }
.toast.warning { border-left-color: var(--toast-warning); }
.toast.info { border-left-color: var(--toast-info); }

.toast-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.toast.success .toast-icon { color: var(--toast-success); }
.toast.error .toast-icon { color: var(--toast-error); }
.toast.warning .toast-icon { color: var(--toast-warning); }
.toast.info .toast-icon { color: var(--toast-info); }

.toast-message {
  flex: 1;
  font-size: var(--font-base);
  color: var(--color-text);
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-muted);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.toast-close:hover {
  background: #f1f1f1;
  color: var(--color-text);
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast.hiding {
  animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* ========================================
   LOADING SPINNER
   ======================================== */
.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0,0,0,0.1);
  border-left-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner-sm {
  width: 24px;
  height: 24px;
  border-width: 3px;
}

.spinner-lg {
  width: 60px;
  height: 60px;
  border-width: 5px;
}

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

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-overlay .spinner {
  background: white;
  padding: var(--spacing-lg);
  border-radius: 50%;
}

/* Price Rendering: Actual vs Sale */
.card-price-was,
.pdp-price-was {
    text-decoration: line-through;
    color: var(--color-muted);
    font-size: 0.9em;
    margin-left: 8px;
}

.pdp-price-now {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
}

.card-save-badge,
.pdp-save-badge {
    background: #ff2d55; /* Vibrant Pink/Red */
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    margin-top: 8px;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(255, 45, 85, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-savings-summary {
    background: #f0fdf4;
    border: 2px dashed #22c55e;
    color: #15803d;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
    animation: pulse-green 2.5s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); transform: scale(1); }
  50% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); transform: scale(1.02); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); transform: scale(1); }
}

/* ========================================
   FORM VALIDATION STYLES
   ======================================== */
.form-group {
  margin-bottom: var(--spacing-md);
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px solid #ccc;
  border-radius: var(--border-radius);
  font-size: var(--font-base);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,95,163,0.1);
}

.form-group.valid input,
.form-group.valid textarea {
  border-color: var(--toast-success);
  background-color: #f0fdf4;
}

.form-group.invalid input,
.form-group.invalid textarea {
  border-color: var(--toast-error);
  background-color: #fef2f2;
}

.form-error-message {
  color: var(--toast-error);
  font-size: 0.9rem;
  margin-top: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-error-message::before {
  content: '⚠️';
  font-size: 1rem;
}

.form-success-message {
  color: var(--toast-success);
  font-size: 0.9rem;
  margin-top: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-success-message::before {
  content: '✓';
  font-size: 1rem;
  font-weight: bold;
}

/* ========================================
   LOCAL SVG PLACEHOLDER
   ======================================== */
.img-placeholder {
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 3rem;
  min-height: 200px;
}

.img-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.3;
}

/* Typography */
h1, h2, h3 { color: var(--color-primary); margin-bottom: var(--spacing-md); font-weight: 800; }
h1 { font-size: var(--font-hero); line-height: 1.2; }
h2 { font-size: var(--font-xlarge); }
h3 { font-size: var(--font-large); }

a { color: var(--color-primary); text-decoration: underline; text-decoration-thickness: 2px; font-weight: bold; }
a:hover, a:focus { background-color: var(--color-accent); color: var(--color-text); text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-lg); }

/* Header */
header { background-color: #FFFFFF; border-bottom: 2px solid #EEEEEE; padding: 20px 0; transition: all 0.4s ease; }

/* Transparent Header for Home Page */
body.home-page header {
    background: transparent;
    border-bottom: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    padding: 15px 0;
}
body.home-page .main-nav {
    background: transparent;
    border: none;
    box-shadow: none;
}
body.home-page header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    position: fixed;
    top: 0;
    z-index: 1002;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: nowrap; /* Single row always on desktop */
}

/* Base Display: Hide Mobile Components on Desktop */
.mobile-nav-drawer, 
.mobile-bottom-nav,
.hamburger-btn {
    display: none;
}

.logo { display: flex; flex-direction: column; }
.logo a {
  color: var(--logo-text);
  text-decoration: none;
  font-size: 1.6rem; /* Slightly smaller logo for efficiency */
  font-weight: 900;
  line-height: 1;
}
.tagline { 
  font-size: 1rem; 
  color: var(--logo-text); 
  font-weight: normal; 
  margin-top: 5px; 
}

.search-form {
  display: flex;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  overflow: visible;
  max-width: 500px;
  flex-grow: 1;
  transition: var(--transition);
  position: relative;
}
.search-form:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 95, 163, 0.1);
  background: #fff;
}
.search-form input {
  padding: 12px 20px;
  border: none;
  background: transparent;
  flex-grow: 1;
  font-size: 1rem;
  color: var(--color-text);
}
.search-form button {
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 10px 25px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.search-form button:hover { background-color: var(--color-primary-dark); }

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: nowrap;
}

.header-actions .btn-wishlist-header, 
.header-actions .btn-cart-header, 
.header-actions .btn-account-header {
  display: flex;
  flex-direction: row; /* Horizontal on Desktop */
  align-items: center;
  gap: 8px; /* Space between icon and text */
  justify-content: center;
  background: transparent;
  color: var(--color-text);
  border: none;
  padding: 8px 14px;
  position: relative;
  text-decoration: none !important;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: none; /* Keep it elegant, not screaming UPPERCASE */
  min-width: unset; /* Remove big min-width */
  transition: var(--transition);
  border-radius: 10px;
  height: 42px; /* Consistent height */
}

.header-actions .btn-wishlist-header:hover, 
.header-actions .btn-cart-header:hover, 
.header-actions .btn-account-header:hover {
  background: rgba(0,0,0,0.05);
}

.btn-wishlist-header svg, .btn-cart-header svg, .btn-account-header svg {
  width: 20px !important; /* Smaller icons on desktop */
  height: 20px !important;
  color: #475569;
}

.header-avatar-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--color-primary);
  margin-bottom: 2px;
}

.header-action-label {
  display: block;
  margin-top: 2px;
}

.auth-header-links {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-right: 10px;
}

.btn-login-compact, .btn-signup-compact {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-login-compact {
  color: var(--color-text);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.btn-login-compact:hover {
  background: #e2e8f0;
  color: var(--color-primary);
}

.btn-signup-compact {
  background: var(--color-accent);
  color: #000;
  border: 1px solid var(--color-accent);
  box-shadow: 0 4px 12px rgba(255, 204, 0, 0.2);
}

.btn-signup-compact:hover {
  background: #ffdb4d;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 204, 0, 0.3);
}

body.home-page header:not(.scrolled) .btn-login-compact {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

body.home-page header:not(.scrolled) .header-actions .btn-account-header {
  color: #fff;
}

.logout-link-header {
  color: #94a3b8 !important;
  min-width: 40px !important;
  margin-left: -5px;
}

.logout-link-header:hover {
  color: #ef4444 !important;
}

/* Mobile Auth Links */
.mobile-only-link-group {
    display: none;
    border-top: 1px solid #e2e8f0;
    margin-top: 15px;
    padding-top: 15px;
    flex-direction: column;
    gap: 10px;
}

.mobile-auth-link {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 15px 20px !important;
    border-radius: 12px;
    font-weight: 800 !important;
    text-decoration: none !important;
    font-size: 1rem !important;
}

.mobile-auth-link.join { background: #fffbeb; color: #b45309 !important; border: 1px solid #fef3c7; }
.mobile-auth-link.logout { color: #ef4444 !important; }

@media (max-width: 768px) {
    .mobile-only-link-group {
        display: flex;
    }
    
    .auth-header-links {
        display: none; /* Hide compact links on mobile header, use menu instead */
    }
    
    .mobile-tab-bar { display: flex; }
}

body.home-page header:not(.scrolled) .btn-wishlist-header,
body.home-page header:not(.scrolled) .btn-cart-header {
  color: #fff;
}

.btn-wishlist-header:hover, .btn-cart-header:hover {
  background: rgba(0,0,0,0.03);
  color: var(--color-primary);
  border-radius: 8px;
}

body.home-page header:not(.scrolled) .btn-wishlist-header:hover,
body.home-page header:not(.scrolled) .btn-cart-header:hover {
  background: rgba(255,255,255,0.1);
  color: var(--color-accent);
}

.btn-wishlist-header svg, .btn-cart-header svg {
  margin-bottom: 4px;
}

.cart-count-badge {
  position: absolute;
  top: 0;
  right: 10px;
  background: var(--color-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

body.home-page header:not(.scrolled) .cart-count-badge {
  background: var(--color-accent);
  color: #000;
  border-color: #000;
}

/* Navigation */
/* Navigation Overhaul */
.main-nav {
  background: #FFFFFF;
  padding: 0;
  border-top: 1px solid #EEEEEE;
  border-bottom: 2px solid #EEEEEE;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.nav-links { 
  display: flex; 
  flex-wrap: nowrap; 
  gap: 0; 
  justify-content: center;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-links li {
  position: relative;
}

.nav-links a {
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

body.home-page header:not(.scrolled) .nav-links a,
body.home-page header:not(.scrolled) .logo a,
body.home-page header:not(.scrolled) .tagline {
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

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

.nav-links a[aria-current="page"] {
  color: var(--color-primary);
}

.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px 2px 0 0;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 600px;
    max-height: 800px;
    height: auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 60px;
    background-color: #1a2e1a;
}

/* Ensure hero background loads properly */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: inherit;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    color: #FFFFFF;
}

.hero-overline {
    display: block;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--color-accent);
    font-size: 1rem;
    opacity: 0.9;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 30px;
    color: #fff;
    letter-spacing: -3px;
}

.text-accent-hero {
    color: var(--color-accent);
    display: inline-block;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 400;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Animations */
.animate-1 { opacity: 0; animation: fadeInUp 0.8s ease-out forwards; }
.animate-2 { opacity: 0; animation: fadeInUp 0.8s ease-out 0.2s forwards; }
.animate-3 { opacity: 0; animation: fadeInUp 0.8s ease-out 0.4s forwards; }
.animate-4 { opacity: 0; animation: fadeInUp 0.8s ease-out 0.6s forwards; }
.animate-5 { opacity: 0; animation: fadeInUp 0.8s ease-out 0.8s forwards; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- Mobile Responsive Overlay & Hamburger --- */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background: var(--color-text);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

body.home-page .hamburger-line {
    background: #FFFFFF;
}

body.home-page header.scrolled .hamburger-line {
    background: var(--color-text);
}

.hamburger-btn.is-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger-btn.is-open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger-btn.is-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
}

/* --- Mobile Media Queries (Under 768px) --- */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .header-top {
        gap: 15px;
    }

    .search-form {
        order: 3;
        width: 100%;
        max-width: none;
        margin-top: 10px;
    }

    .header-actions {
        gap: 10px;
    }

    .header-actions .btn {
        padding: 8px 12px;
        font-size: 0.9rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Mobile Navigation Drawer */
    .main-nav {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: #FFFFFF;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1001;
        padding-top: 80px;
        overflow-y: auto;
    }

    .main-nav.nav-open {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #EEEEEE;
    }

    .nav-links a {
        padding: 15px 0;
        font-size: 1.1rem;
        width: 100%;
        justify-content: flex-start;
    }

    /* Grid Adjustments */
    .grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .hero-title {
        font-size: 2.22rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .product-gallery-img {
        max-height: 300px;
    }

    .container {
        padding: 0 15px;
    }

    /* Fix Form Inputs Overflowing */
    input, textarea, select {
        max-width: 100%;
    }

    .form-group input, .form-group textarea {
        width: 100% !important;
    }

    /* Touch Targets for Buttons */
    .btn, button, .qty-btn, .remove-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

@media (max-width: 992px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    #cart-total-display {
        font-size: 1.8rem;
    }
}

/* --- Buttons (Premium) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  gap: 10px;
  line-height: 1;
}

.btn-primary {
  background: var(--color-primary);
  color: white !important;
  box-shadow: 0 4px 15px rgba(0, 95, 163, 0.25);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 95, 163, 0.35);
}

.btn-accent {
  background: var(--color-accent);
  color: #1a1a1a !important;
  box-shadow: 0 4px 15px rgba(255, 204, 0, 0.25);
}

.btn-accent:hover {
  background: #ffdb4d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 204, 0, 0.35);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary) !important;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 95, 163, 0.2);
}

/* Specific fix for hero section buttons to stay white on dark bg */
.hero-section .btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: white !important;
}

.hero-section .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.btn-massive {
  padding: 18px 45px;
  font-size: 1.15rem;
}
.about-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.about-section {
  margin-bottom: 60px;
}

.about-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--spacing-lg);
  position: relative;
  display: inline-block;
}

.about-section h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
}

.about-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #475569;
}

.about-image-wrapper {
  margin-bottom: 40px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid white;
}

.about-image-wrapper img {
  width: 100%;
  display: block;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: var(--spacing-xl);
}

.value-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

.value-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--color-text);
}

.value-card p {
  font-size: 0.95rem;
  color: #64748B;
  line-height: 1.5;
}

.about-cta {
  background: var(--color-secondary);
  padding: 60px;
  border-radius: 30px;
  text-align: center;
  margin-top: 40px;
  border: 2px dashed var(--color-primary);
}

@media (max-width: 768px) {
  .features-grid { gap: 30px; }
  .categories-list { font-size: 1.25rem; }
  .footer-links { gap: 15px; flex-direction: column; align-items: center; }
}

/* --- Mobile Responsive Overlay & Hamburger --- */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background: var(--color-text);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

body.home-page .hamburger-line {
    background: #FFFFFF;
}

body.home-page header.scrolled .hamburger-line {
    background: var(--color-text);
}

.hamburger-btn.is-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger-btn.is-open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger-btn.is-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
}

/* --- Mobile Media Queries (Under 768px) --- */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .header-top {
        gap: 15px;
    }

    .search-form {
        order: 3;
        width: 100%;
        max-width: none;
        margin-top: 10px;
    }

    .header-actions {
        gap: 10px;
    }

    .header-actions .btn {
        padding: 8px 12px;
        font-size: 0.9rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Mobile Navigation Drawer */
    .main-nav {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: #FFFFFF;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1001;
        padding-top: 80px;
        overflow-y: auto;
    }

    .main-nav.nav-open {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #EEEEEE;
    }

    .nav-links a {
        padding: 15px 0;
        font-size: 1.1rem;
        width: 100%;
        justify-content: flex-start;
    }

    /* Grid Adjustments */
    .grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .hero-title {
        font-size: 2.22rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .product-gallery-img {
        max-height: 300px;
    }

    .container {
        padding: 0 15px;
    }

    /* Fix Form Inputs Overflowing */
    input, textarea, select {
        max-width: 100%;
    }

    .form-group input, .form-group textarea {
        width: 100% !important;
    }

    /* Touch Targets for Buttons */
    .btn, button, .qty-btn, .remove-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Extra Small Devices (Under 480px) */

/* --- Checkout Layout --- */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--spacing-xl);
    align-items: start;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--color-text);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #E2E8F0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

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

@media (max-width: 992px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    #cart-total-display {
        font-size: 1.8rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-accent);
    color: var(--color-text);
    transform: translateY(-5px);
}

/* --- Enhanced Product Card Elements --- */
.card-badge-container {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
}

.badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-fresh {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.badge-med {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.btn-add-quick {
    background: var(--color-secondary);
    color: var(--color-text);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.search-form {
    display: flex;
    flex-grow: 1;
    max-width: 600px;
}

.search-input-wrapper.glass-search {
    background: rgba(241, 245, 249, 0.5);
    border: 1px solid #e2e8f0;
    border-right: none;
}

.search-form input {
    background: transparent !important;
    border: none !important;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
}

.search-btn-modern {
    background: var(--color-primary);
    border: none;
    padding: 0 20px;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 4px 15px rgba(0, 95, 163, 0.15);
}

.search-btn-modern:hover {
    background: var(--color-primary-dark);
    transform: scale(1.02);
}

.search-btn-modern:active {
    transform: scale(0.98);
}

.btn-add-quick:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.05);
}

.card-link {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-muted);
    text-decoration: underline;
    margin-top: 10px;
}

.card-link:hover {
    color: var(--color-primary);
}

.card-delivery {
    font-size: 0.75rem !important;
    margin: 10px 0 0 0 !important;
}

/* --- Sticky Cart Drawer (Professional Redesign) --- */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100%;
    background: #FFFFFF; /* Clean solid background to fix blur issues */
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e2e8f0;
}

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

.cart-drawer-header {
    padding: 25px 30px;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-header h3 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #1e293b;
}

#close-cart {
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

#close-cart:hover {
    background: #e2e8f0;
    color: var(--color-primary);
    transform: rotate(90deg);
}

.cart-drawer-items {
    padding: 30px 40px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    flex: 1;
    min-height: 0; /* CRITICAL FIX: Allows flex child to shrink and overflow scroll properly */
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.cart-drawer-items::-webkit-scrollbar { width: 5px; }
.cart-drawer-items::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

/* Empty Cart Design */
.empty-cart-state {
    text-align: center;
    padding: 60px 0;
    color: #94a3b8;
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-cart-msg {
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #475569;
}

.empty-cart-sub {
    font-size: 0.95rem;
    opacity: 0.8;
}

.drawer-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f8fafc;
    transition: transform 0.2s;
}

.drawer-item:hover {
    transform: translateX(-5px);
}

.drawer-item img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.drawer-item-info {
    flex-grow: 1;
}

.drawer-item-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1e293b;
    line-height: 1.3;
}

.drawer-item-info p {
    font-size: 0.95rem;
    color: var(--color-primary);
    font-weight: 800;
}

.cart-drawer-footer {
    padding: 30px 40px;
    background: #FFFFFF;
    border-top: 1px solid #f1f5f9;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.02);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.total-label {
    font-size: 1.2rem;
    color: #64748b;
    font-weight: 600;
}

.total-amount {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-text);
    letter-spacing: -1px;
}

.cart-footer-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    opacity: 0.6;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    z-index: 1999;
    display: none;
}

.cart-overlay.active {
    display: block;
}

.btn-full {
    width: 100%;
}

@media (max-width: 480px) {
    .cart-drawer { width: 100%; right: -100%; }
}

/* --- Floating WhatsApp Button --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    text-decoration: none;
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #20BA5C;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn span {
    display: none;
}

/* Mobile Bottom Navigation - Hidden by default on desktop */
.mobile-bottom-nav {
    display: none;
}

/* ========================================
   LIVE SEARCH SUGGESTIONS
   ======================================== */
.search-input-wrapper {
  position: relative;
  flex-grow: 1;
  display: flex;
}

.search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border: 1px solid #e2e8f0;
  z-index: 2000;
  display: none;
  overflow: hidden;
  max-height: 400px;
  overflow-y: auto;
}

.search-suggestions-dropdown.active {
  display: block;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s;
}

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

.suggestion-item:hover, .suggestion-item.selected {
  background: #f8fafc;
}

.suggestion-thumb {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  background: #f1f5f9;
}

.suggestion-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.suggestion-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1e293b;
}

.suggestion-meta {
  font-size: 0.8rem;
  color: #64748b;
}

.suggestion-price {
  color: var(--color-primary);
  font-weight: 700;
}

/* ========================================
   CATEGORY GRID SECTION
   ======================================== */
.category-grid-section {
  padding: 80px 0;
  background: #fcfcfc;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px; /* More compact on desktop */
  margin: 0 auto;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-icon {
  font-size: 2.2rem; /* Clean, professional desktop size */
  margin-bottom: 12px;
}

.category-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: var(--color-primary);
}

.category-icon {
  font-size: 2.2rem; /* Shrunk from 3.5rem for better desktop look */
  margin-bottom: 20px;
  background: #f1f5f9;
  width: 80px; /* Shrunk from 100px */
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.category-card:hover .category-icon {
  background: var(--color-primary);
  color: #fff;
}

.category-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #1e293b;
}

.category-card p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Override global anchor styles for category cards */
a.category-card {
  text-decoration: none;
  color: inherit;
}

a.category-card:hover {
  background-color: transparent;
  color: inherit;
  text-decoration: none;
}

a.category-card h3 {
  color: #1e293b;
  text-decoration: none;
}

a.category-card:hover h3 {
  color: var(--color-primary);
}

/* ========================================
   PRODUCT GALLERY & VIDEO PLAYER
   ======================================== */
.pdp-gallery {
  margin-bottom: var(--spacing-lg);
}

.pdp-main-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.pdp-main-image:hover {
  transform: scale(1.02);
}

.pdp-thumbnail {
  cursor: pointer;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.2s;
  background: #f8fafc;
}

.pdp-thumbnail:hover {
  border-color: var(--color-primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,95,163,0.2);
}

.pdp-thumbnail.active {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0,95,163,0.3);
}

.pdp-thumbnail img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

/* Video Player Styles */
#main-video-container {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

#product-video {
  width: 100%;
  height: auto;
  display: block;
}

#unmute-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0,0,0,0.8);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: all 0.3s;
  z-index: 10;
}

#unmute-btn:hover {
  background: rgba(0,0,0,0.95);
  transform: scale(1.05);
}

#mute-icon {
  flex-shrink: 0;
}

/* Thumbnail with play button overlay */
.pdp-thumbnail .play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .pdp-thumbnail-strip {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  
  .pdp-thumbnail img {
    height: 60px;
  }
  
  #unmute-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    bottom: 10px;
    right: 10px;
  }
}

/* Fix anchor styles for gallery */
a.pdp-thumbnail {
  text-decoration: none;
  color: inherit;
}

a.pdp-thumbnail:hover {
  background-color: #f8fafc;
}


/* Fix search form input button border radius */
.search-form input {
  border-radius: 50px 0 0 50px;
}
.search-form button {
  border-radius: 0 50px 50px 0;
}
/* ========================================
   PREMIUM MODERN UPGRADES
   ======================================== */

/* Glassmorphism Effect */
.glassmorphism {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(12px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Floating Top Button */
.floating-top-btn {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  border: none;
  box-shadow: 0 10px 25px rgba(0, 95, 163, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.5rem;
  text-decoration: none;
}

.floating-top-btn.visible {
  opacity: 1;
  visibility: visible;
  bottom: 30px;
}

.floating-top-btn:hover {
  background: var(--color-accent);
  color: var(--color-text);
  transform: translateY(-5px) scale(1.1);
}

/* Premium Product Cards */
.card {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  border: 1px solid #f1f5f9;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
  border-color: var(--color-primary);
}

.card img {
  transition: transform 0.6s ease;
}

.card:hover img {
  transform: scale(1.08);
}

/* Vibrant Hero Text */
.hero-title {
  text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.text-accent-hero {
  background: linear-gradient(120deg, var(--color-accent) 0%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 900;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Micro-animations */
@keyframes pulse-subtle {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.btn-primary:hover {
  animation: pulse-subtle 1.5s infinite;
}
/* ========================================
   PRICING & SAVINGS UI
   ======================================== */
.card-price-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.card-price {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: var(--color-primary) !important;
    margin: 0 !important;
}

.card-price-was {
    font-size: 0.9rem;
    color: var(--color-muted);
    text-decoration: line-through;
    margin: 0 !important;
}

.card-save-badge {
    background: #FF2D55;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.pdp-price-now {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}

.pdp-price-was {
    font-size: 1.2rem;
    color: var(--color-muted);
    text-decoration: line-through;
    margin-left: 10px;
}

.pdp-savings-alert {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    background: #f0fdf4;
    border: 1px dashed #22c55e;
    padding: 12px 15px;
    border-radius: 8px;
}

.pdp-save-msg {
    margin: 0;
    font-size: 0.95rem;
    color: #166534;
    font-weight: 500;
}

.pdp-save-msg strong {
    color: #15803d;
    font-weight: 800;
}

.pdp-save-badge {
    background: #22c55e;
    color: white;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    width: fit-content;
}

#product-tbody tr td {
    padding: 15px 12px;
    vertical-align: middle;
}

.qty-display {
    min-width: 30px;
    text-align: center;
    font-weight: 800;
}

/* --- Category Scroller (Desktop/Mobile Logic) --- */
.category-scroller-outer {
    margin: 30px 0;
    width: 100%;
}

.category-scroller {
    display: flex;
    gap: 15px;
    padding: 10px 5px;
    justify-content: center; /* Centered on desktop */
    flex-wrap: wrap;       /* Professional wrap on desktop */
}

.cat-pill {
    padding: 12px 25px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    border: 2px solid transparent;
}

.cat-pill:hover {
    background: #e2e8f0 !important;
    color: var(--color-primary) !important;
}

.cat-pill.active {
    background: #005fa3 !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .category-scroller {
        justify-content: flex-start !important; /* Left-aligned on mobile */
        flex-wrap: nowrap !important;          /* Scroll on mobile */
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .category-scroller::-webkit-scrollbar {
        display: none;
    }
}

/* --- Premium Category Headers (Replaces Heavy Blocks) --- */
.premium-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.premium-category-header h2 {
    font-size: 1.8rem;
    font-weight: 900;
    color: #1e293b;
    letter-spacing: -0.5px;
    margin: 0;
    position: relative;
    display: inline-block;
}

.premium-category-header h2::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .premium-category-header h2 {
        font-size: 1.5rem;
    }
}

/* --- Desktop vs Mobile Visibility --- */
.mobile-bottom-nav, 
.hamburger-btn,
.mobile-only-link-group {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex !important;
    }
    .hamburger-btn {
        display: flex !important;
    }
}
