:root {
  --navy: #0B2A4A;
  --teal: #1F9E8F;
  --teal-dark: #16786C;
  --bg: #edf0f3;
  --surface: #ffffff;
  --ink: #22313f;
  --muted: #64748b;
  --line: #dde3e9;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; font-weight: 500; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin: 0.3em 0 0.5em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 1.6em 0 0.5em; }
h3 { font-size: 1.1rem; margin: 0 0 0.4em; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 720px; }
.section { padding: 3.5rem 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { text-align: center; margin: 0 0 2rem; }
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal-dark); font-weight: 600; margin-bottom: 0.6em;
}

/* Header */
.site-header {
  background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.6rem; min-height: 64px; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 30px; width: auto; }
.brand-sub {
  font-family: var(--serif); color: var(--teal-dark); font-size: 1.05rem;
  letter-spacing: 0.06em;
}
.main-nav { display: flex; align-items: center; gap: 1.4rem; }
.main-nav a { color: var(--navy); font-weight: 500; font-size: 0.95rem; }
.main-nav a.active { color: var(--teal-dark); }
.cart-link { position: relative; display: inline-flex; align-items: center; }
.cart-count {
  position: absolute; top: -7px; right: -10px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 9px; background: var(--teal); color: #fff;
  font-size: 0.68rem; font-weight: 600; line-height: 17px; text-align: center;
}

/* Hero */
.hero { background: linear-gradient(160deg, #f7f9fa 0%, var(--bg) 55%, #e2ebee 100%); }
.hero-inner { display: grid; gap: 2rem; padding: 3.5rem 1.25rem; align-items: center; }
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 34em; }
.hero-media img { max-width: 340px; margin: 0 auto; border-radius: 16px; box-shadow: 0 24px 48px -24px rgba(11, 42, 74, 0.35); }

/* Buttons */
.btn {
  display: inline-block; padding: 0.75rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; font-family: var(--sans);
  cursor: pointer; border: 1px solid transparent; transition: background 0.15s, color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-primary:disabled { background: var(--navy); cursor: default; }
.btn-ghost { border-color: var(--navy); color: var(--navy); padding: 0.45rem 1.2rem; }
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* Product grid & cards */
.product-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover { box-shadow: 0 14px 30px -18px rgba(11, 42, 74, 0.35); transform: translateY(-2px); }
.card-media img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.card-body { padding: 1.1rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.card-body h3 { font-size: 1.05rem; }
.card-body h3 a { color: var(--navy); }
.card-meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.8rem; }
.price { color: var(--navy); font-weight: 600; }
.card-body .btn { align-self: flex-start; margin-top: auto; }

/* Three-column feature */
.three-col { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.col-item p { color: var(--muted); font-size: 0.95rem; }

/* PDP */
.pdp { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
.pdp-media img { border-radius: 16px; border: 1px solid var(--line); }
.pdp-media { }
.pdp-details h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.pdp-price { font-size: 1.3rem; margin-bottom: 1.2rem; }
.pdp-size { color: var(--muted); font-size: 0.95rem; margin-left: 0.4rem; }
.pdp-details h2 { font-size: 1.15rem; margin-top: 1.8em; }
.pdp-details .btn { margin: 0.6rem 0 0.4rem; }
.key-ingredients { padding-left: 1.2rem; margin: 0; }
.key-ingredients li { margin-bottom: 0.4rem; }
.inci { margin-top: 1.6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.inci summary { padding: 0.85rem 1.1rem; cursor: pointer; font-weight: 600; color: var(--navy); }
.inci p { padding: 0 1.1rem 1rem; color: var(--muted); font-size: 0.9rem; }

/* Cart */
.cart-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.cart-row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 0.75rem 1rem;
  align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.cart-thumb img { width: 64px; height: 64px; border-radius: 10px; border: 1px solid var(--line); }
.cart-info { display: flex; flex-direction: column; }
.cart-info a { color: var(--navy); font-weight: 500; }
.cart-meta { color: var(--muted); font-size: 0.85rem; }
.cart-qty { display: inline-flex; align-items: center; gap: 0.6rem; }
.cart-qty button {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--navy); font-size: 1rem; cursor: pointer; line-height: 1;
}
.cart-qty button:hover { background: var(--bg); }
.cart-line { font-weight: 600; color: var(--navy); }
.cart-remove {
  border: none; background: none; color: var(--muted); font-size: 1.3rem;
  cursor: pointer; padding: 0 0.3rem;
}
.cart-remove:hover { color: var(--navy); }
.cart-total { text-align: right; font-size: 1.15rem; }
.checkout-notice {
  background: var(--surface); border: 1px dashed var(--teal); border-radius: 10px;
  padding: 1rem 1.25rem; color: var(--navy); font-weight: 500; text-align: center;
}
.cart-empty { color: var(--muted); }

/* About */
.about-sign { font-family: var(--serif); color: var(--navy); margin-top: 2rem; }

/* Footer */
.site-footer { background: var(--navy); color: #c6d2de; margin-top: 3rem; }
.footer-inner { padding: 2.2rem 1.25rem; text-align: center; }
.footer-nav { display: flex; justify-content: center; gap: 1.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.footer-nav a { color: #e7edf3; font-size: 0.92rem; }
.footer-note { font-size: 0.85rem; margin: 0; opacity: 0.8; }

/* Responsive */
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-row { grid-template-columns: 64px 1fr auto auto auto; }
}
@media (min-width: 900px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .three-col { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; padding: 4.5rem 1.25rem; }
  .pdp { grid-template-columns: 1fr 1fr; }
}

/* Checkout form */
.checkout-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2.5rem; align-items: start; }
@media (max-width: 760px) { .checkout-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: #0B2A4A; margin-bottom: 0.3rem; }
.field input, .field select { width: 100%; padding: 0.65rem 0.8rem; border: 1px solid #d5dde4; border-radius: 8px; font: inherit; background: #fff; }
.field input:focus, .field select:focus { outline: 2px solid #1F9E8F; border-color: #1F9E8F; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.summary-card { background: #fff; border: 1px solid #e2e8ee; border-radius: 12px; padding: 1.25rem; }
.sum-row { display: flex; justify-content: space-between; padding: 0.3rem 0; font-size: 0.92rem; }
.sum-total { border-top: 1px solid #e2e8ee; margin-top: 0.4rem; padding-top: 0.6rem; font-weight: 700; }
.demo-done { background: #fff; border: 1px solid #e2e8ee; border-radius: 12px; padding: 2rem; text-align: center; }
