/* The demo storefront (/shop): a quiet, premium menswear look. Mobile first. */
:root {
  --bg: #F6F4F0; --paper: #FFFFFF; --ink: #16181B; --mute: #6B6E73; --line: #E3DFD8; --accent: #1F2A37; --sale: #8A3B2E;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif; --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }

.site { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: rgba(246,244,240,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.mark { font: 600 26px/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.mark img { display: block; height: 20px; width: auto; }
@media (min-width: 760px) { .mark img { height: 26px; } }
.bag { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
/* the live stylist with no piece chosen: a quiet link in the header, a button in the home hero */
.site .right { display: flex; align-items: center; gap: 14px; }
.stylist { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 2px; color: var(--ink); text-decoration: none; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.stylist::before { content: "✦"; margin-right: 6px; letter-spacing: 0; }
.stylist .long { display: none; }
@media (min-width: 760px) { .stylist .long { display: inline; } .stylist .short { display: none; } }
.hero .hero-try { width: auto; max-width: 360px; padding: 0 24px; margin-top: 16px; }
.hero .hero-note { margin-top: 8px; font-size: 13px; }
.bag b { color: var(--ink); font-weight: 600; }
.demo { margin: 0; padding: 7px 16px; background: var(--accent); color: #EDEBE6; font-size: 12px; letter-spacing: .02em; text-align: center; }

.hero { padding: 28px 16px 8px; }
.hero h1 { margin: 0 0 6px; font: 500 34px/1.1 var(--serif); letter-spacing: .01em; }
.hero p { margin: 0; color: var(--mute); }
.chips { display: flex; gap: 8px; padding: 14px 16px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 13px; text-decoration: none; white-space: nowrap; }
.chip[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; padding: 6px 16px 32px; }
.card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.card .ph { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #ECE8E1; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .ph img { transform: scale(1.03); }
.card .nm { font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .pr { font-size: 13.5px; }
.now { font-weight: 600; }
s { color: var(--mute); margin-left: 4px; font-size: .92em; }
.off { color: var(--sale); font-size: .88em; margin-left: 4px; }

.pdp { display: grid; grid-template-columns: 1fr; }
.gallery { position: relative; background: #ECE8E1; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: 0 0 100%; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; scroll-snap-align: center; }
.dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.dots span { width: 6px; height: 6px; border-radius: 3px; background: rgba(22,24,27,.25); transition: width .2s; }
.dots span.on { width: 18px; background: var(--ink); }
.info { padding: 18px 16px 28px; }
.crumb { font-size: 12px; color: var(--mute); margin-bottom: 8px; }
.crumb a { text-decoration: none; }
.info h1 { margin: 0 0 8px; font: 500 30px/1.15 var(--serif); }
.price { margin: 0; font-size: 18px; }
.tax { margin: 2px 0 18px; font-size: 12px; color: var(--mute); }
.sizehead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.link { border: 0; background: none; padding: 4px 0; color: var(--ink); font-size: 13px; letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 3px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { min-width: 48px; height: 44px; padding: 0 12px; border: 1px solid var(--line); background: var(--paper); border-radius: 2px; font-size: 14px; }
.size[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.size.suggested { border-color: var(--accent); }
.size:disabled { color: #B5B1AA; background: #F1EEE9; text-decoration: line-through; cursor: not-allowed; }
.hint { margin: 10px 0 0; font-size: 13px; color: var(--accent); }
.tryon, .addbag { display: flex; align-items: center; justify-content: center; text-decoration: none; box-sizing: border-box; width: 100%; min-height: 52px; margin-top: 18px; border-radius: 2px; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.tryon { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.tryon::before { content: "✦ "; letter-spacing: 0; }
.addbag { margin-top: 10px; background: transparent; border: 1px solid var(--ink); }
.desc { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 16px; }
.desc h2, .more h2 { margin: 0 0 8px; font: 500 22px/1.2 var(--serif); }
.desc p { margin: 0; color: #3C3F44; line-height: 1.65; }
.more { padding: 8px 0 12px; border-top: 1px solid var(--line); }
.more h2 { padding: 20px 16px 4px; }

.foot { padding: 22px 16px 40px; border-top: 1px solid var(--line); color: var(--mute); font-size: 12px; text-align: center; }
.foot p { margin: 4px 0; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 20; max-width: calc(100% - 32px); padding: 12px 18px; background: var(--ink); color: #fff; font-size: 14px; border-radius: 2px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }

.sheet { width: min(100% - 24px, 420px); border: 0; border-radius: 4px; padding: 0; color: var(--ink); background: var(--paper); }
.sheet::backdrop { background: rgba(10,12,14,.5); }
.sheet form { padding: 22px 20px 18px; }
.sheet h2 { margin: 0 0 4px; font: 500 26px/1.2 var(--serif); }
.small { margin: 0 0 12px; font-size: 12.5px; color: var(--mute); }
.sheet fieldset { border: 0; margin: 12px 0 6px; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; }
.sheet legend, .lbl { display: block; width: 100%; margin: 12px 0 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.sheet fieldset label { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.row { display: flex; align-items: center; gap: 8px; }
.row input { width: 100%; max-width: 120px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 2px; font: inherit; background: #fff; }
.result { min-height: 1.5em; margin: 16px 0 4px; font-size: 16px; font-weight: 500; }
.actions { display: flex; gap: 10px; margin-top: 14px; }
.actions button { flex: 1; min-height: 46px; border-radius: 2px; font-weight: 600; }
.ghost { background: transparent; border: 1px solid var(--line); }
.solid { background: var(--ink); color: #fff; border: 1px solid var(--ink); }

@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; padding: 8px 32px 40px; }
  .hero, .chips { padding-left: 32px; padding-right: 32px; }
  .pdp { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; max-width: 1200px; margin: 0 auto; padding: 24px 32px; }
  .gallery { position: sticky; top: 80px; align-self: start; }
  .info { padding: 8px 0 28px; }
  .more { max-width: 1200px; margin: 0 auto; }
  .more h2 { padding-left: 32px; }
}
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
