/* ============================================================
   NUTRICARE HEALTH — Design System
   Brand: Primary #36B72D | Secondary #138A2E | Highlight #B5E61D
          Accent #E5E500 | Neutral #FFFFFF
   ============================================================ */

:root {
    --nc-primary:   #36B72D;
    --nc-secondary: #138A2E;
    --nc-highlight: #B5E61D;
    --nc-accent:    #E5E500;
    --nc-white:     #FFFFFF;
    --nc-dark:      #0D1F0F;
    --nc-charcoal:  #1A2E1C;
    --nc-gray:      #4A5E4C;
    --nc-light:     #F2FBF2;
    --nc-border:    #C8E6C9;
    --nc-danger:    #C0392B;
    --nc-muted:     #6B7F6D;

    --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(19,138,46,0.12);
    --shadow-lg: 0 8px 32px rgba(19,138,46,0.16);
    --shadow-xl: 0 16px 48px rgba(19,138,46,0.20);

    --transition: 200ms cubic-bezier(0.4,0,0.2,1);
    --transition-smooth: 300ms cubic-bezier(0.4,0,0.2,1);
    --transition-bounce: 400ms cubic-bezier(0.68,-0.55,0.265,1.55);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--nc-gray);
    background: var(--nc-white);
}

/* Alpine.js cloak - hide elements until Alpine initializes */
[x-cloak] { display: none !important; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--nc-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--nc-secondary); }
/* Prevent global a:hover from overriding explicit color classes */
a[class]:hover { color: inherit; }
:focus-visible { outline: 2px solid var(--nc-primary); outline-offset: 3px; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { color: var(--nc-charcoal); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.0625rem; font-weight: 600; }
p { margin-bottom: 1rem; }

/* ── Layout ── */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }
@media (min-width: 1280px) { .container { padding: 0 2.5rem; } }

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
@media (max-width: 767px) { .section { padding: 3rem 0; } }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.01em;
    padding: 0.75rem 1.75rem; border-radius: var(--radius-full);
    border: 2px solid transparent; cursor: pointer;
    transition: all var(--transition-smooth); text-decoration: none; white-space: nowrap;
    position: relative; overflow: hidden;
}
.btn:active { transform: scale(0.96); }
.btn:hover { transform: translateY(-1px); }
.btn > * { position: relative; z-index: 1; }
.btn::before {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background: rgba(0,0,0,0.08);
    opacity: 0; transition: opacity var(--transition);
    pointer-events: none;
}
.btn:hover::before { opacity: 1; }
.btn-primary {
    background: linear-gradient(135deg, var(--nc-primary), var(--nc-secondary));
    color: #fff !important; border-color: transparent;
    box-shadow: 0 4px 14px rgba(54,183,45,0.35);
}
.btn-primary:hover { color: #fff !important; box-shadow: 0 6px 20px rgba(54,183,45,0.45); }
.btn-secondary {
    background: transparent; color: var(--nc-primary) !important;
    border-color: var(--nc-primary);
}
.btn-secondary:hover { background: var(--nc-primary); color: #fff !important; }
.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #1ebe5d);
    color: #fff !important; border-color: transparent;
    box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}
.btn-whatsapp:hover { color: #fff !important; }
.btn-accent { background: var(--nc-accent); color: var(--nc-charcoal) !important; border-color: transparent; }
.btn-accent:hover { color: var(--nc-charcoal) !important; }
.btn-ghost { background: transparent; border-color: var(--nc-border); color: var(--nc-gray) !important; }
.btn-ghost:hover { border-color: var(--nc-primary); color: var(--nc-primary) !important; background: rgba(54,183,45,0.06); }
.btn-danger { background: var(--nc-danger); color: #fff !important; border-color: transparent; }
.btn-danger:hover { background: #a93226; color: #fff !important; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.0625rem; }

/* ── Form Inputs ── */
.form-input {
    width: 100%; padding: 0.8125rem 1rem;
    font-size: 0.9375rem; color: var(--nc-charcoal);
    background: var(--nc-light); border: 1.5px solid var(--nc-border);
    border-radius: var(--radius-md); transition: all var(--transition-smooth);
    font-family: var(--font-sans);
}
.form-input::placeholder { color: var(--nc-muted); transition: opacity var(--transition); }
.form-input:focus::placeholder { opacity: 0.5; }
.form-input:focus { 
    outline: none; 
    border-color: var(--nc-primary); 
    background: #fff; 
    box-shadow: 0 0 0 4px rgba(54,183,45,0.12);
    transform: translateY(-1px);
}
.form-label { display: block; margin-bottom: 0.4rem; font-size: 0.875rem; font-weight: 600; color: var(--nc-charcoal); }
.form-error { color: var(--nc-danger); font-size: 0.8125rem; margin-top: 0.25rem; }
select.form-input { cursor: pointer; }

/* ── Cards ── */
.card {
    background: #fff; border: 1.5px solid var(--nc-border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: all var(--transition-smooth);
}
.card:hover { 
    border-color: var(--nc-primary); 
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.card-elevated { box-shadow: var(--shadow-md); border-color: transparent; }
.card-elevated:hover { box-shadow: var(--shadow-xl); transform: translateY(-6px) scale(1.01); }

/* ── Badges ── */
.badge {
    display: inline-flex; align-items: center;
    padding: 0.2rem 0.75rem; font-size: 0.75rem; font-weight: 600;
    border-radius: var(--radius-full); letter-spacing: 0.02em;
}
.badge-primary { background: rgba(54,183,45,0.12); color: var(--nc-secondary); }
.badge-sale { background: var(--nc-accent); color: var(--nc-charcoal); }
.badge-new { background: var(--nc-highlight); color: var(--nc-charcoal); }
.badge-out { background: #f1f1f1; color: #888; }
.badge-success { background: rgba(54,183,45,0.12); color: var(--nc-secondary); }
.badge-warning { background: #FFF3CD; color: #856404; }
.badge-danger { background: #FEE2E2; color: var(--nc-danger); }

/* ── Navigation ── */
.nav-link {
    font-size: 0.9375rem; font-weight: 500; color: var(--nc-charcoal);
    padding: 0.375rem 0.75rem; border-radius: var(--radius-sm);
    transition: all var(--transition); position: relative;
}
.nav-link:hover { color: var(--nc-primary); background: rgba(54,183,45,0.06); }
.nav-link.active { color: var(--nc-primary); font-weight: 600; }

/* ── Product Card ── */
.product-card {
    background: #fff; border: 1.5px solid var(--nc-border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: all var(--transition-smooth);
}
.product-card:hover {
    border-color: var(--nc-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px) scale(1.02);
}
.product-card .product-image {
    aspect-ratio: 1/1; overflow: hidden;
    background: var(--nc-light); position: relative;
}
.product-card .product-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 500ms cubic-bezier(0.34,1.56,0.64,1);
}
.product-card:hover .product-image img { transform: scale(1.1) rotate(2deg); }

/* ── Skeleton ── */
@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.skeleton {
    background: linear-gradient(90deg, #e8f5e9 25%, #c8e6c9 50%, #e8f5e9 75%);
    background-size: 400px 100%;
    animation: shimmer 1.4s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

/* ── Section Divider ── */
.section-wave {
    position: relative;
    overflow: hidden;
}
.section-wave::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23F2FBF2' d='M0,30 C360,60 1080,0 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
}

/* ── Hero Gradient ── */
.hero-gradient {
    background: linear-gradient(135deg, #e8f5e9 0%, #f2fbf2 40%, #ffffff 100%);
}
.hero-gradient-dark {
    background: linear-gradient(135deg, var(--nc-secondary) 0%, var(--nc-charcoal) 100%);
}

/* ── Hero Buttons ── */
.hero-btn-primary {
    background: #36B72D;
    color: #ffffff !important;
}
.hero-btn-primary:hover {
    background: #36B72D;
    color: #ffffff !important;
    transform: none;
    box-shadow: none;
}
.hero-btn-ghost {
    background: rgba(255,255,255,0.2);
    color: #ffffff !important;
}
.hero-btn-ghost:hover {
    background: rgba(255,255,255,0.2);
    color: #ffffff !important;
    transform: none;
}

/* ── Stat Cards ── */
.stat-card {
    background: #fff; border-radius: var(--radius-lg);
    padding: 1.5rem; border: 1.5px solid var(--nc-border);
    text-align: center;
}
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--nc-primary); line-height: 1; }
.stat-label { font-size: 0.875rem; color: var(--nc-muted); margin-top: 0.25rem; font-weight: 500; }

/* ── Trust Strip ── */
.trust-strip {
    background: linear-gradient(135deg, var(--nc-secondary), var(--nc-primary));
    color: #fff;
}
.trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 500; }

/* ── Category Pills ── */
.cat-pill {
    display: inline-flex; align-items: center; gap: 0.375rem;
    padding: 0.5rem 1rem; border-radius: var(--radius-full);
    font-size: 0.875rem; font-weight: 500; white-space: nowrap;
    border: 1.5px solid var(--nc-border); color: var(--nc-charcoal);
    background: #fff; transition: all var(--transition); cursor: pointer;
}
.cat-pill:hover, .cat-pill.active {
    background: var(--nc-primary); color: #fff; border-color: var(--nc-primary);
    box-shadow: 0 4px 12px rgba(54,183,45,0.3);
}

/* ── Quantity Stepper ── */
.quantity-stepper {
    display: inline-flex; align-items: center;
    border: 1.5px solid var(--nc-border); border-radius: var(--radius-full);
    overflow: hidden; background: #fff;
}
.quantity-btn {
    width: 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center;
    background: transparent; border: none; cursor: pointer;
    color: var(--nc-charcoal); font-size: 1.125rem; font-weight: 600;
    transition: background var(--transition);
}
.quantity-btn:hover { background: var(--nc-light); }
.quantity-input {
    width: 2.5rem; text-align: center; border: none; background: transparent;
    font-weight: 700; color: var(--nc-charcoal); font-size: 0.9375rem;
}

/* ── Toast ── */
@keyframes slideInRight { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideInUp { from { transform: translateY(110%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.toast {
    position: fixed; z-index: 9999;
    background: #fff; border-radius: var(--radius-md);
    padding: 1rem 1.25rem; box-shadow: var(--shadow-xl);
    display: flex; align-items: center; gap: 0.75rem;
    border-left: 4px solid var(--nc-primary); max-width: 360px;
}
.toast-success { border-left-color: var(--nc-primary); }
.toast-error { border-left-color: var(--nc-danger); }
@media (min-width: 768px) { .toast { top: 1.25rem; right: 1.25rem; animation: slideInRight 0.3s ease; } }
@media (max-width: 767px) { .toast { bottom: 5rem; left: 1rem; right: 1rem; animation: slideInUp 0.3s ease; } }

/* ── Scroll Reveal ── */
.scroll-reveal { 
    opacity: 1; 
    transform: translateY(0); 
    transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1); 
}
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }
.scroll-reveal-left { opacity: 1; transform: translateX(0); transition: all 0.6s ease; }
.scroll-reveal-left.visible { opacity: 1; transform: translateX(0); }
.scroll-reveal-right { opacity: 1; transform: translateX(0); transition: all 0.6s ease; }
.scroll-reveal-right.visible { opacity: 1; transform: translateX(0); }
.scroll-reveal-scale { opacity: 1; transform: scale(1); transition: all 0.6s ease; }
.scroll-reveal-scale.visible { opacity: 1; transform: scale(1); }
.reveal { opacity: 1; transform: translateY(0); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Skip Link ── */
.skip-link {
    position: absolute; top: -50px; left: 1rem;
    background: var(--nc-primary); color: #fff;
    padding: 0.5rem 1rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    z-index: 9999; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--nc-light); }
::-webkit-scrollbar-thumb { background: var(--nc-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--nc-primary); }

/* ── Utility ── */
.text-primary { color: var(--nc-primary) !important; }
.text-secondary { color: var(--nc-secondary) !important; }
.text-muted { color: var(--nc-muted) !important; }
.text-dark { color: var(--nc-charcoal) !important; }
.bg-light { background: var(--nc-light) !important; }
.bg-primary { background: var(--nc-primary) !important; }
.bg-dark { background: var(--nc-charcoal) !important; }
.border-primary { border-color: var(--nc-primary) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

/* ── Admin Sidebar ── */
.admin-sidebar-link {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.625rem 0.875rem; border-radius: var(--radius-md);
    font-size: 0.875rem; font-weight: 500;
    color: #5A6E5C !important;
    transition: all var(--transition); text-decoration: none;
}
.admin-sidebar-link:hover {
    background: #F0FBF0;
    color: #1A2E1C !important;
}
.admin-sidebar-link.active {
    background: #1B7A2F;
    color: #ffffff !important;
}
.admin-sidebar-link.active svg { color: #ffffff !important; }

.sidebar-nav-item {
    color: #5A6E5C !important;
    text-decoration: none;
}
.sidebar-nav-item:hover {
    background: transparent;
    color: #5A6E5C !important;
    transform: none;
}
.sidebar-nav-item.sidebar-nav-active {
    background: #1B7A2F;
    color: #ffffff !important;
}
.sidebar-nav-item.sidebar-nav-active svg,
.sidebar-nav-item.sidebar-nav-active path {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* ── WhatsApp Float Button ── */
.wa-float {
    position: fixed; bottom: 5rem; right: 1.25rem;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.5);
    z-index: 40; transition: all var(--transition-smooth);
    text-decoration: none;
}
.wa-float:hover { 
    transform: scale(1.1); 
    box-shadow: 0 8px 32px rgba(37,211,102,0.7); 
    color: #fff;
}
@media (min-width: 768px) { .wa-float { bottom: 2rem; right: 2rem; } }

/* ── Reading Progress ── */
#reading-progress {
    position: fixed; top: 0; left: 0; height: 3px;
    background: linear-gradient(90deg, var(--nc-primary), var(--nc-highlight));
    z-index: 9999; transition: width 0.1s linear;
}

/* ── Tabs ── */
.tab-btn {
    padding: 0.625rem 1.25rem; font-size: 0.9375rem; font-weight: 500;
    color: var(--nc-muted); border-bottom: 2px solid transparent;
    transition: all var(--transition); cursor: pointer; white-space: nowrap;
    background: none; border-top: none; border-left: none; border-right: none;
}
.tab-btn:hover { color: var(--nc-charcoal); }
.tab-btn.active { color: var(--nc-primary); border-bottom-color: var(--nc-primary); font-weight: 600; }

/* ── Price Display ── */
.price-main { font-size: 1.75rem; font-weight: 800; color: var(--nc-primary); }
.price-original { font-size: 1rem; color: var(--nc-muted); text-decoration: line-through; }
.price-badge { background: var(--nc-accent); color: var(--nc-charcoal); font-size: 0.75rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: var(--radius-full); }

/* ── Star Rating ── */
.stars { display: inline-flex; gap: 1px; }
.star-filled { color: var(--nc-accent); }
.star-empty { color: var(--nc-border); }

/* ── Section Headers ── */
.section-label {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--nc-primary);
    margin-bottom: 0.75rem;
}
.section-label::before {
    content: ''; width: 24px; height: 3px;
    background: var(--nc-highlight); border-radius: 2px;
}

/* ── Gradient Text ── */
.gradient-text {
    background: linear-gradient(135deg, var(--nc-primary), var(--nc-secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Feature Icon ── */
.feature-icon {
    width: 56px; height: 56px; border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(54,183,45,0.12), rgba(181,230,29,0.15));
    display: flex; align-items: center; justify-content: center;
    color: var(--nc-primary); flex-shrink: 0;
}

/* ── Testimonial Card ── */
.testimonial-card {
    background: #fff; border-radius: var(--radius-xl);
    padding: 2rem; border: 1.5px solid var(--nc-border);
    position: relative;
}
.testimonial-card::before {
    content: '"'; position: absolute; top: 1rem; left: 1.5rem;
    font-size: 4rem; line-height: 1; color: var(--nc-highlight);
    font-family: Georgia, serif; opacity: 0.6;
}

/* ── Blog Card ── */
.blog-card { 
    border-radius: var(--radius-lg); overflow: hidden; background: #fff; 
    border: 1.5px solid var(--nc-border); transition: all var(--transition-smooth);
}
.blog-card:hover { 
    border-color: var(--nc-primary); 
    box-shadow: var(--shadow-lg); 
    transform: translateY(-6px) scale(1.01); 
}
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--nc-light); position: relative; }
.blog-card-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(54,183,45,0.1), transparent);
    opacity: 0; transition: opacity var(--transition-smooth);
}
.blog-card:hover .blog-card-img::after { opacity: 1; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(0.34,1.56,0.64,1); }
.blog-card:hover .blog-card-img img { transform: scale(1.1) rotate(-2deg); }

/* ── Ingredient Card ── */
.ingredient-card {
    background: linear-gradient(135deg, var(--nc-light), #fff);
    border: 1.5px solid var(--nc-border); border-radius: var(--radius-lg);
    padding: 1.25rem; text-align: center; flex-shrink: 0; width: 160px;
    transition: all var(--transition);
}
.ingredient-card:hover { border-color: var(--nc-primary); box-shadow: var(--shadow-md); }
.ingredient-icon {
    width: 52px; height: 52px; border-radius: 50%;
    margin: 0 auto 0.75rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}

/* ── Newsletter Section ── */
.newsletter-section {
    background: linear-gradient(135deg, var(--nc-secondary) 0%, var(--nc-charcoal) 100%);
    position: relative; overflow: hidden;
}
.newsletter-section::before {
    content: ''; position: absolute; top: -50%; right: -10%;
    width: 500px; height: 500px; border-radius: 50%;
    background: rgba(181,230,29,0.08); pointer-events: none;
}

/* ── Footer ── */
.footer-main { background: var(--nc-charcoal); color: rgba(255,255,255,0.8); }
.footer-link { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: color var(--transition); }
.footer-link:hover { color: var(--nc-highlight); }
.footer-bottom { background: rgba(0,0,0,0.25); }

/* ── Responsive helpers ── */
@media (max-width: 767px) {
    .hide-mobile { display: none !important; }
    .section { padding: 2.5rem 0; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}
@media (min-width: 768px) { .hide-desktop { display: none !important; } }

/* ── Category Marquee ── */
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-outer {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: marquee 32s linear infinite;
    padding: 0.5rem 0;
}
.marquee-track:hover { animation-play-state: paused; }

/* ── Category Card ── */
.cat-card {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 140px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1.5px solid var(--nc-border);
    background: #fff;
    text-decoration: none;
    transition: all var(--transition-smooth);
    cursor: pointer;
}
.cat-card:hover {
    border-color: var(--nc-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px) scale(1.05);
}
.cat-card-img {
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cat-card-body {
    padding: 0.625rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cat-card-name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--nc-charcoal);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cat-card-count {
    font-size: 0.6875rem;
    color: var(--nc-muted);
    font-weight: 500;
}

/* ── Mobile Responsiveness Improvements ── */
@media (max-width: 480px) {
    /* Tighter container on very small screens */
    .container { padding: 0 0.875rem; }

    /* Product grid — always 2 cols, tighter gap */
    .grid.grid-cols-2 { gap: 0.625rem !important; }

    /* Product card — compact on small screens */
    .product-card .p-4 { padding: 0.625rem !important; }
    .product-card h3 { font-size: 0.8125rem !important; }
    .product-card .text-base { font-size: 0.875rem !important; }

    /* Hero text */
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.375rem !important; }

    /* Buttons full-width on mobile */
    .btn-block-mobile { width: 100% !important; }

/* Category marquee cards slightly smaller */
    .cat-card { width: 120px; }
    .cat-card-img { height: 76px; }
}

@media (max-width: 767px) {
    /* Ensure product grids never collapse to 1 col */
    .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

    /* Section padding */
    .section { padding: 2rem 0 !important; }

    /* Tabs scroll on mobile */
    [role="tablist"] { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    [role="tablist"]::-webkit-scrollbar { display: none; }

    /* Product detail stacked layout */
    .grid.md\\:grid-cols-2 { grid-template-columns: 1fr !important; }

    /* Trust strip wrap nicely */
    .trust-strip .flex { flex-wrap: wrap; gap: 0.5rem; justify-content: center; }

    /* Footer grid */
    .footer-main .grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
}

/* ── Improved product card mobile ── */
@media (max-width: 767px) {
    .product-card .flex.gap-2 { flex-direction: column; gap: 0.5rem; }
    .product-card .flex.gap-2 .btn { width: 100%; justify-content: center; font-size: 0.75rem; padding: 0.5rem 0.75rem; }
}

/* ── Header Category Marquee ── */
@keyframes header-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.header-marquee-outer {
    overflow: hidden;
    width: 100%;
    padding: 0.375rem 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.header-marquee-track {
    display: flex;
    gap: 0.5rem;
    width: max-content;
    animation: header-marquee 40s linear infinite;
    align-items: center;
}
.header-marquee-track:hover { animation-play-state: paused; }

/* ══════════════════════════════════════════════════════════════
   ENHANCED ANIMATIONS & UTILITIES
   ══════════════════════════════════════════════════════════════ */

/* ── Page Load Animations ── */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes rotateIn {
    from { opacity: 0; transform: rotate(-10deg) scale(0.9); }
    to { opacity: 1; transform: rotate(0) scale(1); }
}

/* ── Hover Animations ── */
.hover-lift {
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.hover-grow {
    transition: transform var(--transition-smooth);
}
.hover-grow:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: box-shadow var(--transition-smooth);
}
.hover-glow:hover {
    box-shadow: 0 0 20px rgba(54,183,45,0.4);
}

/* ── Pulse Animation ── */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ── Bounce Animation ── */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-bounce {
    animation: bounce 1s ease-in-out infinite;
}

/* ── Shake Animation ── */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

/* ── Gradient Animation ── */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* ── Spin Animation ── */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* ── Fade Slide Animations ── */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.slide-down {
    animation: slideDown 0.5s ease forwards;
}

.zoom-in {
    animation: zoomIn 0.5s ease forwards;
}

.rotate-in {
    animation: rotateIn 0.5s ease forwards;
}

/* ── Stagger Delays ── */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* ── Loading Spinner ── */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--nc-light);
    border-top-color: var(--nc-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ── Smooth Transitions ── */
.transition-all {
    transition: all var(--transition-smooth);
}

.transition-fast {
    transition: all var(--transition);
}

.transition-slow {
    transition: all 500ms ease;
}

/* ── Image Load Effect ── */
img {
    transition: opacity 0.3s ease;
}

img:not([src]),
img[src=""] {
    opacity: 0;
}

/* ── Skeleton Shimmer Enhancement ── */
.skeleton {
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmerSlide 1.5s infinite;
}

@keyframes shimmerSlide {
    to { left: 100%; }
}

/* ── Scroll Progress Bar ── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--nc-primary), var(--nc-highlight));
    z-index: 9999;
    transform-origin: left;
    transition: transform 0.1s linear;
}

/* ── Tooltip Animation ── */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    padding: 0.5rem 0.75rem;
    background: var(--nc-charcoal);
    color: white;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

/* ── Focus Visible Enhancement ── */
:focus-visible {
    outline: 3px solid var(--nc-primary);
    outline-offset: 3px;
}

/* ── Filter sheet open: prevent body scroll ── */
html.filter-open,
html.filter-open body {
    overflow: hidden !important;
    touch-action: none;
}

/* ── Blog prose body ── */
.prose-blog { font-size: 1rem; line-height: 1.8; color: var(--nc-gray); }
.prose-blog h1,.prose-blog h2,.prose-blog h3,
.prose-blog h4,.prose-blog h5,.prose-blog h6 { color: var(--nc-charcoal); }
.prose-blog strong { color: var(--nc-charcoal); }
.prose-blog a { color: var(--nc-primary); text-decoration: underline; }
.prose-blog a:hover { color: var(--nc-secondary); }
.prose-blog ul,.prose-blog ol { padding-left: 1.5rem; }
.prose-blog blockquote { font-style: italic; }

/* ── Ingredient Marquee (mobile) ── */
@keyframes ingredient-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ingredient-marquee-outer {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.ingredient-marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: ingredient-scroll 28s linear infinite;
    padding: 0.5rem 0;
}
.ingredient-marquee-track:hover { animation-play-state: paused; }
.ingredient-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
    width: 90px;
}

/* ── Infinite Scroll Spinner ── */
.infinite-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--nc-border);
    border-top-color: var(--nc-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* ── Reduced Motion Support ── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
