/* ATELIER CASA 2.1 / Responsive Editorial Experience
   Static presentation layer only. Business logic and Django API unchanged. */
:root{--ink:#2c2722;--accent:#946c50;--paper:#fffefa;--soft:#eee7df;--line:#e7dfd4}
html{scroll-padding-top:100px}
body{overflow-x:clip}
body,button,input,select{font-synthesis:none}
button,a,input,select{ -webkit-tap-highlight-color:transparent }
img{color:transparent}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
::selection{background:#dfc2ab;color:#2c2722}
.container{width:min(1320px,calc(100% - 72px))}
.section-head h2,.lookbook h2,.newsletter h2,.account-head h1{letter-spacing:-.055em;text-wrap:balance}
.site-header{box-shadow:0 4px 20px rgba(41,32,24,.03)}
.header-inner{max-width:1440px}
.header-actions{flex-shrink:0}
.brand{transition:opacity .2s ease}
.brand:hover{opacity:.75}
.icon-btn,.menu-toggle{border-radius:50%;transition:background-color .2s ease}
.icon-btn:hover{background:rgba(148,108,80,.11)}
.navlinks a{transition:color .2s ease,border-color .2s ease}
.navlinks a:hover{color:#8a6349}
.button{transition:transform .22s ease,background-color .22s ease,box-shadow .22s ease}
.button:hover{box-shadow:0 12px 22px rgba(58,42,31,.13)}
.hero{min-height:630px;overflow:hidden}
.hero-copy{padding-right:clamp(34px,6vw,94px)}
.hero-copy .eyebrow{letter-spacing:.25em}
.hero h1{max-width:660px;text-wrap:balance}
.hero-image img{object-position:center}
.hero-side{border:1px solid rgba(255,255,255,.6);box-shadow:0 12px 40px rgba(0,0,0,.08)}
.hero-under strong{font-size:12px}
.category-link{isolation:isolate;border-radius:2px}
.category-link:focus-visible{outline-offset:5px}
.category-link:after{transition:opacity .35s}
.category-link:hover:after{opacity:.86}
.category-link span{max-width:calc(100% - 65px)}
.catalog-tools{position:relative;gap:18px}
.filters{gap:8px}
.filter{border:1px solid transparent;border-radius:100px;padding:12px 18px;min-height:44px;transition:background .15s,color .15s,border .15s}
.filter:hover:not([aria-pressed=true]){border-color:#cab5a3;background:#f1e9e0;color:var(--ink)}
.filter[aria-pressed=true]{box-shadow:0 6px 14px #382d2412}
.catalog-right{gap:10px}
.catalog-right .search-wrap{position:relative;flex:1;min-width:0}
.catalog-right .search{min-width:0;width:100%;height:46px;padding:11px 48px 11px 16px;border-radius:4px}
.catalog-right .sort{height:46px;border-radius:4px;padding:10px 14px}
.search-clear{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;background:transparent;border-radius:50%;color:var(--muted);font-size:21px;line-height:1}
.search-clear:hover{background:#f0ebe5}
.result-line{margin:0 0 24px;font-size:12px;letter-spacing:.02em}
.product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:38px 24px}
.product-card{min-width:0;isolation:isolate}
.product-visual{background:#eae5dd;border-radius:3px;aspect-ratio:4 / 4.6;isolation:isolate}
.product-visual img{transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.product-card:hover .product-visual img{transform:scale(1.05)}
.product-desc{align-items:start;gap:14px;line-height:1.45;margin-top:17px}
.product-desc a{min-width:0}
.product-desc a:hover{text-decoration:underline;text-underline-offset:4px}
.product-desc strong{font-weight:600;letter-spacing:-.01em;font-size:14px}
.product-desc span{white-space:nowrap;font-weight:700;font-size:13px}
.product-meta{font-size:10px;letter-spacing:.14em;margin-top:9px}
.product-visual .fav{top:13px;right:13px;border:1px solid #f4eee5;border-radius:100%;width:42px;height:42px;font:27px/1 Georgia,serif;transition:transform .2s ease,background .2s ease}
.product-visual .fav:hover{transform:scale(1.08);background:#fff}
.product-visual .fav.is-on{color:#8e544b}
.editorial-label{position:absolute;top:16px;left:15px;z-index:2;padding:9px 11px;background:rgba(251,249,244,.96);color:#6c513d;font-weight:800;text-transform:uppercase;font-size:9px;letter-spacing:.12em}
.quick-add{border-radius:2px;bottom:14px;left:14px;right:14px;min-height:48px;box-shadow:0 6px 24px #201b1620;background:rgba(255,254,251,.97)}
.quick-add:focus-visible{outline-offset:2px}
.quick-add:hover:not(:disabled){background:var(--dark);color:#fff;transform:translateY(-2px)}
.empty{border-radius:4px;padding:48px 20px}
.empty .reset-filters{margin-top:16px}
.catalog-skeleton{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:10px}
.skeleton-card{display:grid;gap:11px}
.skeleton-photo,.skeleton-line{background:linear-gradient(110deg,#e9e2d9 8%,#f2ede6 18%,#e9e2d9 33%);background-size:200% 100%;animation:atelier-shimmer 1.5s linear infinite;border-radius:3px}
.skeleton-photo{aspect-ratio:4/4.6}
.skeleton-line{height:13px;width:64%}
.skeleton-line.wide{width:86%}
@keyframes atelier-shimmer{to{background-position-x:-200%}}
/* More refined account / checkout forms */
.account-page{background:radial-gradient(circle at 18% 6%,#efe8de 0,transparent 35%),var(--bg)}
.account-panel,.checkout-panel{border-radius:5px;box-shadow:0 15px 50px rgba(45,35,24,.035)}
.account-form input,.field input,.field select{border-radius:3px;min-width:0}
.account-form input:focus,.field input:focus,.field select:focus,.search:focus,.sort:focus{border-color:#926c50;box-shadow:0 0 0 3px rgba(148,108,80,.10)}
.auth-tabs{gap:6px}
.auth-tab{min-height:46px}
.order-card{gap:18px}
.order-card button{min-height:40px;padding:8px 4px}
.order-detail{border:1px solid #dfd3c8;border-radius:3px;overflow-wrap:anywhere}
.checkout-head h1{max-width:700px}
.checkout-panel{min-width:0}
.checkout-panel .button{width:100%}
.checkout .checkout-panel:last-child{align-self:start;position:sticky;top:104px}
.radio-row{min-height:54px;border-radius:3px}
.demo-check input{width:18px;height:18px;flex:none;margin-top:1px}
/* Shopping bag */
.overlay{backdrop-filter:blur(3px)}
.drawer{width:min(490px,100%);height:100dvh;max-height:100dvh}
.drawer-head{padding:21px 26px;flex-shrink:0}
.drawer-head button{width:44px;height:44px;border-radius:100%;display:grid;place-items:center;transition:background .2s}
.drawer-head button:hover{background:#eee9e1}
.drawer-items{padding:0 25px;min-height:0;overscroll-behavior:contain}
.drawer-foot{padding:18px 25px max(20px,env(safe-area-inset-bottom));flex-shrink:0;max-height:min(56dvh,500px);overflow-y:auto;overscroll-behavior:contain;background:var(--paper)}
.drawer-row{grid-template-columns:74px minmax(0,1fr) auto;gap:12px;align-items:start}
.drawer-row img{width:74px;height:86px;border-radius:3px}
.drawer-row strong{font-size:12px;text-align:right}
.drawer-row h3{line-height:1.4;overflow-wrap:anywhere}
.line-qty button:not(.remove){width:34px;height:34px;border-radius:3px;font-size:16px}
.line-qty .remove{min-height:34px;margin-left:1px}
.coupon input,.coupon button{min-height:46px}
.coupon button{white-space:nowrap}
.totals-line.grand{font-size:18px}
.cart-empty{padding:44px 10px}
.api-status{font-weight:600;line-height:1.5}
/* New mobile dock and mobile product quick CTA */
.mobile-dock{display:none}
.mobile-product-bar{display:none}
.nav-scrim{display:none}
.mobile-dock-count{position:absolute;top:0;right:calc(50% - 25px);background:#49392b;color:white;min-width:16px;height:16px;padding:0 4px;border-radius:8px;display:grid;place-items:center;font:700 10px/16px 'DM Sans',sans-serif}
.mobile-dock-count:empty{display:none}
/* Enhanced responsive scale */
@media(max-width:1100px){
 .header-inner{gap:16px}.navlinks{gap:14px}.brand{font-size:23px;letter-spacing:.09em}
 .hero h1{font-size:clamp(58px,6vw,76px)}
 .category-link{height:270px}
}
@media(max-width:900px){
 .hero{grid-template-columns:1fr 1fr;min-height:500px}
 .hero-image{min-height:500px}
 .hero-copy{padding:55px 35px}.hero h1{font-size:clamp(50px,7vw,78px)}
 .catalog-tools{align-items:stretch;flex-direction:column}
 .catalog-right{width:100%;display:grid;grid-template-columns:minmax(0,1fr) 180px}
 .category-links{gap:12px}.category-link{height:240px}
 .product-grid{gap:26px 16px}
 .checkout .checkout-panel:last-child{position:static}
}
@media(max-width:960px){
 .site-header{z-index:80}
 .menu-toggle{display:grid}
 .header-inner{min-height:64px}
 .navlinks{z-index:82;display:none;gap:2px;position:absolute;top:100%;left:0;right:0;max-height:calc(100dvh - 190px);overflow:auto;padding:18px 24px 24px;background:#fdfaf5;border-bottom:1px solid #e0d4c8;box-shadow:0 25px 48px #1e191737}
 .navlinks.open{display:flex}.navlinks a{padding:14px 8px;font-size:13px}
 .nav-scrim{position:fixed;inset:0;z-index:69;background:rgba(30,26,22,.22);opacity:0;pointer-events:none;display:block;transition:opacity .2s}
 .nav-scrim.is-open{opacity:1;pointer-events:auto}
 body.menu-open{overflow:hidden}
 .hero{grid-template-columns:1fr;min-height:0}
 .hero-copy{padding:76px 42px 66px}
 .hero h1{font-size:clamp(60px,10vw,84px);max-width:600px}
 .hero-image{height:420px;min-height:0}
 .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .catalog-skeleton{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
 :root{--mobile-dock-height:74px}
 .container{width:calc(100% - 34px)}
 body{padding-bottom:calc(var(--mobile-dock-height) + env(safe-area-inset-bottom))}
 .topline{font-size:9px;line-height:1.45;letter-spacing:.08em;padding:8px 12px}
 .notice{font-size:10px;line-height:1.4;padding:8px 12px}
 .header-inner{min-height:62px;gap:6px}
 .brand{font-size:clamp(17px,4.5vw,21px);gap:8px;letter-spacing:.075em}
 .brand-mark{height:16px;width:16px}
 .header-actions{gap:3px}
 .header-actions .account-link,.header-actions #wishlist-button{display:none}
 .header-actions .lang{margin-right:6px}
 .header-actions .lang a{padding:7px 8px;font-size:10px}
 .icon-btn{height:42px;width:42px;min-height:42px;min-width:42px;padding:9px}
 .hero-copy{padding:64px 25px 54px}
 .hero h1{font-size:clamp(56px,11vw,78px);margin:18px 0 19px}
 .hero-copy p{font-size:14px;line-height:1.75;margin-bottom:25px}
 .hero-image{height:360px}
 .hero-under{grid-template-columns:repeat(3,minmax(0,1fr))}
 .hero-under span{padding:16px 9px;font-size:10px;letter-spacing:0}
 .hero-under span:last-child{grid-column:auto;border-top:0}
 .hero-under strong{display:block;margin:0 auto 5px}
 .section{padding:63px 0}
 .section-head{margin-bottom:25px}
 .section-head h2{font-size:clamp(36px,9vw,52px);line-height:1.1}
 .section-head p{font-size:13px}
 .category-links{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .category-link{height:200px}
 .category-link span{left:12px;bottom:14px;font-size:clamp(15px,3.5vw,23px)}
 .category-link b{right:10px;bottom:12px;font-size:16px}
 .catalog-tools{gap:13px;padding:15px 0}
 .filters{display:flex;min-width:0;width:100%;max-width:100%;overflow-x:auto;flex-wrap:nowrap;gap:6px;scrollbar-width:none;overscroll-behavior-x:contain;padding-right:17px}
 .filters::-webkit-scrollbar{display:none}
 .filter{white-space:nowrap;flex:none;padding:11px 16px;font-size:11px;min-height:42px}
 .catalog-right{grid-template-columns:minmax(0,1fr) minmax(118px,38%);gap:8px}
 .catalog-right .search,.catalog-right .sort{height:45px;font-size:12px}
 .product-grid{gap:25px 13px}
 .product-visual{aspect-ratio:4/5}
 .product-desc{flex-direction:column;gap:4px;margin-top:12px}
 .product-desc strong{font-size:13px}
 .product-desc span{font-size:13px}
 .product-meta{font-size:9px;margin-top:6px}
 .product-visual .fav{width:36px;height:36px;top:8px;right:8px;font-size:23px}
 .editorial-label{top:10px;left:9px;font-size:8px;padding:7px}
 .quick-add{min-height:41px;bottom:7px;left:7px;right:7px;font-size:10px;letter-spacing:.035em}
 .lookbook{grid-template-columns:1fr}
 .lookbook-image{height:320px}
 .lookbook-copy{padding:55px 25px}
 .newsletter{padding:60px 0}
 .newsletter h2{font-size:clamp(36px,8vw,49px)}
 .footer{padding:52px 0 28px}
 .footer-top{grid-template-columns:1fr;gap:18px}
 .footer-bottom{padding-bottom:10px}
 .mobile-dock{position:fixed;left:0;right:0;bottom:0;z-index:70;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));height:calc(var(--mobile-dock-height) + env(safe-area-inset-bottom));padding:7px 7px max(8px,env(safe-area-inset-bottom));background:rgba(255,253,248,.97);border-top:1px solid #e1d7cc;box-shadow:0 -10px 35px rgba(39,32,24,.09);backdrop-filter:blur(18px)}
 .mobile-dock a,.mobile-dock button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:52px;background:transparent;border:0;border-radius:7px;font-size:10px;color:#7d7269;font-weight:700}
 .mobile-dock svg{width:21px;height:21px;stroke:currentColor;stroke-width:1.75;fill:none;stroke-linecap:round;stroke-linejoin:round}
 .mobile-dock .is-active{color:#6e4a36;background:#f2e9e0}
 .mobile-dock a:focus-visible,.mobile-dock button:focus-visible{outline-offset:0}
 .mobile-product-bar{position:fixed;z-index:68;bottom:calc(var(--mobile-dock-height) + env(safe-area-inset-bottom));left:0;right:0;padding:11px 17px;background:rgba(253,250,245,.98);border-top:1px solid #e7dbcf;box-shadow:0 -8px 28px #201a1810;display:flex;align-items:center;justify-content:space-between;gap:16px;transform:translateY(150%);opacity:0;pointer-events:none;transition:transform .2s ease,opacity .2s ease}
 .mobile-product-bar.is-visible{transform:translateY(0);opacity:1;pointer-events:auto}
 .mobile-product-bar .price{font-size:16px;font-weight:800;white-space:nowrap}
 .mobile-product-bar .button{min-height:43px;padding:11px 17px;flex:1;max-width:240px;font-size:10px}
 body.locked .mobile-product-bar{opacity:0;pointer-events:none}
 .account-page{padding:38px 0 65px}
 .account-head{margin-bottom:24px}.account-head h1{font-size:clamp(40px,9vw,55px)}
 .account-welcome{gap:10px}.account-welcome h2{font-size:30px}
 .account-panel{padding:23px 19px}
 .account-panel h2{font-size:25px}
 .order-card{align-items:flex-start;gap:10px}
 .order-card small{line-height:1.5}
 .order-card button{flex:none}
 .checkout-head{padding:43px 0 20px}
 .checkout-head h1{font-size:clamp(43px,10vw,62px)}
 .checkout{gap:19px;padding-bottom:72px}
 .checkout-panel{padding:23px 19px}
 .checkout-panel h2{font-size:27px}
 .detail{gap:20px;padding-bottom:50px}
 .detail-info h1{font-size:clamp(40px,10vw,60px)}
 .detail-info>p{font-size:14px}
 .detail-photo{aspect-ratio:1/1.1}
 .detail-actions{flex-wrap:wrap}
 .detail-actions .button{min-height:52px}
 .reco{padding:55px 0}
 .drawer{z-index:110}
 .drawer-head{padding:16px 17px}
 .drawer-head h2{font-size:30px}
 .drawer-items{padding:0 17px}
 .drawer-foot{padding:14px 17px max(12px,env(safe-area-inset-bottom));max-height:56dvh}
 .drawer-row{grid-template-columns:68px minmax(0,1fr);gap:10px}
 .drawer-row img{width:68px;height:83px;grid-row:span 2}
 .drawer-row strong{grid-column:2;justify-self:start;margin-top:-3px}
 .line-qty .remove{padding:2px 4px}
 .drawer-foot .button{min-height:50px}
}
@media(max-width:390px){
 .brand{font-size:16px;letter-spacing:.045em}.brand-mark{width:14px;height:14px}
 .header-actions .lang a{padding:6px}
 .hero-copy{padding:52px 20px 47px}.hero h1{font-size:54px}
 .hero-image{height:300px}
 .category-link{height:165px}.category-link span{font-size:15px;left:8px;bottom:10px}
 .category-link b{right:8px;bottom:9px}
 .filters{gap:4px}.filter{font-size:10px;padding-inline:13px}
 .catalog-right{grid-template-columns:minmax(0,1fr) 120px}
 .product-grid{gap:22px 10px}
 .product-desc strong{font-size:12px}
 .product-visual .fav{width:34px;height:34px}
 .editorial-label{font-size:7px}
 .quick-add{min-height:38px;font-size:9px}
 .checkout-panel,.account-panel{padding:20px 16px}
 .footer-bottom{flex-direction:column;gap:4px}
}
@media(max-width:340px){
 .brand{font-size:15px}.header-actions .lang{margin-right:1px}
 .header-actions .lang a{padding:5px}
 .icon-btn{width:38px;min-width:38px}
 .hero h1{font-size:49px}
 .catalog-right{grid-template-columns:minmax(0,1fr) 108px}
 .drawer-row h3{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.skeleton-photo,.skeleton-line{animation:none}.mobile-product-bar{transition:none}}

.atelier-toast{position:fixed;left:50%;bottom:105px;transform:translate(-50%,12px);background:#342c25;color:#fff;padding:12px 19px;min-width:180px;text-align:center;font-size:12px;letter-spacing:.02em;box-shadow:0 12px 40px #0003;border-radius:3px;z-index:105;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s,transform .2s,visibility .2s}
.atelier-toast.is-visible{opacity:1;visibility:visible;transform:translate(-50%,0)}
@media(max-width:700px){.atelier-toast{bottom:calc(95px + env(safe-area-inset-bottom));max-width:calc(100vw - 35px);width:max-content}}
