/* KarlyCollection v3 — Liquid Glass skin (approved home + product design). Loads last; all data still from script.js/API. */
:root{--k3-ink:#0F1218;--k3-mut:#5A616C;--k3-fill:rgba(255,255,255,.34);--k3-fill2:rgba(255,255,255,.55);--k3-hl:1px solid rgba(255,255,255,.6);--k3-r:22px;--k3-sh:0 8px 32px rgba(15,18,24,.09);--k3-gold:#C4A574}
html body{font-family:Shabnam,Tahoma,sans-serif;color:var(--k3-ink);background:linear-gradient(165deg,#F4F6FA,#EEF1F7 45%,#E8ECF4) fixed}
html[data-theme="dark"] body{background:linear-gradient(165deg,#15171c,#1b1e25) fixed}
.k3-bg{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.k3-bg i{position:absolute;border-radius:50%;filter:blur(80px);opacity:.55}
.k3-bg i:nth-child(1){width:46vw;height:46vw;background:#dfe3ff;top:-10vw;right:-8vw}
.k3-bg i:nth-child(2){width:38vw;height:38vw;background:#f6dfe8;bottom:10vh;left:-10vw}
.k3-bg i:nth-child(3){width:30vw;height:30vw;background:#e3efe9;top:45vh;right:30vw}
html[data-theme="dark"] .k3-bg{opacity:.15}
.k3-glass{background:var(--k3-fill);backdrop-filter:blur(24px) saturate(160%);-webkit-backdrop-filter:blur(24px) saturate(160%);border:var(--k3-hl);box-shadow:var(--k3-sh),inset 0 1px 0 rgba(255,255,255,.7)}
.k3-topbar{background:rgba(15,18,24,.85);color:#fff;font-size:13px;text-align:center;padding:6px 12px;line-height:1.7}
/* header: floating glass pill */
html body .site-header.glass{left:0;right:0;width:min(1180px,calc(100% - 24px));margin-inline:auto;border-radius:999px;background:rgba(255,255,255,.42)!important;backdrop-filter:blur(24px) saturate(160%);-webkit-backdrop-filter:blur(24px) saturate(160%);border:var(--k3-hl)!important;box-shadow:var(--k3-sh),inset 0 1px 0 rgba(255,255,255,.7)!important}
html[data-theme="dark"] body .site-header.glass{background:rgba(30,32,38,.7)!important;border-color:rgba(255,255,255,.12)!important}
html body .site-header .header-inner{max-width:none;padding-inline:18px}
html body .site-header .main-nav{background:transparent!important;box-shadow:none!important;border:0!important}
html body .site-header .nav-link{color:var(--k3-ink);font-size:14px;opacity:.88}
html body .site-header .nav-link i:not(.nav-dropdown-caret){display:none}
html body .site-header .icon-btn{background:var(--k3-fill2);border-radius:50%}
/* buttons */
html body .btn-primary{background:var(--k3-ink);border-color:var(--k3-ink);color:#fff;border-radius:999px}
html body .btn-primary:hover{background:#262b35;border-color:#262b35;color:#fff}
/* ---------- HOME HERO (admin-managed slides, rotating) ---------- */
html body .hero{position:relative;width:min(1180px,calc(100% - 24px));margin:18px auto 0!important;height:min(78vh,720px)!important;min-height:520px!important;border-radius:32px;overflow:hidden;box-shadow:var(--k3-sh);display:flex;align-items:flex-end;justify-content:flex-start;padding:0!important;background:#dfe3ea}
html body .hero::before{display:none!important}
html body .hero::after{content:""!important;position:absolute;inset:0!important;background:linear-gradient(90deg,rgba(15,18,24,.05),rgba(15,18,24,.32))!important;box-shadow:none!important;border-radius:0!important;width:auto!important;height:auto!important;pointer-events:none;z-index:1}
html body .hero-media{position:absolute;inset:0;border-radius:inherit}
html body .hero-slide-bg{filter:blur(28px) brightness(.9)}
html body .hero-img{object-fit:cover!important;object-position:center 20%!important}
html body .hero-content{position:relative;z-index:2;margin:0 40px 40px!important;max-width:460px!important;width:auto!important;padding:28px 30px!important;border-radius:28px;background:rgba(255,255,255,.34);backdrop-filter:blur(24px) saturate(160%);-webkit-backdrop-filter:blur(24px) saturate(160%);border:var(--k3-hl);box-shadow:var(--k3-sh),inset 0 1px 0 rgba(255,255,255,.7);text-align:right}
html body .hero-collection-label,html body .hero-assurance,html body .hero-subtitle+.hero-subtitle{display:none!important}
html body .hero-eyebrow{color:var(--k3-mut)!important;font-size:14px!important;margin:0 0 4px!important}
html body .hero-title{color:var(--k3-ink)!important;font-size:34px!important;line-height:1.45!important;margin:4px 0 10px!important;font-weight:700;text-shadow:none!important}
html body .hero-subtitle{color:#2c313a!important;font-size:15px!important;line-height:1.85!important;max-width:none!important;margin:0!important;text-shadow:none!important}
html body .hero-actions{display:flex;gap:10px;margin-top:20px!important;flex-wrap:wrap;align-items:center}
html body .hero .btn-primary{background:var(--k3-ink)!important;border-color:var(--k3-ink)!important;color:#fff!important;border-radius:999px;min-height:44px}
html body .hero-text-link{display:inline-flex!important;align-items:center;gap:6px;color:var(--k3-ink)!important;background:rgba(255,255,255,.4);border:var(--k3-hl)!important;border-radius:999px;padding:9px 20px;font-size:14px!important}
html body .hero-nav{z-index:3;top:50%!important;bottom:auto!important;transform:translateY(-50%)!important;width:46px!important;height:46px!important;border-radius:50%;background:rgba(255,255,255,.3)!important;border:1px solid rgba(255,255,255,.55)!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);color:var(--k3-ink)!important}
html body .hero-nav:hover{background:rgba(255,255,255,.6)!important}
html body .hero-dots{z-index:3;bottom:22px!important;left:40px!important;right:auto!important;transform:none!important}
html body .hero-dot{width:8px!important;height:8px!important;border-radius:9px!important;background:rgba(255,255,255,.6)!important;transition:width .3s}
html body .hero-dot.active{width:24px!important;background:#fff!important}
/* trust strip */
.k3-trust{width:min(1000px,calc(100% - 24px));margin:-34px auto 0;position:relative;z-index:5;border-radius:var(--k3-r);display:grid;grid-template-columns:repeat(3,1fr);padding:16px;text-align:center;background:rgba(255,255,255,.6)}
.k3-trust div{display:flex;flex-direction:column}.k3-trust b{font-size:15px}.k3-trust small{color:var(--k3-mut);font-size:13px}
html[data-theme="dark"] .k3-trust{background:rgba(30,32,38,.75);color:#eee}
/* sections */
html body .section-heading h2{font-size:26px;color:var(--k3-ink)}
html[data-theme="dark"] body .section-heading h2{color:#f2f2f2}
html body .section-eyebrow{color:var(--k3-gold)!important}
html body .product-card,html body .category-card{border-radius:var(--k3-r)!important;overflow:hidden;background:var(--k3-fill)!important;border:var(--k3-hl)!important;box-shadow:var(--k3-sh)!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);transition:transform .25s}
html body .product-card:hover,html body .category-card:hover{transform:translateY(-4px)}
html body .filter-sidebar.glass,html body .deals-countdown.glass{border-radius:var(--k3-r);background:var(--k3-fill)!important;border:var(--k3-hl)!important}
html body .karly-rack .new-arrivals-track{border-radius:28px}
/* footer as glass card */
html body .site-footer{width:min(1180px,calc(100% - 24px));margin:64px auto 20px!important;border-radius:28px;overflow:hidden}
/* ---------- PRODUCT PAGE ---------- */
.k3-crumb{width:min(1180px,calc(100% - 24px));margin:16px auto 0;font-size:13px;color:var(--k3-mut);display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.k3-crumb b{color:var(--k3-ink);font-weight:500}
html body .product-detail .back-link{display:none}
html body .product-detail>.container{max-width:1180px}
html body .product-detail-grid{gap:28px;align-items:start}
html body .product-detail-media{border-radius:24px!important;overflow:hidden;background:var(--k3-fill)!important;border:var(--k3-hl);box-shadow:var(--k3-sh)}
html body .pd-gallery-thumb{border-radius:14px!important;overflow:hidden}
html body .pd-gallery-thumb.active{outline:2px solid var(--k3-ink);outline-offset:1px}
html body .product-detail-info{border-radius:24px;padding:26px 28px!important;background:var(--k3-fill);backdrop-filter:blur(24px) saturate(160%);-webkit-backdrop-filter:blur(24px) saturate(160%);border:var(--k3-hl);box-shadow:var(--k3-sh),inset 0 1px 0 rgba(255,255,255,.7)}
html[data-theme="dark"] body .product-detail-info{background:rgba(30,32,38,.7);border-color:rgba(255,255,255,.12)}
html body .product-detail-info .product-category{color:var(--k3-gold)!important;font-size:13px}
html body .pd-name{font-size:28px!important;font-weight:700}
html body .pd-price .current-price{font-size:24px;font-weight:700;color:var(--k3-ink)!important}
html[data-theme="dark"] body .pd-price .current-price{color:#fff!important}
html body .pd-price .old-price{color:var(--k3-mut)}
html body .pd-attribute-block{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
html body .color-swatch,html body .size-option{border-radius:999px!important;background:rgba(255,255,255,.5)!important;border:1px solid rgba(15,18,24,.15)!important;color:var(--k3-ink)!important}
html body .color-swatch.active,html body .size-option.active{border-color:var(--k3-ink)!important;box-shadow:0 0 0 1px var(--k3-ink)!important}
html body .pd-description-box{border-radius:18px!important;background:rgba(255,255,255,.4)!important;border:var(--k3-hl)!important;box-shadow:none!important}
html body .qty-stepper{border-radius:999px;background:rgba(255,255,255,.5);border:var(--k3-hl)}
html body .pd-add-btn{border-radius:999px!important;background:var(--k3-ink)!important;border-color:var(--k3-ink)!important;color:#fff!important;min-height:50px}
html body .pd-add-btn:disabled{opacity:.5}
.k3-perks{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.k3-perks span{font-size:12.5px;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.5);border:var(--k3-hl)}
.k3-sec{width:min(1180px,calc(100% - 24px));margin:56px auto 0}
.k3-sh{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:18px}
.k3-sh h2{font-size:24px}.k3-more{font-size:14px;border-bottom:1px solid var(--k3-gold);color:inherit;text-decoration:none}
.k3-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.k3-card{border-radius:var(--k3-r);overflow:hidden;transition:transform .25s;color:inherit;text-decoration:none;display:block}
.k3-card:hover{transform:translateY(-4px)}
.k3-ph{position:relative;aspect-ratio:3/4;overflow:hidden;background:#e9ecf2}
.k3-ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .5s}
.k3-ph .alt{opacity:0}.k3-card:hover .k3-ph .alt{opacity:1}
.k3-ci{padding:12px 14px 14px}
.k3-ci h3{font-size:15px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
.k3-pr{font-size:13px;margin:4px 0 0}.k3-pr b{font-size:16px}.k3-pr s{color:var(--k3-mut);margin-left:6px}
.k3-sz{font-size:12px;color:var(--k3-mut);direction:ltr;text-align:right;margin:2px 0 0}
.k3-mbar{display:none}
@media (max-width:960px){.k3-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:760px){
 html body .site-header.glass{border-radius:22px}
 html body .hero{height:78vh!important;min-height:500px!important;border-radius:24px}
 html body .hero-content{margin:0 12px 56px!important;padding:20px!important;max-width:none!important}
 html body .hero-title{font-size:24px!important}
 html body .hero-subtitle{font-size:13.5px!important}
 html body .hero-nav{width:38px!important;height:38px!important;top:34%!important}
 html body .hero-dots{left:50%!important;transform:translateX(-50%)!important;bottom:22px!important}
 .k3-trust{grid-template-columns:1fr;gap:8px;margin-top:-28px}
 html body .section-heading h2{font-size:21px}
 html body .product-detail-info{padding:18px!important}
 html body .pd-name{font-size:22px!important}
 .k3-grid{grid-template-columns:repeat(2,1fr);gap:10px}
 .k3-ci h3{font-size:13px}.k3-pr b{font-size:14px}
 .k3-mbar{display:flex;position:fixed;z-index:50;left:10px;right:10px;bottom:10px;border-radius:20px;padding:10px 14px;align-items:center;justify-content:space-between;gap:10px}
 .k3-mbar button{background:var(--k3-ink);color:#fff;border:0;border-radius:999px;padding:10px 22px;font:inherit}
 body.k3-has-mbar{padding-bottom:76px}
}
@media (prefers-reduced-motion:reduce){.k3-card,.k3-ph img{transition:none}}
html body .k3-related-grid{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:18px}
@media (max-width:760px){html body .k3-related-grid{grid-template-columns:repeat(2,1fr)!important;gap:10px}}
@media (max-width:760px){.k3-mbar{bottom:42px!important;padding:8px 14px!important}body.k3-has-mbar{padding-bottom:118px!important}}

/* ===== v3.1 top banner + contact dock refresh ===== */
.top-banner{background:linear-gradient(90deg,#B3122E,#E11D48 50%,#B3122E)!important;background-size:200% 100%!important;color:#fff!important;border:0!important;box-shadow:0 4px 18px rgba(225,29,72,.28);animation:k3bnShift 8s linear infinite}
.top-banner .top-banner-link,.top-banner #top-banner-text{color:#fff!important;font-weight:600;text-decoration:none}
.top-banner .top-banner-link{display:inline-flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;line-height:1.9}
.top-banner .top-banner-close{color:#fff!important;opacity:.85}
.k3-code{display:inline-flex;align-items:center;gap:6px;margin:0 4px;padding:3px 12px 3px 10px;min-height:30px;border-radius:999px;background:#fff;color:#B3122E;font:800 13px/1 ui-monospace,Menlo,Consolas,monospace;letter-spacing:1.5px;border:1.5px dashed #B3122E;cursor:pointer;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;position:relative;vertical-align:middle;direction:ltr;animation:k3pulse 1.8s ease-out infinite;transition:transform .15s}
.k3-code:hover{transform:scale(1.05)}.k3-code:active{transform:scale(.95)}
.k3-code:focus-visible{outline:2px solid #fff;outline-offset:2px}
.k3-code svg{width:13px;height:13px;flex:none}
.k3-code.is-copied{background:#16A34A;color:#fff;border-color:#fff;animation:none}
@keyframes k3pulse{0%{box-shadow:0 0 0 0 rgba(255,255,255,.75)}70%{box-shadow:0 0 0 10px rgba(255,255,255,0)}100%{box-shadow:0 0 0 0 rgba(255,255,255,0)}}
@keyframes k3bnShift{to{background-position:200% 0}}
.k3-toast{position:fixed;left:50%;top:70px;transform:translate(-50%,-10px);background:#0F1218;color:#fff;padding:10px 18px;border-radius:999px;font-size:14px;font-weight:600;z-index:99999;opacity:0;pointer-events:none;transition:.25s;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.k3-toast.show{opacity:1;transform:translate(-50%,0)}
@media (max-width:768px){:root{--banner-h-mobile:58px;--banner-h-mobile-sm:58px}.top-banner .top-banner-link{font-size:12px!important;padding:0 30px 0 10px!important;white-space:normal!important;line-height:1.55;row-gap:2px;text-align:center}.k3-code{min-height:28px;padding:3px 11px;font-size:12.5px}}
#contact-bar.contact-bar{display:flex;height:auto!important;gap:8px;padding:8px!important;border-radius:20px!important;background:rgba(255,255,255,.82)!important;backdrop-filter:blur(16px) saturate(1.4);-webkit-backdrop-filter:blur(16px) saturate(1.4);border:1px solid rgba(15,18,24,.06)!important;box-shadow:0 10px 34px rgba(15,18,24,.14)!important}
#contact-bar .contact-bar-item{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border-radius:14px!important;border:0!important;background:#F4F5F7;color:#0F1218!important;font-weight:700;font-size:13.5px;text-decoration:none;transition:transform .15s,background .2s,box-shadow .2s}
#contact-bar .contact-bar-item::before,#contact-bar .contact-bar-item::after{display:none!important}
#contact-bar .contact-bar-icon{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;color:#fff!important;font-size:15px;background:#0F1218}
#contact-bar .contact-bar-item--telegram .contact-bar-icon{background:#229ED9}
#contact-bar .contact-bar-item--whatsapp .contact-bar-icon{background:#25D366}
#contact-bar .contact-bar-item--phone .contact-bar-icon{background:#E11D48}
#contact-bar .contact-bar-item:hover{background:#fff;box-shadow:0 6px 18px rgba(15,18,24,.10);transform:translateY(-2px)}
#contact-bar .contact-bar-item:active{transform:scale(.96)}
#contact-bar .contact-bar-item:focus-visible{outline:2px solid #E11D48;outline-offset:2px}
[data-theme=dark] #contact-bar.contact-bar{background:rgba(20,22,28,.85)!important;border-color:rgba(255,255,255,.08)!important}
[data-theme=dark] #contact-bar .contact-bar-item{background:rgba(255,255,255,.06);color:#fff!important}
@media (prefers-reduced-motion:reduce){.top-banner,.k3-code{animation:none!important}.k3-code,.k3-toast,#contact-bar .contact-bar-item{transition:none}}

@media (max-width:640px){#contact-bar.contact-bar{gap:6px;padding:6px!important}#contact-bar .contact-bar-item{min-height:44px;font-size:12.5px;gap:6px}#contact-bar .contact-bar-icon{width:26px;height:26px;font-size:13px}}
#top-banner-text{display:inline;white-space:normal}

/* ===== v3.2 colorful category tiles ===== */
#categories .category-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(170px,1fr))!important;gap:14px!important}
html body #categories .category-card{--h:262;position:relative;aspect-ratio:auto!important;height:auto!important;min-height:0!important;display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;padding:16px 10px 14px!important;background:linear-gradient(150deg,hsl(var(--h) 85% 96%),hsl(calc(var(--h) + 25) 80% 88%))!important;border:1.5px solid hsl(var(--h) 70% 82%)!important;box-shadow:0 6px 20px hsl(var(--h) 60% 50% / .14)!important;cursor:pointer;transition:transform .2s,box-shadow .2s}
html body #categories .category-card img{width:84px!important;height:84px!important;border-radius:50%!important;object-fit:cover;object-position:top;border:3px solid #fff;box-shadow:0 4px 14px hsl(var(--h) 60% 40% / .25);flex:none;position:static!important}
#categories .category-card .img-spinner,#categories .category-card .img-placeholder{display:none!important}
#categories .category-card .category-overlay{position:static!important;background:none!important;padding:0!important;inset:auto!important;display:block!important;text-align:center}
#categories .category-card .category-overlay h3{color:hsl(var(--h) 55% 28%)!important;font-size:14px!important;font-weight:800;line-height:1.5;margin:0;text-shadow:none!important}
#categories .category-card:hover{transform:translateY(-3px);box-shadow:0 12px 26px hsl(var(--h) 60% 45% / .22)!important}
#categories .category-card:active{transform:scale(.97)}
#categories .category-card.is-active{border-color:hsl(var(--h) 70% 50%)!important;box-shadow:0 0 0 3px hsl(var(--h) 80% 60% / .35)!important}
html body #categories .category-card--all{background:linear-gradient(140deg,#7C3AED,#E11D48)!important;border-color:transparent!important;justify-content:center}
#categories .category-card--all::before{content:"";width:84px;height:84px;border-radius:50%;background:rgba(255,255,255,.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='2'/%3E%3Crect x='14' y='3' width='7' height='7' rx='2'/%3E%3Crect x='3' y='14' width='7' height='7' rx='2'/%3E%3Crect x='14' y='14' width='7' height='7' rx='2'/%3E%3C/svg%3E") center/42px no-repeat;border:3px solid rgba(255,255,255,.6)}
#categories .category-card--all .category-overlay h3{color:#fff!important}
@media (max-width:640px){#categories .category-grid{grid-template-columns:repeat(3,1fr)!important;gap:10px!important}html body #categories .category-card{padding:12px 6px 10px!important;gap:8px;border-radius:18px!important}html body #categories .category-card img,#categories .category-card--all::before{width:64px!important;height:64px!important}#categories .category-card--all::before{background-size:32px}#categories .category-card .category-overlay h3{font-size:12.5px!important}}
@media (max-width:340px){#categories .category-grid{grid-template-columns:repeat(2,1fr)!important}}
#categories .category-grid{display:flex!important;flex-wrap:wrap;justify-content:center}
html body #categories .category-card{flex:0 0 160px;width:160px}
#categories .category-card--all::before{flex:none;aspect-ratio:1}
@media (max-width:640px){html body #categories .category-card{flex:0 0 calc((100% - 20px)/3);width:auto}}
@media (max-width:340px){html body #categories .category-card{flex-basis:calc((100% - 10px)/2)}}
/* v3.3 neutral tidy tiles (client: no color, neat) */
html body #categories .category-card,html body #categories .category-card--all{background:#fff!important;border:1px solid rgba(15,18,24,.08)!important;box-shadow:0 4px 16px rgba(15,18,24,.06)!important;justify-content:flex-start}
#categories .category-card .category-overlay h3,#categories .category-card--all .category-overlay h3{color:#0F1218!important}
html body #categories .category-card img{border:2px solid #fff;box-shadow:0 0 0 1px rgba(15,18,24,.08)}
#categories .category-card--all::before{background-color:#F4F5F7;border:2px solid #fff;box-shadow:0 0 0 1px rgba(15,18,24,.08);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F1218' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='2'/%3E%3Crect x='14' y='3' width='7' height='7' rx='2'/%3E%3Crect x='3' y='14' width='7' height='7' rx='2'/%3E%3Crect x='14' y='14' width='7' height='7' rx='2'/%3E%3C/svg%3E")}
#categories .category-card:hover{box-shadow:0 10px 24px rgba(15,18,24,.10)!important}
#categories .category-card.is-active{border-color:#0F1218!important;box-shadow:0 0 0 2px #0F1218!important}
html[data-theme=dark] body #categories .category-card{background:rgba(255,255,255,.06)!important}
html[data-theme=dark] #categories .category-card .category-overlay h3{color:#fff!important}
/* v3.4 white category section, dark check */
html body section#categories{background:#fff!important;position:relative;z-index:1}
html body #categories .category-card,html body #categories .category-card--all{border:1px solid #E6E7EA!important;box-shadow:0 4px 14px rgba(15,18,24,.06)!important}
#categories .category-card.is-active::after{background:#0F1218!important;color:#fff!important;border-color:#fff!important}
/* v3.5 soft brand pastel tiles (client wants colour, tidy) */
html body #categories .category-card{background:linear-gradient(160deg,hsl(var(--h) 90% 97%),hsl(var(--h) 75% 92%))!important;border:1px solid hsl(var(--h) 60% 88%)!important;box-shadow:0 6px 18px hsl(var(--h) 50% 45% / .10)!important}
html body #categories .category-card img{border:3px solid #fff!important;box-shadow:0 0 0 2px hsl(var(--h) 70% 72%)!important}
#categories .category-card .category-overlay h3{color:hsl(var(--h) 45% 26%)!important}
html body #categories .category-card--all{background:linear-gradient(140deg,#8B5CF6,#EC4899)!important;border-color:transparent!important}
#categories .category-card--all::before{background-color:rgba(255,255,255,.22)!important;border:2px solid rgba(255,255,255,.7)!important;box-shadow:none!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='2'/%3E%3Crect x='14' y='3' width='7' height='7' rx='2'/%3E%3Crect x='3' y='14' width='7' height='7' rx='2'/%3E%3Crect x='14' y='14' width='7' height='7' rx='2'/%3E%3C/svg%3E")!important}
#categories .category-card--all .category-overlay h3{color:#fff!important}
#categories .category-card.is-active{border-color:hsl(var(--h,270) 70% 55%)!important;box-shadow:0 0 0 2px hsl(var(--h,270) 70% 60%)!important}
#categories .category-card.is-active::after{background:#7C3AED!important}
#categories .category-card--all.is-active{box-shadow:0 0 0 3px rgba(139,92,246,.35)!important}
/* v3.6 framed hero + clothing rack */
html body #hero.k3-framed{box-shadow:0 0 0 7px #fff,0 0 0 8px #ECE7F5,0 18px 50px rgba(91,33,182,.14)!important}

.k3-rack{position:relative;z-index:2;margin:14px auto 0;box-sizing:border-box;box-shadow:0 0 0 7px #fff,0 0 0 8px #ECE7F5;padding:18px 0 14px;border-radius:22px;background:linear-gradient(180deg,#FBF8FF,#F3ECFF);border:1px solid #EDE5FB;overflow:hidden}
.k3-rack-rail{position:absolute;top:14px;left:14px;right:14px;height:6px;border-radius:6px;background:linear-gradient(180deg,#E9E4F2,#A79FBA 55%,#D9D3E6);box-shadow:0 2px 4px rgba(15,18,24,.18);z-index:2}
.k3-rack-viewport{overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}
.k3-rack-track{display:flex;gap:16px;width:max-content;padding:0 8px;animation:k3rack var(--k3-rack-dur,40s) linear infinite}
.k3-rack:hover .k3-rack-track,.k3-rack:focus-within .k3-rack-track{animation-play-state:paused}
@keyframes k3rack{from{transform:translateX(0)}to{transform:translateX(50%)}}
.k3-rack-item{display:flex;flex-direction:column;align-items:center;text-decoration:none;color:#8A80A3;transform-origin:50% 0;animation:k3sway 4s ease-in-out infinite}
.k3-rack-item:nth-child(even){animation-delay:-2s}
.k3-hanger{width:46px;height:28px;margin-bottom:-4px;position:relative;z-index:3}
.k3-rack-img{display:block;width:118px;height:156px;border-radius:16px;overflow:hidden;background:#fff;border:3px solid #fff;box-shadow:0 10px 22px rgba(91,33,182,.16);transition:transform .25s}
.k3-rack-img img{width:100%;height:100%;object-fit:cover;object-position:top}
.k3-rack-item:hover .k3-rack-img{transform:translateY(-4px) scale(1.04)}
@keyframes k3sway{0%,100%{transform:rotate(-1.2deg)}50%{transform:rotate(1.2deg)}}
@media (max-width:640px){.k3-rack{margin-top:12px;padding:15px 0 10px;border-radius:18px}.k3-rack-rail{top:11px}.k3-rack-track{gap:10px}.k3-hanger{width:36px;height:22px}.k3-rack-img{width:84px;height:112px;border-radius:12px}}
@media (prefers-reduced-motion:reduce){.k3-rack-track,.k3-rack-item{animation:none!important}.k3-rack-viewport{overflow-x:auto}}

.k3-rack + .k3-trust{margin-top:22px!important}
/* v3.7 product + listing polish */
html body .category-page-heading{text-align:center;margin-bottom:14px}
html body .category-page-heading h2{font-weight:900;background:linear-gradient(90deg,#7c3aed,#db2777);-webkit-background-clip:text;background-clip:text;color:transparent}
html body .category-page-heading .section-eyebrow{display:inline-block;padding:3px 12px;border-radius:999px;background:#f3e8ff;color:#7c3aed;font-weight:700}
html body .filter-mobile-open-btn{border-radius:999px!important;border:1px solid #e9d5ff!important;background:#fff!important;color:#6d28d9!important;font-weight:700;padding:6px 16px!important;box-shadow:0 4px 14px rgba(124,58,237,.12)}
html body .product-card .add-to-cart-btn{border-radius:12px;background:linear-gradient(90deg,#f3e8ff,#fce7f3);color:#6d28d9;font-weight:700;border:0}
html body .product-card .current-price,html body .pd-price .current-price{color:#7c3aed}
html body .pd-name{font-weight:900}
html body .size-option.active,html body .color-swatch.active{box-shadow:0 0 0 2px #7c3aed!important}
html body .pd-add-btn{background:linear-gradient(90deg,#7c3aed,#db2777)!important;border:0!important;color:#fff!important;border-radius:14px!important;box-shadow:0 8px 22px rgba(219,39,119,.28)}
@media (max-width:768px){
 html body .pd-add-btn{position:sticky;bottom:72px;z-index:30}
 html body .product-detail-media{border-radius:18px;overflow:hidden}
 html body .pagination-bar{margin-bottom:70px}
}
/* v3.8 QA: mobile menu solid panel + overlay + lock */
html body .site-header .main-nav.open{background:#fff!important;border:1px solid #efe7fb!important;border-radius:20px!important;box-shadow:0 18px 50px rgba(46,16,101,.22)!important;padding:8px 14px!important;max-height:calc(100dvh - 140px)!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
html[data-theme="dark"] body .site-header .main-nav.open{background:#1b1728!important;border-color:#3b2a5c!important}
html body .site-header .main-nav.open .nav-link{color:#2e1065;opacity:1;font-weight:600}
html[data-theme="dark"] body .site-header .main-nav.open .nav-link{color:#f3e8ff}
html body .site-header .main-nav.open .nav-dropdown{background:#faf7ff!important;border-radius:14px;box-shadow:none!important}
html[data-theme="dark"] body .site-header .main-nav.open .nav-dropdown{background:#241d36!important}
.k3-nav-ov{position:fixed;inset:0;z-index:99;background:rgba(20,10,40,.38);backdrop-filter:blur(2px);opacity:0;pointer-events:none;transition:opacity .25s}
.k3-nav-ov.on{opacity:1;pointer-events:auto}
html.k3-lock,html.k3-lock body{overflow:hidden!important;touch-action:none}
html.k3-lock .main-nav{touch-action:pan-y}

/* fix-bugs-20261103 */
/* 2) remove story clothing banner block — must beat html body .hero {display:flex} */
html body section#hero,
html body #hero.hero,
html body .hero#hero{display:none!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;border:0!important;box-shadow:none!important}
/* 4) contact icons must NOT cover cart/checkout/pay controls */
#contact-bar.contact-bar{z-index:40!important}
body.cart-open #contact-bar,
body.checkout-open #contact-bar,
body.checkout-page #contact-bar,
html[data-page="checkout"] #contact-bar{display:none!important}
/* sticky cart checkout stays clickable */
.cart-drawer,.cart-footer,#cart-drawer{z-index:270!important}
.cart-checkout-btn,#cart-checkout-btn,a.cart-checkout,.checkout-open-btn{position:relative;z-index:271}
/* 5) dark mode liquid glass + readable type sitewide */
html[data-theme="dark"] body{
  background:linear-gradient(165deg,#12141a,#1a1d25 55%,#15171c) fixed!important;
  color:#eef0f4!important;
}
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .category-card,
html[data-theme="dark"] .glass,
html[data-theme="dark"] .checkout-page-card,
html[data-theme="dark"] .checkout-trust-card{
  background:rgba(32,35,42,.55)!important;
  backdrop-filter:blur(20px) saturate(150%);
  -webkit-backdrop-filter:blur(20px) saturate(150%);
  border-color:rgba(255,255,255,.12)!important;
  color:#f2f3f5!important;
}
html[data-theme="dark"] .product-name,
html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .current-price,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .footer-col h3{color:#f5f6f8!important}
html[data-theme="dark"] .old-price,
html[data-theme="dark"] .product-category,
html[data-theme="dark"] .muted,
html[data-theme="dark"] .section-heading p{color:#b8bec8!important}
html[data-theme="dark"] .kh360-root{--kh360-bg:#171920;--kh360-ink:#f3f4f6;--kh360-muted:#a7adb8}
html[data-theme="dark"] .kh360-pane{
  background:linear-gradient(160deg,rgba(255,255,255,.10),rgba(255,255,255,.04) 45%,rgba(255,255,255,.02));
}
html[data-theme="dark"] .kh360-slab{
  background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.12)!important;
}

/* close-20261103 night: smaller contact icons + checkout glass */
/* fix-20261103-client: full-bleed bar aligned with page, thinner (not corner float) */
#contact-bar.contact-bar{
  left:0!important;right:0!important;bottom:0!important;
  width:100%!important;max-width:none!important;
  margin:0!important;
  gap:0!important;padding:0!important;
  border-radius:16px 16px 0 0!important;
  height:auto!important;
}
#contact-bar .contact-bar-item{
  min-height:36px!important;font-size:11px!important;gap:6px!important;
  padding:4px 8px!important;border-radius:0!important;
}
#contact-bar .contact-bar-icon{width:18px!important;height:18px!important;font-size:10px!important}
@media (max-width:640px){
  #contact-bar .contact-bar-item{min-height:34px!important;font-size:10.5px!important;gap:5px!important}
  #contact-bar .contact-bar-icon{width:16px!important;height:16px!important;font-size:9px!important}
}
body.checkout-page{
  background:linear-gradient(165deg,#f6f3fb,#fde8f2 42%,#eef2ff) fixed!important;
}
body.checkout-page .checkout-page-card,
body.checkout-page .card-payment-box,
body.checkout-page .checkout-summary,
body.checkout-page #checkout-login-gate,
body.checkout-page #checkout-form-view{
  background:rgba(255,255,255,.62)!important;
  backdrop-filter:blur(18px) saturate(1.3);
  -webkit-backdrop-filter:blur(18px) saturate(1.3);
  border:1px solid rgba(255,255,255,.72)!important;
  border-radius:24px!important;
  box-shadow:0 12px 40px rgba(80,40,120,.08)!important;
}
body.checkout-page .pay-method{
  background:rgba(255,255,255,.45);
  border-radius:16px;
}
.snappay-contact{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.snappay-contact a{flex:1;min-width:140px;text-align:center;text-decoration:none}

/* close-night: hidden story rack was a 2px sliver under the removed hero */
.k3-rack{display:none!important}

/* checkout-20261105: فقط فیلد متنی تمام‌عرض. رادیو و سایز اندازهٔ خودشان، داخل کادر */
body.checkout-page .container{width:min(720px,calc(100% - 28px));max-width:100%;box-sizing:border-box}
body.checkout-page .checkout-page-grid{gap:16px!important;min-width:0}
body.checkout-page .checkout-page-card{padding:20px 16px!important;overflow:visible;min-width:0;max-width:100%}
body.checkout-page .section-heading p{font-size:14px;line-height:1.7}
body.checkout-page .modal-title,body.checkout-page h2,body.checkout-page h3{font-size:1.15rem!important}
body.checkout-page label,body.checkout-page .form-hint{font-size:13px!important;line-height:1.6}
body.checkout-page .form-group{min-width:0;max-width:100%}
body.checkout-page input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
body.checkout-page select,
body.checkout-page textarea{
  width:100%!important;max-width:100%!important;box-sizing:border-box!important;
  border-radius:16px!important;
  background:rgba(255,255,255,.88)!important;
  border:1px solid rgba(90,70,130,.28)!important;
  color:#1c1424!important;
  font-size:15px!important;
  padding:12px 14px!important;
  overflow-wrap:anywhere;
}
body.checkout-page textarea{min-height:88px!important}
body.checkout-page .option-chip input{
  position:absolute!important;opacity:0!important;width:0!important;height:0!important;
  max-width:0!important;min-height:0!important;padding:0!important;margin:0!important;
  border:0!important;background:transparent!important;box-shadow:none!important;
}
body.checkout-page .option-chips{
  display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;
  gap:8px!important;width:100%!important;min-width:0;
}
body.checkout-page .option-chip{
  display:inline-flex!important;width:auto!important;max-width:100%!important;
  box-sizing:border-box!important;align-items:center;justify-content:center;
  min-height:40px;text-align:center;white-space:normal;
  border-radius:999px!important;font-size:13px!important;padding:8px 12px!important;
  background:rgba(255,255,255,.72)!important;
  border:1px solid rgba(90,70,130,.22)!important;
}
body.checkout-page .option-chip-badge{position:static;margin-inline-start:6px}
body.checkout-page .pay-methods{display:flex;flex-direction:column;gap:8px;min-width:0}
body.checkout-page .pay-method{
  display:flex!important;align-items:center;gap:12px;
  width:100%;max-width:100%;box-sizing:border-box;overflow:hidden;
  padding:12px 14px!important;border-radius:16px!important;
  background:rgba(255,255,255,.72)!important;border:1px solid rgba(90,70,130,.22)!important;
}
body.checkout-page .pay-method input[type="radio"]{
  width:18px!important;height:18px!important;max-width:18px!important;
  min-height:0!important;padding:0!important;margin:0!important;flex:0 0 18px!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
body.checkout-page .pay-method-label{min-width:0}
body.checkout-page .btn-primary{
  border-radius:999px!important;min-height:48px!important;
  box-shadow:0 10px 24px rgba(15,18,24,.14)!important;
}
body.checkout-page .checkout-trust-card,body.checkout-page .shipping-info-aside,body.checkout-page .card-payment-box{
  border-radius:18px!important;max-width:100%;box-sizing:border-box;
}
body.checkout-page .checkout-summary,body.checkout-page .checkout-size-profiles{max-width:100%;min-width:0}

/* checkout-20261105b: فرم خلوت مثل نمونهٔ کارفرما، نه جابه‌جایی یک کادر */
body.checkout-page{background:#f3f4f6!important}
body.checkout-page .site-header .main-nav,
body.checkout-page .header-actions,
body.checkout-page .site-footer .footer-inner{display:none!important}
body.checkout-page .site-header{background:#fff!important;box-shadow:none!important;border-bottom:0!important}
body.checkout-page .checkout-page-card{
  background:#fff!important;border:0!important;border-radius:22px!important;
  box-shadow:0 8px 28px rgba(20,20,30,.05)!important;padding:18px 14px!important;
}
body.checkout-page .form-row-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
body.checkout-page input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
body.checkout-page textarea{
  background:#f3f4f6!important;border:0!important;border-radius:999px!important;
  min-height:48px;box-shadow:none!important;
}
body.checkout-page textarea{border-radius:18px!important;min-height:72px!important}
body.checkout-page .checkout-summary{order:-1}
body.checkout-page .checkout-summary-row--shipping{
  background:#fff1f2;color:#be123c;border-radius:16px;padding:12px 14px;margin:8px 0;
}
body.checkout-page .checkout-summary-row.total{font-weight:700;padding-top:8px}
body.checkout-page .btn-primary{
  background:#be123c!important;border:0!important;border-radius:999px!important;min-height:52px!important;
}
@media (max-width:520px){
  body.checkout-page .form-row-2{grid-template-columns:1fr}
}

/* checkout-20261105c: سایزها رفتند، دکمه‌ها شیشه‌ای، جزئیات کارت بعد از انتخاب */
body.checkout-page #checkout-size-profiles{display:none!important}
body.checkout-page #checkout-size-help-btn{
  display:inline-flex;align-items:center;gap:8px;margin:4px 0 14px;
  padding:10px 16px;border-radius:999px;cursor:pointer;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(16px) saturate(160%);
  -webkit-backdrop-filter:blur(16px) saturate(160%);
  border:1px solid rgba(59,38,88,.35);
  box-shadow:0 8px 24px rgba(80,40,120,.08),inset 0 1px 0 rgba(255,255,255,.8);
  color:#3b2658;font-weight:600;
}
body.checkout-page #cf-pay-method .pay-method{
  background:rgba(255,255,255,.92)!important;
  backdrop-filter:blur(16px) saturate(160%);
  -webkit-backdrop-filter:blur(16px) saturate(160%);
  border:1px solid rgba(59,38,88,.32)!important;
  border-radius:999px!important;
  box-shadow:0 6px 16px rgba(59,38,88,.14)!important;
  color:#3b2658!important;
}
body.checkout-page #cf-pay-method .pay-method:has(input:checked){
  background:rgba(243,236,255,.96)!important;
  border-color:rgba(59,38,88,.6)!important;
}
body.checkout-page .snappay-contact .btn,
body.checkout-page #cf-submit-btn,
body.checkout-page #cf-digipay-btn{
  background:rgba(255,255,255,.94)!important;
  color:#3b2658!important;
  border:1px solid rgba(59,38,88,.35)!important;
  backdrop-filter:blur(16px) saturate(160%);
  -webkit-backdrop-filter:blur(16px) saturate(160%);
  box-shadow:0 8px 22px rgba(80,40,120,.08),inset 0 1px 0 #fff!important;
}
body.checkout-page [hidden]{display:none!important}

/* 20261106: فرم دسکتاپ پهن، دو ستونه، اسکرول کمتر */
@media (min-width:900px){
  body.checkout-page .container{width:min(1120px,calc(100% - 40px))!important}
  body.checkout-page .checkout-page-grid{display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr)!important;gap:20px!important;align-items:start!important}
  body.checkout-page #checkout-form{display:grid;grid-template-columns:1fr 1fr;column-gap:14px;row-gap:8px}
  body.checkout-page #checkout-form .checkout-summary,
  body.checkout-page #checkout-form > .form-group,
  body.checkout-page #checkout-form > .shipping-info-aside,
  body.checkout-page #checkout-form > #checkout-size-help-btn,
  body.checkout-page #checkout-form > #cf-submit-btn{grid-column:1 / -1}
  body.checkout-page #checkout-form > .form-row-2{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr;gap:14px}
}
.filter-category-group .filter-category-children{max-height:240px!important;overflow:visible!important}

/* 20261106: حالت شب، نوشته و قیمت خوانا */
html[data-theme="dark"] body{color:#f3f4f6!important;background:#14161c!important}
html[data-theme="dark"] .nav-link,
html[data-theme="dark"] .brand-name,
html[data-theme="dark"] .brand-name-fa,
html[data-theme="dark"] .filter-switch-label,
html[data-theme="dark"] .filter-checkbox-row,
html[data-theme="dark"] .filter-group h4,
html[data-theme="dark"] .filter-category-group-toggle,
html[data-theme="dark"] .product-name,
html[data-theme="dark"] .product-name a,
html[data-theme="dark"] .pd-name,
html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .section-heading p,
html[data-theme="dark"] .kh360-cap-name,
html[data-theme="dark"] .kh360-eyebrow,
html[data-theme="dark"] label{color:#f4f6f8!important;-webkit-text-fill-color:currentColor!important}
html[data-theme="dark"] .current-price,
html[data-theme="dark"] .pd-price .current-price,
html[data-theme="dark"] .product-card .current-price{color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-theme="dark"] .category-page-heading h2{background:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-theme="dark"] input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
html[data-theme="dark"] textarea{background:#22262e!important;color:#f4f6f8!important;border-color:rgba(255,255,255,.16)!important}

/* 20261106b: دکمهٔ اضافه، آیکون تخفیف، رگال، منوی پیراهن */
body.v2-pdp .v2-mbar{display:none!important}
.off-sticker,.badge-discount{display:none!important}
section#new-arrivals{display:none!important}
#deals-countdown{display:none!important}
@media (max-width:860px){
  html body .site-header .main-nav.open{max-height:calc(100dvh - 90px)!important}
  html body .site-header .main-nav.open .nav-dropdown,
  html body .site-header .main-nav.open .nav-dropdown.open{max-height:none!important;overflow:visible!important}
  .nav-dropdown-sublist,
  .nav-dropdown-item.is-expanded .nav-dropdown-sublist,
  .nav-dropdown-item.has-children:hover .nav-dropdown-sublist{max-height:none!important;overflow:visible!important;display:flex!important}
  .nav-dropdown-sublink{color:#3b2658!important;font-size:14px!important;opacity:1!important;display:block!important}
}
