@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap");

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #6b6560;
  --accent: #e85d04;
  --accent-dark: #c44900;
  --mint: #2a9d8f;
  --line: #e8e2da;
  --radius: 4px;
  --radius-lg: 20px;
  --shadow: 0 20px 50px rgba(26, 26, 26, 0.08);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Playfair Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, 92%); margin: 0 auto; }

/* Topbar */
.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0;
  flex-wrap: wrap;
}
.topbar__delivery { color: #ffb703; letter-spacing: 0.02em; }
.topbar__note { opacity: 0.7; font-weight: 500; }

/* Header */
.masthead {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 200;
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand__mark {
  width: 48px; height: 48px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-size: 1.15rem; }
.brand__text small { font-size: 0.75rem; color: var(--muted); font-weight: 500; }

.mastnav { display: flex; gap: 0.25rem; align-items: center; }
.mastnav__link {
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.mastnav__link:hover { background: var(--bg); }
.mastnav__link.is-active { background: var(--ink); color: #fff; }

.nav-toggle {
  display: none;
  border: none;
  background: var(--bg);
  font-size: 1.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}

.cart-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.6rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232, 93, 4, 0.25); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--ghost {
  background: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn--full { width: 100%; }
.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }

/* Hero — magazine layout */
.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 520px;
}
.hero-split__media {
  position: relative;
  min-height: 400px;
}
.hero-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}
.hero-split__badge {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: var(--accent);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.9rem;
  max-width: 200px;
  line-height: 1.3;
}
.hero-split__content {
  padding: 3rem 3rem 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-split__label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero-split h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-split__lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.5rem; max-width: 420px; }
.hero-split__delivery {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff3e6;
  color: var(--accent-dark);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  width: fit-content;
}
.hero-split__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-split__price {
  font-family: var(--display);
  font-size: 2.5rem;
  color: var(--accent);
  font-weight: 700;
}
.hero-split__meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

/* Stats strip */
.stats-strip {
  background: var(--ink);
  color: #fff;
  padding: 2rem 0;
}
.stats-strip__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  text-align: center;
}
.stats-strip__item strong {
  display: block;
  font-size: 1.75rem;
  font-family: var(--display);
  color: #ffb703;
}
.stats-strip__item span { font-size: 0.8rem; opacity: 0.75; }

/* Sections */
.section { padding: 4rem 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 0.5rem;
}
.section__title {
  font-family: var(--display);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.section__sub { color: var(--muted); max-width: 520px; margin-bottom: 2rem; }

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
}
.feature__num {
  font-family: var(--display);
  font-size: 2.5rem;
  color: var(--line);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.feature p { font-size: 0.9rem; color: var(--muted); }

/* Product list — horizontal cards */
.product-list { display: flex; flex-direction: column; gap: 1rem; }
.product-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  transition: box-shadow 0.2s;
}
.product-row:hover { box-shadow: var(--shadow); }
.product-row__img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
}
.product-row__body h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.product-row__tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 0.35rem;
}
.product-row__body p { font-size: 0.88rem; color: var(--muted); }
.product-row__side { text-align: right; min-width: 130px; }
.product-row__price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* Product grid for catalog */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card__image {
  height: 200px;
  background: #f0ebe4;
  overflow: hidden;
}
.product-card__img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-card__tag { font-size: 0.75rem; font-weight: 700; color: var(--mint); margin-bottom: 0.35rem; }
.product-card h3 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.product-card p { font-size: 0.85rem; color: var(--muted); flex: 1; margin-bottom: 1rem; }
.product-card__footer { display: flex; justify-content: space-between; align-items: center; }
.product-card__price { font-weight: 800; color: var(--accent); }

/* Program CTA */
.program-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, #1a1a1a, #333);
  color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 3rem;
}
.program-cta__img img { width: 100%; height: 280px; object-fit: cover; }
.program-cta__body { padding: 2rem 2rem 2rem 0; }
.program-cta__body h3 { font-family: var(--display); font-size: 1.75rem; margin-bottom: 0.75rem; }
.program-cta__delivery { color: #ffb703; font-weight: 700; margin-bottom: 1rem; font-size: 0.9rem; }

/* Page headers */
.page-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.page-hero h1 { font-family: var(--display); font-size: 2.5rem; margin-bottom: 0.5rem; }
.page-hero p { color: var(--muted); }
.page-hero .delivery-pill {
  display: inline-block;
  margin-top: 1rem;
  background: #fff3e6;
  color: var(--accent-dark);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Catalog program block */
.program-box {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
}
.program-box__img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}
.program-box__price { font-size: 2rem; font-weight: 800; color: var(--accent); }

/* About page */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  padding: 3rem 0 4rem;
}
.about-content h2 {
  font-family: var(--display);
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
}
.about-content p { color: var(--muted); margin-bottom: 1rem; }
.about-sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: fit-content;
  position: sticky;
  top: 100px;
}
.about-sidebar h3 { font-size: 1rem; margin-bottom: 1rem; }
.about-sidebar dt { font-size: 0.75rem; text-transform: uppercase; color: var(--muted); margin-top: 0.75rem; }
.about-sidebar dd { font-weight: 600; font-size: 0.9rem; }
.delivery-banner {
  background: var(--accent);
  color: #fff;
  padding: 1.25rem;
  border-radius: 12px;
  margin-top: 1.5rem;
  font-weight: 700;
  text-align: center;
}

/* Cart */
.cart-page { padding: 2rem 0 4rem; }
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}
.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}
.cart-item__thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.cart-item__info h3 { font-size: 0.95rem; }
.cart-item__info p { font-size: 0.8rem; color: var(--muted); }
.cart-item__qty { display: flex; align-items: center; gap: 0.4rem; }
.qty-btn {
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 6px;
  cursor: pointer;
}
.cart-item__price { font-weight: 800; color: var(--accent); }
.cart-item__remove { border: none; background: none; cursor: pointer; color: var(--muted); font-size: 1.1rem; }
.cart-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line);
}
.checkout-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: sticky;
  top: 100px;
}
.checkout-card h2 { font-size: 1.15rem; margin-bottom: 1.25rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.3rem; }
.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}
.form-group input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form-group input.error { outline-color: #c1121f; }
.form-error { color: #c1121f; font-size: 0.8rem; display: none; margin-top: 0.25rem; }
.form-error.visible { display: block; }
.order-summary { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 0.4rem; font-size: 0.9rem; }
.summary-row--total { font-size: 1.2rem; font-weight: 800; color: var(--accent); margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.checkout-delivery { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 1rem; }
.checkout-delivery strong { color: var(--accent-dark); }

/* Thank you */
.thankyou {
  text-align: center;
  padding: 5rem 1rem;
  max-width: 520px;
  margin: 0 auto;
}
.thankyou__icon {
  width: 88px; height: 88px;
  background: var(--mint);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
}
.thankyou h1 { font-family: var(--display); margin-bottom: 0.75rem; }
.thankyou__delivery { color: var(--accent); font-weight: 700; margin: 1rem 0; }
#order-details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: left;
  margin: 1.5rem 0 2rem;
}

/* Footer */
.sitefoot {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  margin-top: auto;
  padding: 3rem 0 0;
}
.sitefoot__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.sitefoot__brand { font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: 0.5rem; }
.sitefoot__delivery { color: #ffb703; font-weight: 700; margin-bottom: 0.75rem; }
.sitefoot__title { font-weight: 700; color: #fff; margin-bottom: 0.75rem; font-size: 0.9rem; }
.sitefoot__text, .sitefoot a { display: block; font-size: 0.88rem; color: rgba(255,255,255,0.65); margin-bottom: 0.4rem; }
.sitefoot a:hover { color: #fff; }
.sitefoot__link { color: #ffb703 !important; font-weight: 600; margin-top: 0.5rem; }
.sitefoot__legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split__content { padding: 2rem 0; }
  .stats-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .product-row { grid-template-columns: 100px 1fr; }
  .product-row__side { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .program-cta { grid-template-columns: 1fr; }
  .program-cta__body { padding: 2rem; }
  .program-box { grid-template-columns: 1fr; text-align: center; }
  .about-layout { grid-template-columns: 1fr; }
  .about-sidebar { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-card { position: static; }
  .sitefoot__grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .mastnav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .mastnav.is-open { display: flex; }
  .masthead { position: relative; }
}
