/* Mabelia storefront — minimal */
:root {
  --bg: #ffffff;
  --soft: #f4f3f1;
  --ink: #111111;
  --muted: #767676;
  --line: #e4e2df;
  --sale: #a1281f;
  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gut: clamp(16px, 3vw, 40px);
  --nav-h: 60px;
  --ease: cubic-bezier(.25, .1, .25, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; border-radius: 0; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: #fff; }

.label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.link { font-size: 13px; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: opacity .2s; }
.link:hover { opacity: .55; }

/* announce + nav */
.announce { font-size: 11px; letter-spacing: .06em; text-align: center; padding: 9px var(--gut); background: var(--ink); color: #fff; }
.announce:empty { display: none; }
.nav { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { height: var(--nav-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--gut); }
.nav-links { display: flex; gap: 26px; font-size: 13px; }
.nav-links a { transition: opacity .2s; }
.nav-links a:hover { opacity: .55; }
.brand { font-size: 17px; font-weight: 500; letter-spacing: .32em; padding-left: .32em; }
.nav-actions { display: flex; justify-content: flex-end; gap: 22px; font-size: 13px; }
.nav-btn { transition: opacity .2s; }
.nav-btn:hover { opacity: .55; }
#bagCount::before { content: "("; } #bagCount::after { content: ")"; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 28px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; transition: opacity .2s; }
.btn:hover { opacity: .82; }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; opacity: 1; }
.btn-wide { width: 100%; }
.btn[disabled] { background: #c9c7c4; color: #fff; pointer-events: none; }
.x { font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }

/* hero */
.hero { padding: clamp(32px, 6vw, 72px) var(--gut) 0; }
.hero-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: clamp(24px, 4vw, 40px); }
.hero-head .label { grid-column: 1 / -1; margin-bottom: -8px; }
.hero-title { font-weight: 300; font-size: clamp(34px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -.035em; margin: 0; }
.hero-links { display: flex; gap: 28px; padding-bottom: 10px; }
.hero-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hero-grid a { position: relative; background: var(--soft); aspect-ratio: 3 / 4; overflow: hidden; }
.hero-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hero-grid a:hover img { transform: scale(1.03); }
.hero-grid span { position: absolute; left: 14px; bottom: 12px; font-size: 12px; background: rgba(255,255,255,.92); padding: 5px 9px; }

/* sections */
.section { padding: clamp(56px, 8vw, 104px) var(--gut) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.h2 { font-weight: 400; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; margin: 0; }
.lede { color: var(--muted); max-width: 44ch; margin: 0; font-size: 13px; }
.rail-ctrl { display: flex; gap: 18px; font-size: 18px; }
.rail-ctrl button:hover { opacity: .5; }

.rail { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); }
.rail::-webkit-scrollbar { display: none; }
.rail .tile { flex: 0 0 clamp(220px, 23vw, 340px); scroll-snap-align: start; }

/* tiles */
.tile-media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--soft); }
.tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease); }
.tile-media img.alt { opacity: 0; }
.tile:hover .tile-media img.alt { opacity: 1; }
.badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; background: #fff; padding: 4px 7px; }
.badge.sale { color: var(--sale); }
.badge.sold { background: var(--ink); color: #fff; }
.tile-info { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0 0; font-size: 13px; }
.tile-name { font-size: 13px; font-weight: 400; margin: 0; }
.tile-cat { display: none; }
.price { white-space: nowrap; }
.price s { color: var(--muted); margin-left: 6px; }
.price .now-sale { color: var(--sale); }

.sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sort select { appearance: none; -webkit-appearance: none; border: 0; border-bottom: 1px solid var(--ink); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='5'%3E%3Cpath d='M.5.5l4 4 4-4' fill='none' stroke='%23111'/%3E%3C/svg%3E") no-repeat right 2px center; padding: 2px 18px 2px 0; font: 400 13px var(--font); color: var(--ink); cursor: pointer; border-radius: 0; }
.filters { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; font-size: 13px; color: var(--muted); padding: 0 0 12px; border-bottom: 1px solid transparent; margin-bottom: -1px; transition: color .2s; }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.chip sup { font-size: 10px; margin-left: 3px; vertical-align: super; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 8px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 64px 0; color: var(--muted); }
.skel { aspect-ratio: 3/4; background: var(--soft); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

/* looks */
.looks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 40px 8px; }
.look { display: flex; flex-direction: column; gap: 12px; }
.look-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.look-imgs button { aspect-ratio: 3/4; overflow: hidden; background: var(--soft); }
.look-imgs img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.look-imgs button:hover img { transform: scale(1.03); }
.look-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.look-meta h3 { font-size: 15px; font-weight: 500; margin: 0; }
.look-meta p { margin: 0; color: var(--muted); }
.look-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; padding-top: 10px; border-top: 1px solid var(--line); }
.look-item .sizes { gap: 4px; }
.look-item .size { height: 30px; min-width: 38px; font-size: 12px; padding: 0 8px; }

/* info */
.info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: clamp(72px, 9vw, 120px) var(--gut) 0; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.info h3 { font-size: 13px; font-weight: 500; margin: 0 0 4px; }
.info p { margin: 0; color: var(--muted); font-size: 13px; }

/* footer */
.footer { padding: 56px var(--gut) 24px; font-size: 13px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 24px; }
.footer-brand { font-size: 15px; font-weight: 500; letter-spacing: .32em; }
.footer h4 { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin: 0 0 12px; }
.footer-cols a, .footer-cols span { display: block; margin-bottom: 6px; }
.footer-cols a:hover { opacity: .55; }
.footer-base { display: flex; justify-content: space-between; margin-top: 56px; color: var(--muted); font-size: 12px; }
.footer-base a:hover { color: var(--ink); }
.cur-switch { display: inline-flex; gap: 8px; align-items: center; }
.cur-switch[hidden] { display: none; }
.cur-switch button { color: var(--muted); }
.cur-switch button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* overlays */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(17, 17, 17, .35); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.scrim.on { opacity: 1; pointer-events: auto; }

.pv { position: fixed; z-index: 60; inset: 0; background: #fff; display: grid; grid-template-columns: 1.3fr 1fr; opacity: 0; transition: opacity .35s var(--ease); }
.pv.on { opacity: 1; }
.pv[hidden] { display: grid; visibility: hidden; pointer-events: none; }
.pv > .x { position: absolute; top: 20px; right: var(--gut); z-index: 5; }
.pv-gallery { position: relative; background: var(--soft); display: flex; min-height: 0; overflow: hidden; }
.pv-main { flex: 1; position: relative; overflow: hidden; cursor: zoom-in; }
.pv-main img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease-out, opacity .3s; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.pv-main.zoom img { transform: scale(2); cursor: zoom-out; }
.pv-thumbs { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.pv-thumbs button { width: 52px; height: 68px; overflow: hidden; border: 1px solid transparent; background: #fff; opacity: .7; transition: opacity .2s; }
.pv-thumbs button[aria-current="true"] { border-color: var(--ink); opacity: 1; }
.pv-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pv-info { padding: 72px clamp(24px, 4vw, 64px) 40px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.pv-info > * { flex-shrink: 0; }
.pv-name { font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.02em; line-height: 1.15; margin: -6px 0 0; }
.pv-price { font-size: 15px; }
.pv-price s { color: var(--muted); margin-left: 8px; }
.pv-desc { color: #444; margin: 8px 0 0; line-height: 1.7; }
.pv-block { padding-top: 12px; }
.pv-label { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 10px; }
.pv-stock { color: var(--sale); }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.size { min-width: 52px; height: 42px; padding: 0 14px; border: 1px solid var(--line); font-size: 13px; transition: border-color .2s; }
.size:hover { border-color: var(--ink); }
.size[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.size[disabled] { color: #bbb; text-decoration: line-through; pointer-events: none; }
.pv-perks { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.pv-look { padding-top: 18px; border-top: 1px solid var(--line); }
.pv-look:empty { display: none; }
.pv-look h4 { font-size: 12px; font-weight: 500; margin: 0 0 12px; }
.mini-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.mini { flex: 0 0 118px; font-size: 12px; }
.mini .m-img { aspect-ratio: 3/4; overflow: hidden; background: var(--soft); margin-bottom: 6px; }
.mini img { width: 100%; height: 100%; object-fit: cover; }
.mini span { display: block; line-height: 1.35; }
.mini b { font-weight: 400; color: var(--muted); }

/* bag */
.bag { position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .45s var(--ease); }
.bag.on { transform: none; }
.bag[hidden] { display: flex; visibility: hidden; }
.bag-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.bag-head h2 { font-size: 15px; font-weight: 500; margin: 0; }
.bag-body { flex: 1; overflow-y: auto; padding: 0 24px; }
.ship-meter { padding: 16px 0; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.ship-meter b { color: var(--ink); font-weight: 500; }
.ship-meter .bar { height: 2px; background: var(--line); margin-top: 10px; }
.ship-meter .bar i { display: block; height: 100%; background: var(--ink); transition: width .6s var(--ease); }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; font-size: 13px; }
.line .l-img { width: 76px; aspect-ratio: 3/4; overflow: hidden; background: var(--soft); }
.line .l-img img { width: 100%; height: 100%; object-fit: cover; }
.line h4 { margin: 0 0 2px; font-size: 13px; font-weight: 500; }
.line small { color: var(--muted); font-size: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: 10px; height: 30px; }
.qty button { width: 28px; height: 100%; }
.qty span { min-width: 20px; text-align: center; font-size: 12px; }
.rm { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.bag-foot { padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 8px; }
.row { display: flex; justify-content: space-between; font-size: 13px; }
.row.total { font-weight: 500; font-size: 15px; padding: 4px 0 6px; }
.muted { color: var(--muted); font-size: 12px; text-align: center; margin: 0; }
.bag-empty { text-align: center; padding: 72px 8px; }
.bag-empty h3 { font-size: 15px; font-weight: 500; margin: 0 0 6px; }
.bag-empty p { color: var(--muted); margin: 0 0 24px; }
.co { display: grid; gap: 10px; padding: 18px 0; }
.co h5 { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin: 10px 0 0; }
.field { position: relative; }
.field input, .field textarea { width: 100%; height: 50px; padding: 20px 12px 6px; border: 1px solid var(--line); border-radius: 0; background: #fff; font: inherit; font-size: 14px; outline: none; transition: border-color .2s; resize: none; }
.field textarea { height: 80px; padding-top: 24px; }
.field label { position: absolute; left: 13px; top: 15px; font-size: 13px; color: var(--muted); pointer-events: none; transition: .2s var(--ease); }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 6px; font-size: 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.err { border: 1px solid var(--sale); color: var(--sale); padding: 10px 12px; font-size: 13px; }
.done { text-align: center; padding: 64px 8px; }
.done .seal { width: 44px; height: 44px; margin: 0 auto 20px; border: 1px solid var(--ink); display: grid; place-items: center; font-size: 18px; }
.done h3 { font-size: 18px; font-weight: 500; margin: 0 0 8px; }
.done p { color: var(--muted); margin: 0 auto 6px; max-width: 34ch; }
.done code { font: 500 13px var(--font); color: var(--ink); letter-spacing: .04em; }

/* search */
.search { position: fixed; z-index: 60; top: 0; left: 0; right: 0; background: #fff; padding: 18px var(--gut) 32px; max-height: 88vh; overflow-y: auto; transform: translateY(-100%); transition: transform .4s var(--ease); }
.search.on { transform: none; }
.search[hidden] { display: block; visibility: hidden; }
.search-in { display: flex; gap: 16px; align-items: center; border-bottom: 1px solid var(--ink); }
.search-in input { flex: 1; min-width: 0; border: 0; background: none; font: 300 clamp(22px, 3vw, 32px) var(--font); letter-spacing: -.02em; padding: 10px 0; outline: none; }
.search-res { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 24px 6px; padding-top: 24px; }
.search-res .mini { flex: none; }

/* toast */
.toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; background: var(--ink); color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 14px; font-size: 13px; transition: transform .35s var(--ease), visibility .35s; max-width: calc(100% - 32px); }
.toast.on { transform: translate(-50%, 0); visibility: visible; }
.toast img { width: 32px; height: 42px; object-fit: cover; }
.toast button { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* responsive */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .info { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --nav-h: 54px; }
  .nav-links { display: none; }
  .nav-in::before { content: ""; }
  .brand { grid-column: 2; font-size: 15px; }
  .hero-head { grid-template-columns: 1fr; }
  .hero-links { padding-bottom: 0; }
  .hero-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid a:nth-child(3) { display: none; }
  .pv { grid-template-columns: 1fr; grid-template-rows: 58% 1fr; }
  .pv > .x { top: 14px; background: #fff; padding: 4px 8px; }
  .pv-thumbs { flex-direction: row; left: 50%; top: auto; bottom: 12px; transform: translateX(-50%); }
  .pv-thumbs button { width: 40px; height: 52px; }
  .pv-info { padding: 24px var(--gut) 32px; max-width: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 4px; }
  .hero-grid { gap: 4px; }
  .hero-grid span { display: none; }
  .rail { gap: 4px; }
  .rail .tile { flex-basis: 64vw; }
  .rail-ctrl { display: none; }
  .tile-info { flex-direction: column; gap: 2px; padding: 8px 2px 0; font-size: 12px; }
  .tile-name { font-size: 12px; }
  .info { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .two { grid-template-columns: 1fr; }
}
@media (hover: none) { .tile-media img.alt { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; } }
