/* ============================================================
   Marina or Nowhere — storefront styles
   Colors and layout were taken from the original design file.
   ============================================================ */

/* Design palette (kept in one place so it's easy to tweak). */
:root {
  --cream:   #f4f1ea;  /* page background            */
  --ink:     #16232f;  /* dark navy text / buttons    */
  --ink-hover: #2c3f52;/* button hover                */
  --panel:   #eae6dd;  /* product photo backdrop      */
  --muted:   #8a949c;  /* fine print / footer         */
  --subtle:  #41525f;  /* price text                  */
  --hairline:#ddd8cd;  /* footer divider line         */
  --max:     520px;    /* content column width        */
}

/* Reset the basics. */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter Tight', Helvetica, Arial, sans-serif;
}

a { color: var(--ink); text-decoration: none; }
::selection { background: var(--ink); color: var(--cream); }

/* Full-height column, everything centered. */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Header / wordmark ---------- */
.site-header {
  width: 100%;
  max-width: var(--max);
  padding: 40px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* The wordmark image has a lot of white space around the text, so we crop
   to just the lettering inside a 16:9 window (same framing as the original).
   "mix-blend-mode: multiply" lets the white background disappear into the
   cream page, leaving only the navy wordmark. */
.wordmark {
  width: min(320px, 100%);
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}
.wordmark img {
  position: absolute;
  width: 200%;
  height: auto;
  left: -52%;
  top: -113%;
  mix-blend-mode: multiply;
}

/* ---------- Product ---------- */
.product {
  width: 100%;
  max-width: var(--max);
  padding: 32px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

/* Cream-toned panel behind the hat photo. The photo's white background is
   blended into this panel with multiply, so it looks seamless. */
.product-photo {
  width: 100%;
  background: var(--panel);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-photo img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.product-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.product-heading h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  color: var(--subtle);
}

/* ---------- Order status message (after returning from Stripe) ---------- */
.order-status {
  width: 100%;
  padding: 14px 16px;
  background: var(--panel);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
.order-status.is-muted {
  background: transparent;
  color: var(--muted);
}

/* ---------- Quantity stepper ---------- */
.qty {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
}
.qty button {
  width: 52px;
  height: 48px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s ease, color 0.12s ease;
}
.qty button:hover {
  background: var(--ink);
  color: var(--cream);
}
.qty-value {
  width: 48px;
  text-align: center;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

/* ---------- Buy button ---------- */
.buy-button {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.buy-button:hover {
  background: var(--ink-hover);
  border-color: var(--ink-hover);
  color: var(--cream);
}

/* ---------- Fine print ---------- */
.fine-print {
  max-width: 340px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Footer ---------- */
.site-footer {
  width: 100%;
  max-width: var(--max);
  margin-top: auto;              /* pin to the bottom on tall screens */
  padding: 24px 24px 56px;
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-footer span { padding-top: 20px; }
