/* ===== ONE sheet shell, 2026-11-16. ck-sheet.js adds .ck-sheet to every dialog it owns:
   Filters (shop + home), Sort + variant pickers (one shared picker sheet), cart Change option, Menu (phone), Share, Info, Saved, Search, Sign in.
   Phone: bottom sheet with full-width, unscaled geometry (left/right 0, never 100vw: body zoom made 100vw sheets 345px wide at 375, CK-041).
   Desktop: centred dialog. Motion is written by ck-sheet.js as transitions on transform/opacity only, never keyframes on anything a finger can drag.
   Content styles follow below (filters, picker) or live with their owners (ck-tabbar.css menu, ck-cart-select.css change option). ===== */
html body dialog.ck-sheet.ck-sheet[open]{animation:none!important}
html body dialog.ck-sheet.ck-sheet:not(#category-menu)::backdrop{opacity:var(--ck-bd,1);transition:opacity var(--ck-bd-t,0ms) var(--ease-drawer);animation:none!important}
html.ck-sheet-lock{overflow:hidden}
.ck-sheet-grab{display:none}
@media(min-width:768px){html body dialog.ck-sheet.ck-sheet-off{opacity:0!important;transform:scale(.96)!important}}
@media(max-width:767px){
  html body dialog.ck-sheet.ck-sheet{
    position:fixed!important;inset:auto 0 0 0!important;margin:0!important;
    width:auto!important;min-width:0!important;max-width:none!important;height:auto!important;
    max-height:calc(85dvh / var(--ck-zoom,1))!important;zoom:1!important;
    padding:0 0 calc(env(safe-area-inset-bottom) / var(--ck-zoom,1))!important;
    border:0!important;border-radius:var(--sheet-radius) var(--sheet-radius) 0 0!important;
    background:var(--color-canvas)!important;color:var(--color-ink);
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
    /* 2nd shadow = a copy of the sheet 240px lower, so pulling the sheet up never shows a gap under it */
    box-shadow:0 -12px 44px rgba(68,40,23,.18),0 240px 0 0 var(--color-canvas)!important;
    overflow-x:hidden!important;overflow-y:auto;overscroll-behavior:contain;font-size:var(--phone-body,14px)}
  html body dialog.ck-sheet.ck-sheet[open]{display:flex!important;flex-direction:column}
  html body dialog.ck-sheet.ck-sheet::backdrop{background:var(--glass-scrim)!important;backdrop-filter:none!important;opacity:var(--ck-bd,1);transition:opacity var(--ck-bd-t,0ms) var(--ease-drawer)}
  html body dialog.ck-sheet .ck-sheet-grab{display:flex!important;justify-content:center;flex:none;margin:0!important;padding:12px 0 4px!important;background:transparent!important;touch-action:none;cursor:grab}
  html body dialog.ck-sheet .ck-sheet-grab span{display:block;width:48px!important;height:5px!important;border-radius:999px;background:#e2d8cf!important}
  html body dialog.ck-sheet.ck-sheet-dragging .ck-sheet-grab{cursor:grabbing}
  /* one header: centred title, round close on the right (34px circle, 44px hit area) */
  html body dialog.ck-sheet>:is(.s-dialog-header,.ck-drawer-top){position:relative;display:flex;align-items:center;justify-content:center;gap:12px;flex:none;min-height:44px;height:auto;margin:0!important;padding:4px 60px 10px!important;border:0!important;background:transparent!important;text-align:center;touch-action:none}
  html body dialog.ck-sheet>:is(.s-dialog-header,.ck-drawer-top) :is(h2,.ck-drawer-title){display:block;margin:0!important;font-size:18px!important;line-height:1.3!important;font-weight:600!important;letter-spacing:-.01em;color:var(--color-ink)}
  html body dialog.ck-sheet>:is(.s-dialog-header,.ck-drawer-top) :is(.s-icon-button,.ck-drawer-close){position:absolute!important;right:16px;top:calc(50% - 3px);transform:translateY(-50%);width:34px!important;height:34px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;display:grid;place-items:center;border:0!important;border-radius:50%!important;background:#f5efe9!important;box-shadow:none!important;color:var(--color-ink)!important;transition:transform 160ms var(--ease-out),background-color 160ms ease;cursor:pointer}
  html body dialog.ck-sheet>:is(.s-dialog-header,.ck-drawer-top) :is(.s-icon-button,.ck-drawer-close)::after{content:"";position:absolute;inset:-5px;border-radius:50%}
  html body dialog.ck-sheet>:is(.s-dialog-header,.ck-drawer-top) :is(.s-icon-button,.ck-drawer-close):active{transform:translateY(-50%) scale(.97)}
  html body dialog.ck-sheet>:is(.s-dialog-header,.ck-drawer-top) :is(.s-icon-button,.ck-drawer-close):focus-visible{outline:2px solid var(--color-brand);outline-offset:2px}
  html body dialog.ck-sheet>:is(.s-dialog-header,.ck-drawer-top) :is(.s-icon-button,.ck-drawer-close) svg{width:16px!important;height:16px!important}
  /* text sheets (share, info, saved, search, sign in): the dialog itself scrolls, 20px side padding */
  html body dialog.ck-sheet:is(.ck-share-dialog,#info-dialog,#saved-dialog,#search-dialog,#signin-dialog){padding:0 20px calc(20px + env(safe-area-inset-bottom) / var(--ck-zoom,1))!important}
  html body dialog.ck-sheet:is(.ck-share-dialog,#info-dialog,#saved-dialog,#search-dialog,#signin-dialog)>.s-dialog-header{margin:0 -20px!important}
}

/* ===== Panel sheets (Filters, Sort/variant picker, cart Change option): content + the desktop dialog look. Doubled :is() = id weight x2 so it beats ck-type.css / store.css. ===== */
/* On phones the Sort pill opens the picker sheet, not the native picker */
@media(max-width:767px){.s-shop-sort select{pointer-events:none}.s-shop-sort{cursor:pointer}}
html body dialog:is(#filters-dialog,#home-filter-dialog,.ck-sort-sheet):is(#filters-dialog,#home-filter-dialog,.ck-sort-sheet){
--b:#e9e1d9;--m:#f5efe9;--mf:#7a6f66;--ring:color-mix(in srgb,var(--color-brand) 35%,transparent);
display:none;padding:0!important;color:var(--color-ink);overflow:hidden!important;font-size:14px;
&[open]{display:flex!important;flex-direction:column}
&>form{display:flex!important;flex-direction:column;flex:1 1 auto;min-height:0;margin:0;overflow:hidden;padding:0!important;gap:0!important}
& .s-filter-cats{flex:0 1 auto;min-height:0;overflow:visible!important;margin:0!important;padding:4px 24px 12px!important;border:0!important}
&>ul{padding:4px 12px 16px!important;overflow-y:auto;overscroll-behavior:contain}
& .ck-cat-disclosure{border:0!important;background:none!important;padding:0!important;margin:0!important;box-shadow:none!important}
& .ck-cat-disclosure>summary{list-style:none;display:flex;align-items:center;gap:8px;padding:0 0 8px!important;margin:0!important;font-size:13px!important;font-weight:500!important;color:var(--mf)!important;cursor:default;background:none!important;border:0!important;min-height:0!important;
  &::-webkit-details-marker{display:none} &::after,&::before{display:none!important} & b{font-weight:500;color:var(--color-brand)}}
& .ck-cat-body,& .ck-cat-panel{max-height:none!important;height:auto!important;overflow:visible!important;border:0!important;border-radius:0!important;background:none!important;padding:0!important;margin:0!important;box-shadow:none!important;-webkit-mask-image:none!important;mask-image:none!important}
& .ck-cat-panel{display:grid!important;gap:2px!important;max-height:max(160px,calc(min(85dvh,680px) - 300px))!important;overflow-y:auto!important;overscroll-behavior:contain;margin:0 -8px!important;padding:0 8px!important;scrollbar-width:thin}
& .ck-cat-row{position:relative;display:flex!important;align-items:center;gap:12px!important;min-height:40px!important;padding:0 10px!important;margin:0!important;border:0!important;border-radius:8px!important;background:transparent!important;font-size:14px!important;font-weight:500!important;line-height:1.25;color:var(--color-ink)!important;cursor:pointer;transition:background-color .12s ease;
  & input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
  & input:checked+.ck-cat-tick{background:var(--color-brand)!important;border-color:var(--color-brand)!important; & svg{opacity:1!important}}
  & input:focus-visible+.ck-cat-tick{box-shadow:0 0 0 3px var(--ring)!important}}
& .ck-cat-tick{flex:none;display:grid!important;place-items:center;width:16px!important;height:16px!important;margin:0!important;border:1px solid #c9bdb2!important;border-radius:4px!important;background:#fff!important;box-shadow:0 1px 2px rgba(0,0,0,.05)!important;transition:background-color .12s ease,border-color .12s ease;
  & svg{width:10px!important;height:10px!important;opacity:0;transition:opacity .12s ease}}
& .ck-price-range{flex:none;margin:0!important;padding:16px 24px 20px!important;border:0!important;border-top:1px solid var(--b)!important;border-radius:0!important;background:none!important;box-shadow:none!important}
& .ck-price-head{display:flex;align-items:baseline;justify-content:space-between;margin:0 0 14px!important;font-size:13px!important;font-weight:500!important;color:var(--mf)!important}
& .ck-price-out{font-size:14px!important;font-weight:600!important;color:var(--color-ink)!important;font-variant-numeric:tabular-nums}
& .ck-price-track{position:relative;height:20px!important;margin:0 9px!important;background:none!important;border:0!important;
  &::before{content:""!important;display:block!important;position:absolute;left:0;right:0;top:50%;height:6px!important;margin-top:-3px;border-radius:999px;background:linear-gradient(90deg,var(--m) 0 var(--lo,0%),var(--color-brand) var(--lo,0%) var(--hi,100%),var(--m) var(--hi,100%))!important;border:0!important}
  &::after{display:none!important}
  & input[type=range]{position:absolute!important;left:-9px!important;width:calc(100% + 18px)!important;top:0!important;height:20px!important;margin:0!important;background:none!important;-webkit-appearance:none;appearance:none;pointer-events:none;
    &::-webkit-slider-runnable-track{background:none!important;border:0;height:20px}
    &::-moz-range-track{background:none!important;border:0}
    &::-webkit-slider-thumb{-webkit-appearance:none;pointer-events:auto;width:18px;height:18px;margin-top:1px;border-radius:50%;border:2px solid var(--color-brand)!important;background:#fff!important;box-shadow:0 1px 3px rgba(0,0,0,.2)!important;cursor:grab}
    &::-moz-range-thumb{pointer-events:auto;width:14px;height:14px;border-radius:50%;border:2px solid var(--color-brand);background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);cursor:grab}
    &:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 4px var(--ring)!important}}}
& .s-filter-actions{position:static!important;flex:none;display:flex!important;justify-content:flex-end;gap:8px!important;margin:0!important;padding:14px 24px 20px!important;border:0!important;border-top:1px solid var(--b)!important;background:var(--color-canvas)!important;
  & .s-button{height:40px!important;min-height:0!important;padding:0 16px!important;border-radius:8px!important;font-size:14px!important;font-weight:500!important;line-height:1;box-shadow:0 1px 2px rgba(0,0,0,.05)!important;transition:background-color .15s ease,opacity .15s ease,transform 160ms var(--ease-out);
    &:active{transform:scale(.97)}
    &:focus-visible{outline:none;box-shadow:0 0 0 3px var(--ring)!important}}
  & .s-outline{background:#fff!important;border:1px solid var(--b)!important;color:var(--color-ink)!important}
  & .s-primary{background:var(--color-brand)!important;border:1px solid var(--color-brand)!important;color:#fff!important}}
@media(hover:hover) and (pointer:fine){
  & .ck-cat-row:hover{background:var(--m)!important}
  & .s-filter-actions .s-outline:hover{background:var(--m)!important}
  & .s-filter-actions .s-primary:hover{opacity:.9}}
@media(min-width:768px){
  inset:0!important;margin:auto!important;width:min(440px,calc(100vw - 32px))!important;max-width:none!important;height:fit-content!important;max-height:min(85dvh,680px)!important;border-radius:14px!important;zoom:1!important;
  border:1px solid var(--b)!important;background:var(--color-canvas)!important;box-shadow:0 4px 6px -4px rgba(28,20,14,.1),0 25px 50px -12px rgba(28,20,14,.25)!important;
  &::backdrop{background:rgba(10,8,6,.5);backdrop-filter:blur(2px)}
  &>.s-dialog-header{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0!important;padding:20px 24px 12px!important;flex:none}
  & h2{margin:0!important;font-size:18px!important;line-height:1.3;font-weight:600!important;letter-spacing:-.01em}
  & .s-dialog-header .s-icon-button{width:34px!important;height:34px!important;min-width:0!important;min-height:0!important;padding:0!important;display:grid;place-items:center;border:0!important;border-radius:50%!important;background:var(--m)!important;box-shadow:none!important;color:var(--mf)!important;transition:background-color .15s ease,color .15s ease,transform 160ms var(--ease-out);cursor:pointer;
    &:hover{background:#ebe2d8!important;color:var(--color-ink)!important}
    &:active{transform:scale(.97)}
    &:focus-visible{outline:none;box-shadow:0 0 0 3px var(--ring)!important}
    & svg{width:16px!important;height:16px!important}}}
@media(max-width:767px){
  & .s-filter-cats{padding:4px 16px 12px!important}
  & .ck-cat-panel{max-height:max(160px,calc(85dvh / var(--ck-zoom,1) - 320px))!important}
  & .ck-cat-row{min-height:46px!important}
  & .ck-price-range{padding:16px 20px 20px!important}
  & .s-filter-actions{display:grid!important;grid-template-columns:1fr 2fr;padding:12px 16px 16px!important; & .s-button{height:44px!important;width:100%}}}
}

/* ===== Product card badges + pagination polish, 2026-11-13 ===== */
html body .s-product-card .s-bestseller-badge,html body .s-main-photo .s-bestseller-badge{display:inline-flex!important;align-items:center;height:22px!important;padding:0 9px!important;border:0!important;border-radius:999px!important;font-size:11px!important;font-weight:600!important;letter-spacing:.01em!important;line-height:1!important;text-transform:none!important;box-shadow:0 1px 2px rgba(36,38,32,.14)!important}
html body .s-product-card .s-new-badge{background:var(--color-brand)!important;color:#fff!important}
html body .s-product-card .ck-img-discount{display:inline-flex!important;align-items:center;height:22px!important;padding:0 8px!important;border:1px solid #f0d2bd!important;border-radius:999px!important;background:#fffdf9!important;color:var(--color-brand)!important;font-size:11px!important;font-weight:700!important;line-height:1!important;font-variant-numeric:tabular-nums;box-shadow:0 1px 2px rgba(36,38,32,.1)!important}
html body .s-listing-bottom{display:flex!important;flex-direction:column!important;align-items:center!important;gap:16px!important;margin:44px 0 20px!important;padding:0!important;width:100%}
@media(max-width:767px){html body .s-listing-bottom{margin:36px 0 13px!important}}
html body .s-pagination-controls{display:flex!important;justify-content:center!important;margin:0!important;padding:0!important;width:auto!important}
html body .s-pagination-controls nav{display:flex!important;align-items:center;gap:8px!important}
html body .s-pagination-controls .ck-page-numbers{display:flex!important;align-items:center;gap:6px!important}
html body .s-pagination-controls .ck-page-num,html body .s-pagination-controls .ck-page-step{display:grid!important;place-items:center;min-width:40px!important;width:40px!important;height:40px!important;padding:0!important;border-radius:50%!important;border:1px solid transparent!important;font-size:15px!important;font-weight:500!important;color:var(--color-ink)!important;text-decoration:none!important;font-variant-numeric:tabular-nums;transition:background-color .15s ease,border-color .15s ease,color .15s ease,transform 160ms var(--ease-out)}
@media(hover:hover) and (pointer:fine){html body .s-pagination-controls a.ck-page-num:hover{background:#f5efe9!important}}
html body .s-pagination-controls .ck-page-num.is-current{background:var(--color-brand)!important;color:#fff!important;font-weight:600!important}
html body .s-pagination-controls .ck-page-step{border-color:#ebc5a6!important;background:#fff!important;color:var(--color-brand)!important}
@media(hover:hover) and (pointer:fine){html body .s-pagination-controls .ck-page-step:hover{background:var(--color-brand)!important;border-color:var(--color-brand)!important;color:#fff!important}}
html body .s-pagination-controls :is(.ck-page-num,.ck-page-step):active{transform:scale(.97)}
html body .s-pagination-controls .ck-page-step svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}
/* ===== Spacing consistency: collection title row + promo banner, 2026-11-15 ===== */
html body .s-collection>.s-collection-intro.ck-compact-intro{padding:0!important;margin:0 0 var(--space-4)!important}
html body [id^="ck-promos-"]{margin-top:24px!important;margin-bottom:24px!important}
html body [id^="ck-promos-"]+.s-section,html body [id^="ck-promos-"]+section{padding-top:0!important}

/* ===== Phone navbar: thinner, glyphs equally inset from both screen edges (24px), 2026-11-15 ===== */
@media(max-width:639px){
html body .s-header-main{height:52px!important}
html body .s-header-main>.s-menu-launch{margin-left:-3px}
}

/* ===== Side menu: fixed Categories header + divider, scrolling category area, divider + bottom-pinned Help links, 2026-11-15 ===== */
html body .ck-drawer .ck-panel[data-panel="root"]{display:flex!important;flex-direction:column;padding:0!important;overflow:hidden!important}
html body .ck-drawer .ck-panel[data-panel="root"]>.ck-drawer-cats{display:flex!important;flex-direction:column;flex:1 1 0;min-height:0}
html body .ck-drawer .ck-drawer-cats>.ck-drawer-label{flex:none;margin:0!important;padding:18px 20px 12px;border-bottom:1px solid var(--color-line)}
html body .ck-drawer .ck-cats-scroll{flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:none;padding:4px 12px}
html body .ck-drawer .ck-cats-scroll::-webkit-scrollbar{display:none}
html body .ck-drawer .ck-drawer-cats .ck-list{border:0!important;border-radius:0!important;background:transparent!important;overflow:visible!important}
html body .ck-drawer .ck-drawer-cats .ck-list .ck-row{background:transparent!important}
@media(hover:hover) and (pointer:fine){html body .ck-drawer .ck-drawer-cats .ck-list .ck-row:hover{background:var(--color-brand-soft)!important}}
html body .ck-drawer .ck-panel[data-panel="root"]>.ck-drawer-help{flex:none;margin:0!important;padding:12px 20px max(20px,env(safe-area-inset-bottom))!important;border-top:1px solid var(--color-line)}
html body .ck-drawer .ck-drawer-help>.ck-drawer-label{margin:0 0 4px!important}

/* ===== Option pickers (cart Change option sheet + product page variants): calmer, 2026-11-15 ===== */
html body .ck-variant-sheet .ck-vs-values button[aria-pressed="true"]{border-color:var(--color-brand);box-shadow:none;background:#FBF4F0;color:var(--color-ink)}
html body .s-variant-options input:checked+span{border-color:var(--color-brand);box-shadow:none;background:#FBF4F0;color:var(--color-ink)}
html body .ck-variant-sheet .ck-vs-values button,html body .s-variant-options span{font-weight:400}
html body .ck-variant-sheet .ck-vs-opt legend b,html body .s-variant-fieldset legend strong{font-weight:500}
html body .ck-variant-sheet .ck-vs-product h3{font-weight:500}
html body .ck-variant-sheet .ck-vs-price strong{font-size:14px;font-weight:600}
html body .ck-variant-sheet .ck-vs-foot button{font-weight:500}
html body .ck-variant-sheet .ck-vs-save:disabled{opacity:.35}

/* ===== Desktop announcement bar: slimmer (32px), 2026-11-15 ===== */
@media(min-width:640px){
html body .s-announcement.s-benefit-announcement{height:32px!important;min-height:32px!important}
html body .s-announcement-rotator{height:32px!important}
html body .s-announcement-message{padding-block:0}
}

/* ===== Desktop (1024+): "Shop" button opens the category menu as a dropdown under it; compact single-row navbar, 2026-11-15 ===== */
@media(min-width:1024px){
html body .s-header-main{height:64px!important;gap:20px}
html body .s-header-main .s-logo,html body .s-header-main .s-logo img{width:auto!important;height:44px!important}
html body .s-menu-launch[data-open-menu]{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;gap:0;border:0;border-radius:8px;background:transparent;margin:0 0 0 -10px!important}
html body .s-menu-launch[data-open-menu]:hover,html body .s-menu-launch[data-open-menu][aria-expanded="true"]{background-color:var(--color-brand-soft);color:var(--color-brand)}
html body .s-menu-launch[data-open-menu]>span{display:none!important}
html body .s-header-main>.s-inline-search{height:40px}
html body .s-header-main #header-search-form{height:40px}
html body dialog.ck-drawer{position:fixed!important;inset:var(--dd-top,72px) auto auto var(--dd-left,32px)!important;width:300px!important;min-width:0!important;max-width:300px!important;height:auto!important;max-height:calc(100dvh - var(--dd-top,72px) - 16px)!important;border:1px solid var(--color-line);border-radius:14px;box-shadow:0 12px 32px rgba(36,38,32,.14)!important;background:#fff;transform:none!important;transition:opacity .15s ease,overlay .15s allow-discrete,display .15s allow-discrete!important}
html body dialog.ck-drawer:not([open]){opacity:0}
html body dialog.ck-drawer::backdrop{background:transparent!important;backdrop-filter:none!important}
html body .ck-drawer .ck-drawer-top{display:none!important}
html body .ck-drawer .ck-drawer-panels{position:relative;flex:0 1 auto;display:flex;min-height:0}
html body .ck-drawer .ck-panel[data-panel="root"]{position:relative!important;inset:auto!important;transform:none!important;visibility:visible!important;flex:1 1 auto;min-height:0;width:100%}
html body .ck-drawer .ck-cats-scroll{flex:1 1 auto}
html body .ck-drawer .ck-drawer-cats>.ck-drawer-label{padding:14px 20px 10px}
}
@media(min-width:1024px){
html body .ck-drawer .ck-panel[data-panel="root"]>.ck-drawer-cats{flex:0 1 auto!important}
html body .ck-drawer .ck-cats-scroll{flex:0 1 auto}
html body .ck-drawer .ck-panel[data-panel="root"]>.ck-drawer-help{padding-bottom:12px!important}
}
/* 2026-11-17: phone sheets (Menu, Sort, Filter, pickers) use the island's frosted material. One shell, every sheet gets it. */
@media(max-width:767px){
  html body dialog.ck-sheet.ck-sheet{background:var(--glass-surface)!important;-webkit-backdrop-filter:var(--glass-blur)!important;backdrop-filter:var(--glass-blur)!important;box-shadow:inset 0 1px 0 var(--glass-hair),0 -12px 44px rgba(68,40,23,.18)!important}
  @supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){html body dialog.ck-sheet.ck-sheet{background:var(--color-canvas)!important}}
}

/* Menu sheet (2026-11-17): same solid background as the phone search view (canvas), no frosted glass. Menu only; other sheets keep the glass look. */
@media(max-width:767px){html body dialog#category-menu.ck-sheet.ck-sheet{background:var(--color-canvas)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}}
