/* Global Supermarket — product detail, footer, cart drawer, toast. */

/* ---------- Product detail ---------- */

.pdp { max-width: var(--shell); margin: 0 auto; padding: 40px var(--pad) 0; }
.back-link {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 32px;
  background: none;
  border: 0;
  padding: 0;
}
.back-link:hover { color: var(--gold); }
.pdp-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }
.pdp-gallery { display: flex; flex-direction: column; gap: 14px; }
.pdp-hero { aspect-ratio: 1 / 1; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pdp-thumb {
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color .18s ease, opacity .18s ease;
  opacity: 0.72;
}
.pdp-thumb:hover { opacity: 1; }
.pdp-thumb.is-active { border-color: var(--gold); opacity: 1; }
.pdp-info { padding-top: 8px; }
.pdp-info .eyebrow { letter-spacing: 0.28em; margin-bottom: 18px; }
.pdp-info h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.06; font-weight: 600; margin: 0 0 16px; }
.pdp-price { display: flex; align-items: baseline; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.pdp-price b { font-family: var(--serif); font-size: 38px; color: var(--gold-lt); font-weight: 600; }
.pdp-price span { font-size: 14px; color: var(--faint); letter-spacing: 0.06em; }
.pdp-desc { font-size: 16.5px; line-height: 1.8; color: var(--muted); margin: 0 0 30px; font-weight: 300; text-wrap: pretty; }
.pdp-buy { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.qty { display: flex; align-items: center; border: 1px solid var(--line-3); border-radius: 999px; overflow: hidden; }
.qty button {
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 18px;
  padding: 13px 20px;
  cursor: pointer;
  font-family: var(--sans);
}
.qty button:hover { color: var(--gold-lt); }
.qty span { min-width: 34px; text-align: center; font-size: 16px; color: var(--ink); }
.pdp-buy .btn { flex: 1; min-width: 180px; padding: 16px 30px; }
.pdp-stock {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.06em;
  line-height: 1.9;
  margin-bottom: 34px;
}
.spec-list { border-top: 1px solid var(--line); }
.spec { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0;
}
.spec dd { font-size: 15px; color: var(--nav); font-weight: 300; margin: 0; }

.related { padding: 104px 0 0; }
.related h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 500; margin: 0 0 36px; }

.related .product-price { font-size: 23px; }

/* ---------- Footer ---------- */

.site-footer { margin-top: 112px; border-top: 1px solid var(--line); background: var(--bg-foot); }
.footer-grid {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 64px var(--pad) 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand { font-family: var(--serif); font-size: 26px; color: var(--ink); }
.footer-sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-top: 8px; }
.footer-blurb { font-size: 14.5px; color: var(--faint); line-height: 1.8; margin: 20px 0 0; max-width: 290px; font-weight: 300; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-h {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.footer-col a, .footer-col span { font-size: 14.5px; color: var(--nav); line-height: 1.6; }
.footer-col a:hover { color: var(--gold-lt); }
.footer-legal {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 24px var(--pad) 40px;
  border-top: 1px solid var(--line-hair);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ghost);
  letter-spacing: 0.08em;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- Cart drawer ---------- */

.drawer-root { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: flex-end; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(8, 6, 4, 0.72); backdrop-filter: blur(3px); border: 0; }
.drawer {
  position: relative;
  width: 440px;
  max-width: 92vw;
  height: 100%;
  background: var(--bg-panel);
  border-left: 1px solid #2F251B;
  display: flex;
  flex-direction: column;
  animation: slideIn 0.28s ease;
}
.drawer-head {
  padding: 26px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-head b { font-family: var(--serif); font-size: 28px; font-weight: 600; }
.drawer-close { background: transparent; border: none; color: var(--dim); font-size: 22px; cursor: pointer; line-height: 1; }
.drawer-close:hover { color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 28px; }
.drawer-empty { padding: 60px 0; text-align: center; color: var(--faint); font-size: 15px; font-weight: 300; line-height: 1.8; }

.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
}
.cart-thumb { width: 72px; height: 72px; }
.cart-name { font-family: var(--serif); font-size: 20px; color: var(--ink); line-height: 1.2; }
.cart-unit { font-size: 12px; color: var(--faint); margin-top: 4px; }
.cart-step { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.cart-step button {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--nav);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.cart-step button:hover { border-color: var(--gold); color: var(--gold-lt); }
.cart-step span { font-size: 14px; color: var(--nav); min-width: 16px; text-align: center; }
.cart-line-total { font-family: var(--serif); font-size: 21px; color: var(--gold-lt); }
.cart-remove {
  background: transparent;
  border: none;
  color: var(--fainter);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
  padding: 0;
  font-family: var(--mono);
}
.cart-remove:hover { color: var(--gold); }

.drawer-foot { padding: 24px 28px 28px; border-top: 1px solid var(--line); }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--dim); margin-bottom: 8px; }
.sum-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-bottom: 20px;
  margin-top: 8px;
}
.sum-total span { font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nav); }
.sum-total b { font-family: var(--serif); font-size: 32px; color: var(--gold-lt); font-weight: 600; }
.btn-block { width: 100%; padding: 17px; }
.drawer-fine {
  text-align: center;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--fainter);
  letter-spacing: 0.1em;
  margin-top: 14px;
}

.checkout-form { flex: 1; overflow-y: auto; padding: 26px 28px; display: flex; flex-direction: column; gap: 16px; }
.mode-row { display: flex; gap: 10px; margin-bottom: 6px; }
.mode-btn {
  flex: 1;
  padding: 13px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-lt);
}
.mode-btn[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); }

.checkout-form input,
.checkout-form textarea {
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--ink);
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
  width: 100%;
}
.checkout-form input:focus,
.checkout-form textarea:focus { border-color: var(--gold); }
.checkout-form textarea { min-height: 88px; resize: vertical; }
.checkout-form input::placeholder,
.checkout-form textarea::placeholder { color: var(--faint); }
.order-summary { border: 1px solid var(--line); padding: 18px; background: var(--bg-deep); }
.order-summary .sum-row:last-child { margin-bottom: 0; }

.done-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 34px;
  gap: 18px;
}
.done-tick {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.done-panel h3 { font-family: var(--serif); font-size: 34px; margin: 0; font-weight: 600; }
.done-panel p { font-size: 15.5px; color: var(--muted); line-height: 1.7; margin: 0; font-weight: 300; }
.done-no { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--faint); }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  background: #1F1710;
  border: 1px solid var(--gold);
  color: var(--gold-lt);
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.04em;
  animation: fadeUp 0.25s ease;
}
