/* Comfortrek V339 — actual responsive experience overhaul. No runtime dependencies. */
:root{--ct339-ink:#17221e;--ct339-muted:#5c6962;--ct339-line:#dfe5df;--ct339-paper:#fff;--ct339-canvas:#f5f6f2;--ct339-accent:var(--theme-editor-accent,#98764a);--ct339-radius:20px;--ct339-shadow:0 16px 42px rgba(21,35,28,.09)}
html{scroll-behavior:smooth;scroll-padding-top:90px}body{overflow-wrap:anywhere}img,video,svg{max-width:100%}button,a,input,select,textarea{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--ct339-accent)!important;outline-offset:3px!important}
/* Storefront frame */
.storefront-home{isolation:isolate}.storefront-home section{scroll-margin-top:84px}.storefront-home :is(h1,h2,h3){text-wrap:balance}.storefront-home :is(.section-heading,.home-section-heading){max-width:780px;margin-inline:auto;text-align:center}.storefront-home :is(.section-heading h2,.home-section-heading h2){font-size:clamp(1.65rem,3.1vw,2.8rem);line-height:1.08;letter-spacing:-.045em}.storefront-home :is(.section-heading p,.home-section-heading p){max-width:58ch;margin:12px auto 0;line-height:1.7;color:var(--ct339-muted)}
.ck-featured-hero{position:relative;overflow:hidden;padding:clamp(32px,5vw,76px) 0;background:radial-gradient(ellipse at 85% 12%,rgba(190,163,118,.22),transparent 36%),linear-gradient(130deg,#f6f5f0,#e9eee8 72%,#f8f7f2);color:#19231f}.ck-featured-hero__inner{width:min(1320px,calc(100% - 40px));margin:auto;display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);align-items:center;gap:clamp(24px,4vw,64px)}.ck-featured-hero__copy{max-width:590px;position:relative;z-index:1}.ck-featured-hero .hero-eyebrow,.premium-hero .hero-eyebrow{display:inline-flex;align-items:center;gap:9px;font-size:.72rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase}.ck-featured-hero .hero-eyebrow:before{content:"";width:24px;height:1px;background:currentColor}.ck-featured-hero h1{font-size:clamp(2.4rem,5.4vw,5.25rem);line-height:.99;letter-spacing:-.065em;margin:20px 0}.ck-featured-hero .sub{font-size:clamp(1rem,1.5vw,1.18rem);line-height:1.75;max-width:48ch;color:#536058}.ck-featured-hero .btn-primary,.premium-hero .btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:50px;padding:0 23px;border-radius:999px;text-decoration:none;font-weight:800}.ck-featured-hero__products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:12px;min-width:0}.ck-featured-card{min-width:0;padding:12px 12px 16px;border:1px solid rgba(40,55,45,.11);border-radius:20px;background:rgba(255,255,255,.78);box-shadow:0 16px 36px rgba(28,38,31,.07);text-decoration:none;color:#1c2821;transition:transform .2s ease,box-shadow .2s ease}.ck-featured-card--center{transform:translateY(-18px)}.ck-featured-card:hover{transform:translateY(-5px);box-shadow:var(--ct339-shadow)}.ck-featured-card__image{aspect-ratio:4/5;display:grid;place-items:center;overflow:hidden;border-radius:13px;background:linear-gradient(145deg,#f3f2ed,#e8ebe5)}.ck-featured-card__image img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}.ck-featured-card h3{font-size:.9rem;line-height:1.35;margin:13px 0 7px}.ck-featured-card .price{font-size:.9rem;font-weight:850}
/* Premium discovery cards */
.storefront-home .home-experience-rail{background:var(--ct339-canvas)}.storefront-home .cr-discovery-card{min-height:190px;border-radius:22px;background:linear-gradient(150deg,#fff 0%,#f0f2ec 100%);box-shadow:0 8px 24px rgba(22,37,27,.04)}.storefront-home .cr-discovery-card:focus-visible{transform:translateY(-2px)}.storefront-home .cr-discovery-icon{width:46px;height:46px;border-radius:15px}.storefront-home .cr-finder-panel,.storefront-home .cr-finder-benefits{border-radius:22px}.storefront-home .cr-finder-panel .btn-primary{display:inline-flex;min-height:46px;align-items:center;gap:10px;padding:0 18px;border-radius:999px;text-decoration:none;font-weight:800}
/* All product tiles */
.product-grid{align-items:stretch}.product-grid>.product-card,.product-grid>.product-item,.product-grid>.product-tile{min-width:0;height:100%}.product-card,.product-item,.product-tile{border-radius:18px;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.product-card img,.product-item img,.product-tile img{display:block;max-width:100%;height:auto}.product-card :is(h2,h3,.product-title),.product-item :is(h2,h3,.product-title),.product-tile :is(h2,h3,.product-title){line-height:1.35;overflow-wrap:anywhere}.product-card :is(.price,.product-price),.product-item :is(.price,.product-price),.product-tile :is(.price,.product-price){font-variant-numeric:tabular-nums;font-weight:850}.product-card :is(button,.btn),.product-item :is(button,.btn),.product-tile :is(button,.btn){min-height:42px}@media(hover:hover){.product-card:hover,.product-item:hover,.product-tile:hover{transform:translateY(-3px);box-shadow:var(--ct339-shadow)}}
/* Product detail layout and purchase hierarchy */
.luxury-product-page{color:var(--ct339-ink)}.luxury-product-page .luxury-product-hero{grid-template-columns:minmax(0,1.03fr) minmax(0,.97fr)!important;gap:clamp(22px,4vw,58px)!important;padding-bottom:clamp(42px,7vw,100px)!important}.luxury-product-page .crp-gallery-stage{position:relative;overflow:hidden;background:linear-gradient(145deg,#f7f7f3,#edf0ea);border:1px solid rgba(32,46,37,.08);box-shadow:0 12px 34px rgba(20,30,23,.055)}.luxury-product-page #main-product-image{object-fit:contain!important;mix-blend-mode:multiply;transition:transform .35s ease}.luxury-product-page #main-product-image:hover{transform:scale(1.025)}.luxury-product-page .crp-product-title{margin-block:8px 14px}.luxury-product-page .luxury-product-info{min-width:0}.luxury-product-page :is(.ct267-decision-panel,.ct-offers-zone,.ct-coins-card,.ct175-experience-hub,.product-description,.product-details-card){padding:clamp(14px,2vw,22px);border:1px solid var(--ct339-line);background:var(--ct339-paper);box-shadow:0 7px 24px rgba(20,30,23,.035)}.luxury-product-page :is(.ct-offer-card,.ct-variant-card){min-width:0;overflow-wrap:anywhere}.luxury-product-page .ct-variant-card{min-height:70px}.luxury-product-page :is(.add-to-cart,.buy-now,.btn-add-cart,.btn-buy-now,[data-buy-now]){min-height:50px;border-radius:12px;font-weight:850}.luxury-product-page .buy-now,.luxury-product-page .btn-buy-now,[data-buy-now]{background:#f4c542;color:#202018;border:1px solid #e0b32c}.luxury-product-page :is(.add-to-cart,.btn-add-cart){border:1px solid currentColor}.luxury-product-page :is(.product-truth,.product-fit-section,.product-qa-section):empty{display:none}
/* Cart and checkout */
.ct-checkout{width:min(1240px,100%);padding:clamp(12px,2.5vw,28px);color:var(--ct339-ink)}.ct-checkout :is(h1,h2,h3){letter-spacing:-.03em;line-height:1.2}.ct-checkout .ct-check-card{border:1px solid var(--ct339-line);background:var(--ct339-paper);padding:clamp(15px,2.5vw,26px)}.ct-checkout :is(input,select,textarea,.form-input){width:100%;min-width:0;min-height:48px;padding:11px 13px;border:1px solid #cbd5cc;border-radius:12px;background:#fff;color:#1b2821}.ct-checkout :is(label,.form-label){display:block;margin-bottom:6px;font-weight:700;color:inherit}.ct-checkout :is(.ct-address-option,.payment-method,.payment-option,.coupon-card){min-width:0;border:1px solid var(--ct339-line);border-radius:15px;padding:14px}.ct-checkout :is(button,.btn-primary,.btn-secondary,[type=submit]){min-height:48px;border-radius:12px;font-weight:800}.ct-checkout :is(.order-summary,.checkout-summary,.cart-summary){position:relative;border-radius:18px}.container:has(>.section-heading) .cart-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:14px;border:1px solid var(--ct339-line);border-radius:16px;margin-bottom:10px}.container .qty-control{min-height:40px}.container .cart-remove-btn{border-radius:9px}
/* Account: consistent surfaces, readable labels and visible actions */
body.appearance-light :is(.account-page,.customer-account,[class*="account-dashboard"]){color:#19271f!important}body.appearance-light :is(.account-page,.customer-account,[class*="account-dashboard"]) :is(.card,.panel,.account-card,.dashboard-card,.account-sidebar,.account-content,.order-card,.profile-card){background:#fff!important;color:#19271f!important;border-color:#dce3dc!important;box-shadow:0 8px 24px rgba(20,35,25,.045)}body.appearance-light :is(.account-page,.customer-account,[class*="account-dashboard"]) :is(h1,h2,h3,h4,p,label,small,strong,span,dt,dd,li,a){text-shadow:none;filter:none}body.appearance-light :is(.account-page,.customer-account,[class*="account-dashboard"]) :is(p,small,.muted,.text-muted){color:#536158}body.appearance-light :is(.account-page,.customer-account,[class*="account-dashboard"]) :is(input,select,textarea){background:#fff!important;color:#19271f!important;border:1px solid #cbd5cc!important}body.appearance-light :is(.account-page,.customer-account,[class*="account-dashboard"]) a[href*="logout"],body.appearance-light :is(.account-page,.customer-account,[class*="account-dashboard"]) .logout-link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 14px;border:1px solid #c9d3ca;border-radius:999px;color:#26362b!important;background:#f7f9f6!important;font-weight:800;text-decoration:none}
/* Admin pages: dense information layouts become responsive, not horizontally clipped */
body:has(.admin-page-heading) .admin-page-heading{display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px;margin-bottom:22px}body:has(.admin-page-heading) :is(.admin-grid,.admin-quick-stats,.stats-grid,.dashboard-grid){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:16px}body:has(.admin-page-heading) :is(.admin-card,.stat-card,.dashboard-card,.panel-card){min-width:0;border-radius:16px;overflow-wrap:anywhere}body:has(.admin-page-heading) :is(input,select,textarea){max-width:100%;min-width:0}body:has(.admin-page-heading) :is(table,.table-responsive){max-width:100%}body:has(.admin-page-heading) table{border-collapse:separate;border-spacing:0}body:has(.admin-page-heading) :is(button,.btn,.admin-btn){min-height:38px;touch-action:manipulation}
/* Festival effects remain tied to explicit theme classes and respect reduced motion */
@keyframes ct339-soft-glow{0%,100%{filter:drop-shadow(0 0 0 rgba(255,195,70,0))}50%{filter:drop-shadow(0 0 8px rgba(255,195,70,.45))}}body[class*="theme-diwali"] :is(.theme-diya,.festival-diya,.diya-decoration){animation:ct339-soft-glow 2.4s ease-in-out infinite}body[class*="theme-holi"] :is(.holi-gulal,.gulal-particle,.festival-powder){animation:ct339-holi-drift 7s ease-in-out infinite alternate}@keyframes ct339-holi-drift{from{transform:translate3d(-3px,0,0) rotate(-3deg)}to{transform:translate3d(5px,-8px,0) rotate(4deg)}}
/* Responsive layouts */
@media(max-width:1000px){.ck-featured-hero__inner{grid-template-columns:1fr;gap:28px}.ck-featured-hero__copy{max-width:780px}.ck-featured-hero__products{max-width:780px;width:100%;margin-inline:auto}.ck-featured-card--center{transform:none}.luxury-product-page .luxury-product-hero{grid-template-columns:minmax(0,1fr)!important}.luxury-product-page .luxury-product-hero>div{min-width:0}}
@media(max-width:640px){.ck-featured-hero{padding:32px 0 28px}.ck-featured-hero__inner{width:calc(100% - 28px);gap:22px}.ck-featured-hero h1{font-size:clamp(2.25rem,11vw,3.35rem);margin:15px 0}.ck-featured-hero__products{gap:8px}.ck-featured-card{padding:8px 8px 12px;border-radius:14px}.ck-featured-card__image{border-radius:10px}.ck-featured-card h3{font-size:.76rem;margin-top:9px}.ck-featured-card .price{font-size:.8rem}.storefront-home .cr-discovery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.storefront-home .cr-discovery-card{min-height:148px;padding:14px}.luxury-product-page .luxury-product-hero{padding-top:12px!important;gap:20px!important}.luxury-product-page .crp-gallery-stage{border-radius:14px!important}.luxury-product-page .crp-product-title{font-size:1.55rem}.ct-checkout{padding:10px}.container:has(>.section-heading) .cart-line{grid-template-columns:1fr}.container .qty-control{max-width:160px}body:has(.admin-page-heading) :is(.admin-grid,.admin-quick-stats,.stats-grid,.dashboard-grid){grid-template-columns:1fr}.storefront-home .cr-finder-benefits{grid-template-columns:1fr}}
@media(prefers-color-scheme:dark){body.appearance-dark .ck-featured-hero{background:radial-gradient(ellipse at 85% 12%,rgba(190,163,118,.15),transparent 36%),linear-gradient(130deg,#1d2822,#17201b 72%,#202721);color:#f4f5ef}body.appearance-dark .ck-featured-hero .sub{color:#c1cbc3}body.appearance-dark .ck-featured-card{background:#26312a;color:#f2f4ef;border-color:#3d4a40}body.appearance-dark .ck-featured-card__image{background:#202a23}body.appearance-dark .ck-featured-card__image img{mix-blend-mode:normal}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.ck-featured-card,.product-card,.product-item,.product-tile,.luxury-product-page #main-product-image{transition:none!important;animation:none!important}body[class*="theme-diwali"] :is(.theme-diya,.festival-diya,.diya-decoration),body[class*="theme-holi"] :is(.holi-gulal,.gulal-particle,.festival-powder){animation:none!important}}
