:root {
  --bg: #f7f6f1;
  --surface: #ffffff;
  --ink: #14231b;
  --muted: #66726a;
  --green: #0f5132;
  --green-dark: #0b3f28;
  --green-soft: #edf5ef;
  --line: #dfe7e1;
  --gold: #c7a75c;
  --shadow: 0 14px 38px rgba(15, 81, 50, .10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
}

.narrow {
  max-width: 820px;
}

/* ============================================================
   HEADER
============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 241, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--green);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 950;
  letter-spacing: .10em;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
}

.nav a:hover {
  color: var(--green);
}

/* ============================================================
   BUTTONS
============================================================ */

.btn {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 7px 16px rgba(15, 81, 50, .16);
}

.primary:hover {
  background: var(--green-dark);
}

.secondary {
  background: var(--green-soft);
  color: var(--green);
}

.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   HERO
============================================================ */

.hero {
  padding: 64px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 42px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .18em;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 6vw, 4.9rem);
  line-height: 1;
  letter-spacing: -.035em;
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.12rem;
}

.trust {
  margin-top: 22px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .08em;
}

.hero-card {
  min-height: 290px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
  color: var(--green);
  font-weight: 900;
  background:
    radial-gradient(circle at top right, #f3e9c8, transparent 42%),
    linear-gradient(145deg, #e4efe6, #f8f4e8);
  box-shadow: var(--shadow);
}

/* ============================================================
   SECTIONS
============================================================ */

.section {
  padding: 56px 0;
}

.alt {
  background: #eef3ee;
}

.section h2 {
  margin: 0 0 28px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.025em;
}

/* ============================================================
   PRODUCT GRID
============================================================ */

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

/* ============================================================
   ORIGINAL NATUREWIZE PRODUCT CARD
============================================================ */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 5px 18px rgba(20, 35, 27, .035);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #c8d9cd;
  box-shadow: var(--shadow);
}

/* PRODUCT SHOWCASE AREA */

.card>img {
  display: block;
  width: 100%;
  height: 290px;
  object-fit: contain;
  object-position: center;
  background:
    radial-gradient(circle at center, #ffffff 0, #ffffff 50%, #fafbf9 100%);
  padding: 0;
  transform-origin: center;
}

/*
  Actual photos have different internal white margins.
  These scales intentionally enlarge the REAL product,
  without altering labels or packaging.
*/

.card>img[alt*="TOCOMA"] {
  transform: scale(1.72);
}

.card>img[alt*="EZFIT"] {
  transform: scale(1.55);
}

.card>img[alt*="VG CAPS"] {
  transform: scale(1.55);
}

.card>img[alt*="VG COFFEE REGULAR"] {
  transform: scale(1.90);
}

.card>img[alt*="VG COFFEE NSA"] {
  transform: scale(1.72);
}

/* White content panel covers any overflow from image scaling */

.card-body {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 20px;
  background: #fff;
  border-top: 1px solid #edf1ee;
}

.card h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.25;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.55;
}

/* ============================================================
   BADGES
============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: .74rem;
  line-height: 1.15;
  font-weight: 850;
}

/* ============================================================
   PRICE / ACTIONS
============================================================ */

.price {
  margin-top: 2px;
  color: var(--green);
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 950;
}

.warn {
  padding: 8px 10px;
  border-radius: 9px;
  background: #fff6d8;
  color: #80620d;
  font-size: .82rem;
}

.actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.actions .btn {
  width: 100%;
}

/* ============================================================
   SPECIAL COMBO
============================================================ */

.bundle {
  margin-top: 28px;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  box-shadow: var(--shadow);
}

.bundle h3 {
  margin: 6px 0;
}

.bundle .btn {
  background: #fff;
  color: var(--green);
}

/* ============================================================
   HOW TO ORDER
============================================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.steps div {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.steps b {
  width: 36px;
  height: 36px;
  margin-right: 9px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}

/* ============================================================
   FAQ
============================================================ */

details {
  margin: 10px 0;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
}

summary {
  cursor: pointer;
  font-weight: 850;
}

/* ============================================================
   FOOTER
============================================================ */

footer {
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer {
  padding: 36px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer button {
  border: 0;
  background: none;
  padding: 6px;
  color: var(--green);
  text-decoration: underline;
  cursor: pointer;
}

/* ============================================================
   DIALOG
============================================================ */

dialog {
  width: min(820px, calc(100% - 24px));
  max-height: 92vh;
  overflow: auto;
  border: 0;
  border-radius: 24px;
  padding: 26px;
  background: #fff;
  box-shadow: 0 25px 80px rgba(8, 32, 19, .28);
}

dialog::backdrop {
  background: rgba(7, 22, 14, .62);
  backdrop-filter: blur(2px);
}

.close {
  position: absolute;
  z-index: 10;
  right: 14px;
  top: 8px;
  border: 0;
  background: none;
  font-size: 2rem;
  cursor: pointer;
}

/* ============================================================
   PRODUCT DETAILS
============================================================ */

.detail {
  display: grid;
  grid-template-columns: minmax(260px, 330px) 1fr;
  gap: 28px;
  align-items: start;
}

.detail img {
  display: block;
  width: 100%;
  height: 350px;
  object-fit: contain;
  object-position: center;
  border-radius: 18px;
  background: #fafbf9;
}

/* ============================================================
   FORMS
============================================================ */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.field {
  display: grid;
  gap: 6px;
}

.full {
  grid-column: 1/-1;
}

.field label {
  color: var(--ink);
  font-size: .9rem;
  font-weight: 800;
}

.field input {
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #bdc9c0;
  border-radius: 12px;
  background: #fff;
  font: inherit;
}

.field input:focus {
  outline: 2px solid rgba(15, 81, 50, .16);
  border-color: var(--green);
}

/* ============================================================
   ORDER REVIEW
============================================================ */

.review {
  margin: 16px 0;
  padding: 17px;
  border-radius: 17px;
  background: var(--green-soft);
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
}

.row.total {
  margin-top: 8px;
  padding-top: 11px;
  border-top: 1px solid #ccd8ce;
  font-size: 1.2rem;
  font-weight: 900;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 15px 0;
}

/* ============================================================
   STATUS
============================================================ */

.status {
  margin: 12px 0;
  padding: 12px;
  border-radius: 12px;
}

.error {
  background: #fde9e9;
  color: #922727;
}

.success {
  background: #e6f4e9;
  color: var(--green);
}

/* ============================================================
   TABLET
============================================================ */

@media(max-width:960px) {

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .detail {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 180px;
  }

  .card>img {
    height: 300px;
  }

  .detail img {
    height: 320px;
  }
}

/* ============================================================
   MOBILE
============================================================ */

@media(max-width:620px) {

  .wrap {
    width: min(100% - 20px, 1180px);
  }

  .nav nav a {
    display: none;
  }

  .hero {
    padding: 44px 0 30px;
  }

  .section {
    padding: 42px 0;
  }

  .grid,
  .steps,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .card {
    border-radius: 20px;
  }

  .card>img {
    height: 330px;
  }

  .card>img[alt*="TOCOMA"] {
    transform: scale(1.72);
  }

  .card>img[alt*="EZFIT"] {
    transform: scale(1.52);
  }

  .card>img[alt*="VG CAPS"] {
    transform: scale(1.52);
  }

  .card>img[alt*="VG COFFEE REGULAR"] {
    transform: scale(1.85);
  }

  .card>img[alt*="VG COFFEE NSA"] {
    transform: scale(1.70);
  }

  .card-body {
    padding: 18px;
  }

  .bundle {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail img {
    height: 300px;
  }

  .actions {
    grid-template-columns: 1fr 1fr;
  }

  .actions .btn {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ============================================================
   VERY SMALL MOBILE
============================================================ */

@media(max-width:410px) {

  .actions {
    grid-template-columns: 1fr;
  }

  .card>img {
    height: 300px;
  }
}

/* ============================================================
   ACCESSIBILITY
============================================================ */

@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .card:hover,
  .btn:hover {
    transform: none;
  }
}

/* Clean sizing for enhanced product images */
.card>img {
  transform: none !important;
  object-fit: contain;
  object-position: center;
  background: #fff;
  padding: 14px;
}

/* Quantity / promo dropdown */
#qty {
  width: 100%;
  min-height: 48px;
  padding: 12px 44px 12px 14px;
  border: 1px solid #bdc9c0;
  border-radius: 12px;
  background-color: #fff;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

#qty:focus {
  outline: 2px solid rgba(15, 81, 50, .16);
  border-color: var(--green);
}
