﻿/* ============================================================
   DESIGN TOKENS
=========================================================== */
:root {
    --coral-500: #ff6f61;
    --coral-600: #e9534f;
    --neutral-900: #222;
    --neutral-600: #555;
    --neutral-400: #999;
    --neutral-200: #eee;
    --radius-md: 8px;
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 6px 14px rgba(0, 0, 0, 0.1);
    --font-main: "Poppins", "Nunito", "Inter", sans-serif;
    --success-500: #35b56f;
    --success-600: #2da562;
}

/* ============================================================
   GLOBAL / PAGE
=========================================================== */
html, body {
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background: #fff;
}

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

/* ============================================================
   HOME CONTAINER
=========================================================== */
.home-container section {
    margin-bottom: 3.5rem;
}

@media (max-width: 768px) {
    .home-container section {
        margin-bottom: 2.5rem;
    }
}

/* ============================================================
   AYURCALL — BANNER SLIDER (1680×320)
   Unified Coral 2025 · Pure White
=========================================================== */
.banner-slider {
    position: relative;
    width: 100%;
    background: #fff;
    overflow: hidden;
}

    .banner-slider .slider-container {
        position: relative;
        width: 100%;
        aspect-ratio: 1680 / 320;
        max-height: 320px;
    }


.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
    will-change: opacity;
    background: #fff;
    cursor: pointer;
}

    .banner-slide.active {
        opacity: 1;
        pointer-events: auto;
        position: relative; /* ✅ make visible in normal flow for mobile */
    }

.banner-link,
.banner-img {
    display: block;
    width: 100%;
    height: 100%;
}

.banner-img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: auto; /* ✅ auto height on mobile */
    transition: object-fit 0.35s ease, object-position 0.35s ease, opacity 0.35s ease;
}

.midbanner-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}



/* Dots — clear, Coral theme */
.banner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
}

    .banner-dots button {
        width: 28px;
        height: 28px;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

        .banner-dots button::before {
            content: "";
            width: 9px;
            height: 9px;
            border-radius: 50%;
            background: rgba(0,0,0,0.28);
            box-shadow: 0 0 0 1px rgba(255,255,255,0.6) inset;
            transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
        }

        .banner-dots button.active::before,
        .banner-dots button[aria-selected="true"]::before {
            background: var(--coral-500);
            box-shadow: 0 0 0 2px #fff;
            transform: scale(1.1);
        }

        .banner-dots button:focus-visible {
            outline: 2px solid var(--coral-500);
            outline-offset: 2px;
            border-radius: 50%;
        }

/* Accessibility & motion respect */
@media (prefers-reduced-motion: reduce) {
    .banner-slide {
        transition: none;
    }
}

/* ============================================================
   PRODUCT / BRAND CAROUSEL
=========================================================== */
.product-carousel {
    width: 100%;
    margin: 2rem 0;
    background: #fff;
    /*    overflow: hidden;*/
    position: relative;
    overflow-x: auto;
    overflow-y: visible;
}

    /* right fade */
    .product-carousel::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 80px;
        height: 100%;
        pointer-events: none;
        background: linear-gradient(to left, rgba(255,111,97,0.12) 0%, rgba(255,111,97,0.05) 30%, rgba(255,255,255,0) 100%);
        z-index: 2;
    }

    /* left fade */
    .product-carousel::before {
        content: "";
        position: absolute;
        top: 0;
        left: 4px;
        width: 36px;
        height: 100%;
        pointer-events: none;
        z-index: 0;
        background: linear-gradient(to right, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.4) 40%, rgba(255,255,255,0) 100%);
    }

/* ============================================================
   CAROUSEL HEADER
=========================================================== */
.carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    margin-bottom: 14px;
}

.carousel-header-left {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.carousel-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--neutral-900);
}

.view-all-link {
    font-size: .95rem;
    font-weight: 500;
    color: var(--coral-500);
    text-decoration: none;
}

.carousel-next-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, opacity .2s ease;
}

    .carousel-next-btn svg {
        fill: var(--coral-500);
    }

    .carousel-next-btn:focus-visible {
        outline: 2px solid var(--coral-500);
        outline-offset: 2px;
        border-radius: 6px;
    }

/* ============================================================
   CAROUSEL TRACK
=========================================================== */
.carousel-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    gap: 2px;
    padding: 0 40px 0 48px;
    scrollbar-width: none;
    margin-left: 0rem;
}

    .carousel-track::-webkit-scrollbar {
        display: none;
    }



/* ============================================================
   MID-PAGE BANNER
=========================================================== */
.home-banner-slice.theme-lifestyle {
    width: min(1200px, 100% - 24px); /* ✅ predictable 12px gap each side */
    margin: 2rem auto; /* ✅ balanced spacing */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 1680 / 320;
    background: linear-gradient(90deg, #fff8f7 0%, #ffe9e5 100%);
}
    .home-banner-slice.theme-lifestyle a.banner-link {
        display: block;
        width: 100%;
        height: 100%;
    }

    .home-banner-slice.theme-lifestyle img.banner-bg {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


/* ============================================================
   MOBILE CART FOOTER
=========================================================== */
.mobile-cart-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    border-top: 1px solid #eee;
    font-family: 'Inter', sans-serif;
}

.cart-footer-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-total {
    font-size: 16px;
    font-weight: 600;
    color: #e46d4b;
}

.cart-footer-btn {
    background: #ff6f61;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    padding: 8px 16px;
    font-size: 15px;
    transition: background 0.2s ease;
}

    .cart-footer-btn:hover {
        background: #e46d4b;
    }

@media (min-width: 769px) {
    .mobile-cart-footer {
        display: none !important;
    }
}

/* ============================================================
   AYURCALL — HOME PRODUCT CARD (Carousel Version)
=========================================================== */
.home-card {
    flex: 0 0 auto;
    width: 210px;
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    margin-right: 0.8rem;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    cursor: pointer;
    margin-top: .25rem;
    margin-bottom: .25rem;
}

    .home-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

.home-card-image-link {
    display: block;
    width: 100%;
    aspect-ratio: 1.4 / 1;
    overflow: hidden;
/*    padding: 0.25rem 0;*/
}

.home-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.home-card:hover .home-card-image {
    transform: scale(1.04);
}

.home-card-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--neutral-900);
    padding: 0.4rem 0.75rem 0 0.75rem;
    line-height: 1.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6rem;
}

.home-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    flex-wrap: wrap;
}

.home-card-mrp {
    font-size: 0.85rem;
    color: var(--neutral-600);
    text-decoration: line-through;
}

.home-card-sale {
    font-size: 0.95rem;
    color: var(--coral-600);
    font-weight: 600;
}

.home-card-discount {
    font-size: 0.8rem;
    color: var(--coral-500);
    font-weight: 600;
}

.home-card-actions {
    padding: 0.6rem 0.75rem 0.9rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.home-card-qty-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.home-card-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 1.1rem;
    line-height: 26px;
    color: var(--neutral-900);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
    box-sizing: border-box;
}

    .home-card-qty-btn:hover {
        background: var(--coral-500);
        color: #fff;
        border-color: var(--coral-500);
    }

.home-card-qty-input {
    width: 34px;
    height: 28px;
    line-height: 26px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--neutral-900);
    background: #fff;
    box-sizing: border-box;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.home-card-add-btn {
    width: 100%;
    padding: 0.45rem 0.75rem;
    background: var(--coral-500);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.25s ease;
}

    .home-card-add-btn:hover {
        background: var(--coral-600);
    }

    .home-card-add-btn.added {
        background: var(--success-500) !important;
        transform: scale(1.03);
        animation: homeCardAddedPulse 1.2s ease;
    }

@keyframes homeCardAddedPulse {
    0% {
        box-shadow: 0 0 0 rgba(53,181,111,0.0);
    }

    30% {
        box-shadow: 0 0 10px rgba(53,181,111,0.4);
    }

    100% {
        box-shadow: 0 0 0 rgba(53,181,111,0.0);
    }
}

@media (max-width: 768px) {
    .home-card {
        width: 42%;
        margin-right: 0.5rem;
    }

    .carousel-next-btn {
        display: none !important;
    }

    .carousel-track {
        padding: 0 16px;
    }

    .home-card-mrp {
        font-size: 0.55rem;
    }

    .home-card-sale {
        font-size: 0.65rem;
    }

    .home-card-discount {
        font-size: 0.6rem;
    }
    .banner-slider .slider-container {
        aspect-ratio: auto;
        height: auto;
        max-height: none;
    }

    /* Let JS choose object-fit; CSS just prevents overflows */
    .banner-slider .banner-img {
        object-fit: cover;
        object-position: center;
        width: 100%;
        height: 100%;
    }

    /* Optional background fallback */
    .banner-slide {
        background: #fff;
    }

    .home-banner-slice.theme-lifestyle {
        width: calc(100% - 20px); /* ≈10px padding each side on mobile */
        margin: 2rem auto;
        aspect-ratio: auto;
    }
}

@media (max-width: 480px) {
    .home-card-name {
        font-size: 0.9rem;
    }
}


/* ============================================================
   AYURCALL 2025 — CONDITION CAROUSEL
   Lightweight · Loopable · Responsive · Card-based
=========================================================== */

.condition-carousel {
    margin-top: 0.5rem;
    margin-bottom: 3rem;
    background: #fff;
    /*    overflow: hidden;*/
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
}

    /* Header */
    .condition-carousel .carousel-header {
        padding: 0 48px;
        margin-bottom: 1rem;
    }

    /* Track */
    .condition-carousel .carousel-track {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        scroll-behavior: smooth;
        scroll-snap-type: x proximity;
        gap: 12px;
        padding: 0 48px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

        .condition-carousel .carousel-track::-webkit-scrollbar {
            display: none;
        }

/* ============================================================
   CONDITION CARD
   - Equal-sized image
   - Name below image
   - Clickable area = image only
=========================================================== */
.condition-card {
    flex: 0 0 calc((100% / 7.25) - 8px);
    max-width: 160px;
    min-width: 140px;
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
    scroll-snap-align: start;
    text-align: center;
    overflow: hidden;
    margin-top: .25rem;
    margin-bottom: .25rem;
}

    .condition-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }

/* Image link */
.condition-link {
    display: block;
    width: 100%;
    aspect-ratio: 1.2 / 1;
    overflow: hidden;
    border-radius: inherit;
}

.condition-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Name below image */
.condition-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-top: 0.6rem;
    line-height: 1.2rem;
}
.conditiontrack{
    margin-left:2rem;
}
/* ============================================================
   RESPONSIVE
=========================================================== */
@media (max-width: 992px) {
    .condition-card {
        flex: 0 0 calc((100% / 4.5) - 8px);
    }
}

@media (max-width: 768px) {
    .banner-slider .banner-img {
        height: auto;
        object-fit: contain;
        object-position: center;
        background-color: #fff;
    }
    .midbanner-img {
        object-fit: cover; /* ✅ stay full bleed on mobile too */
        height: auto;
        border-radius: 12px;
    }

    .carousel-header {
        padding: 0 16px !important; /* ✅ same as track */
        margin-bottom: 0.8rem;
    }
    .carousel-track {
        padding: 0 16px !important; /* ✅ same as track */
    }
    .condition-carousel .carousel-header {
        padding: 0 16px;
        margin-bottom: 0.8rem;
    }

    .condition-carousel .carousel-track {
        padding: 0 16px;
        gap: 8px;
    }

    .condition-card {
        flex: 0 0 29%;
        max-width: none;
        min-width: 0;
    }

    .carousel-next-btn {
        display: none !important;
    }

    .condition-name {
        font-size: 0.8rem;
    }
    .conditiontrack {
        margin-left: 1rem;
    }

}
/* ============================================================
   AYURCALL 2025 — BRAND CAROUSEL (Compact Version)
   Optimized for small square logo images
=========================================================== */

.brand-carousel {
    margin-top: 0.5rem;
    margin-bottom: 3rem;
    background: #fff;
    /*    overflow: hidden;*/
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
}

    /* Header */
    .brand-carousel .carousel-header {
        padding: 0 48px;
        margin-bottom: 1rem;
    }

    /* Track */
    .brand-carousel .carousel-track {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        scroll-behavior: smooth;
        scroll-snap-type: x proximity;
        gap: 8px;
        padding: 0 48px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
    }

        .brand-carousel .carousel-track::-webkit-scrollbar {
            display: none;
        }

/* ============================================================
   BRAND CARD — Smaller & tighter
=========================================================== */
.brand-card {
    flex: 0 0 calc((100% / 9.5) - 6px);
    max-width: 120px;
    min-width: 90px;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
    scroll-snap-align: start;
    text-align: center;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    scroll-snap-align: start;
    margin-top: .25rem;
    margin-bottom: .25rem;
}

    .brand-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

/* Brand image */
.brand-link {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
}

.brand-img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

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

/* Brand name below image */
.brand-name {
    margin-bottom: 0.15rem; /* ✅ subtle bottom breathing room only */

    text-align: center;
    width: 80%;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--neutral-900);
    line-height: .95rem;
}

/* ============================================================
   RESPONSIVE
=========================================================== */
@media (max-width: 992px) {
    .brand-card {
        /*        flex: 0 0 calc((100% / 6.5) - 6px);*/
        flex: 0 0 22%;
        max-width: none;
    }
    .brand-img,
    .brand-name {
        width: 86%;
    }

    .brand-name {
        font-size: 0.8rem;
    }

}

@media (max-width: 768px) {
    .brand-carousel .carousel-header {
        padding: 0 16px;
        margin-bottom: 0.8rem;
    }

    .brand-carousel .carousel-track {
        padding: 0 16px;
        gap: 6px;
    }

    .brand-card {
        flex: 0 0 25%;
        padding: 0.45rem;
        padding-bottom: .2rem;
        border-radius: 8px;
        margin-left: .25rem;
    }
    .brand-name {
        margin-bottom: 0.1rem;
        font-size: 0.7rem;
        line-height: 0.9rem;
    }

    .carousel-next-btn {
        display: none !important;
    }
}

/* Add left margin to the first card */
.brand-carousel .carousel-track .brand-card:first-child {
/*    margin-left: 2rem;*/
}

@media (max-width: 768px) {
    .brand-carousel .carousel-track .brand-card:first-child {
        margin-left: 1rem;
    }
}
@media (max-width: 768px) {
    .home-card-qty-btn,
    .home-card-qty-input {
        height: 32px;
        line-height: 30px;
    }

    .home-card-qty-btn {
        font-size: 1.2rem;
    }

    .home-card-qty-input {
        font-size: 1rem;
    }
}

/* ============================================================
   ANDROID TAP / HIGHLIGHT FIX — Unified Coral 2025
=========================================================== */

/* Remove default tap highlight (blue overlay) on touch */
.home-card,
.home-card * {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

    /* Prevent the whole card from showing hover/active color when buttons are pressed */
    .home-card:active {
        background: #fff !important;
        box-shadow: var(--shadow-sm);
    }

/* Maintain hover lift only for real hover devices (like desktop) */
@media (hover: hover) and (pointer: fine) {
    .home-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }
}
.hidden{
    visibility:hidden;
}