/* ============================================================
   DE LA PEUR — store surfaces
   Product pages, cart, drawer and order confirmation.
   Uses the tokens already defined in site.css.
   ============================================================ */

/* ---------- shared bits ---------- */
.label {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 15px 24px;
  background: var(--ink);
  color: var(--bone);
  border: 1px solid var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.btn:hover { opacity: 0.84; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-quiet {
  background: none;
  color: var(--ink);
  border-color: var(--hair);
}
.btn-quiet:hover { border-color: var(--ink); opacity: 1; }

.link-back {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--stone);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.link-back:hover { color: var(--ink); border-bottom-color: var(--ink); }

.notice {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--hair);
  background: rgba(165,197,231,0.12);
  font-size: 12.5px;
  line-height: 1.55;
}
.notice[hidden] { display: none; }
.notice.is-error { background: rgba(214,120,90,0.12); border-color: rgba(120,50,30,0.3); }

/* ---------- nav: cart link ---------- */
/* The nav gained a fourth link, so let it wrap rather than overflow on phones. */
.nav-links { flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; }
.nav-links .nav-cart { white-space: nowrap; }
.cart-count { font-variant-numeric: tabular-nums; color: var(--stone); }
.nav-cart.is-filled .cart-count { color: var(--ink); }

/* Give fixed-nav pages room to breathe. */
.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 132px 48px 120px;
}
.page-head { margin-bottom: 44px; }
.page-head h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 14px 0 0;
}

/* ---------- collection grid: cards are links ---------- */
a.item { display: flex; flex-direction: column; }
a.item .swatch { transition: transform 0.5s ease; }
a.item:hover .swatch { transform: translateY(-6px); }
a.item:hover .item-name { border-bottom-color: var(--ink); }
.item-name { border-bottom: 1px solid transparent; padding-bottom: 1px; }
.item-cta {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---------- product page ---------- */
.pdp {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: start;
}

.pdp-gallery { position: sticky; top: 120px; }
.pdp-figure {
  position: relative;
  aspect-ratio: 4/5;
  display: grid;
  place-items: center;
  border: 1px solid var(--hair);
  perspective: 900px;
  overflow: hidden;
}
.pdp-figure::before {
  content: '';
  position: absolute;
  inset: 10% 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(165,197,231,0.34), rgba(165,197,231,0) 68%);
}
.pdp-figure .qm { font-size: clamp(120px, 20vw, 232px); }

.pdp-views {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.pdp-view {
  position: relative;
  aspect-ratio: 1/1;
  display: grid;
  place-items: center;
  border: 1px solid var(--hair);
  background: none;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s ease;
}
.pdp-view:hover { border-color: var(--stone); }
.pdp-view[aria-current='true'] { border-color: var(--ink); }
.pdp-view .qm-mini { font-size: 40px; }
.pdp-view-caption {
  position: absolute;
  bottom: 6px;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}

/* flat, non-rotating version of the house mark, for thumbnails and cart lines */
.qm-mini {
  display: block;
  font-family: 'Baloo 2', 'Fraunces', serif;
  font-weight: 800;
  line-height: 1;
  user-select: none;
  background: radial-gradient(120% 115% at 32% 18%,
    #F4F9FD 0%, #D8E9F8 16%, #AFCFEC 44%, #89B2DC 68%, #5480B6 90%, var(--sky-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pdp-detail h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 12px 0 10px;
}
.pdp-price {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  color: var(--ink);
}
.pdp-body {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--hair);
  font-size: 14px;
  color: #3E3C2E;
}
.pdp-details {
  margin-top: 18px;
  list-style: none;
  font-size: 13px;
  color: #55523F;
}
.pdp-details li { padding-left: 16px; position: relative; }
.pdp-details li + li { margin-top: 6px; }
.pdp-details li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.72em;
  width: 6px; height: 1px;
  background: var(--stone);
}

/* size + quantity */
.pdp-form { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--hair); }
.field + .field { margin-top: 26px; }
.field-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size {
  min-width: 56px;
  min-height: 48px;
  padding: 12px 8px;
  background: none;
  border: 1px solid var(--hair);
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.size:hover { border-color: var(--stone); }
.size[aria-pressed='true'] { background: var(--ink); color: var(--bone); border-color: var(--ink); }

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hair);
}
.stepper button {
  width: 46px;
  height: 46px;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
}
.stepper button:hover { background: rgba(22,21,15,0.05); }
.stepper button:disabled { color: var(--stone); cursor: not-allowed; background: none; }
.stepper output,
.stepper .qty {
  min-width: 44px;
  text-align: center;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.pdp-actions { margin-top: 30px; }

.shipping-info {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--hair);
}
.shipping-info dt {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 6px;
}
.shipping-info dd { font-size: 13px; color: #3E3C2E; margin-bottom: 20px; }
.shipping-info dd:last-child { margin-bottom: 0; }

/* ---------- cart page ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 64px;
  align-items: start;
}
.cart-lines { list-style: none; border-top: 1px solid var(--hair); }
.cart-line {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--hair);
  align-items: start;
}
.cart-thumb {
  position: relative;
  aspect-ratio: 4/5;
  display: grid;
  place-items: center;
  border: 1px solid var(--hair);
}
.cart-thumb::before {
  content: '';
  position: absolute;
  inset: 14% 10%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(165,197,231,0.30), rgba(165,197,231,0) 68%);
}
.cart-thumb .qm-mini { font-size: 46px; }
.cart-line-name { font-family: 'Fraunces', serif; font-size: 16px; }
.cart-line-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cart-line-size { margin-top: 4px; font-size: 12px; color: var(--stone); letter-spacing: 0.04em; }
.cart-line-controls { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.cart-remove {
  background: none;
  border: none;
  padding: 0;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--stone);
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
.cart-remove:hover { color: var(--ink); border-bottom-color: var(--ink); }
.cart-line-total {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.summary {
  position: sticky;
  top: 120px;
  border: 1px solid var(--hair);
  padding: 30px;
}
.summary h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 19px;
  margin-bottom: 22px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  padding: 10px 0;
}
.summary-row span:last-child { font-variant-numeric: tabular-nums; }
.summary-total {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
  font-family: 'Fraunces', serif;
  font-size: 17px;
}
.summary .btn { margin-top: 24px; }
.summary-fine { margin-top: 16px; font-size: 11.5px; line-height: 1.6; color: var(--stone); }

.cart-empty { border-top: 1px solid var(--hair); padding: 64px 0; text-align: center; }
.cart-empty p { font-size: 14px; color: #55523F; margin-bottom: 26px; }
.cart-empty .btn { width: auto; }

/* ---------- drawer ---------- */
.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(22,21,15,0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 200;
}
.drawer-scrim.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(92vw, 400px);
  background: var(--bone);
  border-left: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.4, 0.01, 0.2, 1);
  z-index: 201;
}
.drawer.is-open { transform: translateX(0); }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 26px 18px;
  border-bottom: 1px solid var(--hair);
}
.drawer-head h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 17px;
}
.drawer-close {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  padding: 4px 8px;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 26px 26px; }
.drawer-foot { padding: 20px 26px 26px; border-top: 1px solid var(--hair); }
.drawer-foot .btn + .btn { margin-top: 10px; }
.drawer-empty { padding: 48px 0; text-align: center; font-size: 13px; color: var(--stone); }

.mini-line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
  align-items: start;
}
.mini-line .cart-thumb .qm-mini { font-size: 26px; }
.mini-line-name { font-family: 'Fraunces', serif; font-size: 14px; }
.mini-line-meta { margin-top: 3px; font-size: 11.5px; color: var(--stone); }
.mini-line-total { font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- order confirmation ---------- */
.order { max-width: 620px; margin: 0 auto; text-align: center; }
.order-mark {
  width: 46px; height: 46px;
  margin: 0 auto 26px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Fraunces', serif;
  font-size: 18px;
}
.order h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  margin-bottom: 14px;
}
.order-lede { font-size: 14px; color: #55523F; max-width: 44ch; margin: 0 auto; }
.order-card {
  margin-top: 44px;
  border: 1px solid var(--hair);
  padding: 30px;
  text-align: left;
}
.order-card h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 17px;
  margin-bottom: 20px;
}
.order-items { list-style: none; border-top: 1px solid var(--hair); }
.order-items li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 13px;
}
.order-items li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-address { margin-top: 24px; font-size: 13px; color: #3E3C2E; line-height: 1.7; }
.order-actions { margin-top: 40px; }
.order-actions .btn { width: auto; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 40px; }
  .pdp-gallery { position: static; }
  .cart-layout { grid-template-columns: 1fr; gap: 40px; }
  .summary { position: static; }
}

@media (max-width: 780px) {
  .page { padding: 104px 22px 88px; }
  .nav-links { gap: 16px; }
  .pdp-figure .qm { font-size: clamp(104px, 34vw, 170px); }
  .cart-line { grid-template-columns: 74px 1fr; gap: 18px; }
  .cart-line-total { grid-column: 2; margin-top: 12px; }
  .cart-thumb .qm-mini { font-size: 34px; }
  .summary { padding: 24px; }
  .order-card { padding: 24px; }
}

@media (max-width: 420px) {
  .nav { padding: 14px 16px; gap: 12px; }
  .nav-mark { font-size: 15px; }
  .nav-links { gap: 11px; font-size: 10.5px; }
  .size { min-width: 50px; flex: 1 0 auto; }
  .stepper button { width: 42px; height: 44px; }
}

/* ============================================================
   product photography
   The shots are shot on white, so they multiply into the bone
   paper instead of sitting on it as a white box. The sky glow
   behind them is kept — it reads as a halo through the blend.
   ============================================================ */
.swatch.has-photo::before,
.pdp-figure.has-photo::before { display: none; }

/* `multiply` is what drops the photo's white studio backdrop into the page tone,
   and it blends against the nearest isolated group rather than the page itself.
   Both frames make one: .swatch and .pdp-figure carry a `perspective` for the
   house mark, and the card lifts on hover with a transform. So the page tone is
   painted on the frame itself — blending straight through to the page behind it
   is not something these containers allow. */
.swatch.has-photo,
.pdp-figure.has-photo,
.pdp-view,
.cart-thumb.has-photo { background: var(--bone); }

/* The blue glow sits under the photo and would multiply through the garment. */
.cart-thumb.has-photo::before { display: none; }

.swatch-photo,
.pdp-photo {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.pdp-views.two-up { grid-template-columns: repeat(2, 1fr); }
.pdp-view img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  padding: 6px 6px 16px;
}

.cart-thumb-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

@media (max-width: 780px) {
  .pdp-view img { padding: 4px 4px 14px; }
}
