:root {
  --ink: #111111;
  --paper: #f6f5f1;
  --white: #ffffff;
  --muted: #747474;
  --line: #d9d8d3;
  --soft: #ecebe6;
  --sale: #b11818;
  --header-h: 66px;
  --announce-h: 26px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button { cursor: pointer; }
.skip-link { position: fixed; left: 12px; top: -50px; background: #fff; color: #111; padding: 10px 14px; z-index: 999; border: 1px solid #111; }
.skip-link:focus { top: 12px; }
.announce { height: var(--announce-h); overflow: hidden; background: #111; color: #fff; display: flex; align-items: center; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }
.announce-track { display: inline-flex; min-width: max-content; animation: ticker 30s linear infinite; }
.announce-track span { margin-right: 34px; }
@keyframes ticker { to { transform: translateX(-50%); } }
.site-header { position: sticky; top: 0; z-index: 60; height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 24px; background: rgba(246,245,241,.96); border-bottom: 1px solid rgba(17,17,17,.14); backdrop-filter: blur(10px); }
.header-left, .header-right { display: flex; align-items: center; gap: 18px; min-width: 0; }
.header-right { justify-content: flex-end; }
.nav-link, .icon-btn { border: 0; background: transparent; color: #111; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 8px 0; }
.nav-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.brand { font-size: clamp(24px, 3vw, 40px); font-weight: 900; letter-spacing: -.07em; line-height: 1; text-transform: uppercase; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.cart-count { min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; background: #111; color: #fff; border-radius: 50%; font-size: 10px; }
.mobile-menu-btn { display: none; }
.main { min-height: 65vh; }
.hero { position: relative; min-height: min(860px, calc(100vh - 101px)); background: #050505; overflow: hidden; color: #fff; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.22); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; min-height: inherit; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; padding: 72px 20px; }
.hero-kicker { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .13em; }
.hero-title { margin: 0; font-size: clamp(54px, 10vw, 152px); line-height: .83; letter-spacing: -.08em; font-weight: 900; }
.hero-actions { margin-top: 28px; display: flex; gap: 8px; }
.btn { min-height: 44px; padding: 0 22px; border: 1px solid #111; background: #111; color: #fff; display: inline-flex; align-items: center; justify-content: center; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; font-weight: 700; transition: .18s ease; }
.btn:hover { background: #2a2a2a; }
.btn-light { background: #fff; color: #111; border-color: #fff; }
.btn-light:hover { background: #e8e8e8; }
.btn-ghost-light { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost-light:hover { background: #fff; color: #111; }
.section { padding: 72px 24px; }
.section.white { background: #fff; }
.section.black { background: #111; color: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: .13em; margin: 0 0 7px; color: var(--muted); }
.black .eyebrow { color: #aaa; }
.section-title { margin: 0; font-size: clamp(30px, 4vw, 58px); line-height: .95; letter-spacing: -.055em; font-weight: 800; }
.text-link { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 12px; }
.product-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 28vw); gap: 12px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; padding-bottom: 4px; }
.product-card { min-width: 0; }
.product-image-wrap { position: relative; aspect-ratio: 4 / 5; background: #e9e8e3; overflow: hidden; }
.product-image-wrap img { height: 100%; object-fit: cover; transition: transform .42s cubic-bezier(.2,.8,.2,1); }
.product-card:hover .product-image-wrap img { transform: scale(1.022); }
.card-badge { position: absolute; left: 10px; top: 10px; background: #fff; color: #111; padding: 6px 7px 5px; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.card-badge.sale { background: var(--sale); color: #fff; }
.card-fast { position: absolute; right: 10px; top: 10px; background: #111; color: #fff; padding: 6px 7px 5px; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.quick-add-toggle { position: absolute; inset: auto 8px 8px 8px; min-height: 38px; border: 0; background: rgba(255,255,255,.95); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; transform: translateY(50px); opacity: 0; transition: .2s ease; }
.product-card:hover .quick-add-toggle, .product-card:focus-within .quick-add-toggle { transform: translateY(0); opacity: 1; }
.quick-size-menu { position: absolute; inset: auto 8px 8px 8px; background: rgba(255,255,255,.97); display: none; grid-template-columns: repeat(auto-fit, minmax(34px, 1fr)); border: 1px solid #111; }
.quick-size-menu.open { display: grid; }
.quick-size-menu button { height: 38px; border: 0; border-right: 1px solid #d1d1d1; border-bottom: 1px solid #d1d1d1; background: transparent; font-size: 10px; }
.quick-size-menu button:hover { background: #111; color: #fff; }
.product-info { padding: 11px 1px 0; display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; align-items: start; }
.product-name { font-size: 13px; line-height: 1.25; font-weight: 700; }
.product-color { font-size: 11px; color: var(--muted); }
.price { font-size: 12px; white-space: nowrap; }
.price s { color: #8a8a8a; margin-left: 5px; }
.editorial-split { display: grid; grid-template-columns: 1.35fr .65fr; min-height: 680px; background: #111; color: #fff; }
.editorial-image { min-height: 560px; background: #1b1b1b; overflow: hidden; }
.editorial-image img { height: 100%; object-fit: cover; }
.editorial-copy { display: flex; flex-direction: column; justify-content: end; padding: 56px 42px; }
.editorial-copy h2 { font-size: clamp(42px, 5vw, 80px); line-height: .88; letter-spacing: -.06em; margin: 0 0 22px; }
.editorial-copy p { max-width: 34ch; font-size: 13px; line-height: 1.55; color: #c8c8c8; }
.collection-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: #fff; }
.collection-tile { position: relative; min-height: 470px; overflow: hidden; background: #202020; color: #fff; }
.collection-tile img { height: 100%; object-fit: cover; transition: transform .45s ease; }
.collection-tile:hover img { transform: scale(1.03); }
.collection-tile::after { content:''; position:absolute; inset:0; background: rgba(0,0,0,.12); }
.collection-tile span { position:absolute; z-index:2; left:12px; bottom:12px; font-size:24px; font-weight:800; letter-spacing:-.04em; background:#111; color:#fff; padding:9px 11px; }
.lookbook { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 32vw); gap: 10px; overflow-x: auto; scrollbar-width: thin; }
.look-card { position: relative; aspect-ratio: 3 / 4; background: #ddd; overflow: hidden; }
.look-card img { height: 100%; object-fit: cover; }
.look-card-info { position: absolute; inset: auto 10px 10px 10px; background: rgba(255,255,255,.94); padding: 11px 12px; display: flex; justify-content: space-between; gap: 10px; font-size: 11px; }
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 92px 24px; background: #dcdad3; }
.newsletter h2 { margin: 0; max-width: 8ch; font-size: clamp(42px, 7vw, 94px); line-height: .87; letter-spacing: -.065em; }
.newsletter-copy { display: flex; flex-direction: column; justify-content: end; max-width: 580px; }
.newsletter-copy p { color: #4e4e4e; max-width: 48ch; line-height: 1.5; font-size: 13px; }
.email-form { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid #111; margin-top: 28px; }
.email-form input { border: 0; background: transparent; height: 50px; outline: 0; font-size: 14px; }
.email-form button { border: 0; background: transparent; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; font-weight: 700; }
.footer { background: #111; color: #fff; padding: 56px 24px 28px; }
.footer-brand { font-size: clamp(56px, 13vw, 180px); line-height: .7; letter-spacing: -.08em; font-weight: 900; margin: 35px 0 55px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; border-top: 1px solid #383838; padding-top: 32px; }
.footer h4 { margin: 0 0 13px; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #888; }
.footer a, .footer p { display: block; margin: 0 0 10px; color: #d1d1d1; font-size: 12px; }
.footer-bottom { display:flex; justify-content:space-between; gap:20px; border-top:1px solid #383838; margin-top:38px; padding-top:18px; color:#777; font-size:10px; text-transform:uppercase; letter-spacing:.05em; }
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .2s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: #fff; color: #111; z-index: 110; transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; box-shadow: -15px 0 50px rgba(0,0,0,.16); }
.drawer.open { transform: translateX(0); }
.drawer-head { min-height: 68px; display:flex; align-items:center; justify-content:space-between; padding:0 20px; border-bottom:1px solid var(--line); }
.drawer-head h2 { font-size:14px; text-transform:uppercase; letter-spacing:.07em; margin:0; }
.close-btn { border:0; background:transparent; font-size:24px; line-height:1; padding:8px; }
.drawer-body { flex:1; overflow-y:auto; padding:18px 20px; }
.cart-line { display:grid; grid-template-columns:90px 1fr auto; gap:12px; padding:14px 0; border-bottom:1px solid var(--line); }
.cart-line img { width:90px; aspect-ratio:4/5; object-fit:cover; background:#eee; }
.cart-line h3 { font-size:12px; margin:0 0 5px; }
.cart-meta { font-size:10px; color:#777; margin-bottom:12px; }
.qty { display:inline-grid; grid-template-columns:28px 34px 28px; border:1px solid var(--line); align-items:center; text-align:center; }
.qty button { border:0; background:transparent; height:28px; }
.cart-foot { padding:18px 20px 22px; border-top:1px solid var(--line); }
.cart-total { display:flex; justify-content:space-between; margin-bottom:14px; font-size:13px; }
.cart-foot .btn { width:100%; }
.empty { display:grid; place-items:center; min-height:52vh; text-align:center; padding:40px; }
.empty h2 { font-size:36px; letter-spacing:-.05em; margin:0 0 8px; }
.empty p { color:#777; font-size:13px; }
.search-panel { position: fixed; left:0; right:0; top:29px; z-index:105; background:#f6f5f1; transform: translateY(-110%); transition:.28s ease; border-bottom:1px solid #111; padding:22px 24px 30px; }
.search-panel.open { transform: translateY(0); }
.search-input-row { display:grid; grid-template-columns:1fr auto; align-items:center; border-bottom:1px solid #111; }
.search-input { border:0; background:transparent; outline:0; height:62px; font-size:clamp(24px,4vw,46px); font-weight:700; letter-spacing:-.04em; }
.search-tags { display:flex; gap:7px; flex-wrap:wrap; margin-top:15px; }
.search-tag { border:1px solid #bbb; background:transparent; padding:7px 10px; font-size:10px; text-transform:uppercase; letter-spacing:.07em; }
.mobile-menu { position:fixed; inset:29px 0 0 0; z-index:108; background:#f6f5f1; transform:translateX(-100%); transition:.25s ease; padding:28px 22px; }
.mobile-menu.open { transform:translateX(0); }
.mobile-menu a { display:block; font-size:36px; font-weight:800; letter-spacing:-.05em; padding:8px 0; }
.page-hero { padding: 64px 24px 28px; border-bottom:1px solid var(--line); background:#fff; }
.breadcrumb { font-size:10px; text-transform:uppercase; letter-spacing:.08em; color:#777; margin-bottom:22px; }
.page-hero h1 { margin:0 0 14px; font-size:clamp(48px,8vw,110px); line-height:.84; letter-spacing:-.07em; }
.page-hero p { max-width:54ch; margin:0; color:#5e5e5e; font-size:13px; line-height:1.5; }
.collection-tools { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:14px 24px; border-bottom:1px solid var(--line); background:#fff; position:sticky; top:var(--header-h); z-index:20; }
.filter-group { display:flex; gap:8px; flex-wrap:wrap; }
.filter-btn { border:1px solid #bbb; background:#fff; padding:8px 10px; font-size:10px; text-transform:uppercase; letter-spacing:.06em; }
.filter-btn.active { background:#111; color:#fff; border-color:#111; }
.sort-select { background:transparent; border:0; font-size:10px; text-transform:uppercase; letter-spacing:.06em; outline:0; }
.collection-body { padding:24px; background:#fff; }
.product-page { display:grid; grid-template-columns:minmax(0,52%) minmax(380px,48%); align-items:start; min-height:0; background:#fff; }
.product-gallery { display:grid; grid-template-columns:1fr 1fr; gap:2px; align-content:start; background:#e9e8e3; }
.product-gallery img { aspect-ratio:4/5; object-fit:cover; background:#e9e8e3; }
.product-detail { padding:40px 38px 70px; position:static; align-self:start; max-height:none; overflow:visible; }
.product-detail h1 { font-size:clamp(34px,4vw,62px); line-height:.94; letter-spacing:-.055em; margin:8px 0 14px; }
.product-price { font-size:14px; margin-bottom:30px; }
.product-price s { color:#999; margin-left:7px; }
.detail-label { display:flex; justify-content:space-between; font-size:10px; text-transform:uppercase; letter-spacing:.07em; margin:18px 0 9px; }
.size-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; }
.size-btn { height:42px; border:1px solid #bfbfbf; background:#fff; font-size:11px; }
.size-btn.selected { background:#111; color:#fff; border-color:#111; }
.product-detail .btn { width:100%; margin-top:12px; }
.detail-copy { font-size:12px; line-height:1.55; color:#444; margin:25px 0; }
.accordion { border-top:1px solid var(--line); }
.accordion:last-of-type { border-bottom:1px solid var(--line); }
.accordion button { width:100%; height:52px; display:flex; justify-content:space-between; align-items:center; border:0; background:transparent; padding:0; text-transform:uppercase; letter-spacing:.07em; font-size:10px; }
.accordion-panel { display:none; padding:0 0 18px; font-size:12px; color:#555; line-height:1.55; }
.accordion.open .accordion-panel { display:block; }
.fit-box { margin-top:18px; padding:16px; background:#f0efe9; }
.fit-box h3 { margin:0 0 5px; font-size:13px; }
.fit-box p { margin:0 0 12px; font-size:11px; color:#676767; }
.fit-fields { display:grid; grid-template-columns:1fr 1fr auto; gap:6px; }
.fit-fields input { width:100%; height:38px; border:1px solid #c6c5c0; background:#fff; padding:0 9px; }
.fit-fields button { border:1px solid #111; background:#111; color:#fff; padding:0 12px; font-size:10px; text-transform:uppercase; }
.fit-result { margin-top:10px; font-size:11px; font-weight:700; }
.checkout { max-width:1100px; margin:auto; display:grid; grid-template-columns:1fr 390px; gap:70px; padding:60px 24px 100px; }
.checkout h1 { font-size:54px; letter-spacing:-.06em; margin:0 0 32px; }
.checkout-section { margin-bottom:34px; }
.checkout-section h2 { font-size:14px; margin:0 0 14px; }
.field-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.field-grid .wide { grid-column:1/-1; }
.field { width:100%; height:48px; border:1px solid #c7c7c7; background:#fff; padding:0 12px; outline:none; }
.checkout-summary { background:#ecebe6; padding:20px; height:max-content; position:sticky; top:90px; }
.summary-line { display:flex; justify-content:space-between; gap:14px; font-size:12px; padding:9px 0; }
.payment-note { background:#fff; border:1px solid #bdbdbd; padding:14px; font-size:11px; line-height:1.5; color:#555; }
.toast { position:fixed; left:50%; bottom:24px; z-index:140; transform:translate(-50%,20px); opacity:0; background:#111; color:#fff; padding:12px 16px; font-size:11px; text-transform:uppercase; letter-spacing:.06em; transition:.2s ease; pointer-events:none; }
.toast.show { opacity:1; transform:translate(-50%,0); }
@media (max-width: 1040px) {
  .desktop-nav { display:none; }
  .mobile-menu-btn { display:inline-flex; }
  .site-header { grid-template-columns:1fr auto 1fr; padding:0 16px; }
  .product-grid { grid-template-columns:repeat(3,1fr); }
  .collection-tiles { grid-template-columns:repeat(2,1fr); }
  .product-page { grid-template-columns:1fr; }
  .product-detail { position:static; max-height:none; }
  .checkout { grid-template-columns:1fr; gap:30px; }
  .checkout-summary { position:static; order:-1; }
}
@media (max-width: 720px) {
  :root { --header-h: 58px; --announce-h: 26px; }
  .announce { height:var(--announce-h); font-size:9px; }
  .site-header { height:58px; padding:0 12px; }
  .brand { font-size:25px; }
  .header-left, .header-right { gap:10px; }
  .account-link { display:none; }
  .section { padding:54px 14px; }
  .hero { min-height:calc(100svh - 84px); }
  .hero-copy { padding:48px 14px; align-items:flex-start; text-align:left; }
  .hero-title { font-size:14.5vw; }
  .hero-actions { width:100%; }
  .hero-actions .btn { flex:1; padding:0 12px; }
  .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px 7px; }
  .product-rail { grid-auto-columns:74vw; gap:7px; }
  .quick-add-toggle { opacity:1; transform:none; }
  .collection-tiles { grid-template-columns:1fr 1fr; }
  .collection-tile { min-height:280px; }
  .collection-tile span { left:14px; bottom:14px; font-size:18px; }
  .editorial-split { grid-template-columns:1fr; }
  .editorial-copy { padding:38px 18px 46px; }
  .editorial-image { min-height:60vh; }
  .lookbook { grid-auto-columns:82vw; }
  .newsletter { grid-template-columns:1fr; gap:42px; padding:64px 16px; }
  .newsletter h2 { max-width:9ch; }
  .footer { padding:44px 16px 24px; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .footer-grid > div:first-child { grid-column:1/-1; }
  .footer-bottom { flex-direction:column; }
  .page-hero { padding:45px 14px 24px; }
  .collection-tools { top:58px; padding:10px 14px; overflow-x:auto; }
  .collection-body { padding:14px 7px 50px; }
  .product-gallery { grid-template-columns:1fr; }
  .product-detail { padding:30px 16px 58px; }
  .product-gallery img:nth-child(2) { display:none; }
  .field-grid { grid-template-columns:1fr; }
  .field-grid .wide { grid-column:auto; }
  .checkout { padding:42px 16px 80px; }
  .checkout h1 { font-size:44px; }
  .search-panel { top:26px; padding:12px 14px 22px; }
  .search-input { height:55px; font-size:28px; }
}

/* Commerce + account + admin */
.btn-secondary { background:#fff; color:#111; }
.btn-secondary:hover { background:#f1f1ee; }
.button-link { border:0; background:none; padding:0; }
.form-note { min-height:18px; margin-top:9px; font-size:11px; line-height:1.45; color:#6b6b6b; }
.textarea-field { height:120px; padding:12px; resize:vertical; }
.shipping-choice { display:flex; gap:12px; align-items:flex-start; border:1px solid #c7c7c7; padding:14px; margin-top:-1px; background:#fff; }
.shipping-choice input { margin-top:3px; }
.shipping-choice span { display:flex; flex:1; justify-content:space-between; gap:20px; font-size:12px; }
.shipping-choice small { color:#666; }
.discount-row { display:grid; grid-template-columns:1fr auto; gap:8px; }
.stripe-element { margin-top:14px; min-height:0; }
.checkout-primary { width:100%; margin-top:10px; }
.summary-total { border-top:1px solid #c9c8c2; margin-top:6px; padding-top:15px; font-size:15px; }
.auth-page { min-height:65vh; padding:70px 20px; display:grid; place-items:center; background:#fff; }
.auth-card { width:min(430px,100%); border:1px solid #d4d3ce; padding:32px; background:#f7f6f2; }
.auth-card h1 { margin:0 0 10px; font-size:42px; letter-spacing:-.05em; }
.auth-card > p { color:#666; font-size:12px; line-height:1.55; }
.auth-card form { display:grid; gap:10px; margin:24px 0 18px; }
.check-row { display:flex; align-items:center; gap:8px; font-size:11px; color:#555; }
.account-page { max-width:1200px; margin:auto; padding:60px 24px 100px; }
.account-head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; border-bottom:1px solid var(--line); padding-bottom:25px; margin-bottom:25px; }
.account-head h1 { font-size:50px; margin:0; letter-spacing:-.055em; }
.account-head p { margin:6px 0 0; font-size:12px; color:#666; }
.account-grid { display:grid; grid-template-columns:1.35fr 1fr; gap:18px; }
.account-panel { background:#fff; border:1px solid var(--line); padding:22px; }
.account-panel h2 { margin:0 0 18px; font-size:18px; }
.loading-block { min-height:80px; color:#777; font-size:12px; padding:20px 0; }
.order-row { display:flex; justify-content:space-between; gap:20px; padding:15px 0; border-top:1px solid var(--line); font-size:12px; }
.order-row:first-child { border-top:0; }
.order-row span { display:flex; flex-direction:column; gap:4px; }
.order-row small { color:#777; text-transform:capitalize; }
.address-row { display:grid; gap:7px; border-top:1px solid var(--line); padding:14px 0; font-size:12px; line-height:1.5; }
.address-row:first-child { border-top:0; }
.address-form { margin-top:18px; }
.confirmation-page { max-width:760px; margin:auto; min-height:60vh; padding:70px 24px 100px; }
.confirmation-page h1 { font-size:54px; letter-spacing:-.055em; margin:0 0 25px; }
.confirmation-card { background:#fff; border:1px solid var(--line); padding:26px; }
.confirmation-card h2 { margin:0 0 8px; }
.confirmation-card p { color:#666; font-size:12px; }
.small-meta { margin-top:20px; }

.admin-shell { display:grid; grid-template-columns:220px minmax(0,1fr); min-height:calc(100vh - 101px); background:#f1f0ec; }
.admin-sidebar { position:sticky; top:var(--header-h); align-self:start; height:calc(100vh - var(--header-h)); background:#111; color:#fff; padding:24px 14px; display:flex; flex-direction:column; }
.admin-sidebar h2 { margin:0 0 24px; font-size:28px; letter-spacing:-.04em; }
.admin-sidebar .eyebrow { color:#888; }
.admin-nav { width:100%; border:0; border-top:1px solid #2c2c2c; background:transparent; color:#bbb; text-align:left; padding:13px 8px; font-size:11px; text-transform:uppercase; letter-spacing:.07em; }
.admin-nav.active,.admin-nav:hover { color:#fff; background:#1d1d1d; }
.admin-store-link { margin-top:auto; border-top:1px solid #2c2c2c; padding:14px 8px; font-size:11px; text-transform:uppercase; letter-spacing:.07em; }
.admin-main { min-width:0; }
.admin-topbar { min-height:102px; padding:24px 30px; display:flex; justify-content:space-between; align-items:flex-end; border-bottom:1px solid #d5d4cf; background:#f7f6f2; }
.admin-topbar h1 { margin:0; font-size:38px; letter-spacing:-.045em; }
.admin-topbar > span { font-size:11px; color:#777; }
.admin-content { padding:26px 30px 70px; }
.stat-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:18px; }
.stat-card { min-height:125px; background:#fff; border:1px solid #d7d6d0; padding:18px; display:flex; flex-direction:column; justify-content:space-between; }
.stat-card span { font-size:10px; text-transform:uppercase; letter-spacing:.08em; color:#777; }
.stat-card b { font-size:30px; letter-spacing:-.04em; }
.admin-panel { background:#fff; border:1px solid #d7d6d0; padding:20px; margin-bottom:18px; }
.panel-head { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-bottom:18px; }
.panel-head h2 { margin:0; font-size:20px; }
.panel-head p { margin:5px 0 0; font-size:11px; color:#777; }
.table-wrap { overflow:auto; }
.admin-table { width:100%; border-collapse:collapse; font-size:11px; }
.admin-table th { text-align:left; text-transform:uppercase; letter-spacing:.07em; color:#777; font-size:9px; padding:10px 8px; border-bottom:1px solid #d7d6d0; }
.admin-table td { padding:12px 8px; border-bottom:1px solid #ecebe7; vertical-align:middle; }
.admin-product { display:flex; align-items:center; gap:10px; min-width:180px; }
.admin-product img { width:42px; height:50px; object-fit:cover; background:#eee; }
.admin-product span { display:flex; flex-direction:column; gap:3px; }
.admin-product small { color:#888; }
.settings-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.settings-form label { display:grid; gap:6px; font-size:10px; text-transform:uppercase; letter-spacing:.06em; color:#666; }
.settings-form .wide-label,.settings-form .btn,.settings-form .form-note,.settings-form .check-row { grid-column:1/-1; }
.admin-form-row { display:grid; grid-template-columns:1.1fr 1fr .7fr 1fr .8fr auto; gap:8px; margin-bottom:18px; }
.admin-order { border-top:1px solid #d8d7d1; padding:18px 0; }
.admin-order:first-of-type { border-top:0; }
.admin-order-head { display:flex; justify-content:space-between; gap:20px; }
.admin-order-head > div { display:flex; flex-direction:column; gap:4px; }
.admin-order-head span { font-size:11px; color:#777; }
.order-statuses { display:flex; flex-wrap:wrap; gap:7px; margin:12px 0; }
.order-statuses span { border:1px solid #d5d4cf; padding:6px 8px; font-size:9px; text-transform:uppercase; letter-spacing:.05em; }
.order-items-mini { font-size:11px; color:#555; margin-bottom:12px; }
.admin-order-actions { display:grid; grid-template-columns:1fr 1fr auto auto; gap:8px; align-items:center; }
.danger-link { color:#9a1b1b; }
.import-card { border:1px solid #d7d6d0; padding:16px; display:grid; gap:10px; font-size:11px; }
.import-card span,.import-card small { color:#696969; line-height:1.45; }
.status-dot { display:inline-flex; border:1px solid #b9b8b3; padding:6px 9px; font-size:9px; text-transform:uppercase; letter-spacing:.06em; }
.status-dot.ok { border-color:#111; background:#111; color:#fff; }
.admin-error { border:1px solid #9d3838; color:#7e1d1d; background:#fff; padding:18px; }

@media (max-width: 980px) {
  .admin-shell { grid-template-columns:1fr; }
  .admin-sidebar { position:static; height:auto; flex-direction:row; overflow-x:auto; align-items:center; padding:10px; }
  .admin-sidebar > div { display:none; }
  .admin-nav { width:auto; white-space:nowrap; border:0; padding:10px 12px; }
  .admin-store-link { margin:0 0 0 auto; border:0; white-space:nowrap; }
  .stat-grid { grid-template-columns:repeat(2,1fr); }
  .admin-form-row { grid-template-columns:1fr 1fr; }
  .admin-order-actions { grid-template-columns:1fr 1fr; }
}
@media (max-width: 720px) {
  .account-page { padding:42px 14px 70px; }
  .account-head { align-items:flex-start; flex-direction:column; }
  .account-head h1 { font-size:40px; }
  .account-grid { grid-template-columns:1fr; }
  .auth-card { padding:24px 18px; }
  .confirmation-page { padding:45px 14px 70px; }
  .confirmation-page h1 { font-size:42px; }
  .admin-topbar { padding:18px 14px; min-height:86px; }
  .admin-topbar > span { display:none; }
  .admin-content { padding:14px 10px 60px; }
  .stat-grid { grid-template-columns:1fr 1fr; gap:7px; }
  .stat-card { min-height:105px; padding:13px; }
  .stat-card b { font-size:23px; }
  .admin-panel { padding:14px; }
  .settings-form,.admin-form-row { grid-template-columns:1fr; }
  .settings-form .wide-label,.settings-form .btn,.settings-form .form-note,.settings-form .check-row { grid-column:auto; }
  .admin-order-actions { grid-template-columns:1fr; }
  .shipping-choice span { flex-direction:column; gap:3px; }
  .discount-row { grid-template-columns:1fr; }
}
.auth-links{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}.account-settings-grid{margin-top:24px}.account-panel label{display:grid;gap:8px}.settings-form .btn-secondary{margin-left:8px}@media(max-width:700px){.settings-form .btn-secondary{margin-left:0;margin-top:8px}.auth-links{display:grid}}
.variant-editor{border-top:1px solid #ddd;padding-top:18px}.panel-head.compact{margin-bottom:10px}.variant-editor-row{display:grid;grid-template-columns:.6fr 1.2fr .7fr .7fr .7fr auto auto;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #ececec}.variant-active{display:flex!important;grid-auto-flow:column;justify-content:start;align-items:center;gap:6px;white-space:nowrap}@media(max-width:900px){.variant-editor-row{grid-template-columns:1fr 1fr}.variant-editor-row>[data-v="id"]{display:none}.variant-active{min-height:42px}}
.size-btn:disabled{opacity:.38;text-decoration:line-through;cursor:not-allowed}
.inline-admin-form{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:16px}.inline-admin-form .field{min-width:160px;flex:1}.collection-product-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:280px;overflow:auto;border:1px solid #ddd;padding:12px}.table-sub{display:block;color:#777;margin-top:3px}.variant-editor-row{grid-template-columns:repeat(5,minmax(120px,1fr))}.variant-editor-row .danger-link{justify-self:start}@media(max-width:900px){.variant-editor-row{grid-template-columns:1fr 1fr}.collection-product-picker{grid-template-columns:1fr}.inline-admin-form{display:grid;grid-template-columns:1fr}}
.product-options{display:grid;gap:16px}.product-option-group{display:grid;gap:7px}.option-name{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#666}
.pos-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:18px;align-items:start}.pos-register,.pos-checkout{border:1px solid #d7d6d0;padding:16px}.pos-cart{margin-top:18px}.pos-cart .pos-qty{width:74px;min-width:74px}.pos-checkout h3{margin:0 0 14px}.pos-quote{border-top:1px solid #d7d6d0;border-bottom:1px solid #d7d6d0;padding:12px 0;margin:18px 0}.pos-quote .summary-line{padding:5px 0}.pos-complete{width:100%}.pos-tax-field{min-width:90px;max-width:110px}@media(max-width:900px){.pos-layout{grid-template-columns:1fr}}@media(max-width:560px){.pos-register,.pos-checkout{padding:12px}}

/* Storefront visual refresh: dense editorial commerce rhythm with BLURRD's own identity. */
body { background:#fff; }
.announce { height:26px; font-size:10px; letter-spacing:.055em; }
.site-header { height:66px; background:#fff; padding:0 20px; backdrop-filter:none; border-bottom:1px solid #e5e5e5; }
.brand { font-size:clamp(25px,2.45vw,36px); letter-spacing:-.075em; }
.nav-link,.icon-btn { font-size:10px; letter-spacing:.055em; }
.header-left,.header-right { gap:15px; }
.hero { min-height:clamp(620px,70vw,900px); }
.hero-media img { object-position:center 34%; }
.hero::after { background:linear-gradient(to bottom,rgba(0,0,0,.04) 36%,rgba(0,0,0,.5) 100%); }
.hero-copy { justify-content:flex-end; padding:0 22px 54px; }
.hero-kicker { font-size:10px; margin-bottom:9px; }
.hero-title { font-size:clamp(58px,8.6vw,124px); line-height:.82; }
.hero-actions { margin-top:22px; }
.btn { min-height:40px; padding:0 19px; font-size:10px; }
.home-product-section,.fits-section { background:#fff; padding:50px 18px 64px; overflow:hidden; }
.home-product-section + .home-product-section { padding-top:26px; }
.section-head { margin-bottom:16px; align-items:flex-end; }
.section-title { font-size:clamp(28px,3.1vw,45px); letter-spacing:-.045em; }
.eyebrow { font-size:9px; margin-bottom:5px; }
.text-link { font-size:10px; }
.product-rail { grid-auto-columns:minmax(235px,24vw); gap:8px; padding-bottom:1px; scrollbar-width:none; }
.product-rail::-webkit-scrollbar { display:none; }
.product-image-wrap { aspect-ratio:4 / 5.15; background:#f0efec; }
.product-image-link { position:absolute; inset:0; }
.product-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:opacity .28s ease,transform .5s cubic-bezier(.2,.8,.2,1); }
.product-image-secondary { opacity:0; }
.product-card:hover .product-image-primary { opacity:0; }
.product-card:hover .product-image-secondary { opacity:1; transform:scale(1.012); }
.product-card:hover .product-spin-card-image { opacity:1; transform:scale(1.012); }
.product-info { padding-top:8px; gap:3px 10px; }
.product-name { font-size:11px; font-weight:600; }
.product-color,.price { font-size:10px; }
.card-badge,.card-fast { top:8px; padding:5px 6px; font-size:8px; }
.card-badge { left:8px; }
.card-fast { right:8px; }
.card-badge.sale { background:#fff; color:#111; }
.quick-add-toggle { inset:auto 6px 6px 6px; min-height:36px; font-size:9px; background:rgba(255,255,255,.96); }
.quick-size-menu { inset:auto 6px 6px 6px; }
.quick-size-menu button { height:36px; font-size:9px; }
.campaign-feature { position:relative; min-height:clamp(560px,68vw,900px); overflow:hidden; background:#111; color:#fff; }
.campaign-feature > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.campaign-feature.campaign-left > img { object-position:center 42%; }
.campaign-feature.campaign-right > img { object-position:center 58%; transform:scaleX(-1); }
.campaign-shade { position:absolute; inset:0; background:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,.05) 48%,rgba(0,0,0,.03)); }
.campaign-copy { position:absolute; z-index:2; left:22px; bottom:30px; max-width:580px; }
.campaign-right .campaign-copy { left:auto; right:22px; text-align:right; }
.campaign-copy .eyebrow { color:#fff; margin-bottom:7px; }
.campaign-copy h2 { margin:0 0 13px; font-size:clamp(46px,7.2vw,105px); line-height:.86; letter-spacing:-.065em; }
.campaign-link { display:inline-block; border-bottom:1px solid currentColor; padding-bottom:3px; font-size:10px; text-transform:uppercase; letter-spacing:.08em; }
.collection-heading { padding:62px 18px 18px; background:#fff; }
.collection-heading h2 { margin:0; font-size:clamp(28px,3.1vw,45px); line-height:.95; letter-spacing:-.045em; }
.collection-tiles { gap:1px; background:#fff; }
.collection-tile { min-height:auto; aspect-ratio:3 / 4; }
.collection-tile::after { background:linear-gradient(to top,rgba(0,0,0,.34),transparent 42%); }
.collection-tile span { left:14px; bottom:14px; padding:0; background:transparent; font-size:18px; font-weight:700; letter-spacing:-.025em; }
.fits-section { padding-top:58px; }
.lookbook { grid-auto-columns:minmax(255px,24vw); gap:8px; scrollbar-width:none; }
.lookbook::-webkit-scrollbar { display:none; }
.look-card { aspect-ratio:3 / 4; }
.look-card-info { inset:auto 7px 7px 7px; padding:9px 10px; font-size:10px; }
.newsletter { grid-template-columns:.8fr 1.2fr; gap:72px; padding:74px 22px; background:#efeee9; }
.newsletter h2 { font-size:clamp(38px,5.6vw,78px); }
.footer { padding-top:42px; }
.footer-brand { margin:26px 0 44px; }

@media (max-width:1040px) {
  .site-header { padding:0 14px; }
  .product-rail { grid-auto-columns:minmax(235px,36vw); }
  .lookbook { grid-auto-columns:minmax(255px,36vw); }
}
@media (max-width:720px) {
  :root { --header-h:58px; }
  .site-header { height:58px; }
  .hero { min-height:calc(100svh - 84px); }
  .hero-copy { align-items:flex-start; text-align:left; padding:0 14px 35px; }
  .hero-title { font-size:15vw; }
  .home-product-section,.fits-section { padding:38px 8px 48px 12px; }
  .home-product-section + .home-product-section { padding-top:18px; }
  .section-head { padding-right:7px; }
  .section-title { font-size:31px; }
  .product-rail { grid-auto-columns:76vw; gap:6px; }
  .quick-add-toggle { opacity:1; transform:none; }
  .campaign-feature { min-height:72svh; }
  .campaign-copy { left:14px; right:14px; bottom:24px; }
  .campaign-right .campaign-copy { right:14px; left:14px; text-align:left; }
  .campaign-copy h2 { font-size:14vw; }
  .collection-heading { padding:44px 12px 14px; }
  .collection-tiles { grid-template-columns:1fr 1fr; }
  .collection-tile { min-height:auto; aspect-ratio:3 / 4; }
  .collection-tile span { left:10px; bottom:10px; font-size:15px; }
  .lookbook { grid-auto-columns:78vw; gap:6px; }
  .newsletter { grid-template-columns:1fr; padding:58px 14px; gap:38px; }
}
.campaign-description { margin:0 0 14px; max-width:40ch; font-size:11px; line-height:1.45; color:rgba(255,255,255,.88); }
.campaign-right .campaign-description { margin-left:auto; }
@media (max-width:720px) { .campaign-right .campaign-description { margin-left:0; } }

/* Admin experience: simple surface, full commerce backend one layer deeper. */
.admin-route { background:#f6f6f3; }
.admin-route #app,
.admin-app-root,
.admin-app-root #main { min-height:100vh; }
.admin-shell { display:grid; grid-template-columns:236px minmax(0,1fr); min-height:100vh; background:#f6f6f3; }
.admin-sidebar { position:sticky; top:0; align-self:start; height:100vh; background:#fff; color:#1b1b1b; border-right:1px solid #dfdfda; padding:14px 12px 12px; display:flex; flex-direction:column; z-index:40; }
.admin-route .admin-sidebar > .admin-sidebar-head { display:flex; }
.admin-route .admin-sidebar > .admin-store-context { display:grid; }
.admin-route .admin-sidebar > .admin-sidebar-foot { display:block; }
.admin-sidebar-head { display:flex; align-items:center; justify-content:space-between; min-height:40px; padding:0 8px; }
.admin-brand { font-size:19px; font-weight:900; letter-spacing:-.055em; }
.admin-sidebar-close { display:none; width:34px; height:34px; border:0; background:transparent; font-size:24px; line-height:1; }
.admin-store-context { display:grid; gap:3px; margin:10px 6px 14px; padding:10px 8px 13px; border-bottom:1px solid #ecece8; }
.admin-store-context span { font-size:12px; font-weight:700; }
.admin-store-context small { color:#777; font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-primary-nav { display:grid; gap:2px; }
.admin-nav { width:100%; min-height:38px; border:0; background:transparent; color:#4f4f4b; text-align:left; padding:0 9px; display:flex; align-items:center; gap:10px; border-radius:5px; font-size:13px; font-weight:500; text-transform:none; letter-spacing:0; }
.admin-nav svg,
.admin-store-link svg { width:18px; height:18px; flex:0 0 18px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.admin-nav:hover { color:#111; background:#f2f2ef; }
.admin-nav.active { color:#111; background:#ecece8; font-weight:700; }
.admin-sidebar-foot { margin-top:auto; border-top:1px solid #ecece8; padding-top:9px; }
.admin-store-link { min-height:38px; border:0; padding:0 9px; display:flex; align-items:center; gap:10px; color:#444; font-size:12px; text-transform:none; letter-spacing:0; }
.admin-store-link span { flex:1; }
.admin-store-link b { font-weight:400; color:#777; }
.admin-store-link:hover { background:#f2f2ef; color:#111; }
.admin-main { min-width:0; background:#f6f6f3; }
.admin-topbar { position:sticky; top:0; z-index:30; min-height:72px; padding:12px 28px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid #dfdfda; background:rgba(250,250,248,.96); backdrop-filter:blur(12px); }
.admin-topbar-left { display:flex; align-items:center; gap:12px; min-width:0; }
.admin-breadcrumb { margin:0 0 2px; color:#777; font-size:10px; line-height:1.2; }
.admin-topbar h1 { margin:0; font-size:23px; line-height:1.1; letter-spacing:-.025em; }
.admin-top-actions { display:flex; align-items:center; gap:10px; }
.admin-view-store { min-height:34px; padding:0 11px; border:1px solid #d5d5d0; background:#fff; display:inline-flex; align-items:center; font-size:11px; font-weight:700; }
.admin-view-store:hover { border-color:#aaa; }
.admin-avatar { width:32px; height:32px; display:grid; place-items:center; border:1px solid #cfcfca; background:#ecece8; font-size:10px; font-weight:800; }
.admin-mobile-menu { display:none; width:36px; height:36px; border:1px solid #d8d8d3; background:#fff; align-items:center; justify-content:center; }
.admin-mobile-menu svg { width:18px; height:18px; fill:none; stroke:#111; stroke-width:1.6; }
.admin-content { width:min(1220px,100%); margin:0 auto; padding:24px 28px 64px; }
.admin-subnav { display:flex; gap:22px; overflow-x:auto; border-bottom:1px solid #ddddda; margin:0 0 22px; scrollbar-width:none; }
.admin-subnav::-webkit-scrollbar { display:none; }
.admin-subnav-item { flex:0 0 auto; min-height:38px; padding:0 1px; border:0; border-bottom:2px solid transparent; background:transparent; color:#666; font-size:12px; font-weight:600; }
.admin-subnav-item:hover { color:#111; }
.admin-subnav-item.active { color:#111; border-bottom-color:#111; }
.admin-panel { background:#fff; border:1px solid #dfdfda; border-radius:6px; padding:20px; margin-bottom:16px; }
.panel-head { margin-bottom:16px; }
.panel-head h2 { font-size:17px; letter-spacing:-.02em; }
.panel-head p { font-size:11px; color:#72726e; line-height:1.45; }
.admin-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:16px; }
.admin-stat-card { min-height:108px; border:1px solid #dfdfda; border-radius:6px; background:#fff; padding:15px; display:grid; align-content:space-between; gap:8px; text-align:left; }
.admin-stat-card:hover { border-color:#bcbcb7; }
.admin-stat-card span { color:#666; font-size:11px; font-weight:600; }
.admin-stat-card b { font-size:26px; line-height:1; letter-spacing:-.035em; }
.admin-stat-card small { color:#858580; font-size:10px; }
.admin-stat-card.attention { border-color:#c7aa86; background:#fffdf9; }
.admin-home-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(260px,.65fr); gap:16px; align-items:start; }
.admin-quick-panel { position:sticky; top:96px; }
.admin-quick-actions { display:grid; }
.admin-quick-actions button { min-height:45px; border:0; border-top:1px solid #ecece8; background:transparent; padding:0; display:flex; align-items:center; justify-content:space-between; gap:12px; color:#222; text-align:left; font-size:12px; }
.admin-quick-actions button:first-child { border-top:0; }
.admin-quick-actions button:hover span { text-decoration:underline; text-underline-offset:3px; }
.admin-quick-actions b { font-size:16px; font-weight:400; color:#777; }
.admin-inline-action { border:0; background:transparent; padding:5px 0; font-size:11px; font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.admin-empty-state { min-height:140px; display:grid; place-items:center; align-content:center; gap:5px; color:#777; text-align:center; font-size:11px; }
.admin-empty-state b { color:#222; font-size:13px; }
.admin-setup-overview { background:#fff; border:1px solid #dfdfda; border-radius:6px; padding:20px; margin-bottom:16px; }
.admin-setup-overview-head { display:flex; justify-content:space-between; gap:24px; align-items:start; }
.admin-setup-overview-head h2 { margin:0 0 5px; font-size:18px; letter-spacing:-.025em; }
.admin-setup-overview-head p { margin:0; color:#6f6f6b; max-width:66ch; font-size:11px; line-height:1.5; }
.admin-setup-overview-head strong { font-size:18px; }
.admin-kicker { margin:0 0 6px!important; color:#777!important; font-size:9px!important; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.admin-progress-track { height:5px; margin:16px 0 7px; background:#ecece8; overflow:hidden; }
.admin-progress-track span { display:block; height:100%; background:#111; }
.admin-task-list { display:grid; }
.admin-task-list button { min-height:42px; border:0; border-top:1px solid #eeeeea; background:transparent; display:flex; align-items:center; justify-content:space-between; padding:0; font-size:12px; text-align:left; }
.admin-task-list button b { font-size:10px; }
.table-wrap { border:1px solid #ecece8; }
.admin-table { font-size:11px; }
.admin-table th { background:#fafaf8; color:#777; font-size:9px; padding:9px 10px; }
.admin-table td { padding:11px 10px; }
.admin-table tbody tr:hover { background:#fafaf8; }
.settings-form { gap:14px; }
.settings-form label { color:#555; text-transform:none; letter-spacing:0; font-size:11px; font-weight:600; }
.admin-route .field { background:#fff; border-color:#d6d6d1; }
.admin-route .field:focus { border-color:#888; outline:2px solid #e6e6e2; outline-offset:1px; }
.admin-route .btn { min-height:40px; border-radius:4px; text-transform:none; letter-spacing:0; font-size:11px; }
.admin-route .btn-secondary { background:#fff; color:#111; border-color:#ccc; }
.admin-route .status-dot { border-radius:3px; text-transform:none; letter-spacing:0; }
.admin-route .order-statuses span { border-radius:3px; text-transform:none; letter-spacing:0; }
.admin-mobile-scrim { display:none; }

.admin-setup-screen { min-height:100vh; background:#f6f6f3; display:grid; place-items:center; padding:28px 16px; }
.admin-setup-wrap { width:min(460px,100%); }
.admin-setup-brand { display:inline-block; margin:0 0 18px; font-size:22px; font-weight:900; letter-spacing:-.06em; }
.admin-setup-card { background:#fff; border:1px solid #dfdfda; border-radius:7px; padding:28px; }
.admin-setup-step { margin:0 0 9px; color:#777; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.admin-setup-card h1 { margin:0 0 8px; font-size:28px; letter-spacing:-.04em; }
.admin-setup-copy { margin:0 0 24px; color:#666; font-size:12px; line-height:1.5; }
.admin-setup-form { display:grid; gap:14px; }
.admin-setup-form label { display:grid; gap:6px; color:#444; font-size:11px; font-weight:600; }
.admin-setup-form small { color:#858580; font-weight:400; }

@media (max-width: 1040px) {
  .admin-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .admin-home-grid { grid-template-columns:1fr; }
  .admin-quick-panel { position:static; }
}
@media (max-width: 860px) {
  .admin-shell { grid-template-columns:1fr; }
  .admin-sidebar { position:fixed; inset:0 auto 0 0; width:min(280px,86vw); height:100vh; transform:translateX(-102%); transition:transform .18s ease; box-shadow:10px 0 30px rgba(0,0,0,.12); }
  .admin-menu-open .admin-sidebar { transform:translateX(0); }
  .admin-sidebar-head { display:flex!important; }
  .admin-sidebar-close { display:block; }
  .admin-primary-nav { display:grid; width:100%; }
  .admin-nav { width:100%; white-space:normal; border:0; padding:0 9px; }
  .admin-store-link { margin:0; border:0; white-space:normal; }
  .admin-mobile-menu { display:inline-flex; }
  .admin-mobile-scrim { position:fixed; inset:0; z-index:35; border:0; background:rgba(0,0,0,.28); opacity:0; pointer-events:none; display:block; }
  .admin-menu-open .admin-mobile-scrim { opacity:1; pointer-events:auto; }
  .admin-topbar { padding:11px 16px; }
  .admin-content { padding:20px 16px 54px; }
}
@media (max-width: 600px) {
  .admin-view-store { display:none; }
  .admin-topbar { min-height:66px; }
  .admin-topbar h1 { font-size:20px; }
  .admin-breadcrumb { display:none; }
  .admin-content { padding:15px 10px 44px; }
  .admin-stat-grid { grid-template-columns:1fr 1fr; gap:7px; }
  .admin-stat-card { min-height:92px; padding:12px; }
  .admin-stat-card b { font-size:22px; }
  .admin-panel,.admin-setup-overview { padding:14px; border-radius:4px; }
  .admin-setup-overview-head { gap:12px; }
  .admin-setup-overview-head strong { font-size:14px; }
  .admin-subnav { margin-bottom:14px; gap:18px; }
  .admin-setup-card { padding:22px 18px; }
}

/* Scroll-driven campaign focus: zooms in as the image reaches center, then back out as it leaves. */
.cinematic-zoom {
  position: relative;
  height: 155svh;
  min-height: 980px;
  background: #111;
  color: #fff;
}
.cinematic-zoom-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: #111;
}
.cinematic-zoom-media {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  object-position: center 46%;
  transform: scale(var(--cinematic-scale, 1));
  transform-origin: 50% 52%;
  will-change: transform;
}
.cinematic-zoom .campaign-shade { z-index: 1; }
.cinematic-zoom .campaign-copy { z-index: 2; }
.cinematic-zoom.campaign-right .campaign-copy { left:auto; right:22px; text-align:right; }

@media (max-width: 720px) {
  .cinematic-zoom { height: 145svh; min-height: 820px; }
  .cinematic-zoom-sticky { min-height: 560px; }
  .cinematic-zoom.campaign-right .campaign-copy { left:14px; right:14px; text-align:left; }
}

@media (prefers-reduced-motion: reduce) {
  .cinematic-zoom { height:auto; min-height:0; }
  .cinematic-zoom-sticky { position:relative; height:72svh; min-height:560px; }
  .cinematic-zoom-media { transform:none; will-change:auto; }
}


/* Interactive product media. Multi-angle frames stay on product pages only. */

.product-gallery.has-spin-viewer {
  display:block;
  position:relative;
  top:auto;
  align-self:start;
  height:auto;
  min-height:0;
  max-height:none;
  background:#111;
  overflow:hidden;
}
.product-spin-viewer {
  width:100%;
  height:calc(100vh - var(--header-h) - var(--announce-h));
  height:calc(100dvh - var(--header-h) - var(--announce-h));
  max-height:calc(100dvh - var(--header-h) - var(--announce-h));
  min-height:0;
  display:grid;
  grid-template-rows:minmax(0,1fr) 54px 72px;
  background:#111;
  color:#fff;
  overflow:hidden;
}
.spin-stage { position:relative; min-height:0; overflow:hidden; background:#0b0b0b; outline:none; cursor:grab; touch-action:pan-y; user-select:none; }
.spin-stage:focus-visible { box-shadow:inset 0 0 0 2px #fff; }
.spin-stage.is-dragging { cursor:grabbing; }
.spin-viewport { position:absolute; inset:0; overflow:hidden; }
.spin-viewport.is-zoomed { cursor:zoom-out; }
.product-gallery .spin-main-image {
  width:100%; height:100%; max-width:100%; max-height:100%; aspect-ratio:auto; object-fit:contain !important; object-position:center; background:#111 !important; user-select:none; pointer-events:none;
  transform:translate(var(--spin-pan-x,0%),var(--spin-pan-y,0%)) scale(var(--spin-zoom,1));
  transform-origin:center; transition:transform .18s cubic-bezier(.2,.8,.2,1),opacity .12s linear; will-change:transform;
}
.spin-stage.is-dragging .spin-main-image { transition:none; }
.spin-overlay { position:absolute; z-index:3; left:14px; right:14px; display:flex; justify-content:space-between; gap:12px; pointer-events:none; font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.09em; text-shadow:0 1px 7px rgba(0,0,0,.65); }
.spin-overlay-top { top:14px; }
.spin-overlay-bottom { bottom:14px; color:#ddd; }
.spin-toolbar { min-height:0; height:54px; display:flex; align-items:center; justify-content:space-between; gap:18px; padding:10px 12px; border-top:1px solid #292929; background:#111; }
.spin-colorways { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.spin-colorway,.spin-reset { min-height:34px; border:1px solid #3a3a3a; background:#171717; color:#ddd; padding:0 10px; display:inline-flex; align-items:center; gap:8px; font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; }
.spin-colorway.active { background:#fff; color:#111; border-color:#fff; }
.spin-reset { background:transparent; color:#fff; }
.spin-swatch { width:13px; height:13px; border:1px solid currentColor; display:inline-block; }
.spin-swatch-red { background:linear-gradient(135deg,#151515 52%,#b74520 52%); }
.spin-swatch-green { background:linear-gradient(135deg,#0c3029 52%,#d4ecff 52%); }
.spin-detail-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); grid-auto-rows:72px; gap:1px; background:#292929; }
.spin-detail-thumb { border:0; padding:0; min-height:0; background:#111; overflow:hidden; position:relative; }
.spin-detail-thumb img { width:100%; height:100%; object-fit:contain; transition:transform .22s ease,opacity .22s ease; }
.spin-detail-thumb:hover img { transform:scale(1.035); }
.spin-detail-thumb.active::after { content:''; position:absolute; inset:0; box-shadow:inset 0 0 0 2px #fff; pointer-events:none; }
.product-preview-state { margin:22px 0 8px; padding:14px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); display:grid; gap:5px; }
.product-preview-state b { font-size:11px; text-transform:uppercase; letter-spacing:.07em; }
.product-preview-state span { color:#666; font-size:11px; line-height:1.45; }
.sale-saving { color:#8f1d1d; }

@media (max-width:1040px) {
  .product-gallery.has-spin-viewer { position:relative; height:auto; min-height:0; overflow:hidden; }
  .product-spin-viewer {
    height:calc(100vh - var(--header-h) - var(--announce-h));
    height:calc(100dvh - var(--header-h) - var(--announce-h));
    max-height:calc(100dvh - var(--header-h) - var(--announce-h));
    display:grid;
  }
  .spin-stage { height:auto; min-height:0; }
}
@media (max-width:720px) {
  .product-gallery.has-spin-viewer .product-spin-viewer {
    display:grid;
    grid-template-rows:minmax(0,1fr) 52px 60px;
  }
  .spin-stage { height:auto; min-height:0; }
  .spin-overlay-bottom { bottom:10px; }
  .spin-toolbar { height:52px; min-height:0; align-items:center; flex-direction:row; gap:6px; padding:7px 8px; }
  .spin-colorways { flex-wrap:nowrap; gap:5px; }
  .spin-colorway,.spin-reset { min-height:32px; padding:0 7px; font-size:8px; }
  .spin-reset { width:auto; justify-content:center; white-space:nowrap; }
  .spin-detail-strip { grid-auto-rows:60px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-gallery .spin-main-image,.spin-detail-thumb img { transition:none; }
}


/* PRODUCT DETAIL V5 — single page scroll + restrained media sizing */
body.product-route,
body.product-route #app,
body.product-route .main,
body.product-route .product-page,
body.product-route .product-detail {
  height:auto !important;
  max-height:none !important;
  overflow-y:visible !important;
}

body.product-route {
  overflow-x:hidden;
  overflow-y:visible !important;
}

body.product-route #app,
body.product-route .main {
  overflow:visible !important;
}

body.product-route .product-page {
  width:min(1440px, 100%);
  margin:0 auto;
  padding:24px;
  display:grid;
  grid-template-columns:minmax(440px, 46%) minmax(0, 1fr);
  gap:32px;
  align-items:start;
  background:#fff;
}

body.product-route .product-gallery.has-spin-viewer {
  width:100%;
  height:auto !important;
  max-height:none !important;
  min-height:0 !important;
  position:relative !important;
  top:auto !important;
  align-self:start;
  overflow:hidden !important;
  background:#111;
}

body.product-route .product-spin-viewer {
  width:100%;
  /* Keep the complete media module inside the visible browser area. */
  height:min(560px, calc(100svh - var(--header-h) - var(--announce-h) - 24px)) !important;
  max-height:min(560px, calc(100svh - var(--header-h) - var(--announce-h) - 24px)) !important;
  min-height:420px;
  display:grid;
  grid-template-rows:minmax(0, 1fr) 44px 60px;
  overflow:hidden !important;
}

body.product-route .spin-stage,
body.product-route .spin-viewport {
  min-height:0 !important;
  height:auto !important;
  overflow:hidden !important;
}

body.product-route .product-gallery .spin-main-image {
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
}

body.product-route .spin-toolbar {
  height:44px;
  min-height:44px;
  padding:6px 10px;
  overflow:hidden !important;
}

body.product-route .spin-colorway,
body.product-route .spin-reset {
  min-height:30px;
  padding:0 9px;
}

body.product-route .spin-detail-strip {
  height:60px;
  grid-auto-rows:60px;
  overflow:hidden !important;
}

body.product-route .product-detail {
  min-width:0;
  padding:18px 8px 64px 0;
  position:static !important;
  inset:auto !important;
  align-self:start;
  overflow:visible !important;
  overscroll-behavior:auto;
}

/* Defensive override: product-page content never owns a vertical scrollbar. */
body.product-route .product-page * {
  scrollbar-gutter:auto;
}
body.product-route .product-detail,
body.product-route .product-gallery,
body.product-route .product-spin-viewer,
body.product-route .spin-stage,
body.product-route .spin-viewport,
body.product-route .spin-toolbar,
body.product-route .spin-detail-strip {
  overflow-y:hidden !important;
}
body.product-route .product-detail {
  overflow-y:visible !important;
}

@media (max-width:1040px) {
  body.product-route .product-page {
    width:100%;
    padding:18px;
    grid-template-columns:minmax(400px, 48%) minmax(0, 1fr);
    gap:24px;
  }
  body.product-route .product-spin-viewer {
    height:min(520px, calc(100svh - var(--header-h) - var(--announce-h) - 18px)) !important;
    max-height:min(520px, calc(100svh - var(--header-h) - var(--announce-h) - 18px)) !important;
    min-height:380px;
  }
}

@media (max-width:820px) {
  body.product-route .product-page {
    display:block;
    padding:0;
  }
  body.product-route .product-gallery.has-spin-viewer {
    width:100%;
  }
  body.product-route .product-spin-viewer {
    height:min(560px, calc(100svh - var(--header-h) - var(--announce-h))) !important;
    max-height:min(560px, calc(100svh - var(--header-h) - var(--announce-h))) !important;
    min-height:360px;
    grid-template-rows:minmax(0,1fr) 44px 56px;
  }
  body.product-route .spin-detail-strip {
    height:56px;
    grid-auto-rows:56px;
  }
  body.product-route .product-detail {
    padding:28px 16px 58px;
  }
}

@media (max-height:700px) and (min-width:821px) {
  body.product-route .product-page { padding-top:14px; }
  body.product-route .product-spin-viewer {
    height:calc(100svh - var(--header-h) - var(--announce-h) - 28px) !important;
    max-height:520px !important;
    min-height:340px;
    grid-template-rows:minmax(0,1fr) 42px 52px;
  }
  body.product-route .spin-toolbar { height:42px; min-height:42px; }
  body.product-route .spin-detail-strip { height:52px; grid-auto-rows:52px; }
}

/* Homepage media controls */
.homepage-media-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:8px; }
.homepage-media-card { min-width:0; border:1px solid #dfdfda; background:#fafaf8; }
.homepage-media-preview { aspect-ratio:16/10; overflow:hidden; background:#111; border-bottom:1px solid #dfdfda; }
.homepage-media-preview img { width:100%; height:100%; object-fit:cover; display:block; }
.homepage-media-meta { display:grid; gap:7px; padding:12px; }
.homepage-media-meta strong { font-size:12px; color:#111; }
.homepage-media-meta > span { min-height:30px; font-size:11px; line-height:1.4; color:#686868; font-weight:400; }
.homepage-media-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.homepage-media-upload { position:relative; overflow:hidden; margin:0 !important; cursor:pointer; }
.homepage-media-upload input[type="file"] { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
@media (max-width:900px) { .homepage-media-grid { grid-template-columns:1fr; } }
.homepage-media-grid-four { grid-template-columns:repeat(4,minmax(0,1fr)); }
.homepage-media-section-title { display:flex; justify-content:space-between; gap:18px; align-items:end; margin:4px 0 10px; padding-top:8px; }
.homepage-media-section-title:not(:first-child) { margin-top:22px; border-top:1px solid #e4e4df; padding-top:18px; }
.homepage-media-section-title strong { font-size:12px; color:#111; }
.homepage-media-section-title span { font-size:11px; color:#737373; text-align:right; }
@media (max-width:1180px) { .homepage-media-grid-four { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px) { .homepage-media-grid-four { grid-template-columns:1fr; } .homepage-media-section-title { display:grid; } .homepage-media-section-title span { text-align:left; } }
