/* DS Brand storefront styles. */

:root {
  --bg-dark:    #0c0a08;
  --bg-cream:   #f1ead8;
  --ink-light:  #e9e0d0;
  --ink-dark:   #1a1208;
  --ink-cream:  #2c1f12;
  --gold:       #c9a96a;
  --muted:      #8a7d68;
  --line-dark:  #2a2218;
  --line-cream: #d8cfb6;
  --warn:       #d97a55;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-dark);
  color: var(--ink-light);
  font-family: ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .75; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- Top nav ---------- */
.topnav {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px 32px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--line-dark);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
}
.topnav .nav-left  { display: flex; gap: 28px; }
.topnav .nav-right { display: flex; gap: 28px; justify-content: flex-end; }
.topnav .wordmark {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 28px; letter-spacing: .12em; color: var(--gold);
  font-weight: 500;
}

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1.4fr;
  min-height: 70vh;
  background: var(--bg-dark);
}
.hero .hero-text { padding: 80px 60px; display: flex; flex-direction: column; justify-content: center; }
.hero .hero-text h1 {
  font-family: ui-serif, Georgia, serif;
  font-weight: 400; font-size: 38px; line-height: 1.18;
  margin: 0; color: var(--ink-light);
}
.hero .ornament {
  width: 120px; height: 1px; background: var(--gold); margin: 28px 0;
  position: relative;
}
.hero .ornament::before, .hero .ornament::after {
  content: ''; position: absolute; top: -2px; width: 5px; height: 5px;
  background: var(--gold); transform: rotate(45deg);
}
.hero .ornament::before { left: 56px; }
.hero .ornament::after  { left: 64px; }
.hero .attribution {
  font-family: ui-serif, Georgia, serif; font-style: italic;
  color: var(--ink-light); margin: 0 0 56px; font-size: 16px;
}
.hero .attribution s {
  text-decoration: line-through;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1.5px;
  color: var(--muted);
  opacity: .8;
  margin-right: 4px;
}
.hero .cta {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); border-bottom: 1px solid var(--gold);
  padding-bottom: 4px; align-self: flex-start;
}
.hero .hero-img { position: relative; overflow: hidden; }
.hero .hero-img img,
.hero .hero-img .img-placeholder {
  width: 100%; height: 100%; object-fit: cover;
}

/* ---------- Collection grid (cream) ---------- */
.collection {
  background: var(--bg-cream); color: var(--ink-cream);
  padding: 80px 32px 60px;
}
.collection h2 {
  text-align: center; font-family: ui-serif, Georgia, serif;
  font-weight: 400; font-size: 14px; letter-spacing: .35em;
  text-transform: uppercase; color: var(--ink-cream);
  margin: 0 0 48px;
}
.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1280px; margin: 0 auto;
}
.product-card {
  background: var(--bg-dark); position: relative; overflow: hidden;
  aspect-ratio: 3 / 4;
}
.product-card img,
.product-card .img-placeholder {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.product-card:hover img { transform: scale(1.03); }
.product-card .label {
  position: absolute; left: 24px; bottom: 24px; color: var(--ink-light);
}
.product-card .label .name {
  font-family: ui-serif, Georgia, serif; font-size: 22px; letter-spacing: .12em;
  margin-bottom: 8px;
}
.product-card .label .price { color: var(--ink-light); font-size: 13px; margin-bottom: 12px; }
.product-card .label .view {
  font-size: 11px; letter-spacing: .2em; color: var(--gold);
}

/* Two stacked .collection sections (mixed home view) share a cream
   background, so tighten the seam between them and add a thin rule. */
.collection + .collection {
  padding-top: 20px;
  border-top: 1px solid var(--line-cream);
}
.collection + .collection h2 { margin-top: 28px; }

/* ---------- Lifestyle strip ---------- */
.lifestyle {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--bg-dark);
}
.lifestyle .tile {
  position: relative; overflow: hidden; aspect-ratio: 1 / 1;
}
.lifestyle .tile img,
.lifestyle .tile .img-placeholder { width: 100%; height: 100%; object-fit: cover; }

/* ---------- "For later hours" section ---------- */
.editorial {
  display: grid; grid-template-columns: 1fr 1.6fr; align-items: center;
  background: var(--bg-dark);
  padding: 80px 60px;
  gap: 60px;
}
.editorial h2 {
  font-family: ui-serif, Georgia, serif; font-weight: 400;
  font-size: 32px; margin: 0 0 24px;
}
.editorial .attribution {
  font-family: ui-serif, Georgia, serif; font-style: italic;
  color: var(--ink-light); margin: 0 0 24px; font-size: 16px;
}
.editorial .copy { color: var(--muted); margin: 0 0 32px; max-width: 360px; }
.editorial .more {
  font-size: 11px; letter-spacing: .2em; color: var(--gold);
  border-bottom: 1px solid var(--gold); padding-bottom: 4px;
}
.editorial .still { aspect-ratio: 16 / 9; }
.editorial .still img,
.editorial .still .img-placeholder { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Footer / pillars ---------- */
footer.on-dark   { background: var(--bg-dark); color: var(--ink-light); border-top: 1px solid var(--line-dark); }
footer.on-cream  { background: var(--bg-cream); color: var(--ink-cream); border-top: 1px solid var(--line-cream); }

footer .pillars {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  padding: 56px 60px;
  border-bottom: 1px solid var(--line-dark);
}
footer .pillar { font-size: 12px; }
footer .pillar-icon { color: var(--gold); font-size: 18px; margin-bottom: 12px; }
footer .pillar-name {
  font-weight: 600; letter-spacing: .18em; font-size: 11px;
  color: var(--ink-light); margin-bottom: 8px;
}
footer .pillar-line { color: var(--muted); line-height: 1.4; }

footer .footer-bar {
  display: grid; grid-template-columns: 80px 1fr 200px;
  align-items: center; padding: 24px 60px;
  font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
}
footer .signature {
  font-family: ui-serif, Georgia, serif; font-style: italic;
  font-size: 22px; color: var(--gold); text-transform: none;
}
footer .footer-links {
  display: flex; gap: 32px; justify-content: center;
}
footer .footer-attribution {
  font-family: ui-serif, Georgia, serif; font-style: italic;
  color: var(--muted); text-align: right; text-transform: none;
  letter-spacing: .04em;
}

/* ---------- Image placeholder ---------- */
.img-placeholder {
  background: linear-gradient(135deg, #15110d, #0c0a08);
  border: 1px dashed rgba(201,169,106,.25);
  color: rgba(201,169,106,.45);
  display: flex; align-items: center; justify-content: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; letter-spacing: .04em; text-align: center; padding: 20px;
  word-break: break-all;
}

/* ---------- Product detail page ---------- */
.pdp {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 60px; padding: 60px 60px 80px;
  max-width: 1280px; margin: 0 auto;
  background: var(--bg-dark);
}
.pdp .gallery .hero-img { aspect-ratio: 3 / 4; margin-bottom: 12px; overflow: hidden; cursor: zoom-in; }
.pdp .gallery .hero-img img,
.pdp .gallery .hero-img .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.pdp .gallery .thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pdp .gallery .thumbs > * { aspect-ratio: 1 / 1; cursor: zoom-in; opacity: .85; transition: opacity .25s; }
.pdp .gallery .thumbs > *:hover { opacity: 1; }
.pdp .gallery .thumbs img,
.pdp .gallery .thumbs .img-placeholder { width: 100%; height: 100%; object-fit: cover; }

/* Image lightbox with pinch-zoom (mobile) and click-to-zoom (desktop) */
.pdp-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center;
  overflow: auto; touch-action: pinch-zoom;
  -webkit-overflow-scrolling: touch;
}
.pdp-lightbox.open { display: flex; }
.pdp-lightbox img {
  max-width: 95vw; max-height: 95vh;
  width: auto; height: auto; object-fit: contain;
  cursor: zoom-in; transition: transform .2s ease;
  user-select: none; -webkit-user-drag: none;
}
.pdp-lightbox.zoomed { align-items: flex-start; justify-content: flex-start; }
.pdp-lightbox.zoomed img {
  max-width: none; max-height: none;
  width: auto; height: auto;
  cursor: zoom-out;
  transform: scale(2); transform-origin: var(--zx, 50%) var(--zy, 50%);
}
.pdp-lightbox .close {
  position: fixed; top: 16px; right: 20px;
  background: none; border: none; color: #fff;
  font-size: 32px; line-height: 1; cursor: pointer;
  padding: 4px 10px; opacity: .85;
}
.pdp-lightbox .close:hover { opacity: 1; }

.pdp .info { padding-top: 12px; }
.pdp .info .name {
  font-family: ui-serif, Georgia, serif; font-size: 28px;
  letter-spacing: .14em; margin: 0 0 12px; color: var(--ink-light);
}
.pdp .info .price { font-size: 16px; color: var(--gold); margin-bottom: 28px; letter-spacing: .04em; }
.pdp .info .fragment {
  font-family: ui-serif, Georgia, serif; font-style: italic;
  color: var(--muted); font-size: 17px; line-height: 1.5;
  border-left: 1px solid var(--gold); padding-left: 16px;
  margin: 0 0 32px;
}
.pdp .info .description { color: var(--ink-light); font-size: 14px; max-width: 360px; margin: 0 0 36px; }

.color-row { margin-bottom: 24px; }
.color-row > label { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.color-row .color-current { color: var(--ink-light); margin-left: 8px; letter-spacing: .12em; }
.color-swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.color-swatches input[type=radio] { display: none; }
.color-swatches label.swatch {
  display: inline-block; width: 28px; height: 28px; border-radius: 50%;
  background: var(--swatch, #888);
  border: 1px solid var(--line-dark);
  box-shadow: inset 0 0 0 2px var(--bg-dark);
  cursor: pointer; transition: all .2s;
}
.color-swatches label.swatch:hover { transform: scale(1.06); }
.color-swatches input[type=radio]:checked + label.swatch {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 2px var(--bg-dark), 0 0 0 1px var(--gold);
}

.size-row { margin-bottom: 24px; }
.size-row label { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.size-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.size-buttons input[type=radio] { display: none; }
.size-buttons label.size {
  display: inline-block; padding: 10px 16px; min-width: 48px; text-align: center;
  border: 1px solid var(--line-dark); cursor: pointer;
  font-size: 12px; letter-spacing: .12em; color: var(--ink-light);
  background: transparent; transition: all .2s;
}
.size-buttons input[type=radio]:checked + label.size {
  border-color: var(--gold); color: var(--gold);
}
.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.qty-row label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.qty-row input[type=number] {
  width: 64px; padding: 8px 10px; background: transparent;
  color: var(--ink-light); border: 1px solid var(--line-dark);
  font-family: inherit; font-size: 13px;
}
.btn-primary {
  display: inline-block; padding: 14px 32px;
  background: var(--gold); color: var(--ink-dark);
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 600; border: none; cursor: pointer;
  font-family: inherit;
}
.btn-primary:hover { opacity: .9; }
.btn-secondary {
  display: inline-block; padding: 12px 24px;
  background: transparent; color: var(--ink-light);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid var(--line-dark); cursor: pointer;
  font-family: inherit;
}
.btn-secondary:hover { border-color: var(--muted); }

.details-block {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-dark);
  color: var(--muted); font-size: 13px; max-width: 360px;
}
.details-block h3 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-light); margin: 0 0 10px; }

/* ---------- Cart ---------- */
.cart-wrap {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 60px;
  max-width: 1100px; margin: 0 auto; padding: 60px 32px 80px;
}
.cart-wrap h1 { font-family: ui-serif, Georgia, serif; font-weight: 400; font-size: 28px; letter-spacing: .14em; margin: 0 0 32px; }
.cart-line {
  display: grid; grid-template-columns: 100px 1fr auto auto;
  gap: 20px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--line-dark);
}
.cart-line .thumb { width: 100px; aspect-ratio: 3 / 4; overflow: hidden; }
.cart-line .thumb img,
.cart-line .thumb .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.cart-line .meta .name { font-family: ui-serif, Georgia, serif; font-size: 16px; letter-spacing: .1em; margin-bottom: 6px; }
.cart-line .meta .sub  { color: var(--muted); font-size: 12px; }
.cart-line .qty input { width: 56px; padding: 6px 8px; background: transparent; color: var(--ink-light); border: 1px solid var(--line-dark); font-family: inherit; font-size: 13px; text-align: center; }
.cart-line .price { font-size: 14px; color: var(--gold); min-width: 80px; text-align: right; }
.cart-line .remove { color: var(--muted); font-size: 18px; line-height: 1; padding: 4px 8px; cursor: pointer; background: none; border: none; }
.cart-line .remove:hover { color: var(--warn); }
.cart-summary { padding: 32px; background: #15110d; border: 1px solid var(--line-dark); }
.cart-summary h2 { margin: 0 0 16px; font-family: ui-serif, Georgia, serif; font-weight: 400; font-size: 16px; letter-spacing: .18em; text-transform: uppercase; }
.cart-summary .row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.cart-summary .row .v { color: var(--gold); }
.cart-summary .ship-msg { color: var(--muted); font-size: 12px; margin: 12px 0 24px; }
.cart-summary .btn-primary { display: block; width: 100%; text-align: center; }
.cart-summary .continue { display: block; text-align: center; margin-top: 16px; color: var(--muted); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.cart-empty { text-align: center; padding: 80px 0; color: var(--muted); font-style: italic; }
.cart-empty a { color: var(--gold); border-bottom: 1px solid var(--gold); padding-bottom: 2px; font-style: normal; letter-spacing: .18em; text-transform: uppercase; font-size: 11px; margin-top: 24px; display: inline-block; }

/* ---------- Checkout ---------- */
.checkout-wrap {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px;
  max-width: 1100px; margin: 0 auto; padding: 40px 32px 80px;
}
.checkout-wrap h1 { font-family: ui-serif, Georgia, serif; font-weight: 400; font-size: 28px; letter-spacing: .14em; margin: 0 0 24px; }
.demo-banner {
  background: rgba(201,169,106,.08); border: 1px solid var(--gold); color: var(--gold);
  padding: 12px 18px; margin: 0 0 32px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-align: center;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 10px 12px; background: #0a0805;
  border: 1px solid var(--line-dark); color: var(--ink-light);
  font-family: inherit; font-size: 14px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.section-title { font-family: ui-serif, Georgia, serif; font-weight: 400; font-size: 16px; letter-spacing: .18em; text-transform: uppercase; margin: 36px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line-dark); }

/* ---------- Thank-you ---------- */
.thanks { max-width: 640px; margin: 0 auto; padding: 120px 32px 160px; text-align: center; }
.thanks h1 { font-family: ui-serif, Georgia, serif; font-weight: 400; font-size: 56px; letter-spacing: .04em; margin: 0 0 24px; }
.thanks .order-id { color: var(--gold); font-family: ui-monospace, monospace; font-size: 13px; letter-spacing: .12em; margin-bottom: 32px; }
.thanks .copy { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 420px; margin: 0 auto 40px; }
.thanks .home { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--gold); padding-bottom: 4px; }

/* ---------- About page ---------- */
.about-hero {
  display: grid; grid-template-columns: 1fr 1.1fr;
  background: var(--bg-dark);
  min-height: 70vh;
}
.about-hero .about-hero-text {
  padding: 96px 64px; display: flex; flex-direction: column; justify-content: center;
}
.about-hero .eyebrow {
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 24px;
}
.about-hero h1 {
  font-family: ui-serif, Georgia, serif; font-weight: 400;
  font-size: 44px; line-height: 1.15; margin: 0; color: var(--ink-light);
}
.about-hero .ornament {
  width: 120px; height: 1px; background: var(--gold); margin: 28px 0;
  position: relative;
}
.about-hero .ornament::before, .about-hero .ornament::after {
  content: ''; position: absolute; top: -2px; width: 5px; height: 5px;
  background: var(--gold); transform: rotate(45deg);
}
.about-hero .ornament::before { left: 56px; }
.about-hero .ornament::after  { left: 64px; }
.about-hero .attribution {
  font-family: ui-serif, Georgia, serif; font-style: italic;
  color: var(--ink-light); margin: 0 0 36px; font-size: 16px;
}
.about-hero .lede {
  color: var(--ink-light); font-size: 16px; line-height: 1.7;
  max-width: 480px; margin: 0;
}
.about-hero .lede em {
  font-family: ui-serif, Georgia, serif; color: var(--gold); font-style: italic;
}
.about-hero .about-hero-img { position: relative; overflow: hidden; }
.about-hero .about-hero-img img,
.about-hero .about-hero-img .img-placeholder {
  width: 100%; height: 100%; object-fit: cover;
}

.about-editorial {
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: center;
  background: var(--bg-dark);
  padding: 100px 64px; gap: 80px;
  border-top: 1px solid var(--line-dark);
}
.about-editorial.alt { grid-template-columns: 1fr 1.2fr; }
.about-editorial .about-img { aspect-ratio: 4 / 5; overflow: hidden; }
.about-editorial .about-img img,
.about-editorial .about-img .img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.about-editorial h2 {
  font-family: ui-serif, Georgia, serif; font-weight: 400;
  font-size: 36px; line-height: 1.15; margin: 0; color: var(--ink-light);
}
.about-editorial .ornament {
  width: 80px; height: 1px; background: var(--gold); margin: 24px 0 28px;
}
.about-editorial p {
  color: var(--muted); font-size: 15px; line-height: 1.75;
  max-width: 460px; margin: 0 0 18px;
}
.about-editorial p:last-child { margin-bottom: 0; }

.about-close {
  background: var(--bg-dark); text-align: center;
  padding: 120px 32px 140px;
  border-top: 1px solid var(--line-dark);
}
.about-close h2 {
  font-family: ui-serif, Georgia, serif; font-weight: 400;
  font-size: 56px; margin: 0 0 16px; color: var(--ink-light);
}
.about-close .attribution {
  font-family: ui-serif, Georgia, serif; font-style: italic;
  color: var(--muted); margin: 0 0 48px; font-size: 16px;
}
.about-close .cta {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
}

/* ---------- Mobile ---------- */
@media (max-width: 800px) {
  .topnav { grid-template-columns: 1fr auto 1fr; padding: 14px 16px; }
  .topnav .nav-left, .topnav .nav-right { display: none; }
  .topnav .wordmark { font-size: 22px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero .hero-text { padding: 48px 24px; }
  .hero .hero-text h1 { font-size: 28px; }
  .hero .hero-img { min-height: 380px; }
  .product-grid { grid-template-columns: 1fr; }
  .lifestyle { grid-template-columns: repeat(2, 1fr); }
  .editorial { grid-template-columns: 1fr; padding: 48px 24px; gap: 32px; }
  footer .pillars { grid-template-columns: 1fr 1fr; gap: 28px; padding: 36px 24px; }
  footer .footer-bar { grid-template-columns: 1fr; gap: 16px; padding: 20px 24px; text-align: center; }
  footer .footer-attribution { text-align: center; }
  .pdp { grid-template-columns: 1fr; padding: 32px 20px 60px; gap: 32px; }
  .cart-wrap { grid-template-columns: 1fr; padding: 32px 20px 60px; }
  .checkout-wrap { grid-template-columns: 1fr; padding: 24px 20px 60px; }
  .field-row { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 80px 1fr; gap: 14px; }
  .cart-line .qty, .cart-line .price { grid-column: 2 / 3; justify-self: start; }
  .cart-line .remove { position: absolute; right: 0; }

  .about-hero { grid-template-columns: 1fr; min-height: auto; }
  .about-hero .about-hero-text { padding: 48px 24px; }
  .about-hero h1 { font-size: 30px; }
  .about-hero .about-hero-img { min-height: 360px; }
  .about-editorial,
  .about-editorial.alt { grid-template-columns: 1fr; padding: 56px 24px; gap: 32px; }
  .about-editorial.alt .about-img { order: -1; }
  .about-editorial h2 { font-size: 28px; }
  .about-close { padding: 72px 24px 90px; }
  .about-close h2 { font-size: 38px; }
}
