/* =============================================
   Swaadya - Premium Dry Fruits E-Commerce
   Custom Styles (extends Tailwind CSS)
   ============================================= */

/* ---- Alpine.js cloak ---- */
[x-cloak] { display: none !important; }

/* ---- CSS Variables ---- */
:root {
    --primary: #1B4332;
    --primary-light: #2D6A4F;
    --primary-dark: #143328;
    --secondary: #D4A847;
    --secondary-light: #E0BE6A;
    --accent: #E76F51;
    --accent-light: #F4845F;
    --bg-warm: #FFFBF5;
    --bg-cream: #FFF8EE;
    --text-primary: #1A1A1A;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --border: #E5E7EB;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --brand-english: #5C3D2E;
    --brand-hindi: #B5457A;
}

/* ---- Base ---- */
body {
    font-family: 'Rubik', sans-serif;
    background-color: var(--bg-warm);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ---- Selection ---- */
::selection {
    background: var(--secondary);
    color: white;
}

/* ---- Announcement Bar ---- */
.announcement-bar {
    background: var(--primary);
    color: white;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
}

/* ---- Header ---- */
.header-main {
    transition: all 0.3s ease;
}

.header-main.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.2s;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ---- Legacy Hero Section (scoped — only active with .legacy-hero wrapper) ---- */
.legacy-hero .hero-slide {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .legacy-hero .hero-slide {
        min-height: 350px;
    }
}

.legacy-hero .hero-slide .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(27, 67, 50, 0.88) 0%,
        rgba(27, 67, 50, 0.75) 45%,
        rgba(27, 67, 50, 0.45) 70%,
        rgba(27, 67, 50, 0.30) 100%
    );
}

/* ---- Legacy Hero Split Layout ---- */
.legacy-hero .hero-products-area {
    min-height: 320px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* ---- Legacy Hero Product Bubble ---- */
.legacy-hero .hero-product-bubble {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    box-shadow:
        0 0 0 4px rgba(212, 168, 71, 0.6),
        0 8px 32px rgba(0, 0, 0, 0.25);
    transition: top 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                left 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                width 0.6s ease,
                height 0.6s ease,
                margin 0.6s ease,
                transform 0.3s ease,
                box-shadow 0.3s ease;
    z-index: 2;
    display: block;
}

.legacy-hero .hero-product-bubble:hover {
    transform: scale(1.1) !important;
    box-shadow:
        0 0 0 5px rgba(212, 168, 71, 0.9),
        0 12px 40px rgba(0, 0, 0, 0.35);
    z-index: 10;
}

.legacy-hero .hero-product-bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.legacy-hero .hero-product-label {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease, bottom 0.3s ease;
    pointer-events: none;
    letter-spacing: 0.03em;
}

.legacy-hero .hero-product-bubble:hover .hero-product-label {
    opacity: 1;
    bottom: -12px;
}

/* ---- Floating Animations ---- */
@keyframes heroFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-14px); }
}

@keyframes heroFloatDrift {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-10px) translateX(5px); }
    66% { transform: translateY(-16px) translateX(-3px); }
}

@keyframes heroFloatSway {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
}

@keyframes heroFloatPulse {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-8px) scale(1.03); }
}

@keyframes heroCascadeFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Slide 1: Scattered */
.hero-float-1 { animation: heroFloat 4s ease-in-out infinite; }
.hero-float-2 { animation: heroFloatDrift 5s ease-in-out infinite; }
.hero-float-3 { animation: heroFloat 4.5s ease-in-out infinite; }
.hero-float-4 { animation: heroFloatDrift 5.5s ease-in-out infinite; }

/* Slide 2: Cluster */
.hero-float-center { animation: heroFloatPulse 5s ease-in-out infinite; }
.hero-float-orbit-1 { animation: heroFloatSway 4s ease-in-out infinite; }
.hero-float-orbit-2 { animation: heroFloat 4.5s ease-in-out infinite; }
.hero-float-orbit-3 { animation: heroFloatDrift 5s ease-in-out infinite; }

/* Slide 3: Cascade */
.hero-float-cascade-1 { animation: heroCascadeFloat 4s ease-in-out infinite; }
.hero-float-cascade-2 { animation: heroFloat 4.5s ease-in-out infinite; }
.hero-float-cascade-3 { animation: heroCascadeFloat 5s ease-in-out infinite; }
.hero-float-cascade-4 { animation: heroFloat 5.5s ease-in-out infinite; }

/* ---- Hero Assembly Animation (page load) ---- */
@keyframes heroFlyFromTopLeft {
    0%   { opacity: 0; transform: translate(-300px, -200px) scale(0.3); }
    60%  { opacity: 1; transform: translate(0, 0) scale(0.6); }
    75%  { transform: translate(0, 0) scale(0.65); }
    100% { transform: translate(0, 0) scale(0.6); }
}

@keyframes heroFlyFromTopRight {
    0%   { opacity: 0; transform: translate(300px, -200px) scale(0.3); }
    60%  { opacity: 1; transform: translate(0, 0) scale(0.6); }
    75%  { transform: translate(0, 0) scale(0.65); }
    100% { transform: translate(0, 0) scale(0.6); }
}

@keyframes heroFlyFromBottomRight {
    0%   { opacity: 0; transform: translate(300px, 200px) scale(0.3); }
    60%  { opacity: 1; transform: translate(0, 0) scale(0.6); }
    75%  { transform: translate(0, 0) scale(0.65); }
    100% { transform: translate(0, 0) scale(0.6); }
}

@keyframes heroFlyFromBottomLeft {
    0%   { opacity: 0; transform: translate(-300px, 200px) scale(0.3); }
    60%  { opacity: 1; transform: translate(0, 0) scale(0.6); }
    75%  { transform: translate(0, 0) scale(0.65); }
    100% { transform: translate(0, 0) scale(0.6); }
}

/* Assembly state - all products cluster at center */
.legacy-hero .hero-product-bubble.hero-assembling {
    top: 50% !important;
    left: 50% !important;
    width: 100px !important;
    height: 100px !important;
    margin-top: -50px;
    margin-left: -50px;
    animation-fill-mode: forwards;
}

.hero-assembling:nth-child(1) { animation: heroFlyFromTopLeft 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }
.hero-assembling:nth-child(2) { animation: heroFlyFromTopRight 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s forwards; }
.hero-assembling:nth-child(3) { animation: heroFlyFromBottomRight 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards; }
.hero-assembling:nth-child(4) { animation: heroFlyFromBottomLeft 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.45s forwards; }

/* Decorative accent circles */
.legacy-hero .hero-products-area::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 1px solid rgba(212, 168, 71, 0.15);
    pointer-events: none;
    z-index: 1;
}

.legacy-hero .hero-products-area::after {
    content: '';
    position: absolute;
    bottom: 5%;
    right: 10%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 1023px) {
    .legacy-hero .hero-products-area {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .legacy-hero .hero-product-bubble {
        animation: none !important;
    }
    .legacy-hero .hero-product-bubble.hero-assembling {
        animation: none !important;
        top: unset !important;
        left: unset !important;
        width: unset !important;
        height: unset !important;
        margin: 0 !important;
    }
}

/* ---- Product Card ---- */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    border-color: var(--secondary);
}

.product-card .image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f9f9f9;
}

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

.product-card:hover .image-wrapper img {
    transform: scale(1.08);
}

.product-card .wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s;
    opacity: 0;
    transform: translateY(-5px);
}

.product-card:hover .wishlist-btn {
    opacity: 1;
    transform: translateY(0);
}

.wishlist-btn:hover {
    background: var(--accent);
    color: white;
}

.wishlist-btn.active {
    opacity: 1;
    transform: translateY(0);
    background: var(--accent);
    color: white;
}

.product-card .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-sale {
    background: var(--accent);
    color: white;
}

.badge-new {
    background: var(--primary);
    color: white;
}

.badge-bestseller {
    background: var(--secondary);
    color: white;
}

/* ---- Variant Pills ---- */
.variant-pill {
    padding: 4px 12px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.variant-pill:hover,
.variant-pill.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

/* ---- Add to Cart Button ---- */
.btn-add-cart {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-add-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ---- Category Card ---- */
.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

.category-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%);
    transition: background 0.3s;
}

.category-card:hover .overlay {
    background: linear-gradient(to top, rgba(27,67,50,0.8) 0%, rgba(27,67,50,0.2) 60%);
}

/* Category product image - premium circular style */
.category-product-img {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    object-fit: cover;
    box-shadow:
        0 0 0 3px rgba(212, 168, 71, 0.5),
        0 0 20px rgba(212, 168, 71, 0.25),
        0 4px 16px rgba(0, 0, 0, 0.2);
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 1024px) {
    .category-product-img {
        width: 6rem;
        height: 6rem;
    }
}

.category-card:hover .category-product-img {
    transform: scale(1.08);
    box-shadow:
        0 0 0 3px rgba(212, 168, 71, 0.8),
        0 0 28px rgba(212, 168, 71, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ---- Buttons ---- */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27,67,50,0.3);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--secondary-light);
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--accent);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-accent:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 26px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
    background: transparent;
}

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

/* ---- Marquee ---- */
.marquee-container {
    overflow: hidden;
    background: var(--primary);
    padding: 14px 0;
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

.marquee-content span {
    color: white;
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.marquee-content span::before {
    content: '✦';
    color: var(--secondary);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- Cart Drawer ---- */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    background: white;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    transform: translateX(0);
}

/* ---- Search Modal ---- */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ---- Toast Notifications ---- */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 20px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
}

.toast.show { transform: translateX(0); }
.toast-success { background: var(--success); }
.toast-error { background: var(--error); }
.toast-warning { background: var(--warning); }
.toast-info { background: var(--primary); }

/* ---- USP Section ---- */
.usp-card {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: white;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.usp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: var(--secondary);
}

.usp-card .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: var(--bg-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

/* ---- Testimonial Card ---- */
.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.testimonial-card .quote-icon {
    color: var(--secondary);
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 1rem;
}

/* ---- Newsletter Section ---- */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(212,168,71,0.1);
    border-radius: 50%;
}

/* ---- Footer ---- */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
}

.footer a {
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--secondary);
}

.footer h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

/* ---- WhatsApp Button ---- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 900;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37,211,102,0.5);
}

/* ---- Skeleton Loading ---- */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---- Price Styling ---- */
.price-current {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.price-mrp {
    color: var(--text-light);
    text-decoration: line-through;
    font-size: 0.875rem;
}

.price-discount {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.8125rem;
}

/* ---- Form Inputs ---- */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27,67,50,0.1);
}

.form-input.error {
    border-color: var(--error);
}

.form-label {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

/* ---- Page Header / Breadcrumb ---- */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 2.5rem 0;
}

.breadcrumb a {
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: white;
}

/* ---- Filters Sidebar ---- */
.filter-section {
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
}

/* ---- Star Rating Input ---- */
.star-rating-input label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #D1D5DB;
    transition: color 0.1s;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: #FBBF24;
}

/* ---- Quantity Selector ---- */
.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.qty-selector button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    font-weight: 600;
    transition: background 0.2s;
}

.qty-selector button:hover {
    background: var(--primary);
    color: white;
}

.qty-selector input {
    width: 48px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-weight: 600;
}

/* ---- Mobile Menu ---- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ---- Pulse Animation for Cart Badge ---- */
@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.cart-badge-pulse {
    animation: pulse-badge 0.3s ease;
}

/* ---- Image Gallery (Product Detail) ---- */
.gallery-thumbs .swiper-slide {
    opacity: 0.5;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--primary);
}

/* ---- Tabs ---- */
.tab-btn {
    padding: 12px 24px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ---- Admin Sidebar ---- */
.admin-sidebar {
    width: 260px;
    background: var(--primary-dark);
    min-height: 100vh;
    color: white;
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
    font-size: 0.9375rem;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

/* ---- Responsive Fixes ---- */
@media (max-width: 640px) {
    .product-card .badge {
        font-size: 0.625rem;
        padding: 3px 8px;
    }

    .price-current {
        font-size: 1.05rem;
    }
}

/* ---- Swiper Custom ---- */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary) !important;
    background: white;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px !important;
    font-weight: bold;
}

.swiper-pagination-bullet-active {
    background: var(--primary) !important;
}

/* ---- Nutrition Facts Card (FDA-style) ---- */
.nutrition-facts {
    border: 2px solid #333;
    border-radius: 12px;
    overflow: hidden;
    max-width: 400px;
    background: white;
}

.nutrition-facts .nf-header {
    background: var(--primary);
    color: white;
    padding: 12px 16px;
}

.nutrition-facts .nf-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.nutrition-facts .nf-header p {
    font-size: 0.75rem;
    opacity: 0.8;
    margin: 2px 0 0;
}

.nutrition-facts .nf-body {
    padding: 0;
}

.nutrition-facts .nf-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.nutrition-facts .nf-row:last-child {
    border-bottom: none;
}

.nutrition-facts .nf-row.nf-highlight {
    background: #f0fdf4;
}

.nutrition-facts .nf-row .nf-label {
    color: #4b5563;
}

.nutrition-facts .nf-row .nf-value {
    font-weight: 600;
    color: #111827;
}

.nutrition-facts .nf-row.nf-calories {
    background: var(--bg-cream);
    padding: 14px 16px;
    border-bottom: 3px solid #333;
}

.nutrition-facts .nf-row.nf-calories .nf-label {
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
}

.nutrition-facts .nf-row.nf-calories .nf-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

/* ---- Health Benefit Pills ---- */
.health-benefit-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #166534;
}

.health-benefit-pill svg {
    width: 16px;
    height: 16px;
    color: #22c55e;
    flex-shrink: 0;
}

/* ---- Product Description Prose ---- */
.prose h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
}

.prose h3:first-child {
    margin-top: 0;
}

.prose h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 1.75rem 0 0.6rem;
    padding-left: 12px;
    border-left: 3px solid var(--secondary);
}

.prose p {
    color: #4b5563;
    line-height: 1.75;
    margin: 0.75rem 0;
    font-size: 0.9375rem;
}

.prose strong {
    color: var(--primary);
    font-weight: 600;
}

.prose ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: grid;
    gap: 10px;
}

.prose ul li {
    position: relative;
    padding: 14px 16px 14px 44px;
    background: #f8faf9;
    border: 1px solid #e8f0ec;
    border-radius: 10px;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #374151;
    transition: all 0.2s ease;
}

.prose ul li:hover {
    border-color: var(--secondary);
    background: #fefff8;
    transform: translateX(4px);
}

.prose ul li::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 17px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.prose ul li strong {
    display: block;
    font-size: 0.95rem;
    color: var(--primary-dark);
    margin-bottom: 2px;
}

/* ---- Checkout Steps ---- */
.checkout-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
}

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

.checkout-step.completed {
    color: var(--success);
}

/* ---- Order Status Timeline ---- */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 24px;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-item .dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--border);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--border);
}

.timeline-item.active .dot {
    background: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item.completed .dot {
    background: var(--success);
    box-shadow: 0 0 0 2px var(--success);
}
