/* Comfortrek V338 — consolidated experience finish. CSS-only, progressive enhancement. */
:root{--ct338-ink:#17211f;--ct338-muted:#66716d;--ct338-line:rgba(31,48,42,.13);--ct338-paper:#fffefa;--ct338-soft:#f5f4ef;--ct338-radius:20px;--ct338-shadow:0 14px 38px rgba(23,33,31,.075)}
/* Shared storefront rhythm and keyboard access */
:where(.storefront-home,.luxury-product-page,.ct-checkout,.container,.home-experience-inner) :where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid var(--theme-editor-accent,#b18a52);outline-offset:3px}
:where(.storefront-home,.luxury-product-page,.ct-checkout) :where(button,.btn-primary,.btn-secondary,[type=submit]){transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}
@media(hover:hover){:where(.storefront-home,.luxury-product-page,.ct-checkout) :where(.btn-primary,.btn-secondary,[type=submit]):hover{transform:translateY(-1px);filter:saturate(1.04)}}
/* Homepage discovery cards: editorial, tactile, consistent */
.storefront-home .home-experience-rail{padding:clamp(30px,5vw,76px) 0}
.storefront-home .home-experience-inner{width:min(1240px,calc(100% - 36px));margin-inline:auto}
.storefront-home .cr-discovery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:26px}
.storefront-home .cr-discovery-card{position:relative;display:flex;min-height:176px;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:7px;overflow:hidden;padding:22px;border:1px solid var(--ct338-line);border-radius:var(--ct338-radius);background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(244,242,234,.88));color:#1b2823;text-decoration:none;box-shadow:0 8px 25px rgba(20,30,25,.045);transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease}
.storefront-home .cr-discovery-card:before{content:"";position:absolute;width:130px;height:130px;right:-42px;top:-48px;border:1px solid rgba(151,119,68,.20);border-radius:50%;box-shadow:0 0 0 18px rgba(151,119,68,.045),0 0 0 36px rgba(151,119,68,.025);pointer-events:none}
.storefront-home .cr-discovery-card:hover{transform:translateY(-3px);border-color:rgba(151,119,68,.48);box-shadow:var(--ct338-shadow)}
.storefront-home .cr-discovery-icon{display:grid;place-items:center;width:42px;height:42px;margin-bottom:auto;border-radius:13px;background:rgba(151,119,68,.11);color:#87683a}
.storefront-home .cr-discovery-icon svg{width:22px;height:22px}
.storefront-home .cr-discovery-card strong{font-size:1rem;letter-spacing:-.025em}
.storefront-home .cr-discovery-card>span:not(.cr-discovery-icon){font-size:.83rem;line-height:1.5;color:#5d6963}
.storefront-home .cr-discovery-arrow{position:absolute;right:18px;bottom:19px;font-size:1.15rem;color:#87683a}
.storefront-home .cr-finder{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:18px;margin-top:20px}
.storefront-home .cr-finder-panel,.storefront-home .cr-finder-benefits{border:1px solid var(--ct338-line);border-radius:var(--ct338-radius);padding:clamp(22px,3vw,34px);background:var(--ct338-paper);box-shadow:0 8px 26px rgba(20,30,25,.035)}
.storefront-home .cr-finder-panel{background:radial-gradient(circle at 100% 0,rgba(177,138,82,.15),transparent 38%),var(--ct338-paper)}
.storefront-home .cr-finder-panel h3{max-width:520px;font-size:clamp(1.45rem,2.7vw,2.15rem);letter-spacing:-.045em;line-height:1.13}
.storefront-home .cr-finder-benefits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.storefront-home .cr-benefit{display:grid;align-content:start;gap:6px;padding:14px;border-radius:14px;background:rgba(120,130,110,.07)}
.storefront-home .cr-benefit b{font-size:.9rem;color:var(--ct338-ink)}.storefront-home .cr-benefit span{font-size:.79rem;line-height:1.55;color:var(--ct338-muted)}
/* Product detail: consistent reading hierarchy, variant/gallery surfaces and action clarity */
.luxury-product-page{--ct338-pdp-gap:clamp(20px,3vw,42px)}
.luxury-product-page .luxury-product-hero{gap:var(--ct338-pdp-gap);align-items:start}
.luxury-product-page .tag-image.product-image-stage,.luxury-product-page .thumbnail-btn,.luxury-product-page .ct-variant-card{border-radius:16px}
.luxury-product-page .thumbnail-btn{overflow:hidden;border:1px solid var(--ct338-line);transition:border-color .18s ease,box-shadow .18s ease}
.luxury-product-page .thumbnail-btn.active,.luxury-product-page .ct-variant-card.is-selected{border-color:var(--theme-editor-accent,#a7834d);box-shadow:0 0 0 2px color-mix(in srgb,var(--theme-editor-accent,#a7834d) 22%,transparent)}
.luxury-product-page .crp-product-title{font-size:clamp(1.55rem,2.4vw,2.45rem);line-height:1.13;letter-spacing:-.04em;text-transform:none;overflow-wrap:anywhere}
.luxury-product-page .luxury-product-info{min-width:0}
.luxury-product-page :where(.ct267-decision-panel,.ct-offers-zone,.ct-coins-card,.ct175-experience-hub){border-radius:18px}
.luxury-product-page .ct-offers-zone{margin-block:16px}
.luxury-product-page .ct-offer-card{min-width:0;gap:12px}
.luxury-product-page .ct-offer-copy,.luxury-product-page .ct-offer-label{overflow-wrap:anywhere}
.luxury-product-page :where(.ct-offer-apply,.ct-coins-action){min-height:42px;border-radius:12px;font-weight:750}
.luxury-product-page .ct-variant-card{min-width:0;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
@media(hover:hover){.luxury-product-page .ct-variant-card:hover{transform:translateY(-2px)}}
/* Cart and checkout: avoid narrow fields and make totals/actions clear */
.ct-checkout{max-width:1240px;margin-inline:auto}
.ct-checkout .ct-check-card{border-radius:18px;box-shadow:0 8px 26px rgba(0,0,0,.045)}
.ct-checkout :where(.form-input,select,textarea,input[type=text],input[type=tel],input[type=email]){min-height:46px;max-width:100%;border-radius:11px}
.ct-checkout .ct-address-option{border-radius:14px;transition:border-color .18s ease,background .18s ease}
.ct-checkout .ct-address-continue-v171,.ct-checkout .ct-save-address-v171{min-height:48px;border-radius:13px;font-weight:800}
.container:has(>.section-heading) .cart-line{border-radius:16px;overflow:hidden}
.container .qty-control{border-radius:12px;overflow:hidden}
.container .cart-remove-btn{min-height:38px}
/* Account: final readable surface guard for both content cards and form labels */
body.appearance-light .account-page,body.appearance-light .customer-account,body.appearance-light [class*="account-dashboard"]{color:#1d2924}
body.appearance-light .account-page :where(h1,h2,h3,h4,p,label,small,strong,span,dt,dd,li),body.appearance-light .customer-account :where(h1,h2,h3,h4,p,label,small,strong,span,dt,dd,li){text-shadow:none;filter:none;opacity:1}
body.appearance-light .account-page :where(input,select,textarea),body.appearance-light .customer-account :where(input,select,textarea){color:#1d2924;background:#fff;border-color:#d8ded8}
/* Admin consistency without overriding each admin theme's own tokens */
.admin-page-heading{gap:16px;align-items:center}
.admin-grid>.admin-card,.admin-quick-stats>*{min-width:0}
body:has(.admin-page-heading) :where(input,select,textarea){max-width:100%}
body:has(.admin-page-heading) :where(button,.btn,.admin-btn){touch-action:manipulation}
@media(max-width:980px){.storefront-home .cr-discovery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.storefront-home .cr-finder{grid-template-columns:1fr}}
@media(max-width:640px){.storefront-home .home-experience-inner{width:min(100% - 28px,1240px)}.storefront-home .cr-discovery-grid{gap:10px}.storefront-home .cr-discovery-card{min-height:155px;padding:16px;border-radius:16px}.storefront-home .cr-discovery-card strong{font-size:.92rem}.storefront-home .cr-discovery-card>span:not(.cr-discovery-icon){font-size:.76rem;padding-right:4px}.storefront-home .cr-finder-benefits{grid-template-columns:1fr;gap:10px;padding:16px}.storefront-home .cr-finder-panel{padding:22px}.luxury-product-page .luxury-product-hero{gap:20px}.luxury-product-page .crp-product-title{font-size:1.6rem}.luxury-product-page .ct-offer-card{align-items:flex-start}.luxury-product-page .ct-offer-apply{flex-shrink:0}.ct-checkout{padding-inline:12px}}
@media(prefers-reduced-motion:reduce){.storefront-home .cr-discovery-card,.luxury-product-page .ct-variant-card,.luxury-product-page .thumbnail-btn,:where(.storefront-home,.luxury-product-page,.ct-checkout) :where(button,.btn-primary,.btn-secondary,[type=submit]){transition:none!important;animation:none!important;scroll-behavior:auto!important}}
