/* Theme "Atelier": premium editorial fashion (pret, formal, menswear, bags, belts, accessories).
   Our own design from common fashion-site patterns: full-bleed photos, centred brand, serif display headings, portrait
   product photos, quiet uppercase labels, a dark footer. Layout lives in storefront.css; colours and fonts come from
   the business's settings (--sf-primary = ink, --sf-accent = bronze, --sf-bg = ivory). */
.sf-atelier{--sf-radius:0;--sf-line:color-mix(in srgb,var(--sf-primary) 12%,transparent);--sf-card:transparent;--sf-muted:#77736d;--sf-fg:var(--sf-primary);--sf-gap:clamp(.6rem,1.6vw,1.1rem)}
.sf-atelier,.sf-atelier input,.sf-atelier select,.sf-atelier button{letter-spacing:.01em}
.sf-atelier .sf-wrap{width:min(1360px,100% - clamp(1.5rem,5vw,4rem))}

/* Small uppercase labels used across the theme */
.sf-atelier .sf-nav a,.sf-atelier .sf-sub summary,.sf-atelier .sf-btn,.sf-atelier .sf-crumbs,.sf-atelier .sf-opt legend,
.sf-atelier .sf-sec-head a,.sf-atelier .sf-chart summary,.sf-atelier .sf-foot nav a,.sf-atelier .sf-social a,
.sf-atelier .sf-tile span:last-child,.sf-atelier .sf-card-name{text-transform:uppercase;letter-spacing:.14em;font-size:.74rem;font-weight:500}

/* Announcement and header: brand centred, menu on its own line below it */
.sf-atelier .sf-announce{background:var(--sf-primary);color:var(--sf-bg);font-weight:400;letter-spacing:.18em;text-transform:uppercase;font-size:.7rem;padding:.55rem 1rem}
.sf-atelier .sf-head{background:color-mix(in srgb,var(--sf-bg) 94%,transparent);border-bottom:1px solid var(--sf-line)}
.sf-atelier .sf-head-in{display:grid;grid-template-columns:1fr auto 1fr;grid-template-areas:"search brand cart" "nav nav nav";align-items:center;column-gap:1rem;min-height:0;padding:.9rem 0 0}
.sf-atelier .sf-brand{grid-area:brand;justify-self:center;font-family:var(--sf-font-head);font-weight:400;font-size:clamp(1.4rem,3vw,2.1rem);letter-spacing:.22em;text-transform:uppercase}
.sf-atelier .sf-brand img{max-height:56px}
.sf-atelier .sf-search{grid-area:search;justify-self:start}
.sf-atelier .sf-search input{border:0;border-bottom:1px solid var(--sf-line);border-radius:0;background:transparent;padding:.35rem 0;width:12rem;font-size:.85rem}
.sf-atelier .sf-cart-link{grid-area:cart;justify-self:end;font-size:1.25rem}
.sf-atelier .sf-cart-count{background:var(--sf-accent)}
.sf-atelier .sf-nav{grid-area:nav;justify-content:center;gap:clamp(1.2rem,3vw,2.6rem);padding:.85rem 0 .7rem}
.sf-atelier .sf-nav a{border-bottom:1px solid transparent;padding:.15rem 0}
.sf-atelier .sf-nav a:hover{border-color:var(--sf-primary)}
.sf-atelier .sf-nav-sale{color:var(--sf-accent)}
.sf-atelier .sf-sub>div{border-radius:0;box-shadow:0 18px 40px rgb(0 0 0/.08);background:var(--sf-bg);padding:.8rem 1.2rem;gap:.15rem}
.sf-atelier .sf-sub>div a{padding:.35rem 0}
@media (max-width:820px){
  .sf-atelier .sf-head-in{grid-template-columns:auto 1fr auto;grid-template-areas:"burger brand cart" "search search search";padding:.6rem 0;row-gap:.5rem}
  .sf-atelier .sf-head{backdrop-filter:none;background:var(--sf-bg)}   /* a filter would trap the fixed menu inside the header */
  .sf-atelier .sf-burger{grid-area:burger;font-size:1.3rem;position:relative;z-index:41}
  .sf-atelier .sf-burger[aria-expanded="true"]{font-size:0}
  .sf-atelier .sf-burger[aria-expanded="true"]::after{content:"✕";font-size:1.2rem}
  .sf-atelier .sf-brand{font-size:1.25rem;letter-spacing:.16em}
  .sf-atelier .sf-search input{width:100%}
  .sf-atelier .sf-search{justify-self:stretch}
  .sf-atelier .sf-nav{position:fixed;top:0;bottom:0;left:0;right:auto;width:min(84vw,340px);z-index:40;justify-content:flex-start;padding:7rem 1.5rem 2rem;background:var(--sf-bg);box-shadow:0 0 0 100vmax rgb(0 0 0/.35);overflow-y:auto}
  .sf-atelier .sf-nav a{padding:.95rem 0;font-size:.8rem}
}

/* Hero: full-bleed photo, tall, text straight on the picture */
.sf-atelier .sf-slide img{max-height:none;height:clamp(420px,86vh,900px)}
.sf-atelier .sf-slide::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgb(0 0 0/.45),transparent 55%);pointer-events:none}
.sf-atelier .sf-slide-text{z-index:1;left:0;right:0;bottom:clamp(2rem,9vh,5rem);max-width:none;margin:auto;background:none;color:#fff;text-align:center;padding:0 1.5rem}
.sf-atelier .sf-slide-text h2{font-weight:400;font-size:clamp(2rem,6vw,4.4rem);letter-spacing:.04em;margin-bottom:1.1rem;text-shadow:0 1px 18px rgb(0 0 0/.25)}
.sf-atelier .sf-slide-text .sf-btn{background:#fff;border-color:#fff;color:#111}
.sf-atelier .sf-dots{bottom:1.1rem;z-index:1}
.sf-atelier .sf-dots button{width:1.8rem;height:2px;border-radius:0;opacity:.5}
.sf-atelier .sf-dots button[aria-current="true"]{opacity:1;background:#fff}
.sf-atelier .sf-hero-brand{background:color-mix(in srgb,var(--sf-accent) 9%,var(--sf-bg));padding-block:clamp(4.5rem,16vw,10rem)}
.sf-atelier .sf-hero-brand h1{font-weight:400;font-size:clamp(2.6rem,9vw,6rem);letter-spacing:.08em;text-transform:uppercase;margin-bottom:1rem}
.sf-atelier .sf-hero-brand p{font-size:1.05rem;color:var(--sf-muted)}

/* Buttons: square, quiet, uppercase */
.sf-atelier .sf-btn{border-radius:0;border-width:1px;padding:1rem 2.2rem;background:var(--sf-primary);border-color:var(--sf-primary);color:var(--sf-bg);transition:background .25s,color .25s}
.sf-atelier .sf-btn:hover{filter:none;background:transparent;color:var(--sf-primary)}
.sf-atelier .sf-btn-ghost{background:transparent;color:var(--sf-primary)}
.sf-atelier .sf-btn-ghost:hover{background:var(--sf-primary);color:var(--sf-bg)}

/* Section titles: centred serif, link under it */
.sf-atelier .sf-sec{padding-block:clamp(2.5rem,7vw,5.5rem) 0}
.sf-atelier .sf-sec>h2,.sf-atelier .sf-sec-head h2{font-weight:400;font-size:clamp(1.6rem,3.6vw,2.6rem);letter-spacing:.03em;text-align:center;width:100%;margin-bottom:1.6rem}
.sf-atelier .sf-sec-head{flex-direction:column;align-items:center;gap:0;margin-bottom:1.6rem}
.sf-atelier .sf-sec-head h2{margin-bottom:.5rem}
.sf-atelier .sf-sec-head a{text-decoration:none;border-bottom:1px solid currentColor;padding-bottom:.15rem}

/* Category tiles: portrait photos, name on the picture */
.sf-atelier .sf-tiles{grid-template-columns:repeat(auto-fit,minmax(min(46%,260px),1fr))}
.sf-atelier .sf-tile{position:relative;border:0;background:#ece8e2;overflow:hidden}
.sf-atelier .sf-tile img,.sf-atelier .sf-tile .sf-noimg{aspect-ratio:3/4;transition:transform .8s ease}
.sf-atelier .sf-tile:hover img{transform:scale(1.04)}
.sf-atelier .sf-tile::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgb(0 0 0/.42),transparent 45%)}
.sf-atelier .sf-tile span:last-child{position:absolute;z-index:1;left:0;right:0;bottom:1.1rem;padding:0 .5rem;text-align:center;color:#fff;font-size:.8rem}
.sf-atelier .sf-tile .sf-noimg{font-family:var(--sf-font-head);font-weight:400;color:var(--sf-primary);background:color-mix(in srgb,var(--sf-accent) 14%,var(--sf-bg))}

/* Product cards: no frame, portrait, small caps name */
.sf-atelier .sf-grid{grid-template-columns:repeat(auto-fill,minmax(min(46%,250px),1fr));gap:2.2rem var(--sf-gap)}
.sf-atelier .sf-row{grid-auto-columns:minmax(min(44%,240px),300px);justify-content:safe center}   /* a short row stays card-sized, centred */
.sf-atelier .sf-card{border:0}
.sf-atelier .sf-card-pic{aspect-ratio:3/4;background:#efebe5}
.sf-atelier .sf-card-pic img{transition:transform .9s ease}
.sf-atelier .sf-card:hover .sf-card-pic img{transform:scale(1.03)}
.sf-atelier .sf-card-pic .sf-back{transition:opacity .5s ease}
.sf-atelier .sf-card-body{padding:.85rem 0 0;gap:.35rem;text-align:center;justify-items:center}
.sf-atelier .sf-card-name{font-size:.72rem;line-height:1.5}
.sf-atelier .sf-price{font-size:.92rem}
.sf-atelier .sf-price s{margin-right:.2rem}
.sf-atelier .sf-off{top:.7rem;left:.7rem;border-radius:0;background:var(--sf-bg);color:var(--sf-primary);font-weight:500;font-size:.68rem;letter-spacing:.12em;padding:.3rem .55rem}
.sf-atelier .sf-off::before{content:"SALE ";color:var(--sf-accent)}
.sf-atelier .sf-soldout{border-radius:0;left:.7rem;bottom:.7rem;background:var(--sf-primary);font-size:.68rem;letter-spacing:.12em;text-transform:uppercase}
.sf-atelier .sf-badge{border-radius:0;background:transparent;color:var(--sf-accent);font-weight:500;padding:0}
.sf-atelier .sf-swatch{width:.8rem;height:.8rem}
.sf-atelier .sf-noimg{font-family:var(--sf-font-head);font-weight:400;color:var(--sf-muted);background:#efebe5}

/* Chips (tags) and banners */
.sf-atelier .sf-chips{justify-content:center}
.sf-atelier .sf-chip{border-radius:0;background:transparent;font-weight:500;text-transform:uppercase;letter-spacing:.12em;font-size:.72rem;padding:.65rem 1.2rem}
.sf-atelier .sf-chip:hover{border-color:var(--sf-primary);background:var(--sf-primary);color:var(--sf-bg)}
.sf-atelier .sf-chips-small{justify-content:flex-start}
.sf-atelier .sf-chips-small .sf-chip{font-size:.66rem;padding:.25rem .6rem}
.sf-atelier .sf-banner{width:100%;padding-top:clamp(2.5rem,7vw,5.5rem)}
.sf-atelier .sf-banner img{max-height:620px}
.sf-atelier .sf-banner-text{left:50%;bottom:2rem;transform:translateX(-50%);border-radius:0;background:var(--sf-bg);padding:.8rem 1.4rem;font-weight:400;letter-spacing:.12em;text-transform:uppercase;font-size:.78rem;white-space:nowrap}
.sf-atelier .sf-text{text-align:center;margin-inline:auto;font-size:1.05rem;color:var(--sf-muted)}
.sf-atelier .sf-text h2{color:var(--sf-fg)}
.sf-atelier .sf-strip{padding-bottom:clamp(2rem,6vw,4rem);border-bottom:1px solid var(--sf-line)}
.sf-atelier .sf-strip p{font-family:var(--sf-font-head);font-weight:400;font-size:clamp(1.3rem,3vw,1.9rem)}

/* Product page: tall gallery, calm buy column that stays in view on desktop */
.sf-atelier .sf-crumbs{padding-top:1.4rem;font-size:.66rem}
.sf-atelier .sf-product{gap:clamp(1.5rem,5vw,5rem);padding-top:1.5rem}
.sf-atelier .sf-gal-main{aspect-ratio:3/4;background:#efebe5}
.sf-atelier .sf-gal-thumbs button{border-radius:0;border-width:1px;width:64px;height:85px}
.sf-atelier .sf-gal-thumbs button[aria-pressed="true"]{border-color:var(--sf-primary)}
@media (min-width:801px){.sf-atelier .sf-buy{position:sticky;top:9rem;align-self:start}}
.sf-atelier .sf-buy h1{font-weight:400;font-size:clamp(1.5rem,3vw,2.3rem);letter-spacing:.02em;margin-bottom:.4rem}
.sf-atelier .sf-price-big{font-size:1.15rem;margin:.2rem 0 1.4rem;padding-bottom:1.2rem;border-bottom:1px solid var(--sf-line)}
.sf-atelier .sf-opt legend{margin-bottom:.6rem}
.sf-atelier .sf-opt-btn{border-radius:0;border-width:1px;min-width:3.2rem;justify-content:center;padding:.6rem .9rem;font-size:.85rem}
.sf-atelier .sf-opt-btn[aria-pressed="true"]{background:var(--sf-primary);color:var(--sf-bg);border-color:var(--sf-primary);font-weight:500}
.sf-atelier .sf-opt-btn[aria-pressed="true"] .sf-swatch{border-color:var(--sf-bg)}
.sf-atelier .sf-add{flex-wrap:nowrap}
.sf-atelier .sf-add [data-add]{flex:1}
.sf-atelier .sf-qty{border-radius:0;border-width:1px}
.sf-atelier .sf-qty button{background:transparent;height:3.1rem}
.sf-atelier .sf-qty input{background:transparent}
.sf-atelier .sf-wa{width:100%}
.sf-atelier .sf-desc{color:var(--sf-muted);line-height:1.75}
.sf-atelier .sf-chart{border-top:1px solid var(--sf-line);padding:.9rem 0;margin:0}
.sf-atelier .sf-chart:last-of-type{border-bottom:1px solid var(--sf-line)}
.sf-atelier .sf-chart summary{list-style:none;display:flex;justify-content:space-between}
.sf-atelier .sf-chart summary::-webkit-details-marker{display:none}
.sf-atelier .sf-chart summary::after{content:"+";font-size:1rem;letter-spacing:0}
.sf-atelier .sf-chart[open] summary::after{content:"−"}
.sf-atelier .sf-chart th{background:color-mix(in srgb,var(--sf-accent) 10%,transparent);font-weight:500}
.sf-atelier .sf-note{border-radius:0;background:color-mix(in srgb,var(--sf-accent) 10%,transparent)}
/* Phones: the buy button stays at the bottom of the screen while the size options are in view */
@media (max-width:800px){.sf-atelier .sf-add{position:sticky;bottom:0;z-index:5;background:var(--sf-bg);padding:.7rem 0;margin:0;box-shadow:0 -8px 16px -12px rgb(0 0 0/.25)}}

/* Collection, cart, checkout, tracking */
.sf-atelier .sf-col-banner{border-radius:0;max-height:420px}
.sf-atelier .sf-sort select,.sf-atelier input,.sf-atelier select,.sf-atelier textarea{border-radius:0}
.sf-atelier .sf-checkout input,.sf-atelier .sf-checkout select{border-width:1px;background:#fff}
.sf-atelier .sf-checkout label{font-weight:500;font-size:.85rem;letter-spacing:.04em}
.sf-atelier .sf-line{border-radius:0;background:#fff}
.sf-atelier .sf-line img,.sf-atelier .sf-line .sf-noimg{border-radius:0}
.sf-atelier .sf-seg button,.sf-atelier .sf-steps li{border-radius:0;border-width:1px;font-weight:500}
.sf-atelier .sf-seg button[aria-pressed="true"]{background:var(--sf-primary);color:var(--sf-bg)}
.sf-atelier .sf-steps li.on{background:var(--sf-primary)}
.sf-atelier .sf-totals .grand{font-weight:600}
.sf-atelier .sf-toast{border-radius:0;background:var(--sf-primary);color:var(--sf-bg);letter-spacing:.04em}

/* Footer: dark, roomy, uppercase links */
.sf-atelier .sf-foot{margin-top:clamp(3rem,8vw,6rem);background:var(--sf-primary);color:color-mix(in srgb,var(--sf-bg) 82%,transparent);border:0;padding:clamp(2.5rem,6vw,4.5rem) 0 1.5rem}
.sf-atelier .sf-foot b{display:block;font-family:var(--sf-font-head);font-weight:400;font-size:1.5rem;letter-spacing:.2em;text-transform:uppercase;color:var(--sf-bg);margin-bottom:.8rem}
.sf-atelier .sf-foot p{line-height:1.7}
.sf-atelier .sf-foot a:hover{color:var(--sf-bg)}
.sf-atelier .sf-foot nav,.sf-atelier .sf-social{gap:.8rem}
.sf-atelier .sf-foot .sf-small{margin-top:2.5rem;padding-top:1.2rem;border-top:1px solid color-mix(in srgb,var(--sf-bg) 18%,transparent);font-size:.72rem;letter-spacing:.08em}
:where(.sf-atelier) :focus-visible{outline:2px solid var(--sf-accent);outline-offset:3px}

@media (prefers-reduced-motion:reduce){
  .sf-atelier .sf-tile img,.sf-atelier .sf-card-pic img,.sf-atelier .sf-btn,.sf-atelier .sf-card-pic .sf-back{transition:none}
  .sf-atelier .sf-tile:hover img,.sf-atelier .sf-card:hover .sf-card-pic img{transform:none}
}
