:root {
  --bg: #ffffff;
  --ink: #0d0d0d;
  --muted: #7a7a7a;
  --line: #e8e8e8;
  --soft: #f7f7f7;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.announce { text-align: center; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 9px var(--pad); background: var(--ink); color: #fff; min-height: 37px; }
.announce-text { display: inline-block; transition: opacity .5s ease, transform .5s ease; }
.announce-text.hide { opacity: 0; transform: translateY(-6px); }
.row.discount { color: var(--ink); }
.header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px var(--pad); }
.nav { display: flex; gap: 28px; align-items: center; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 1px; background: currentColor; transition: width .25s; }
.nav a:hover::after { width: 100%; }
.nav-right { justify-content: flex-end; }
.logo { text-align: center; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-word { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: .32em; padding-left: .32em; }
.logo-word.small { font-size: 22px; padding-left: 0; }
.logo-tag { font-size: 9px; letter-spacing: .35em; text-transform: uppercase; margin-top: 6px; color: var(--muted); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; position: relative; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.menu-btn { display: none; }

/* ---------- mobile menu ---------- */
.mobile-menu { position: fixed; inset: 0 auto 0 0; width: min(320px, 85vw); background: #fff; z-index: 40; transform: translateX(-100%); transition: transform .3s; padding: 64px 28px 28px; display: flex; flex-direction: column; gap: 16px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.mobile-menu .close { position: absolute; top: 14px; right: 14px; }
.mobile-cats { display: flex; flex-direction: column; gap: 10px; padding-left: 14px; font-size: 13px; color: var(--muted); }
body.menu-open .mobile-menu { transform: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 34px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; transition: background .2s, color .2s; }
.btn:hover { background: #fff; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 120px); border-bottom: 1px solid var(--line); }
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: 60px var(--pad); gap: 26px; }
.eyebrow { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 6vw, 88px); line-height: 1; }
.hero h1 em { font-style: italic; }
.hero p { max-width: 420px; color: #444; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img { position: relative; overflow: hidden; background: #fff; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* ---------- sections ---------- */
.section { padding: 80px var(--pad); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; }
.section-title { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.link-arrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 2px; white-space: nowrap; }

/* categories strip */
.cat-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { padding: 10px 20px; border: 1px solid var(--line); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 20px; }
.card { display: flex; flex-direction: column; gap: 12px; }
.card-img { position: relative; aspect-ratio: 3/4; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.badge { position: absolute; top: 12px; left: 12px; background: #fff; border: 1px solid var(--ink); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; padding: 4px 9px; }
.badge.dark { background: var(--ink); color: #fff; }
.card-name { font-size: 14px; letter-spacing: .04em; }
.price { display: flex; gap: 10px; align-items: baseline; font-size: 15px; font-weight: 400; }
.price s { color: var(--muted); font-weight: 300; font-size: 13px; }
.quick-add { position: absolute; left: 12px; right: 12px; bottom: 12px; opacity: 0; transform: translateY(8px); transition: .25s; padding: 12px; font-size: 11px; }
.card:hover .quick-add { opacity: 1; transform: none; }
.empty { padding: 80px 0; text-align: center; color: var(--muted); }

/* ---------- banner ---------- */
.banner { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 0 var(--pad) 80px; }
.banner a { position: relative; aspect-ratio: 4/5; overflow: hidden; border: 1px solid var(--line); }
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s; }
.banner a:hover img { transform: scale(1.03); }
.banner span { position: absolute; left: 24px; bottom: 24px; background: #fff; padding: 12px 22px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature { padding: 40px var(--pad); text-align: center; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature h4 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; }

/* ---------- catalog page ---------- */
.page-head { padding: 56px var(--pad) 24px; text-align: center; }
.page-head h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 5vw, 60px); line-height: 1.1; }
.crumbs { font-size: 12px; color: var(--muted); letter-spacing: .08em; margin-bottom: 10px; }
.catalog-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 0 var(--pad) 32px; }
.catalog-bar select { border: 1px solid var(--line); padding: 10px 14px; background: #fff; font-size: 13px; }

/* ---------- product page ---------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; padding: 40px var(--pad) 80px; align-items: start; }
.product-gallery { border: 1px solid var(--line); }
.product-gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center top; }
.product-info { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 22px; }
.product-info h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 4vw, 46px); line-height: 1.1; }
.product-info .price { font-size: 20px; }
.label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; display: flex; justify-content: space-between; }
.label a { text-transform: none; letter-spacing: 0; text-decoration: underline; color: var(--muted); }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.size { min-width: 54px; height: 46px; border: 1px solid var(--line); font-size: 13px; transition: .2s; }
.size:hover { border-color: var(--ink); }
.size.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-error { color: #b00020; font-size: 13px; display: none; }
.size-error.show { display: block; }
.details { border-top: 1px solid var(--line); }
.details details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.details summary::after { content: "+"; font-size: 18px; line-height: 1; }
.details details[open] summary::after { content: "−"; }
.details details p { margin-top: 12px; color: #444; font-size: 14px; }

/* ---------- drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 30; }
body.drawer-open .overlay, body.menu-open .overlay { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: #fff; z-index: 40; transform: translateX(100%); transition: transform .3s; display: flex; flex-direction: column; }
body.drawer-open .drawer { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.drawer-foot:empty { display: none; }
.line-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-item img { width: 80px; aspect-ratio: 3/4; object-fit: cover; object-position: top; border: 1px solid var(--line); }
.line-item .meta { font-size: 13px; color: var(--muted); }
.line-item .name { font-size: 14px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: 8px; }
.qty button { width: 30px; height: 30px; }
.qty span { min-width: 26px; text-align: center; font-size: 13px; }
.remove { font-size: 12px; color: var(--muted); text-decoration: underline; align-self: start; }
.row { display: flex; justify-content: space-between; font-size: 14px; }
.row.total { font-size: 17px; font-weight: 400; }
.ship-progress { font-size: 13px; color: var(--muted); }
.bar { height: 2px; background: var(--line); margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--ink); transition: width .3s; }

/* ---------- checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; padding: 24px var(--pad) 80px; align-items: start; }
.checkout h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 8px 0 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 30px; }
.form-grid .wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.field input, .field textarea, .field select { border: 1px solid var(--line); padding: 13px 14px; background: #fff; outline: none; border-radius: 0; transition: border-color .2s; width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field input:user-invalid { border-color: #b00020; }
.options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.option { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); padding: 16px; cursor: pointer; transition: border-color .2s; }
.option:has(input:checked) { border-color: var(--ink); }
.option input { accent-color: var(--ink); margin-top: 4px; }
.option b { font-weight: 400; display: block; }
.option small { color: var(--muted); font-size: 13px; }
.summary { background: var(--soft); padding: 28px; position: sticky; top: 110px; display: flex; flex-direction: column; gap: 14px; }
.summary .line-item { grid-template-columns: 64px 1fr auto; border-color: #e2e2e2; padding: 12px 0; }
.summary .line-item img { width: 64px; }
.note { font-size: 12px; color: var(--muted); }

/* ---------- info pages ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 0 var(--pad) 80px; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 36px 0 12px; }
.prose p, .prose li { color: #333; margin-bottom: 10px; }
.prose ul { padding-left: 20px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 12px 8px; text-align: center; }
.prose th { font-weight: 400; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }

.success { text-align: center; padding: 100px var(--pad); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.success h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 5vw, 56px); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px var(--pad) 24px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 400; margin-bottom: 14px; }
.footer a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.footer a:hover { color: var(--ink); }
.footer p { margin-top: 12px; font-size: 14px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 22px; font-size: 13px; letter-spacing: .04em; opacity: 0; pointer-events: none; transition: .3s; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.fade-in { animation: fade .5s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- card hover photo ---------- */
.card-img img.alt { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease, transform .6s ease; }
.card:hover .card-img img.alt { opacity: 1; }

/* ---------- product gallery ---------- */
.gallery { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border: 1px solid var(--line); }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 100%; width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center top; scroll-snap-align: start; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 84px)); gap: 8px; }
.thumb { border: 1px solid var(--line); padding: 0; opacity: .55; transition: opacity .2s, border-color .2s; }
.thumb img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; }
.thumb:hover { opacity: .85; }
.thumb.active { opacity: 1; border-color: var(--ink); }

/* ---------- colors ---------- */
.swatches { display: flex; gap: 10px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); padding: 3px; transition: border-color .2s; }
.swatch i { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); }
.swatch:hover { border-color: var(--muted); }
.swatch.active { border-color: var(--ink); }
.card-dots { display: flex; gap: 6px; margin-top: -4px; }
.card-dots i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .header { grid-template-columns: auto 1fr auto; padding: 12px 16px; }
  .menu-btn { display: inline-flex; }
  .nav-left, .nav-right a { display: none; }
  .logo-word { font-size: 22px; }
  .logo-tag { font-size: 8px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-img { order: -1; aspect-ratio: 4/5; }
  .hero-text { padding: 40px 16px 48px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .quick-add { display: none; }
  .section { padding: 56px 16px; }
  .banner { grid-template-columns: 1fr; padding: 0 16px 56px; }
  .features { grid-template-columns: 1fr; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--line); }
  .product, .checkout { grid-template-columns: 1fr; gap: 28px; padding: 16px 16px 56px; }
  .product-info, .summary { position: static; }
  .checkout .summary { order: -1; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .catalog-bar { padding: 0 16px 24px; }
}
