:root {
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Jost', sans-serif;
  --color-bg: #ffffff;
  --color-ink: #201d18;
  --color-muted: #7a7264;
  --color-line: #ded7c8;
  --color-card: #ffffff;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }

body {
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.logo {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 2px;
  font-weight: 500;
}
.logo span { font-size: 11px; vertical-align: super; }

/* Utility bar */
#utility-bar {
  background: #000000;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 9px 24px;
  font-size: 11px;
  letter-spacing: 1px;
}
.utility-left select {
  background: none;
  border: none;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 1px;
  cursor: pointer;
}
.utility-left select option { color: #000; }
.utility-center { text-align: center; text-transform: uppercase; }
.utility-right { display: flex; gap: 14px; justify-content: flex-end; }
.utility-right svg { width: 9.075px; height: 9.075px; fill: #ffffff; }
.utility-right a { display: flex; opacity: 0.85; transition: opacity 0.3s var(--ease); }
.utility-right a:hover { opacity: 1; }

/* Header / nav grid */
#site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #000000;
}
.nav-grid {
  display: flex;
  align-items: stretch;
}
.nav-links { display: flex; align-items: stretch; flex: 1; }
.nav-links .nav-cell { flex: 1; }
.nav-utility { display: flex; align-items: stretch; margin-left: auto; }
.nav-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #000000;
  padding: 11.25px 16px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  transition: opacity 0.3s var(--ease);
}
.nav-cell:hover { opacity: 0.55; }
.nav-logo {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-left: none;
  justify-content: center;
}
.nav-logo span { font-size: 10px; vertical-align: super; }
.nav-icons { padding: 0; display: flex; }
.icon-cell {
  display: flex; align-items: center; justify-content: center;
  height: 100%;
  background: none; border: none; border-left: 1px solid #000000;
  cursor: pointer; padding: 12px;
  color: #000000;
}
.icon-cell:first-child { border-left: none; }
.icon-cell svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; }

/* Buttons */
.btn-outline {
  display: inline-block;
  border: 1px solid var(--color-ink);
  padding: 12px 30px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.btn-outline:hover { background: var(--color-ink); color: var(--color-bg); }

/* Hero */
#hero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  overflow: hidden;
  background: #000000;
}
.hero-static { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-copy {
  position: absolute; left: 48px; bottom: 64px; z-index: 4;
  color: #000000; max-width: 420px;
}
.hero-copy h1 {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(38px, 5.5vw, 64px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-copy p { margin-top: 16px; font-size: 14px; max-width: 320px; line-height: 1.6; }
.hero-link {
  display: inline-block; margin-top: 22px;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 5px;
}
@media (max-width: 900px) {
  .hero-copy { left: 24px; bottom: 40px; }
}

/* Favorites / Best Sellers / Sale tabs */
.tab-bar { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #000000; border-bottom: 1px solid #000000; }
.tab-btn {
  background: #ffffff; color: #000000; border: none; border-right: 1px solid #000000;
  padding: 15px 0; font-family: var(--font-sans); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; cursor: pointer; transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.tab-btn:last-child { border-right: none; }
.tab-btn.is-active, .tab-btn:hover { background: #000000; color: #ffffff; }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.tab-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.tab-card { position: relative; display: block; box-shadow: -1px 0 0 0 #000000; }
.tab-card:first-child { box-shadow: none; }
.tab-media { position: relative; aspect-ratio: 3 / 4; background: #ffffff; overflow: hidden; }
.tab-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center center;
  padding: 20px; box-sizing: border-box;
  transform: scale(var(--img-scale, 1));
  transition: opacity 0.4s var(--ease);
}
.tab-media .img-hover { opacity: 0; }
.tab-card:hover .tab-media .img-default { opacity: 0; }
.tab-card:hover .tab-media .img-hover { opacity: 1; }
.tab-card-info { padding: 16px; border-top: 1px solid #000000; background: #ffffff; }
.tab-card-info h3 { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; font-weight: 300; }
.tab-card-info .price { margin-top: 4px; font-size: 12px; color: var(--color-muted); }
.tab-viewall {
  display: block; text-align: center; padding: 15px 0;
  background: #ffffff; color: #000000;
  border-top: 1px solid #000000; border-bottom: 1px solid #000000;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
}
@media (max-width: 900px) {
  .tab-btn { font-size: 10px; padding: 12px 4px; }
  .tab-grid { grid-template-columns: repeat(2, 1fr); }
  .tab-card:nth-child(3) { box-shadow: none; }
}

/* Product cards / grid */
.collection-section { max-width: 1400px; margin: 0 auto; padding: 40px 32px 80px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; }
.section-head h2, #collections h2, #instagram h2 {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: 26px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card { position: relative; display: block; }
.product-media { aspect-ratio: 3 / 4; overflow: hidden; background: var(--color-card); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-card h3 {
  margin-top: 14px;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 300;
}
.product-card .price { margin-top: 4px; font-size: 13px; color: var(--color-muted); }
.tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  padding: 5px 10px; background: var(--color-bg); color: var(--color-ink);
}
.tag-best { background: var(--color-ink); color: var(--color-bg); }
.featured-card .product-media { aspect-ratio: 16 / 10; }

/* Sticky product showcase (2-up left, pinned image right) */
.sticky-showcase { display: flex; flex-direction: column; }
.sticky-showcase-pin {
  display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start;
}
.sticky-showcase-products { display: flex; flex-direction: column; gap: 24px; }
.showcase-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sticky-banner {
  position: sticky; top: 64px;
  height: calc(100vh - 96px); max-height: 900px; min-height: 480px;
}
.sticky-banner img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.sticky-showcase-final {
  display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: stretch;
  margin-top: 24px;
}
.sticky-showcase-final .collection-banner { height: 100%; }
.sticky-showcase-final .collection-banner img { height: 100%; aspect-ratio: auto; }

.collection-banner { position: relative; display: block; overflow: hidden; }
.collection-banner img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; transition: transform 0.6s var(--ease); }
.collection-banner:hover img { transform: scale(1.05); }
.collection-banner-copy {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: rgba(32,29,24,0.28);
}
.collection-banner-copy h3 {
  font-family: var(--font-serif); font-size: 30px; color: var(--color-bg); text-transform: uppercase; letter-spacing: 1px;
}
.collection-banner-copy .btn-outline { border-color: var(--color-bg); color: var(--color-bg); }
.collection-banner-copy .btn-outline:hover { background: var(--color-bg); color: var(--color-ink); }

/* Collections */
#collections { max-width: 1400px; margin: 0 auto; padding: 40px 32px 80px; text-align: center; }
#collections h2 { margin-bottom: 32px; }
.collections-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.collection-tile { position: relative; display: block; overflow: hidden; }
.collection-tile img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform 0.6s var(--ease); }
.collection-tile:hover img { transform: scale(1.05); }
.collection-tile-copy {
  position: absolute; left: 24px; bottom: 24px;
  color: var(--color-bg); text-align: left;
}
.collection-tile-copy h3 { font-family: var(--font-serif); font-size: 24px; }
.collection-tile-copy span { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }

/* Instagram */
#instagram { text-align: center; }
.instagram-row { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid #000000; }
.instagram-row img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.6s var(--ease); }
.instagram-row a { position: relative; display: block; overflow: hidden; box-shadow: -1px 0 0 0 #000000; }
.instagram-row a:first-child { box-shadow: none; }
.instagram-row a:hover img { transform: scale(1.06); }

/* Footer */
#site-footer { background: #ffffff; color: #000000; }
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.footer-col { position: relative; padding: 48px 32px; box-shadow: -1px 0 0 0 #000000; }
.footer-col:first-child { box-shadow: none; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .footer-block:last-child { margin-top: auto; }
.footer-brand p + .footer-block { margin-top: 24px; }
.footer-block + .footer-block { margin-top: 40px; }
.footer-col .logo { font-family: var(--font-sans); font-weight: 300; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 16px; }
.footer-brand p { margin-top: 16px; font-size: 13px; line-height: 1.7; color: var(--color-muted); max-width: 320px; }
.footer-block h4, .footer-eyebrow {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--color-muted);
  margin-bottom: 16px;
}
.social-links { display: flex; gap: 14px; }
.social-links svg { width: 18px; height: 18px; fill: #000000; stroke: none; }
.payment-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.payment-badge {
  background: #000000; color: #ffffff;
  font-size: 10px; letter-spacing: 0.5px; padding: 7px 12px;
}
.footer-newsletter h3 { font-family: var(--font-sans); font-weight: 300; font-size: 26px; line-height: 1.25; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-newsletter p { font-size: 13px; color: var(--color-muted); margin-bottom: 20px; line-height: 1.6; max-width: 340px; }
#newsletter-form { display: flex; flex-direction: column; gap: 12px; max-width: 340px; }
#newsletter-form input {
  background: none; border: 1px solid #000000; color: #000000;
  padding: 12px 14px; font-size: 13px; outline: none;
}
#newsletter-form input::placeholder { color: var(--color-muted); }
#newsletter-form button {
  background: #000000; border: none; color: #ffffff;
  padding: 13px 0; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer;
  transition: opacity 0.3s var(--ease);
}
#newsletter-form button:hover { opacity: 0.8; }
.footer-nav h4 { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; color: var(--color-muted); }
.footer-nav nav { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.footer-nav nav a { transition: opacity 0.3s var(--ease); }
.footer-nav nav a:hover { opacity: 0.6; }
.footer-col nav { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.footer-col nav a { transition: opacity 0.3s var(--ease); }
.footer-col nav a:hover { opacity: 0.55; }
.footer-bottom {
  border-top: 1px solid #000000;
  display: grid; grid-template-columns: auto 1fr 1fr auto;
  font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--color-muted);
}
.footer-bottom-cell {
  position: relative;
  display: flex; align-items: center; padding: 16px 32px;
  box-shadow: -1px 0 0 0 #000000;
}
.footer-bottom-cell:first-child { box-shadow: none; white-space: nowrap; }
.footer-bottom-cell:nth-child(3) { box-shadow: none; min-width: 0; }
.footer-bottom-end { justify-content: flex-end; padding-right: 0; white-space: nowrap; }
.footer-bottom-end a:not(.back-to-top) { color: var(--color-muted); transition: opacity 0.3s var(--ease); margin-right: 68px; }
.footer-bottom-end a:not(.back-to-top):hover { opacity: 0.6; }
.back-to-top {
  position: absolute; top: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  width: 48px; background: #000000;
}
.back-to-top svg { width: 14px; height: 14px; fill: none; stroke: #ffffff; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.back-to-top:hover { opacity: 0.8; }

/* Reveal animation */
.reveal-up { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  #utility-bar { grid-template-columns: 1fr; text-align: center; gap: 6px; padding: 10px 16px; }
  .utility-left, .utility-right { justify-content: center; }
  .nav-grid { flex-wrap: wrap; }
  .nav-logo { width: 100%; justify-content: center; border-left: none; padding-left: 16px; }
  .nav-links { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .nav-links .nav-cell:first-child { border-left: none; }
  .nav-utility { width: 100%; margin-left: 0; border-top: 1px solid #000000; }
  .nav-cart { flex: 1; border-left: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .collections-grid { grid-template-columns: 1fr; }
  .instagram-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col:nth-child(3) { box-shadow: none; margin-top: -1px; border-top: 1px solid #000000; }
  .footer-bottom { grid-template-columns: 1fr 1fr; }
  .footer-bottom-cell:nth-child(2), .footer-bottom-cell:nth-child(3) { display: none; }
  .footer-bottom-end { box-shadow: none; }
  .sticky-showcase-pin { grid-template-columns: 1fr; }
  .sticky-banner { position: static; height: auto; max-height: none; min-height: 0; aspect-ratio: 3/4; }
  .sticky-showcase-final { grid-template-columns: 1fr; }
  .sticky-showcase-final .collection-banner { aspect-ratio: 3/4; }
  .sticky-showcase-final .collection-banner img { height: 100%; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .instagram-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col { box-shadow: none !important; border-top: 1px solid #000000; margin-top: 0 !important; }
  .footer-col:first-child { border-top: none; }
  .popup-modal { grid-template-columns: 1fr; max-width: 420px; }
  .popup-image { display: none; }
  .popup-content { padding: 40px 32px; }
}

/* Newsletter popup */
.popup-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(32, 29, 24, 0.55);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}
.popup-overlay.is-active {
  opacity: 1; visibility: visible;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0s;
}
.popup-modal {
  position: relative;
  background: #ffffff;
  display: grid; grid-template-columns: 1fr 1fr;
  max-width: 880px; width: 100%;
  max-height: 90vh;
  transform: translateY(16px);
  transition: transform 0.4s var(--ease);
}
.popup-overlay.is-active .popup-modal { transform: translateY(0); }
.popup-image { overflow: hidden; }
.popup-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.popup-content { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.popup-content h3 { font-family: var(--font-sans); font-weight: 300; font-size: 28px; line-height: 1.25; margin: 14px 0 24px; text-transform: uppercase; letter-spacing: 0.5px; }
.popup-content form { display: flex; flex-direction: column; gap: 12px; }
.popup-content input {
  background: none; border: 1px solid #000000; color: #000000;
  padding: 12px 14px; font-size: 13px; outline: none;
}
.popup-content input::placeholder { color: var(--color-muted); }
.popup-content button[type="submit"] {
  background: #000000; border: none; color: #ffffff;
  padding: 13px 0; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer;
  transition: opacity 0.3s var(--ease);
}
.popup-content button[type="submit"]:hover { opacity: 0.8; }
.popup-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: #ffffff; border: 1px solid #000000;
  cursor: pointer;
}
.popup-close svg { width: 14px; height: 14px; fill: none; stroke: #000000; stroke-width: 1.5; }
.popup-close:hover { opacity: 0.7; }
