:root {
  --bg: #FAF8F3;
  --bg-elev: #FFFFFF;
  --fg: #1B1A17;
  --muted: #6B6760;
  --line: #E6E1D6;
  --accent: #8B6B43;
  --accent-fg: #FFFFFF;
  --discount: #A4262C;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1320px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

/* ── HEADER ─────────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav.primary { justify-content: center; }
.nav.utility { justify-content: flex-end; color: var(--muted); }
.nav a:hover { color: var(--fg); text-decoration: none; }

.badge-row {
  border-top: 1px solid var(--line);
  background: #F2EEE3;
  padding: 8px 32px;
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.badge {
  background: var(--accent);
  color: var(--accent-fg);
  padding: 3px 10px;
  border-radius: 2px;
  font-weight: 500;
  text-transform: uppercase;
}
.badge-note { align-self: center; }

/* ── HERO ─────────────────────────────────────────────────── */

.hero {
  padding: 80px 32px 64px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, #F2EEE3 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: 880px;
  margin: 0 auto;
}
.hero-eyebrow,
.cat-hero .hero-eyebrow,
.story-eyebrow,
.tryr-callout-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0 0 20px;
}
.hero-tag {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 28px;
}
.btn-primary {
  display: inline-block;
  background: var(--fg);
  color: var(--bg);
  padding: 14px 28px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  border-radius: 1px;
}
.btn-primary:hover { background: var(--accent); text-decoration: none; }
.btn-link {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 4px;
}

/* ── SECTIONS ───────────────────────────────────────────── */

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  text-align: center;
  margin: 0 0 36px;
}

.categories,
.featured,
.related,
.grid-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 32px;
}
.related { padding-top: 72px; padding-bottom: 96px; }

/* ── CATEGORY TILES ─────────────────────────────────────── */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cat-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #ECE7DA;
  display: block;
}
.cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.cat-tile:hover img { transform: scale(1.04); }
.cat-tile:hover { text-decoration: none; }
.cat-tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: #FFF;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
}
.cat-tile-overlay h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  margin: 0 0 4px;
}
.cat-tile-overlay p {
  font-size: 13px;
  margin: 0;
  opacity: 0.92;
}

/* ── PRODUCT GRID CARDS ─────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px 24px;
}
.card { display: block; color: inherit; }
.card:hover { text-decoration: none; }
.card .img {
  position: relative;
  background: #ECE7DA;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 14px;
}
.card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 200ms;
}
.card:hover .img img { opacity: 0.94; }
.card .meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.card .meta .name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.card .meta .sub {
  font-size: 12px;
  color: var(--muted);
}
.card .meta .price-row {
  margin-top: 6px;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.card .meta .price {
  font-size: 14px;
  font-weight: 500;
}
.card .meta .compare {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
}
.card .pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--fg);
  color: var(--bg);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
}
.card .pill.tryon { background: var(--accent); }

/* ── CATEGORY HERO ─────────────────────────────────────── */

.cat-hero {
  padding: 64px 32px 48px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.cat-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 4.5vw, 56px);
  margin: 0 0 14px;
}
.cat-hero .hero-tag { max-width: 640px; margin: 0 auto; }

.cat-toolbar {
  border-bottom: 1px solid var(--line);
}
.toolbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.toolbar-inner select {
  border: 1px solid var(--line);
  background: transparent;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--muted);
}
.filters { display: flex; gap: 10px; align-items: center; }

/* ── PRODUCT PAGE ─────────────────────────────────────── */

.breadcrumb {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 32px 0;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a:hover { color: var(--fg); text-decoration: none; }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }

.product {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 32px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 56px;
}
.gallery .hero-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #ECE7DA;
  object-fit: cover;
}
.gallery .thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.gallery .thumbs img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #ECE7DA;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 200ms;
}
.gallery .thumbs img:hover, .gallery .thumbs img.active { opacity: 1; outline: 2px solid var(--fg); outline-offset: -2px; }

.info .brand-line {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.info .title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.1;
  margin: 0 0 6px;
}
.info .subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
}
.info .price-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 22px;
}
.info .price { font-size: 22px; font-weight: 500; }
.info .compare-at {
  font-size: 16px;
  color: var(--muted);
  text-decoration: line-through;
}
.info .compare-at:empty { display: none; }
.info .badge-stock {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #2A6048;
  text-transform: uppercase;
}
.info .desc {
  margin: 0 0 24px;
  color: #3A372F;
}

.opt-row {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.opt-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.swatch-list {
  display: flex;
  gap: 10px;
}
.swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  cursor: pointer;
  position: relative;
}
.swatch.active::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--fg);
}
.size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.size {
  border: 1px solid var(--line);
  padding: 8px 14px;
  font-size: 13px;
  background: var(--bg-elev);
  cursor: pointer;
  transition: border-color 150ms;
}
.size:hover { border-color: var(--fg); }
.size.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.cta-row {
  display: flex;
  gap: 10px;
  margin: 22px 0 28px;
}
.cta-cart {
  flex: 1;
  background: var(--fg);
  color: var(--bg);
  border: 0;
  padding: 16px 20px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: not-allowed;
  opacity: 0.55;
}
.cta-fav {
  width: 50px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 18px;
}

/* Tryr callout — the marquee CTA on every product */
.tryr-callout {
  background: linear-gradient(135deg, #F0E6D5 0%, #E8DAC0 100%);
  border: 1px solid #D4C19D;
  padding: 22px 22px 18px;
  margin-bottom: 28px;
  border-radius: 2px;
  position: relative;
}
.tryr-callout::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2A6048;
  box-shadow: 0 0 0 4px rgba(42, 96, 72, 0.18);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(42, 96, 72, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(42, 96, 72, 0); }
}
.tryr-callout h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 6px;
}
.tryr-callout-tag {
  font-size: 13px;
  color: #3A372F;
  margin: 0 0 16px;
}
.tryr-mount { display: block; }

/* Override the widget's button styling to make it the marquee CTA */
.tryr-mount .tryr-btn {
  display: block !important;
  width: 100% !important;
  background: var(--accent) !important;
  color: var(--accent-fg) !important;
  padding: 14px 20px !important;
  font-size: 13px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  border: 0 !important;
  border-radius: 1px !important;
  cursor: pointer !important;
  transition: background 200ms !important;
}
.tryr-mount .tryr-btn:hover { background: #6F5535 !important; }

.tryr-callout.disabled .tryr-mount {
  display: none;
}
.tryr-disabled-note {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

.details {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #3A372F;
}
.details li::before { content: "•  "; color: var(--muted); }

/* ── STORY ──────────────────────────────────────────── */

.story {
  background: #1B1A17;
  color: #F0EAD9;
  padding: 96px 32px;
  text-align: center;
}
.story-inner { max-width: 720px; margin: 0 auto; }
.story h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 38px;
  margin: 0 0 18px;
  color: #F0EAD9;
}
.story p { font-size: 16px; opacity: 0.85; margin: 0 0 22px; }
.story .btn-link { color: #F0EAD9; border-bottom-color: #F0EAD9; }

/* ── FOOTER ────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 56px 32px 32px;
  margin-top: 72px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  font-size: 13px;
  color: var(--muted);
}
.foot-brand {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--fg);
  letter-spacing: 0.08em;
}
.foot-brand span {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.foot-cols h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  margin: 0 0 12px;
}
.foot-cols a {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}
.foot-meta {
  grid-column: 1 / -1;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}

/* ── RESPONSIVE ──────────────────────────────────── */

@media (max-width: 920px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 16px; }
  .nav.primary { display: none; }
  .product { grid-template-columns: 1fr; gap: 28px; padding: 18px 18px 56px; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-tile { aspect-ratio: 16 / 9; }
  .footer-inner { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 56px 18px 40px; }
  .categories, .featured, .related, .grid-section { padding: 48px 18px; }
}
