/* ============================================================
   UNCOUTH — Aimé Leon Dore-inspired editorial menswear concept
   ============================================================ */

:root {
  --bg:        #F4EFE7;
  --bg-2:      #EDE6D8;
  --bg-3:      #E4DBC8;
  --panel:     #EFE9DC;
  --ink:       #191816;
  --ink-2:     #4E4A42;
  --muted:     #6B645A;
  --line:      #D8CEBC;
  --line-soft: #E2DACB;
  --accent:    #2E4638;   /* forest green */
  --accent-2:  #7C4628;   /* rust / oxblood */
  --navy:      #24374D;
  --serif: "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1500px;
  --gutter: clamp(16px, 4vw, 56px);
  --shadow: 0 20px 60px -30px rgba(30, 24, 12, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 15px;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- typography ---------- */
.serif { font-family: var(--serif); font-weight: 400; }

.display {
  font-family: var(--serif);
  font-weight: 380;
  font-variation-settings: "opsz" 100, "SOFT" 30, "WONK" 0;
  letter-spacing: -0.01em;
  line-height: 1.02;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- utility ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(48px, 8vw, 110px) var(--gutter); }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 34px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.solid { background: var(--ink); color: var(--bg); }
.btn.solid:hover { background: transparent; color: var(--ink); }

/* ---------- announcement bar ---------- */
.announce {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 9px var(--gutter);
  font-weight: 500;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 26px; }
.nav-right { justify-content: flex-end; }
.nav-link {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--ink);
  transition: width .28s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { width: 100%; }

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 27px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
}
.wordmark .sub {
  display: block;
  font-family: var(--sans);
  font-size: 8.5px;
  letter-spacing: 0.5em;
  color: var(--muted);
  margin-top: 5px;
  font-weight: 500;
}

.icon-btn {
  background: none; border: none; color: var(--ink);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500; padding: 4px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(86vh, 860px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,16,12,0.16) 0%, rgba(18,16,12,0.10) 35%, rgba(18,16,12,0.72) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #F6F1E7;
  padding: 0 var(--gutter) clamp(40px, 8vw, 96px);
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.hero-content .display {
  font-size: clamp(44px, 9vw, 128px);
  max-width: 14ch;
  text-shadow: 0 2px 40px rgba(0,0,0,0.25);
}
.hero-content .lede {
  margin-top: 22px;
  max-width: 46ch;
  font-size: clamp(14px, 1.6vw, 18px);
  color: rgba(255,252,244,0.94);
  font-weight: 300;
}
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn { border-color: #F6F1E7; color: #F6F1E7; }
.hero .btn:hover { background: #F6F1E7; color: var(--ink); }

/* ---------- ticker / marquee ---------- */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 14px 0;
  background: var(--bg);
}
.ticker-track {
  display: flex; gap: 60px; width: max-content;
  animation: scroll 40s linear infinite;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  white-space: nowrap;
}
.ticker-track span::after { content: "  ·  "; color: var(--accent); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- section headers ---------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; margin-bottom: clamp(28px, 4vw, 56px);
}
.section-head h2 { font-size: clamp(30px, 5vw, 58px); font-weight: 380; }
.section-head .more { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; }
.section-head .more:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- category tiles ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 28px);
}
.cat-tile { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.cat-tile::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  background: linear-gradient(180deg, rgba(20,17,12,0) 0%, rgba(20,17,12,0.62) 100%);
  pointer-events: none;
}
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile .label {
  position: absolute; left: 24px; bottom: 24px; z-index: 2;
  font-family: var(--serif); font-size: 26px; color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6), 0 3px 18px rgba(0,0,0,0.45);
  letter-spacing: 0.02em;
}
.cat-tile .label small {
  display: block; font-family: var(--sans); font-size: 10px;
  letter-spacing: 0.3em; text-transform: uppercase; opacity: .92; margin-bottom: 6px;
}

/* ---------- product grid ---------- */
.pgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.5vw, 40px) clamp(14px, 1.6vw, 24px);
}
@media (max-width: 1024px) { .pgrid { grid-template-columns: repeat(3, 1fr); } .cat-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  { .pgrid { grid-template-columns: repeat(2, 1fr); } .cat-grid { grid-template-columns: 1fr; } }

.card { position: relative; }
.card .thumb {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--panel);
  overflow: hidden;
}
.card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .5s ease;
}
.card:hover .thumb img { transform: scale(1.04); }
.card .badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(25,24,22,0.82); color: var(--bg);
  padding: 5px 9px; font-weight: 600;
}
.card .badge.uo { background: rgba(124,70,40,0.9); }
.card .badge.glf { background: rgba(46,70,56,0.9); }
.card .quick {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--ink); color: var(--bg);
  text-align: center; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 13px; transform: translateY(100%); transition: transform .3s ease;
}
.card:hover .quick { transform: translateY(0); }
.card .meta { padding: 14px 2px 0; }
.card .brand { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.card .name { font-family: var(--serif); font-size: 17px; margin-top: 3px; font-weight: 420; line-height: 1.25; }
.card .price { font-size: 13px; color: var(--ink-2); margin-top: 4px; letter-spacing: 0.02em; }
.card .price .cmp { text-decoration: line-through; color: var(--muted); margin-left: 7px; }

/* ---------- editorial split ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px); align-items: center;
}
.split .imgbox { aspect-ratio: 4/5; overflow: hidden; background: var(--bg-2); }
.split .imgbox img { width: 100%; height: 100%; object-fit: cover; }
.split h3 { font-size: clamp(28px, 4.5vw, 54px); font-weight: 380; line-height: 1.05; }
.split p { color: var(--ink-2); margin-top: 22px; max-width: 48ch; font-size: 15.5px; }
.split .btn { margin-top: 30px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ---------- stats strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { text-align: center; padding: clamp(30px, 5vw, 60px) 20px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .num { font-family: var(--serif); font-size: clamp(36px, 6vw, 64px); font-weight: 380; }
.stat .lbl { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* ---------- newsletter ---------- */
.newsletter {
  background: var(--bg-2);
  text-align: center;
  padding: clamp(60px, 9vw, 120px) var(--gutter);
}
.newsletter h3 { font-size: clamp(28px, 5vw, 52px); font-weight: 380; }
.newsletter p { color: var(--ink-2); margin: 14px auto 0; max-width: 44ch; }
.news-form { margin-top: 34px; display: flex; gap: 0; max-width: 460px; margin-left: auto; margin-right: auto; border-bottom: 1px solid var(--ink); }
.news-form input {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: var(--sans); font-size: 15px; padding: 14px 4px; color: var(--ink);
}
.news-form button { background: none; border: none; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; padding: 14px 4px; color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--bg); }
.footer-top {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(50px, 7vw, 90px) var(--gutter);
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand .wordmark { font-size: 22px; letter-spacing: 0.3em; text-align: left; color: var(--bg); }
.footer-brand p { color: #B2AB9C; margin-top: 18px; font-size: 13px; max-width: 34ch; }
.footer-col h4 { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: #B2AB9C; margin-bottom: 18px; font-weight: 600; }
.footer-col a { display: block; color: #E2DCCE; font-size: 14px; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px var(--gutter); text-align: center;
  color: #7A7466; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
}
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; } }

/* ---------- small-screen header ---------- */
@media (max-width: 640px) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: 12px; height: 60px; }
  .nav-left, .nav-right { gap: 14px; }
  .nav-left .nav-link:nth-child(n+2) { display: none; }
  .wordmark { font-size: 19px; letter-spacing: 0.26em; }
  .wordmark .sub { display: none; }
  .toolbar { top: 60px; }
}

/* ================= SHOP PAGE ================= */
.page-hero {
  padding: clamp(48px, 7vw, 88px) var(--gutter) 0;
  max-width: var(--maxw); margin: 0 auto;
}
.page-hero h1 { font-size: clamp(40px, 7vw, 88px); font-weight: 380; line-height: 0.98; }
.page-hero .crumb { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }

.toolbar {
  position: sticky; top: 72px; z-index: 40;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  margin-top: clamp(28px, 4vw, 48px);
}
.toolbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  min-height: 56px;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 8px 15px; border: 1px solid var(--line-strong); color: var(--ink-2);
  background: transparent; transition: all .2s ease; font-weight: 500;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.toolbar .spacer { flex: 1; }
.count { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
select, .searchbox {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.08em;
  background: transparent; border: 1px solid var(--line-strong);
  padding: 9px 12px; color: var(--ink); outline: none; text-transform: uppercase;
}
.searchbox { min-width: 200px; text-transform: none; }

.shop-body { padding: clamp(28px, 4vw, 52px) var(--gutter) clamp(60px, 8vw, 120px); max-width: var(--maxw); margin: 0 auto; }
.empty { text-align: center; padding: 80px 20px; color: var(--muted); font-family: var(--serif); font-size: 22px; }

/* ================= PRODUCT PAGE ================= */
.pdp {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) var(--gutter);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px);
}
.pdp-gallery .main {
  aspect-ratio: 3/4; background: var(--panel); overflow: hidden;
}
.pdp-gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pdp-gallery .thumb {
  width: 64px; height: 80px; padding: 0;
  border: 1px solid var(--line); background: var(--panel);
  overflow: hidden; cursor: pointer; transition: border-color .2s ease;
}
.pdp-gallery .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-gallery .thumb:hover { border-color: var(--muted); }
.pdp-gallery .thumb.active { border-color: var(--ink); }
.pdp-info { padding-top: 10px; }
.pdp-info .brand { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.pdp-info h1 { font-family: var(--serif); font-size: clamp(30px, 4.5vw, 52px); font-weight: 380; line-height: 1.05; margin-top: 10px; }
.pdp-info .price { font-size: 19px; margin-top: 16px; }
.pdp-info .price .cmp { color: var(--muted); text-decoration: line-through; margin-left: 10px; font-size: 16px; }
.pdp-info .desc { color: var(--ink-2); margin-top: 22px; max-width: 52ch; }
.size-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin: 28px 0 12px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size {
  min-width: 46px; text-align: center; padding: 11px 8px;
  border: 1px solid var(--line-strong); font-size: 12px; letter-spacing: 0.06em;
  background: transparent; color: var(--ink);
}
.size:hover { border-color: var(--ink); }
.size.sel { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pdp-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.pdp-actions .btn { flex: 1; min-width: 200px; text-align: center; }
.pdp-meta { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 12px; color: var(--muted); }
.pdp-meta a { color: var(--ink-2); border-bottom: 1px solid var(--line-strong); }
@media (max-width: 820px) { .pdp { grid-template-columns: 1fr; } }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: var(--bg); padding: 14px 28px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  transition: transform .35s cubic-bezier(.2,.7,.2,1); z-index: 100;
}
.toast.show { transform: translateX(-50%) translateY(0); }
