/* ============================================================
   BRAND.CSS  -  Brand page (index / best-sellers jaisi theme)
   ------------------------------------------------------------
   Sky-blue background + glass product cards + white headings.
   Sirf header.css + footer.css ke saath chalta hai.
   Markup: brand.php  |  JS: js/typical-section.js
     1. Colors / helpers
     2. Top banner (image + dark transparent overlay + breadcrumb / heading upar)
     3. Heading + breadcrumb + intro
     4. Product card (GLASS) + badges + image hover + info + grid
     5. Mobile
     6. Page ke apne hisse (loader / sentinel / no products)
     7. Background (moving dark blobs + clouds + grain; hover par product ke color me badalta hai)
     8. Mobile / touch: add-to-cart bag button + wishlist heart
     9. Buttons: transparent glass + 3-4 rang mesh + patli MOVING BORDER hover
    10. ADD TO CART: click par "Added" teal look (.atc-done)
    11. About + FAQ block (SEO + GEO)
    12. Small phones
    13. Reduced motion

   LATEST CHANGE (banner overlay):
    - Banner par halka dark transparent overlay (.brand-hero::after). Kitna dark: .brand-hero { --banner-dark }.
    - Breadcrumb + "<Brand> Collection" heading ab banner ke andar (neeche-beech) dikhte hain.
    - Banner image toot jaye to .no-img class se text normal page jaisa dikhta hai.

   EARLIER (index theme):
    - Card par hover se upar uthna + shine HATA (index jaisa); card par blur nahi -> scroll smooth.
    - Badge: header jaisa  OUT OF STOCK = laal pill (.mbadge-oos), DISCOUNT = hara gol (.mbadge-off).
    - Buttons (ADD TO CART / wishlist) = index wale glass + mesh + moving border.
    - Mobile: ADD TO CART = chhota BAG icon, wishlist heart touch par smoothly aata hai.
    - Naye classes: visually-hidden, breadcrumb-nav, seo-block, faq-item, scroll-sentinel.
============================================================ */

/* ============================================================
   1. COLORS / HELPERS
============================================================ */
:root{
    /* WISHLIST + ADD TO CART button ka GLASS look (desktop + mobile dono par same) - yahin se badlo */
    --glass-btn-bg:
        radial-gradient(circle at 30% 22%, rgba(255,255,255,.60) 0%, rgba(255,255,255,0) 58%),
        linear-gradient(150deg, rgba(255,255,255,.36) 0%, rgba(255,255,255,.10) 55%, rgba(255,255,255,.24) 100%);
    --glass-btn-border:rgba(255,255,255,.75);
    --glass-btn-shadow:
        inset 0 1.5px 1px rgba(255,255,255,.9),
        inset 0 -6px 12px rgba(255,255,255,.12),
        0 6px 16px rgba(0,40,90,.28);
    --glass-btn-blur:blur(10px) saturate(180%);
}

.container{ max-width:1440px; margin:0 auto; padding:0 15px; }

.visually-hidden{
    position:absolute !important; width:1px; height:1px; margin:-1px; padding:0;
    overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* ============================================================
   2. TOP BANNER  (brand banner + dark transparent overlay + breadcrumb / heading upar)
   ------------------------------------------------------------
   Overlay kitna dark: neeche --banner-dark (0 = bilkul nahi, .3 halka, .5 medium, .7 gehra)
   Height: desktop clamp(320px, 48vh, 480px) | mobile clamp(300px, 44vh, 400px)
   Text banner ke neeche-beech me rehta hai (upar header glass me tairta hai).
   Banner image na ho / toot jaye to PHP .no-img lagata hai: text normal page jaisa dikhta hai.
============================================================ */
.brand-hero{
    --banner-dark:.45;
    position:relative; width:100%; overflow:hidden;
    height:clamp(320px, 48vh, 480px);
    display:flex; align-items:flex-end; justify-content:center;
    box-shadow:0 18px 40px -18px rgba(0,30,60,.55);
}
.brand-hero img{
    position:absolute; inset:0; width:100%; height:100%;
    object-fit:cover; object-position:center; display:block;
}
/* dark transparent overlay: upar (header ke liye) aur neeche (text ke liye) thoda zyada gehra */
.brand-hero::after{
    content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
    background:linear-gradient(180deg,
        rgba(3,22,59, calc(var(--banner-dark) + .15)) 0%,
        rgba(3,22,59, var(--banner-dark)) 40%,
        rgba(3,22,59, calc(var(--banner-dark) + .25)) 100%);
}
.brand-hero-text{
    position:relative; z-index:2; width:100%; max-width:1100px;
    padding:0 20px 34px; text-align:center;
}
.brand-hero-text .breadcrumb-nav{ margin-bottom:12px; color:#fff; text-shadow:0 1px 8px rgba(0,0,0,.7); }
.brand-hero-text .breadcrumb-nav [aria-current="page"]{ color:#e3f0fb; }
.brand-hero-text .main-trending-title{ text-shadow:0 2px 16px rgba(0,0,0,.65); word-break:break-word; }
.brand-hero-text .style-line{ margin:14px auto 0; }

/* banner image toot jaye: banner ka box hata, text normal page jaisa (header ke neeche) */
.brand-hero.no-img{
    height:auto; display:block; box-shadow:none; overflow:visible;
    padding:150px 0 10px;
}
.brand-hero.no-img::after{ display:none; }
.brand-hero.no-img .brand-hero-text{ margin:0 auto; padding:0 20px 10px; }

/* ============================================================
   3. HEADING + BREADCRUMB + INTRO
   (banner na ho to ye .trending-header container me dikhta hai)
============================================================ */
.trending-header{
    position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center;
    margin-top:50px; margin-bottom:25px; padding:0 20px;
}
.breadcrumb-nav{
    margin-bottom:14px; font-size:.8rem; letter-spacing:.3px; text-align:center;
    color:#e3f0fb; text-shadow:0 1px 6px rgba(0,30,60,.45);
}
.breadcrumb-nav a{ color:#fff; text-decoration:none; border-bottom:1px solid rgba(255,255,255,.4); transition:border-color .25s ease; }
.breadcrumb-nav a:hover{ border-color:#19c2ff; }
.breadcrumb-nav [aria-current="page"]{ color:#cfe6f8; }

.main-trending-title{
    font-size:2rem; font-weight:700; text-transform:uppercase; text-align:center;
    margin:0; color:#fff; text-shadow:0 2px 14px rgba(0,50,120,.55);
    letter-spacing:3px; line-height:1.2;
}
.style-line{
    width:70px; height:4px; border-radius:2px; margin:14px auto 6px;
    background:linear-gradient(90deg,#19c2ff,#7b3ff2); box-shadow:0 0 12px rgba(25,194,255,.6);
}
.collection-intro{
    max-width:820px; margin:30px auto 24px; padding:0 15px; text-align:center;
    color:#e3f0fb; font-size:.92rem; line-height:1.7; text-shadow:0 1px 8px rgba(0,30,60,.45);
}
@media(max-width:768px){
    .trending-header{ margin-top:40px; }
    .main-trending-title{ font-size:1.5rem; letter-spacing:2px; }
    .collection-intro{ margin-top:22px; }
}

/* ============================================================
   4. PRODUCT CARD (GLASS) + GRID
   ------------------------------------------------------------
   PERFORMANCE: card par backdrop-filter (blur) nahi -> scroll smooth.
   Andar ke buttons par bhi blur band (--glass-btn-blur:none).
============================================================ */
.product-card{
    position:relative; height:100%; overflow:hidden; isolation:isolate;
    background:
        radial-gradient(120% 70% at 12% 0%, rgba(255,255,255,.30) 0%, rgba(255,255,255,0) 55%),
        linear-gradient(150deg, rgba(255,255,255,.20) 0%, rgba(255,255,255,.06) 45%, rgba(255,255,255,.14) 100%);
    border:1px solid rgba(255,255,255,.38);
    border-radius:22px; padding:8px;
    box-shadow:
        inset 0 1.5px 1px rgba(255,255,255,.75),
        inset 1px 0 2px rgba(255,255,255,.25),
        inset 0 -14px 28px rgba(255,255,255,.06);
    --glass-btn-blur:none;
}
.main-link{ position:absolute; inset:0; z-index:5; }

.img-box{
    position:relative; background:transparent; border-radius:12px; overflow:hidden;
    border:1px solid transparent;
}

.lazy-fade-img{ opacity:0; }
.lazy-fade-img.loaded{ opacity:1; }

/* ------------------------------------------------------------
   BADGE = HEADER (mega menu) JAISA
   OUT OF STOCK = lamba LAAL pill | DISCOUNT = HARA gol (46px)
------------------------------------------------------------ */
.product-card .mbadge{
    position:absolute; top:10px; left:10px; z-index:6; pointer-events:none;
    width:46px; height:46px; border-radius:50%;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    color:#fff; text-align:center; line-height:1;
    border:1px solid rgba(255,255,255,.85);
    box-shadow:inset 0 2px 3px rgba(255,255,255,.45), 0 6px 12px -4px rgba(0,25,50,.5);
    text-shadow:none;
}
.product-card .mbadge b{ display:block; font-size:11px; font-weight:800; letter-spacing:.01em; }
.product-card .mbadge small{ display:block; margin-top:2px; font-size:8.5px; font-weight:700; letter-spacing:.06em; }
.product-card .mbadge-oos{
    background:#e53935; width:auto; height:auto; border-radius:999px;
    flex-direction:row; padding:6px 14px;
    font-size:11px; font-weight:700; letter-spacing:.04em; line-height:1.25; white-space:nowrap;
}
.product-card .mbadge-off{ background:#1faa59; }

.wishlist-btn{
    position:absolute; top:12px; right:12px; width:35px; height:35px; z-index:6;
    isolation:isolate;
    background:var(--glass-btn-bg); border:1px solid var(--glass-btn-border); border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    cursor:pointer; color:#fff; text-shadow:0 1px 4px rgba(0,30,60,.5);
    box-shadow:var(--glass-btn-shadow);
    -webkit-backdrop-filter:var(--glass-btn-blur); backdrop-filter:var(--glass-btn-blur);
    opacity:0; transition:opacity .3s, color .3s, transform .35s cubic-bezier(.25,1.25,.4,1);
}
@media (hover:hover){ .product-card:hover .wishlist-btn{ opacity:1; } }
.wishlist-btn:hover{ color:#ff5d73; transform:scale(1.1); }
.wishlist-btn i.text-danger{ color:#d32f2f; }

/* ------------------------------------------------------------
   PRODUCT IMAGE: 1st (.main-img) <-> 2nd (.hover-img)
   Dono images ek ke upar ek (absolute). Smooth crossfade: opacity .55s + zoom .7s.
   2nd image tabhi dikhti hai jab .loaded ho (JS me load hone ke baad lagta hai),
   warna 1st image hi dikhti rahe (ghayab nahi hoti).
------------------------------------------------------------ */
.product-img-container{
    width:100%; height:340px; position:relative; overflow:hidden;
    contain:layout paint;
}
/* bottle ke neeche halki nakli shadow */
.product-img-container::after{
    content:""; position:absolute; left:20%; right:20%; bottom:14px; height:18px;
    border-radius:50%; z-index:0; pointer-events:none;
    background:radial-gradient(ellipse at center, rgba(0,25,55,.22) 0%, rgba(0,25,55,0) 70%);
}
.product-img-container img{
    position:absolute; top:0; left:0; width:100%; height:100%;
    padding:20px; box-sizing:border-box; object-fit:contain;
    transition:opacity .55s ease, transform .7s ease;
}
.product-img-container img.main-img{ z-index:1; }
/* .loaded se opacity:1 na ho jaye, isliye .loaded ke saath bhi 0 */
.product-img-container img.hover-img,
.product-img-container img.hover-img.loaded{ z-index:2; opacity:0; }

/* LAPTOP: mouse hover. (Mobile par sticky :hover se jhatka lagta tha, isliye sirf hover:hover devices par) */
@media (hover:hover){
    .product-card:hover .img-box img.main-img{ transform:scale(1.05); }
    .product-card:hover .img-box:has(img.hover-img.loaded) img.main-img{ opacity:0; }
    .product-card:hover .img-box img.hover-img.loaded{ opacity:1; transform:scale(1.05); }
}
/* MOBILE: ungli jis card par ho (JS: .touch-active) */
.product-card.touch-active .img-box img.main-img{ transform:scale(1.05); }
.product-card.touch-active .img-box:has(img.hover-img.loaded) img.main-img{ opacity:0; }
.product-card.touch-active .img-box img.hover-img.loaded{ opacity:1; transform:scale(1.05); }

.add-cart-btn{
    position:absolute; bottom:15px; left:50%; transform:translateX(-50%) translateY(15px);
    isolation:isolate;
    width:90%; opacity:0; visibility:hidden;
    transition:opacity .3s ease, visibility .3s ease, transform .3s ease; z-index:7;
    background:var(--glass-btn-bg); border:1px solid var(--glass-btn-border); color:#fff;
    text-shadow:0 1px 4px rgba(0,30,60,.5);
    box-shadow:var(--glass-btn-shadow);
    -webkit-backdrop-filter:var(--glass-btn-blur); backdrop-filter:var(--glass-btn-blur);
    padding:10px; text-align:center; font-size:11px; font-weight:700; border-radius:25px; cursor:pointer;
}
.product-card:hover .add-cart-btn{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.add-cart-btn.oos-btn{ background:#444 !important; color:#fff !important; border-color:#444 !important; cursor:not-allowed !important; -webkit-backdrop-filter:none; backdrop-filter:none; box-shadow:none; }

/* naam / price ka glass patti */
.info{
    padding:12px 8px; margin-top:5px; border-radius:16px;
    background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.22);
    box-shadow:inset 0 1px 1px rgba(255,255,255,.35);
}
.info .brand{ font-size:10px; color:rgba(255,255,255,.80); font-weight:700; text-transform:uppercase; margin-bottom:2px; letter-spacing:.5px; }
.info .title{ font-size:14px; font-weight:600; color:#fff; height:38px; overflow:hidden; margin-bottom:5px; line-height:1.3; }
.price-row{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.curr-price{ color:#fff; font-weight:700; font-size:15px; }

/* KATI HUI (original) PRICE: bada + saaf (peeche halka safed pill) */
.old-price{
    color:#c8102e; font-size:13px; font-weight:400; line-height:1.2;
    text-decoration:line-through; text-decoration-thickness:1px; text-decoration-color:rgba(200,16,46,.75);
    background:rgba(255,255,255,.88); padding:2px 8px; border-radius:10px;
    box-shadow:0 2px 8px rgba(0,40,90,.25); text-shadow:none;
}
.info .brand, .info .title, .curr-price{ text-shadow:0 1px 6px rgba(0,30,60,.45); }

/* Static grid
   padding-bottom (40px) = last row aur About block ke beech ki doori. */
.product-grid{ display:flex; flex-wrap:wrap; gap:20px; padding:10px 0 40px; }
.grid-item{ width:calc(25% - 15px); flex-shrink:0; }

/* ============================================================
   5. MOBILE (<=768px)
============================================================ */
@media(max-width:768px){
    .brand-hero{ height:clamp(300px, 44vh, 400px); }
    .brand-hero-text{ padding:0 14px 24px; }
    .brand-hero-text .main-trending-title{ font-size:1.35rem; letter-spacing:1.5px; }
    .brand-hero-text .breadcrumb-nav{ font-size:.74rem; margin-bottom:8px; }

    .product-grid{ gap:10px; padding:10px 0 30px; }
    .grid-item{ width:calc(50% - 5px); }

    .product-card{ padding:4px; border-radius:16px; }
    .product-img-container{ height:170px; }
    .product-img-container::after{ bottom:8px; height:12px; }
    .product-img-container img{ padding:6px; }
    .info .title{ font-size:12px; height:32px; }

    /* kati hui price mobile par */
    .old-price{ font-size:11px; padding:1px 6px; }

    /* badge mobile par thoda chhota */
    .product-card .mbadge{ width:40px; height:40px; top:8px; left:8px; }
    .product-card .mbadge b{ font-size:10px; }
    .product-card .mbadge small{ font-size:7px; }
    .product-card .mbadge-oos{ width:auto; height:auto; padding:4px 9px; font-size:9px; }
}
@media(max-width:400px){
    .product-img-container{ height:140px; }
    .product-img-container img{ padding:4px; }
}

/* ============================================================
   6. PAGE KE APNE HISSE
============================================================ */
.no-products-msg{ width:100%; text-align:center; padding:40px 0; color:#e3f0fb; font-size:15px; text-shadow:0 1px 8px rgba(0,30,60,.45); }

/* Infinite scroll: sentinel dikhte hi agle products aate hain */
.scroll-sentinel{ height:1px; width:100%; pointer-events:none; }

/* Infinite-scroll loader: gif bilkul center me, "Loading..." uske neeche */
.scroll-loader{ display:none; text-align:center; padding:20px 20px 40px; width:100%; }
.scroll-loader img{ display:block; margin:0 auto; width:40px; height:auto; }
.scroll-loader p{ text-align:center; color:#e3f0fb; font-size:13px; margin:5px 0 0; text-shadow:0 1px 6px rgba(0,30,60,.45); }

/* ============================================================
   7. BACKGROUND: light sky-blue + gehre dark blue moving blobs +
      safed clouds + halka grain   (all-brands / by-type jaisa same background)
   ------------------------------------------------------------
   3 rang (variables):
     --bg1  = sky ka UPAR wala rang (neeche wala --bg1b isi se apne aap banta hai)
     --bg2  = gehre dark blobs (3)       --bg3  = safed clouds (2)
   js/typical-section.js hover par rang product ke color me badalta hai;
   mouse hatne par wapas default.
   Default badalna ho to sirf html{ --bg1 --bg2 --bg3 } badlo.

   Layers:
     html::before -> sky gradient (upar --bg1, neeche --bg1b)
     html::after  -> 3 dark blobs + 2 cloud blobs (poori screen me ghoomte hain)
     body::before -> grain (halka, overlay)

   Blobs: --bNx / --bNy = center, --bNr = radius (N = 1..5; 1,2,3 = dark, 4,5 = clouds)
   Speed = html::after ke animation me 20s / 24s / 22s / 26s / 30s (number badhao = dheere)
   GRAIN: body::before me baseFrequency='.5' aur opacity .5

   Agar background na dikhe to header.css / footer.css me body ya html par
   solid background / z-index check karo.
============================================================ */
@property --bg1  { syntax:'<color>'; inherits:true; initial-value:#bfe4fa; }
@property --bg2  { syntax:'<color>'; inherits:true; initial-value:#03163b; }
@property --bg3  { syntax:'<color>'; inherits:true; initial-value:#ffffff; }

@property --b1x { syntax:'<length>'; inherits:false; initial-value:0px; }
@property --b1y { syntax:'<length>'; inherits:false; initial-value:0px; }
@property --b1r { syntax:'<length>'; inherits:false; initial-value:0px; }
@property --b2x { syntax:'<length>'; inherits:false; initial-value:0px; }
@property --b2y { syntax:'<length>'; inherits:false; initial-value:0px; }
@property --b2r { syntax:'<length>'; inherits:false; initial-value:0px; }
@property --b3x { syntax:'<length>'; inherits:false; initial-value:0px; }
@property --b3y { syntax:'<length>'; inherits:false; initial-value:0px; }
@property --b3r { syntax:'<length>'; inherits:false; initial-value:0px; }
@property --b4x { syntax:'<length>'; inherits:false; initial-value:0px; }
@property --b4y { syntax:'<length>'; inherits:false; initial-value:0px; }
@property --b4r { syntax:'<length>'; inherits:false; initial-value:0px; }
@property --b5x { syntax:'<length>'; inherits:false; initial-value:0px; }
@property --b5y { syntax:'<length>'; inherits:false; initial-value:0px; }
@property --b5r { syntax:'<length>'; inherits:false; initial-value:0px; }

html{
    --bg1:#bfe4fa;      /* sky upar (light) */
    --bg2:#03163b;      /* gehra dark blue */
    --bg3:#ffffff;      /* safed clouds */
    --bg1b:color-mix(in srgb, var(--bg1) 45%, #1a5a92);   /* sky neeche: --bg1 se apne aap banta hai */
    transition:--bg1 .3s ease, --bg2 .3s ease, --bg3 .3s ease;
}

html::before{
    content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
    background:linear-gradient(to bottom, var(--bg1), var(--bg1b));
}

html::after{
    content:""; position:fixed; inset:0; z-index:-1; pointer-events:none; overflow:hidden;

    --b1x:15vmax;                  --b1y:15vmax;                    --b1r:42vmax;
    --b2x:calc(100vw - 12.5vmax);  --b2y:calc(100vh - 12.5vmax);    --b2r:39vmax;
    --b3x:12.5vmax;                --b3y:calc(55vh + 22.5vmax);     --b3r:32vmax;
    --b4x:calc(40vw + 25vmax);     --b4y:calc(10vh + 20vmax);       --b4r:22vmax;
    --b5x:calc(55vw + 22.5vmax);   --b5y:calc(45vh + 17.5vmax);     --b5r:20vmax;

    background:
        radial-gradient(circle var(--b5r) at var(--b5x) var(--b5y), color-mix(in srgb, var(--bg3) 60%, transparent) 0%, transparent 100%),
        radial-gradient(circle var(--b4r) at var(--b4x) var(--b4y), color-mix(in srgb, var(--bg3) 70%, transparent) 0%, transparent 100%),
        radial-gradient(circle var(--b3r) at var(--b3x) var(--b3y), color-mix(in srgb, var(--bg2) 85%, transparent) 0%, transparent 100%),
        radial-gradient(circle var(--b2r) at var(--b2x) var(--b2y), color-mix(in srgb, var(--bg2) 92%, transparent) 0%, transparent 100%),
        radial-gradient(circle var(--b1r) at var(--b1x) var(--b1y), color-mix(in srgb, var(--bg2) 92%, transparent) 0%, transparent 100%);

    animation:
        alifB1 20s ease-in-out infinite alternate,
        alifB2 24s ease-in-out infinite alternate,
        alifB3 22s ease-in-out infinite alternate,
        alifB4 26s ease-in-out infinite alternate,
        alifB5 30s ease-in-out infinite alternate;
}
@keyframes alifB1{
    0%   { --b1x:15vmax;                 --b1y:15vmax;                 --b1r:42vmax; }
    50%  { --b1x:calc(15vmax + 60vw);    --b1y:calc(15vmax + 30vh);    --b1r:50vmax; }
    100% { --b1x:calc(15vmax + 20vw);    --b1y:calc(15vmax + 70vh);    --b1r:38vmax; }
}
@keyframes alifB2{
    0%   { --b2x:calc(100vw - 12.5vmax); --b2y:calc(100vh - 12.5vmax); --b2r:39vmax; }
    50%  { --b2x:calc(45vw - 12.5vmax);  --b2y:calc(60vh - 12.5vmax);  --b2r:45vmax; }
    100% { --b2x:calc(80vw - 12.5vmax);  --b2y:calc(25vh - 12.5vmax);  --b2r:39vmax; }
}
@keyframes alifB3{
    0%   { --b3x:12.5vmax;               --b3y:calc(55vh + 22.5vmax);  --b3r:32vmax; }
    50%  { --b3x:calc(12.5vmax + 70vw);  --b3y:calc(25vh + 22.5vmax);  --b3r:38vmax; }
    100% { --b3x:calc(12.5vmax + 90vw);  --b3y:calc(75vh + 22.5vmax);  --b3r:29vmax; }
}
@keyframes alifB4{
    0%   { --b4x:calc(40vw + 25vmax);    --b4y:calc(10vh + 20vmax);    --b4r:22vmax; }
    50%  { --b4x:calc(-5vw + 25vmax);    --b4y:calc(35vh + 20vmax);    --b4r:26.4vmax; }
    100% { --b4x:calc(-30vw + 25vmax);   --b4y:calc(60vh + 20vmax);    --b4r:20.9vmax; }
}
@keyframes alifB5{
    0%   { --b5x:calc(55vw + 22.5vmax);  --b5y:calc(45vh + 17.5vmax);  --b5r:20vmax; }
    50%  { --b5x:calc(5vw + 22.5vmax);   --b5y:calc(15vh + 17.5vmax);  --b5r:23vmax; }
    100% { --b5x:calc(35vw + 22.5vmax);  --b5y:calc(-5vh + 17.5vmax);  --b5r:20vmax; }
}

/* grain: overlay wala grayscale dana - light aur dark dono jagah dikhe. Cards par grain nahi (clean glass). */
body::before{
    content:""; position:fixed; inset:-80px; z-index:-1; pointer-events:none;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.5' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='1.8' intercept='-.4'/%3E%3CfeFuncG type='linear' slope='1.8' intercept='-.4'/%3E%3CfeFuncB type='linear' slope='1.8' intercept='-.4'/%3E%3CfeFuncA type='linear' slope='0' intercept='1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size:160px 160px;
    opacity:.5; mix-blend-mode:overlay;
    animation:alifGrain .8s steps(1) infinite;
}
@keyframes alifGrain{
    0%  { transform:translate(0,0); }
    25% { transform:translate(-30px,20px); }
    50% { transform:translate(25px,-30px); }
    75% { transform:translate(-15px,-35px); }
    100%{ transform:translate(0,0); }
}
body::after{ display:none; }
@media(max-width:768px){
    body::before{ animation:none; }          /* mobile par grain static */
}

/* scroll ke dauran background blobs + grain pause (agar JS ne html.is-scrolling lagayi ho) */
html.is-scrolling::after,
html.is-scrolling body::before{ animation-play-state:paused; }

/* ============================================================
   8. MOBILE / TOUCH
   ------------------------------------------------------------
   A) ADD TO CART  ->  chhota BAG icon button (sirf mobile <=768px)
      Lamba "ADD TO CART" hata kar image ke neeche-right kone me gol bag button
      (wishlist upar-right, bag neeche-right). Bag par tap = cart me add (onclick pehle jaisa).
      Size badalna ho to width/height (38px) badlo.
   B) WISHLIST heart: mobile / touch par default me HIDDEN. Ungli card par aate hi
      (.touch-active, JS: js/typical-section.js) 2nd image ke saath smoothly dikhta hai.
      Chhupa hone par pointer-events:none -> tap seedha product page par jata hai.
============================================================ */
@media (max-width:768px){
    .product-card .add-cart-btn,
    .product-card:hover .add-cart-btn{
        position:absolute; left:auto; top:auto; right:8px; bottom:8px; transform:none;
        width:38px; height:38px; margin:0; padding:0; border-radius:50%;
        display:flex; align-items:center; justify-content:center;
        font-size:0; line-height:1;                       /* "ADD TO CART" likha hua chhup jata hai, sirf icon */
        opacity:1; visibility:visible; z-index:9;
        background:var(--glass-btn-bg); color:#fff; border:1px solid var(--glass-btn-border);
        box-shadow:var(--glass-btn-shadow);
        -webkit-backdrop-filter:var(--glass-btn-blur); backdrop-filter:var(--glass-btn-blur);
        text-shadow:0 1px 4px rgba(0,30,60,.5);
        transition:transform .2s ease, background .25s ease;
    }
    /* BAG ICON: font glyph ki jagah barabar (symmetric) SVG bag, button ke THEEK BEECH me. Size: width/height (18px) */
    .product-card .add-cart-btn{ justify-content:center; align-items:center; align-content:center; letter-spacing:0; }
    .product-card .add-cart-btn i{
        flex:none; display:block; width:18px; height:18px; margin:0; padding:0;
        font-size:0; line-height:0; letter-spacing:0; text-shadow:none;
        background:currentColor;
        -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center / contain no-repeat;
                mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center / contain no-repeat;
        filter:drop-shadow(0 1px 2px rgba(0,20,50,.55));
    }
    .product-card .add-cart-btn i::before{ content:none; }
    .product-card .add-cart-btn:active{ transform:scale(.9); }

    /* Out of stock: card par pehle se "OUT OF STOCK" badge hai, isliye button ki jagah nahi chahiye */
    .product-card .add-cart-btn.oos-btn{ display:none !important; }
}
@media (max-width:400px){
    .product-card .add-cart-btn,
    .product-card:hover .add-cart-btn{ width:34px; height:34px; right:6px; bottom:6px; }
    .product-card .add-cart-btn i{ width:16px; height:16px; }
}

/* ---- B) WISHLIST HEART ---- */
@media (max-width:900px), (hover:none){
    .product-card .wishlist-btn{
        display:flex; visibility:visible; z-index:9;
        width:34px; height:34px; top:8px; right:8px;
        background:var(--glass-btn-bg); color:#fff; border:1px solid var(--glass-btn-border);
        box-shadow:var(--glass-btn-shadow);
        -webkit-backdrop-filter:var(--glass-btn-blur); backdrop-filter:var(--glass-btn-blur);
        opacity:0; pointer-events:none; transform:scale(.8);
        transition:opacity .45s ease, transform .5s cubic-bezier(.25,1.25,.4,1), box-shadow .35s ease, border-color .3s ease, color .3s ease;
    }
    .product-card .wishlist-btn i{ display:block; font-size:15px; line-height:1; color:inherit; text-shadow:0 1px 3px rgba(0,20,50,.6); }
    .product-card .wishlist-btn i.text-danger{ color:#ff5d73; }

    /* touch: card active hote hi dikhao (2nd image ke saath) */
    .product-card.touch-active .wishlist-btn{ opacity:1; pointer-events:auto; transform:scale(1); }
}
/* chhoti desktop window (mouse): card par hover karne par dikhao */
@media (max-width:900px) and (hover:hover){
    .product-card:hover .wishlist-btn{ opacity:1; pointer-events:auto; transform:scale(1); }
}

/* ============================================================
   9. BUTTONS  -  TRANSPARENT GLASS + 3-4 RANG MESH + MOVING BORDER HOVER
   ------------------------------------------------------------
   (index.php wale buttons jaisa SAME design)
   Normal : halka transparent glass, andar blue + violet + pink + peach ka soft mix.
   HOVER  : sirf patli border me 3 rang (blue / pink / peach) ghoomte hain.
            Andar ka rang, shadow, size - kuch nahi badalta.

   Buttons covered:
     .add-cart-btn  -> product card ADD TO CART (desktop pill + mobile bag)
     .wishlist-btn  -> heart

   Rang / speed badalne ke liye neeche ke --atc-* variables.
============================================================ */
@property --atc-ang{ syntax:'<angle>'; inherits:false; initial-value:0deg; }

:root{
    --atc-blue:#3d9bff;
    --atc-violet:#9b7bff;
    --atc-pink:#ff6f9a;
    --atc-peach:#ffc48a;

    --atc-mesh-op:.7;            /* rang ki tezi (.4 halka ... 1 tez) */
    --atc-ring-w:1.5px;          /* moving border ki motai (patli) */
    --atc-ring-speed:3s;         /* ek chakkar ka time (kam = tez) */

    --atc-glass:
        linear-gradient(150deg, rgba(255,255,255,.26) 0%, rgba(255,255,255,.07) 55%, rgba(255,255,255,.16) 100%);
    --atc-border:rgba(255,255,255,.55);
    --atc-shadow:
        inset 0 1.5px 1px rgba(255,255,255,.85),
        inset 0 -6px 12px rgba(255,255,255,.10),
        0 8px 18px -8px rgba(0,30,80,.45);
    --atc-text-shadow:0 1px 4px rgba(0,25,70,.6);

    --atc-mesh-pill:
        radial-gradient(38% 95% at 80% 6%,   var(--atc-blue)   0%, transparent 100%),
        radial-gradient(40% 85% at 62% 112%, var(--atc-pink)   0%, transparent 100%),
        radial-gradient(30% 95% at 102% 48%, var(--atc-peach)  0%, transparent 100%),
        radial-gradient(28% 75% at 42% 30%,  var(--atc-violet) 0%, transparent 100%);
    --atc-mesh-round:
        radial-gradient(65% 65% at 82% 10%,  var(--atc-blue)   0%, transparent 100%),
        radial-gradient(65% 65% at 55% 112%, var(--atc-pink)   0%, transparent 100%),
        radial-gradient(55% 55% at 104% 55%, var(--atc-peach)  0%, transparent 100%),
        radial-gradient(45% 45% at 25% 35%,  var(--atc-violet) 0%, transparent 100%);

    /* ghoomti patli border: 3 rang (blue -> pink -> peach) poori border par */
    --atc-ring:conic-gradient(from var(--atc-ang),
        var(--atc-blue) 0deg, var(--atc-pink) 120deg, var(--atc-peach) 240deg, var(--atc-blue) 360deg);
}

/* ---- A) BASE: transparent glass ---- */
.product-card .add-cart-btn:not(.oos-btn),
.product-card .wishlist-btn{
    position:absolute; isolation:isolate; overflow:hidden;
    background:var(--atc-glass);
    border:1px solid var(--atc-border);
    color:#fff; font-weight:700; letter-spacing:.4px;
    text-shadow:var(--atc-text-shadow);
    box-shadow:var(--atc-shadow);
    transition:transform .4s cubic-bezier(.25,1.25,.4,1), box-shadow .35s ease, border-color .3s ease, color .3s ease;
}
/* add-cart ka show/hide transition bhi chalta rahe */
.product-card .add-cart-btn:not(.oos-btn){
    transition:opacity .3s ease, visibility .3s ease, transform .4s cubic-bezier(.25,1.25,.4,1), box-shadow .35s ease, border-color .3s ease;
}

/* ---- B) MESH (::before): 3-4 rang ka halka blur ---- */
.product-card .add-cart-btn:not(.oos-btn)::before,
.product-card .wishlist-btn::before{
    content:""; position:absolute; z-index:-1; pointer-events:none;
    inset:-8px; border:0; border-radius:inherit; box-shadow:none;
    background:var(--atc-mesh-pill);
    filter:blur(8px);
    opacity:var(--atc-mesh-op); transform:scale(1);
    transition:transform .8s cubic-bezier(.25,1.25,.4,1), opacity .35s ease;
}
.product-card .wishlist-btn::before{
    inset:-6px; border-radius:50%;
    background:var(--atc-mesh-round);
    filter:blur(6px);
}

/* ---- C) MOVING BORDER (::after): hover par border par roshni ghoomti hai ---- */
.product-card .add-cart-btn:not(.oos-btn)::after,
.product-card .wishlist-btn::after{
    content:""; position:absolute; inset:0; z-index:2; pointer-events:none;
    border-radius:inherit; padding:var(--atc-ring-w);
    background:var(--atc-ring);
    -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite:xor;
            mask:linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity:0; transform:none;
    transition:opacity .3s ease;
}
.product-card .add-cart-btn:not(.oos-btn):hover::after,
.product-card .wishlist-btn:hover::after{
    opacity:1;
    animation:atcSpin var(--atc-ring-speed) linear infinite;
}
@keyframes atcSpin{ to{ --atc-ang:360deg; } }

/* ---- D) HOVER: sirf border (upar ::after se ghoomti hai), baaki sab same ---- */
.product-card .add-cart-btn:not(.oos-btn):hover,
.product-card .wishlist-btn:hover{
    color:#fff; border-color:rgba(255,255,255,.22);
}
.product-card .add-cart-btn i,
.product-card .wishlist-btn i{ color:inherit; text-shadow:var(--atc-text-shadow); }

/* ---- E) fine-tuning ---- */
.product-card .wishlist-btn i.text-danger{ color:#ff4d6d; }
/* wishlist: opacity fade bhi chale (hover / touch par smooth aane ke liye) */
.product-card .wishlist-btn{
    transition:opacity .45s ease, transform .4s cubic-bezier(.25,1.25,.4,1), box-shadow .35s ease, border-color .3s ease, color .3s ease;
}

/* ADD TO CART desktop */
@media (min-width:769px){
    .product-card .add-cart-btn:not(.oos-btn){ border-radius:999px; padding:11px 10px; font-size:11.5px; letter-spacing:1px; }
}

/* keyboard focus */
.product-card .add-cart-btn:focus-visible,
.product-card .wishlist-btn:focus-visible{ outline:2px solid #fff; outline-offset:3px; }

/* ---- F) MOBILE (<=768px): ADD TO CART = chhota gol bag button ---- */
@media (max-width:768px){
    .product-card .add-cart-btn:not(.oos-btn),
    .product-card:hover .add-cart-btn:not(.oos-btn){
        color:#fff; background:var(--atc-glass);
        border:1px solid var(--atc-border); box-shadow:var(--atc-shadow);
    }
    .product-card .add-cart-btn:not(.oos-btn)::before{
        inset:-5px; border-radius:50%; background:var(--atc-mesh-round); filter:blur(5px);
    }
    .product-card .add-cart-btn:not(.oos-btn) i{ color:#fff; }
    .product-card .add-cart-btn:not(.oos-btn):active{ transform:scale(.9); }
}

/* ---- G) OUT OF STOCK button: dark ---- */
.product-card .add-cart-btn.oos-btn{ overflow:hidden; }
.product-card .add-cart-btn.oos-btn::before,
.product-card .add-cart-btn.oos-btn::after{ display:none; }

/* ============================================================
   10. ADD TO CART  -  click par size same + SIRF EK "Added" rang (teal)
   ------------------------------------------------------------
   - Added state class .atc-done se aati hai (JS: js/header.js addToCart() lagata / hataata hai, 2.5s baad).
   - .atc-done par saare !important: hover / mesh / ghoomti border sab band, sirf ek teal rang.
   - Rang badalna ho to --added-a / --added-b badlo.
============================================================ */
:root{
    --added-a:#20c9a8;
    --added-b:#0e8aa0;
}

/* size lock: click / added par button hilega nahi */
.product-card .add-cart-btn:not(.oos-btn){
    box-sizing:border-box;
    white-space:nowrap;
    -webkit-tap-highlight-color:transparent;
}
@media (min-width:769px){
    .product-card .add-cart-btn:not(.oos-btn){ height:38px; padding:0 10px; display:flex; align-items:center; justify-content:center; gap:6px; }
    .product-card .add-cart-btn:not(.oos-btn):active,
    .product-card:hover .add-cart-btn:not(.oos-btn):active{ transform:translateX(-50%) translateY(0); }
}
@media (max-width:768px){
    .product-card .add-cart-btn:not(.oos-btn):active{ transform:none; }
}

/* ADDED: ek hi teal rang, har state me same */
.product-card .add-cart-btn.atc-done:not(.oos-btn),
.product-card .add-cart-btn.atc-done:not(.oos-btn):hover,
.product-card .add-cart-btn.atc-done:not(.oos-btn):active,
.product-card:hover .add-cart-btn.atc-done:not(.oos-btn){
    background:linear-gradient(135deg, var(--added-a) 0%, var(--added-b) 100%) !important;
    border-color:rgba(255,255,255,.75) !important;
    color:#fff !important;
    box-shadow:inset 0 1.5px 1px rgba(255,255,255,.6), 0 6px 16px -6px rgba(14,138,160,.7) !important;
    transition:none !important;
}
.product-card .add-cart-btn.atc-done:not(.oos-btn)::before,
.product-card .add-cart-btn.atc-done:not(.oos-btn)::after{
    opacity:0 !important; animation:none !important; background:none !important;
}

/* ============================================================
   11. ABOUT + FAQ BLOCK (SEO + GEO)  -  dark glass panel (index jaisa)
   ------------------------------------------------------------
   content-visibility:auto: screen se door hai to browser iska layout / paint scroll par hi karta hai.
============================================================ */
.seo-block{
    max-width:1100px; margin:30px auto 60px; padding:30px 30px 24px; color:#d6e6f5;
    background:rgba(6,30,70,.55);
    border:1px solid rgba(120,200,255,.22);
    border-radius:18px;
    box-shadow:inset 0 1px 1px rgba(255,255,255,.18), 0 16px 40px -18px rgba(0,0,0,.7);
    content-visibility:auto; contain-intrinsic-size:auto 600px;
}
.seo-block h2{ font-size:1.6rem; font-weight:700; text-transform:uppercase; letter-spacing:2px; color:#fff; margin:0 0 12px; }
.seo-block .quick-answer{ line-height:1.8; font-size:.95rem; color:#b9cde0; margin:0; }
.seo-block .quick-answer + .quick-answer{ margin-top:12px; }
/* internal links */
.seo-block .quick-answer a{
    color:#6fd3ff; text-decoration:none; font-weight:600;
    border-bottom:1px solid rgba(111,211,255,.35); transition:color .25s ease, border-color .25s ease;
}
.seo-block .quick-answer a:hover{ color:#fff; border-color:#19c2ff; }

.seo-block .faq-title{ margin-top:28px; font-size:1.25rem; letter-spacing:1.5px; }
.faq-item{
    margin-top:10px; border-radius:12px; overflow:hidden;
    background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14);
}
.faq-item summary{
    cursor:pointer; padding:13px 16px; font-weight:600; font-size:.95rem; color:#fff; list-style:none;
    display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:"+"; font-size:1.2rem; line-height:1; color:#6fd3ff; flex:none; transition:transform .25s ease; }
.faq-item[open] summary::after{ transform:rotate(45deg); }
.faq-item p{ margin:0; padding:0 16px 14px; line-height:1.7; font-size:.92rem; color:#b9cde0; }

@media(max-width:768px){
    .seo-block{ padding:22px 16px 18px; margin:20px 12px 40px; }
    .seo-block h2{ font-size:1.15rem; letter-spacing:1px; }
    .seo-block .faq-title{ font-size:1rem; }
    .seo-block .quick-answer{ font-size:.88rem; line-height:1.7; }
    .faq-item summary{ font-size:.88rem; padding:11px 13px; }
    .faq-item p{ font-size:.85rem; padding:0 13px 12px; }
}

/* ============================================================
   12. SMALL PHONES
============================================================ */
@media (max-width:400px){
    .container{ padding:0 10px; }

    .trending-header{ margin-top:32px; margin-bottom:20px; padding:0 10px; }
    .main-trending-title{ font-size:1.25rem; letter-spacing:1.5px; }
    .brand-hero-text .main-trending-title{ font-size:1.15rem; letter-spacing:1px; }

    .product-grid{ gap:8px; }
    .grid-item{ width:calc(50% - 4px); }
    .info{ padding:8px 6px; border-radius:12px; }
    .info .brand{ font-size:9px; letter-spacing:.3px; }
    .info .title{ font-size:11.5px; height:30px; line-height:1.3; }
    .curr-price{ font-size:13px; }
    .old-price{ font-size:10px; padding:1px 5px; }
    .price-row{ gap:4px 6px; }

    .product-card .mbadge{ width:34px; height:34px; top:6px; left:6px; }
    .product-card .mbadge b{ font-size:9px; }
    .product-card .mbadge small{ font-size:6.5px; }
    .product-card .mbadge-oos{ width:auto; height:auto; padding:3px 7px; font-size:8px; }
    .product-card .wishlist-btn{ width:30px; height:30px; top:6px; right:6px; }
    .product-card .wishlist-btn i{ font-size:13px; }

    .seo-block{ margin-left:10px; margin-right:10px; padding:18px 14px 16px; }
    .seo-block h2{ font-size:1rem; letter-spacing:.5px; }
    .seo-block .quick-answer{ font-size:.84rem; line-height:1.65; }
}
@media (max-width:340px){
    .main-trending-title{ font-size:1.1rem; letter-spacing:1px; }
    .info .title{ font-size:11px; }
    .curr-price{ font-size:12px; }
    .product-card .add-cart-btn:not(.oos-btn){ width:32px; height:32px; }
}

/* ============================================================
   13. REDUCED MOTION (animation kam karne wale users ke liye)
============================================================ */
@media(prefers-reduced-motion:reduce){
    html{ transition:none; }
    html::after, body::before{ animation:none; }

    /* image: sirf halka fade, zoom nahi */
    .product-img-container img{ transition:opacity .15s linear !important; }
    .product-card:hover .product-img-container img,
    .product-card.touch-active .product-img-container img{ transform:none !important; }

    .product-card .wishlist-btn{ transition:opacity .15s linear; transform:none; }

    /* buttons: ring ghoomti nahi, bas dikhti hai */
    .product-card .add-cart-btn:hover::after,
    .product-card .wishlist-btn:hover::after{ animation:none; }
    .product-card .add-cart-btn::before, .product-card .wishlist-btn::before{ transition:none; }
}