/* Nirva Fresh shared storefront shell
   Source: final Ready to Cook design
*/

*{box-sizing:border-box}
body{margin:0;font-family:Poppins,sans-serif;background:#f6f8f5;color:#0f172a}
a{text-decoration:none;color:inherit}
.store-shell{background:#fff;position:sticky;top:0;z-index:1000;box-shadow:0 3px 18px rgba(15,23,42,.06)}
.header{max-width:1200px;margin:auto;min-height:70px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:9px 18px;gap:14px}
.header img{height:42px;display:block}
.header-left,.header-right{display:flex;align-items:center;gap:10px}
.header-left{min-width:0}
.brand-area{display:flex;align-items:center;gap:16px;min-width:0}
.track-order{font-size:12px;font-weight:800;color:#f97316;white-space:nowrap}
.track-order:hover{color:#ea580c}
.icon-btn{width:42px;height:42px;border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0;display:flex;align-items:center;justify-content:center;position:relative;color:#334155;cursor:pointer;font-size:15px;transition:.18s}
.icon-btn:hover{background:#f0fdf4;color:#15803d;border-color:#bbf7d0;transform:translateY(-1px)}
.back-btn{font-family:inherit}
.profile-menu{position:relative}
.profile-dropdown{
    position:absolute;right:0;top:50px;width:185px;background:#fff;
    border:1px solid #e5e7eb;border-radius:12px;
    box-shadow:0 14px 35px rgba(15,23,42,.14);
    padding:6px;display:none;z-index:1300
}
.profile-menu.open .profile-dropdown{display:block}
.profile-dropdown a{
    display:flex;align-items:center;gap:10px;padding:10px 11px;
    border-radius:8px;font-size:11px;font-weight:600;color:#475569
}
.profile-dropdown a i{width:17px;text-align:center;color:#64748b}
.profile-dropdown a:hover{background:#f0fdf4;color:#15803d}
.profile-dropdown a:hover i{color:#15803d}
.profile-dropdown .logout{border-top:1px solid #f1f5f9;margin-top:4px;padding-top:10px;color:#dc2626}
.profile-dropdown .logout i{color:#dc2626}
.profile-dropdown .logout:hover{background:#fff1f2;color:#dc2626}
.search-strip{max-width:1200px;margin:auto;padding:0 18px 10px}
.search-form{display:flex;align-items:center;border:1px solid #dce5dd;background:#fff;border-radius:11px;overflow:hidden;box-shadow:0 2px 8px rgba(15,23,42,.025)}
.search-form i{color:#64748b;margin-left:14px;font-size:13px}
.search-form input{border:0;outline:0;width:100%;height:42px;padding:0 12px;font-family:inherit;font-size:12px;color:#334155;background:transparent}
.search-form button{height:42px;border:0;background:#15803d;color:#fff;padding:0 18px;font-family:inherit;font-size:11px;font-weight:800;cursor:pointer}
.search-form button:hover{background:#166534}
.category-nav{background:#fff;border-top:1px solid #f3f4f6;border-bottom:1px solid #e5e7eb}
.category-nav-inner{max-width:1200px;margin:auto;padding:0 18px;display:flex;justify-content:center;gap:4px;overflow-x:auto;scrollbar-width:none}
.category-nav-inner::-webkit-scrollbar{display:none}
.category-nav a{flex:0 0 auto;padding:11px 13px;font-size:12px;font-weight:600;color:#475569;white-space:nowrap;border-bottom:2px solid transparent}
.category-nav a:hover,.category-nav a.active{color:#15803d;border-bottom-color:#15803d;background:#f8fff9}
.cart-count{position:absolute;right:-5px;top:-5px;background:#84cc16;color:#fff;min-width:19px;height:19px;border-radius:10px;padding:0 5px;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:800}
.footer{
    background:#C0C0C0;
    color:#000000;
    padding:14px 18px;
    margin-top:25px;
}
.footer-inner{
    max-width:1200px;
    margin:auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}
.footer-brand{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:12px;
}
.footer-brand img{
    height:22px;
    width:auto;
    display:block;
}
.footer-links{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px 16px;
    flex-wrap:wrap;
    max-width:650px;
}
.footer-links a{
    color:#000000;
    font-size:11px;
}
.footer-links a:hover{color:#fff}
.footer-copy{
    font-size:11px;
    color:#000000;
    white-space:nowrap;
}
.whatsapp-float{
    position:fixed;
    right:20px;
    bottom:20px;
    width:54px;
    height:54px;
    border-radius:50%;
    background:#25D366;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    box-shadow:0 7px 22px rgba(0,0,0,.22);
    z-index:1200;
    transition:.2s;
}
.whatsapp-float:hover{
    transform:translateY(-2px);
    color:#fff;
}

@media(max-width:520px){
    .header{min-height:58px;padding:7px 10px}
    .header img{height:34px}
    .header-left,.header-right{gap:6px}
    .brand-area{gap:8px}
    .track-order{font-size:10px}
    .icon-btn{width:38px;height:38px;border-radius:10px}
    .search-strip{padding:0 10px 8px}
    .search-form input{height:40px;font-size:11px}
    .search-form button{height:40px;padding:0 12px;font-size:10px}
    .category-nav-inner{justify-content:flex-start;padding:0 8px}
    .category-nav a{padding:9px 10px;font-size:10px}
}
@media(max-width:700px){
    .footer{padding:13px 10px 16px;margin-top:20px}
    .footer-inner{flex-direction:column;text-align:center;gap:8px}
    .footer-links{gap:10px 16px}
    .footer-copy{white-space:normal}
    .whatsapp-float{width:50px;height:50px;right:14px;bottom:14px;font-size:26px}
}

.track-order-strip{
    width:100%;
    height:34px;
    overflow:hidden;
    position:relative;
    background:#f0fdf4;
    border-bottom:1px solid #dcfce7;
}

.track-order-moving{
    position:absolute;
    top:50%;
    left:0;

    display:flex;
    align-items:center;
    gap:7px;

    color:#15803d;
    font-size:14px;
    font-weight:600;
    text-decoration:none;
    white-space:nowrap;

    transform:translateY(-50%);
    animation:trackOrderMove 12s linear infinite;
}

.track-order-moving i{
    font-size:15px;
}

@keyframes trackOrderMove{
    0%{
        left:-160px;
    }

    100%{
        left:100%;
    }
}

.track-order-moving:hover{
    animation-play-state:paused;
}

/* Category menu emphasis */
.category-nav{padding:5px 0;background:#fff}
.category-nav-inner{gap:6px}
.category-nav a{position:relative;display:inline-flex;align-items:center;gap:6px;margin:2px 0;padding:8px 11px;border:1px solid #edf2ee!important;border-radius:9px;background:#f8faf9;transition:.18s ease}
.category-nav a i{font-size:12px;color:#789083;transition:.18s ease}
.category-nav a:hover{color:#15803d;background:#f0fdf4;border-color:#ccebd4!important;box-shadow:0 3px 9px rgba(21,128,61,.07);transform:translateY(-2px)}
.category-nav a:hover i,.category-nav a.active i{color:#15803d}
.category-nav a.active{color:#15803d;background:#ecfdf3;border-color:#bfe7ca!important;box-shadow:0 3px 10px rgba(21,128,61,.08);font-weight:700}
.category-nav a.active:after{content:'';position:absolute;left:20%;right:20%;bottom:-3px;height:2px;border-radius:2px;background:#15803d}
@keyframes nfCategoryIntro{0%,100%{transform:translateY(0)}42%{transform:translateY(-3px)}68%{transform:translateY(0)}82%{transform:translateY(-1px)}}
.category-nav-inner.nf-nav-intro a{animation:nfCategoryIntro .42s ease-out both}
.category-nav-inner.nf-nav-intro a:nth-child(1){animation-delay:.05s}.category-nav-inner.nf-nav-intro a:nth-child(2){animation-delay:.16s}.category-nav-inner.nf-nav-intro a:nth-child(3){animation-delay:.27s}.category-nav-inner.nf-nav-intro a:nth-child(4){animation-delay:.38s}.category-nav-inner.nf-nav-intro a:nth-child(5){animation-delay:.49s}.category-nav-inner.nf-nav-intro a:nth-child(6){animation-delay:.60s}.category-nav-inner.nf-nav-intro a:nth-child(7){animation-delay:.71s}.category-nav-inner.nf-nav-intro a:nth-child(8){animation-delay:.82s}
@media(prefers-reduced-motion:reduce){.category-nav-inner.nf-nav-intro a{animation:none}}
@media(max-width:520px){.category-nav{padding:4px 0}.category-nav-inner{gap:5px}.category-nav a{gap:5px;margin:1px 0;padding:7px 9px;border-radius:8px}.category-nav a i{font-size:10px}}

/* =========================================================
   FINAL CATEGORY MENU OVERRIDE
   Keeps the same rounded button/tile appearance on every
   storefront page even when page-specific CSS is loaded.
   ========================================================= */
.store-shell .category-nav{
    padding:5px 0 !important;
    background:#fff !important;
}

.store-shell .category-nav .category-nav-inner{
    gap:6px !important;
}

.store-shell .category-nav .category-nav-inner > a{
    position:relative !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:6px !important;
    flex:0 0 auto !important;
    margin:2px 0 !important;
    padding:8px 11px !important;
    min-height:34px !important;
    color:#475569 !important;
    background:#f8faf9 !important;
    border:1px solid #e4ebe6 !important;
    border-radius:9px !important;
    box-shadow:none !important;
    white-space:nowrap !important;
    font-size:12px !important;
    font-weight:600 !important;
    line-height:1.2 !important;
    text-decoration:none !important;
    transition:background .18s ease,border-color .18s ease,color .18s ease,
               transform .18s ease,box-shadow .18s ease !important;
}

.store-shell .category-nav .category-nav-inner > a > i{
    font-size:12px !important;
    color:#789083 !important;
    transition:color .18s ease,transform .18s ease !important;
}

.store-shell .category-nav .category-nav-inner > a:hover{
    color:#15803d !important;
    background:#f0fdf4 !important;
    border-color:#ccebd4 !important;
    box-shadow:0 3px 9px rgba(21,128,61,.07) !important;
    transform:translateY(-2px);
}

.store-shell .category-nav .category-nav-inner > a:hover > i{
    color:#15803d !important;
    transform:scale(1.08);
}

.store-shell .category-nav .category-nav-inner > a.active{
    color:#15803d !important;
    background:#ecfdf3 !important;
    border-color:#bfe7ca !important;
    box-shadow:0 3px 10px rgba(21,128,61,.08) !important;
    font-weight:700 !important;
}

.store-shell .category-nav .category-nav-inner > a.active > i{
    color:#15803d !important;
}

.store-shell .category-nav .category-nav-inner > a.active::after{
    content:'' !important;
    position:absolute !important;
    left:20% !important;
    right:20% !important;
    bottom:-3px !important;
    height:2px !important;
    border-radius:2px !important;
    background:#15803d !important;
}

@media(max-width:520px){
    .store-shell .category-nav{padding:4px 0 !important}
    .store-shell .category-nav .category-nav-inner{gap:5px !important}
    .store-shell .category-nav .category-nav-inner > a{
        gap:5px !important;
        margin:1px 0 !important;
        padding:7px 9px !important;
        min-height:31px !important;
        border-radius:8px !important;
        font-size:10px !important;
    }
    .store-shell .category-nav .category-nav-inner > a > i{
        font-size:10px !important;
    }
}


/* HEADER DELIVERY LOCATION */
.brand-logo-link{display:flex;align-items:center;flex:0 0 auto}
.header-location{position:relative;min-width:0}
.header-location-trigger{border:0;background:transparent;padding:5px 7px;display:flex;align-items:center;gap:7px;min-width:0;font-family:inherit;color:#0f172a;cursor:pointer;text-align:left;border-left:1px solid #e5e7eb}
.header-location-trigger>.fa-location-dot{color:#15803d;font-size:15px;flex:0 0 auto}
.header-location-copy{display:flex;flex-direction:column;min-width:0;line-height:1.12}
.header-location-copy small{font-size:10px;font-weight:600;color:#64748b;white-space:nowrap}
.header-location-copy strong{display:block;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px;font-size:12px;font-weight:800;color:#111827}
.header-location-chevron{font-size:9px;color:#64748b;transition:transform .18s;flex:0 0 auto}
.header-location.open .header-location-chevron{transform:rotate(180deg)}
.header-location.is-serviceable .header-location-copy strong{color:#15803d}
.header-location.is-not-serviceable .header-location-copy strong{color:#dc2626}
.header-location-panel{display:none;position:absolute;left:0;top:calc(100% + 9px);z-index:1400;width:330px;padding:12px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 16px 38px rgba(15,23,42,.16)}
.header-location.open .header-location-panel{display:block}
.header-use-location{width:100%;border:0;border-radius:9px;background:#15803d;color:#fff;padding:10px 12px;display:flex;align-items:center;justify-content:center;gap:8px;font-family:inherit;font-size:12px;font-weight:700;cursor:pointer}
.header-use-location:hover{background:#166534}.header-use-location:disabled{opacity:.7;cursor:wait}
.header-location-or{display:flex;align-items:center;gap:9px;margin:10px 0;color:#94a3b8;font-size:10px;font-weight:700}
.header-location-or:before,.header-location-or:after{content:"";height:1px;flex:1;background:#e5e7eb}
.header-location-form{display:flex;gap:7px}
.header-location-form input{min-width:0;flex:1;height:38px;border:1px solid #cbd5e1;border-radius:8px;padding:0 10px;font-family:inherit;font-size:11px;outline:none}
.header-location-form input:focus{border-color:#15803d;box-shadow:0 0 0 2px rgba(21,128,61,.08)}
.header-location-form button{height:38px;border:0;border-radius:8px;background:#15803d;color:#fff;padding:0 12px;font-family:inherit;font-size:11px;font-weight:700;cursor:pointer}
.header-location-status{margin-top:9px;font-size:10.5px;line-height:1.45;color:#64748b}
.header-location.is-serviceable .header-location-status{color:#15803d}.header-location.is-not-serviceable .header-location-status{color:#dc2626}
@media(max-width:700px){.header-location-trigger{padding:4px 5px;gap:5px}.header-location-trigger>.fa-location-dot{font-size:12px}.header-location-copy small{font-size:8px}.header-location-copy strong{max-width:105px;font-size:10px}.header-location-panel{width:min(310px,calc(100vw - 20px));left:-55px}}
@media(max-width:420px)


/* =========================================================
   NIRVA FRESH - SHARED PRODUCT IMAGE CAROUSEL
   Desktop: auto-rotate while image is hovered.
   Touch: swipe left/right. One-image products remain static.
   ========================================================= */
.nf-image-carousel{
    position:absolute;
    inset:0;
    overflow:hidden;
    border-radius:inherit;
    touch-action:pan-y;
    user-select:none;
    -webkit-user-select:none;
}

.nf-carousel-track{
    position:absolute;
    inset:0;
}

.nf-product-image .nf-carousel-slide{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:contain;
    opacity:0;
    visibility:hidden;
    transition:opacity .24s ease;
    pointer-events:none;
}

.nf-product-image .nf-carousel-slide.is-active{
    opacity:1;
    visibility:visible;
}

.nf-carousel-dots{
    position:absolute;
    left:50%;
    bottom:6px;
    z-index:4;
    transform:translateX(-50%);
    display:flex;
    align-items:center;
    justify-content:center;
    gap:4px;
    padding:3px 5px;
    border-radius:999px;
    background:rgba(255,255,255,.82);
}

.nf-carousel-dot{
    width:5px;
    height:5px;
    border-radius:50%;
    background:#c7cdd1;
    transition:width .18s ease, background .18s ease;
    cursor:pointer;
}

.nf-carousel-dot.is-active{
    width:12px;
    border-radius:999px;
    background:#15803d;
}

/* Keep existing discount/out-of-stock badges above carousel images. */
.nf-product-image > .nf-discount-badge,
.nf-product-image > .nf-out-stock-badge{
    z-index:6;
}

@media (max-width:768px){
    .nf-carousel-dots{
        bottom:4px;
        gap:3px;
        padding:2px 4px;
    }
    .nf-carousel-dot{
        width:4px;
        height:4px;
    }
    .nf-carousel-dot.is-active{
        width:10px;
    }
}

