/* =========================================================
   Elements of Mother Earth — Cold Process Handcrafted Soaps
   ========================================================= */

:root {
  /* Palette taken from the EM logo and the 2026 catalog */
  --cream: #f6efe2;
  --paper: #fffcf6;
  --sand: #ede1cb;
  --clay: #8a3a12;        /* EM logo brown */
  --clay-dark: #6c2c0c;
  --moss: #7a3a1c;
  --moss-dark: #4e2511;
  --maroon: #8b1e2b;      /* "Shea Butter" accent in the catalog */
  --bark: #3a2418;
  --ink: #2e2119;
  --muted: #76655a;
  --line: #e4d6c0;

  --earth: #8a6a4a;
  --water: #4f7c8a;
  --fire: #b8603a;
  --air: #8b86a8;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(58, 46, 37, 0.08);
  --shadow-lg: 0 20px 50px rgba(58, 46, 37, 0.14);
  --max: 1180px;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--bark);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay-dark);
  font-weight: 700;
  margin-bottom: 10px;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--moss-dark);
  background: var(--moss-dark);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { background: var(--moss); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--moss-dark); }
.btn-outline:hover { background: var(--moss-dark); color: #fff; }
.btn-clay { background: var(--clay); border-color: var(--clay); }
.btn-clay:hover { background: var(--clay-dark); border-color: var(--clay-dark); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Announcement + Header ---------- */
.announce {
  background: var(--moss-dark);
  color: #f1ecdf;
  text-align: center;
  font-size: 0.85rem;
  padding: 8px 16px;
  letter-spacing: 0.03em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 234, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark { width: 62px; height: auto; flex-shrink: 0; }
.brand-light .brand-mark { filter: brightness(0) invert(1); opacity: .95; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.05;
  color: var(--bark);
}
.brand-name small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--clay);
  transition: width .2s ease;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--bark);
  text-decoration: none;
}
.icon-btn:hover { background: var(--sand); }
.cart-count {
  position: absolute;
  top: 4px; right: 2px;
  min-width: 19px; height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--clay);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.cart-count[data-count="0"] { display: none; }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .2s ease, opacity .2s ease, visibility .2s;
    z-index: 40;
  }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a { width: 100%; padding: 16px 24px; border-top: 1px solid var(--line); }
  .nav a::after { display: none; }
  .brand-name { font-size: 1.1rem; }
}
@media (max-width: 520px) {
  .header-inner { gap: 6px; height: 64px; }
  .brand { gap: 8px; min-width: 0; }
  .brand-mark { width: 46px; }
  .brand-name { font-size: 1rem; }
  .site-header .brand-name small { display: none; }
  .header-actions { gap: 0; }
  .icon-btn { width: 40px; height: 40px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 90px;
  background:
    radial-gradient(circle at 85% 20%, rgba(181, 131, 90, 0.18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(91, 107, 71, 0.16), transparent 40%),
    var(--cream);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 50px;
  align-items: center;
}
.hero h1 em { font-style: italic; color: var(--clay-dark); }
.hero .lead { margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-top: 34px;
  font-size: 0.88rem; color: var(--muted); font-weight: 600;
}
.hero-badges span { display: inline-flex; align-items: center; gap: 6px; }
.hero h1 .script { display: block; font-size: .55em; color: var(--maroon); font-style: italic; margin-top: 6px; }
.hero-art { position: relative; aspect-ratio: 1 / 0.9; }
.hero-card {
  position: absolute; width: 40%;
  border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--paper);
  transition: transform .25s ease;
}
.hero-card img { width: 100%; display: block; }
.hero-card-1 { left: 2%; top: 12%; transform: rotate(-8deg); }
.hero-card-2 { left: 30%; top: 0; z-index: 2; transform: rotate(1deg); }
.hero-card-3 { right: 2%; top: 14%; transform: rotate(8deg); }
.hero-card:hover { transform: rotate(0) translateY(-6px); z-index: 3; }

@media (max-width: 860px) {
  .hero { padding: 50px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-art { max-width: 440px; margin: 0 auto; width: 100%; }
}

/* ---------- Scent families ---------- */
.scent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; text-align: left; }
.scent-card {
  border-radius: var(--radius); padding: 22px; text-decoration: none;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.scent-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.scent-card h3 { margin: 16px 0 2px; font-size: 1.7rem; font-style: italic; }
.scent-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.scent-thumbs { display: flex; gap: 8px; }
.scent-thumbs span { flex: 1; border-radius: 10px; overflow: hidden; aspect-ratio: 220 / 160; }
.scent-thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: center 85%; }
@media (max-width: 760px) { .scent-grid { grid-template-columns: 1fr; } }

/* ---------- Gifts ---------- */
.gift-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gift-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.gift-photos .wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gift-photos .tall { aspect-ratio: 4 / 5; }

/* ---------- Letter ---------- */
.letter {
  max-width: 760px; margin: 0 auto; text-align: center;
  font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.5; color: var(--bark);
}
.letter .sign { font-style: italic; color: var(--maroon); margin-top: 10px; }
.order-box {
  border: 2px solid var(--clay); border-radius: 22px; background: var(--paper);
  padding: 30px; text-align: center; max-width: 560px; margin: 0 auto;
}
.order-box h3 { font-style: italic; color: var(--maroon); }
.order-box .big { font-size: 1.6rem; font-weight: 800; color: var(--bark); text-decoration: none; display: block; }
.order-box a { color: var(--clay-dark); }

/* ---------- Glossary ---------- */
.glossary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 34px; }
.gloss { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.gloss h4 { font-size: 1.3rem; margin-bottom: 4px; }
.gloss p { margin: 0; color: var(--muted); font-size: .94rem; }
@media (max-width: 760px) { .glossary { grid-template-columns: 1fr; } }

/* ---------- Elements strip ---------- */
.elements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.element-card {
  position: relative;
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  color: #fff;
  text-decoration: none;
  min-height: 230px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.element-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.element-card h3 { color: #fff; margin-bottom: 4px; font-size: 1.7rem; }
.element-card p { margin: 0; font-size: 0.92rem; opacity: .92; }
.element-card .el-icon {
  position: absolute; top: 22px; right: 22px;
  width: 46px; height: 46px; opacity: .9;
}
.element-card.earth { background: linear-gradient(160deg, #a5835f, #6d5138); }
.element-card.water { background: linear-gradient(160deg, #6f9aa6, #3d6470); }
.element-card.fire  { background: linear-gradient(160deg, #d58353, #9a4a2b); }
.element-card.air   { background: linear-gradient(160deg, #a9a4c4, #6f6a8f); }

@media (max-width: 900px) { .elements-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .elements-grid { grid-template-columns: 1fr; } .element-card { min-height: 170px; } }

/* ---------- Product grid / cards ---------- */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 34px; flex-wrap: wrap;
}
.section-head h2 { margin: 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 26px;
}
.product-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-media {
  position: relative;
  display: block;
  aspect-ratio: 220 / 310;
  overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.product-cat { font-size: 0.72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; filter: brightness(.75); }
.code {
  font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  background: var(--sand); color: var(--bark); padding: 2px 8px; border-radius: 6px;
}
.product-body h3, .pdp-info h1 { font-style: italic; }
.badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--paper);
  color: var(--bark);
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.product-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.product-element {
  font-size: 0.72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 4px;
}
.product-element.earth { color: var(--earth); }
.product-element.water { color: var(--water); }
.product-element.fire  { color: var(--fire); }
.product-element.air   { color: var(--air); }
.product-body h3 { font-size: 1.4rem; margin-bottom: 4px; }
.product-body h3 a { text-decoration: none; }
.product-body h3 a:hover { color: var(--clay-dark); }
.product-scent { font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; }
.product-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.price { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--bark); }
.price small { font-family: var(--sans); font-size: 0.78rem; color: var(--muted); font-weight: 600; margin-left: 4px; }

/* ---------- Shop filters ---------- */
.page-hero {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, var(--sand), var(--cream));
}
.page-hero h1 { margin-bottom: 10px; }
.shop-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 30px;
}
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-weight: 700; font-size: 0.88rem; color: var(--ink);
}
.pill:hover { border-color: var(--clay); }
.pill.active { background: var(--bark); color: #fff; border-color: var(--bark); }
.select, .input, .textarea {
  font: inherit;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
.select:focus, .input:focus, .textarea:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(181,131,90,.18); }
.shop-toolbar .select { width: auto; min-width: 200px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---------- Product detail ---------- */
.breadcrumb { font-size: 0.88rem; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--clay-dark); }
.pdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.pdp-media {
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky; top: 110px;
  max-width: 460px; width: 100%; justify-self: center;
  box-shadow: var(--shadow-lg);
}
.pdp-media img { width: 100%; display: block; }
.weights { border: none; padding: 0; margin: 22px 0 0; }
.weights legend { font-weight: 700; font-size: .9rem; margin-bottom: 10px; color: var(--bark); }
.weight-pill { display: inline-block; margin: 0 8px 8px 0; cursor: pointer; }
.weight-pill input { position: absolute; opacity: 0; pointer-events: none; }
.weight-pill span {
  display: flex; flex-direction: column; align-items: center;
  min-width: 92px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper);
  font-size: .85rem; color: var(--muted);
}
.weight-pill strong { font-size: 1.05rem; color: var(--bark); }
.weight-pill input:checked + span { border-color: var(--clay); background: #fbf1e6; box-shadow: 0 0 0 2px rgba(138,58,18,.15); }
.weight-pill input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 2px; }
.pdp-info h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 6px; }
.pdp-price { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--bark); margin: 8px 0 18px; }
.pdp-price small { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.pdp-buy { display: flex; gap: 12px; margin: 24px 0 18px; flex-wrap: wrap; }
.qty {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper);
}
.qty button {
  width: 42px; height: 46px; border: none; background: transparent; font-size: 1.2rem; color: var(--bark);
}
.qty button:hover { color: var(--clay); }
.qty input {
  width: 40px; border: none; background: transparent; text-align: center;
  font: inherit; font-weight: 700; -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm button { width: 32px; height: 34px; font-size: 1rem; }
.qty-sm input { width: 30px; }
.pdp-buy .btn { flex: 1; min-width: 180px; }
.pdp-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: .88rem; color: var(--muted); margin: 18px 0 28px; }
.pdp-perks span { display: flex; align-items: center; gap: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.tag {
  font-size: 0.78rem; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
  background: var(--sand); color: var(--bark);
}

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--bark);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-family: var(--sans); font-size: 1.4rem; color: var(--clay); transition: transform .2s; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 0 20px; color: var(--muted); }

@media (max-width: 860px) {
  .pdp-grid { grid-template-columns: 1fr; gap: 30px; }
  .pdp-media { position: static; padding: 26px; }
}

/* ---------- Process / values ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 44px; }
.value { text-align: center; padding: 0 6px; }
.value-icon {
  width: 70px; height: 70px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--sand);
  display: flex; align-items: center; justify-content: center; color: var(--moss-dark);
}
.value h3 { font-size: 1.3rem; }
.value p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 860px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .values-grid { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-art {
  border-radius: var(--radius);
  background: linear-gradient(150deg, #d9c8ad, #b5967a);
  aspect-ratio: 1 / 0.9;
  display: flex; align-items: center; justify-content: center;
  padding: 40px; position: relative; overflow: hidden;
}
.split-art svg { width: 80%; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 34px; } }

.steps { counter-reset: step; display: grid; gap: 20px; margin-top: 24px; }
.step { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--moss-dark); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 700;
}
.step h4 { font-size: 1.2rem; margin-bottom: 2px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

.band { background: var(--bark); color: #efe7d9; }
.band h2, .band h3 { color: #fff; }
.band .lead { color: #cfc3b2; }

/* ---------- Testimonials ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.review {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 28px;
}
.review .stars { color: #e3b56b; letter-spacing: 2px; margin-bottom: 10px; }
.review p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; color: #f4ede1; }
.review cite { font-style: normal; font-size: .88rem; color: #bfb19e; font-weight: 700; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 50px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center;
}
.newsletter h2 { margin-bottom: 6px; }
.newsletter form { display: flex; gap: 10px; }
.newsletter .input { border-radius: 999px; padding: 13px 20px; }
@media (max-width: 760px) {
  .newsletter { grid-template-columns: 1fr; padding: 32px 22px; }
  .newsletter form { flex-direction: column; }
}

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.cart-items { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 18px; align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border-bottom: none; }
.cart-thumb { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 220 / 310; display: block; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h3 { font-size: 1.25rem; margin: 0; }
.cart-item h3 a { text-decoration: none; }
.cart-item .meta { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.cart-item-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.link-btn { background: none; border: none; padding: 0; color: var(--muted); font-size: .85rem; text-decoration: underline; }
.link-btn:hover { color: var(--fire); }

.summary {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; position: sticky; top: 100px;
}
.summary h3 { margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: .95rem; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; font-weight: 800; font-size: 1.1rem; }
.ship-meter { margin: 6px 0 18px; font-size: .85rem; color: var(--muted); }
.ship-bar { height: 7px; border-radius: 99px; background: var(--sand); overflow: hidden; margin-top: 6px; }
.ship-bar span { display: block; height: 100%; background: var(--moss); border-radius: 99px; transition: width .3s; }
.promo { display: flex; gap: 8px; margin: 14px 0; }
.promo .input { padding: 9px 12px; }
.promo-msg { font-size: .82rem; margin-top: -6px; margin-bottom: 8px; }
.promo-msg.ok { color: var(--moss); }
.promo-msg.err { color: var(--fire); }

@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 520px) {
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- Checkout / forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; color: var(--bark); }
.field .err-text { color: var(--fire); font-size: .8rem; margin-top: 4px; display: none; }
.field.invalid .input, .field.invalid .select { border-color: var(--fire); }
.field.invalid .err-text { display: block; }
.fieldset { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.fieldset h3 { margin-bottom: 18px; }
.radio-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 10px; cursor: pointer; background: var(--paper);
}
.radio-card:has(input:checked) { border-color: var(--moss); background: #f4f6ef; }
.radio-card > span { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.rc-text small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
.notice {
  background: #f4f6ef; border: 1px dashed var(--moss); color: var(--moss-dark);
  padding: 14px 16px; border-radius: var(--radius-sm); font-size: .9rem;
}
.mini-line { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.mini-line:last-of-type { border-bottom: none; }
.mini-thumb { width: 48px; height: 66px; border-radius: var(--radius-sm); position: relative; flex-shrink: 0; }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.mini-thumb b {
  position: absolute; top: -6px; right: -6px;
  background: var(--bark); color: #fff; font-size: .7rem;
  width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.mini-line .grow { flex: 1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.confirm {
  max-width: 620px; margin: 0 auto; text-align: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 50px 34px;
}
.confirm-icon {
  width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--moss); color: #fff; display: flex; align-items: center; justify-content: center;
}

/* ---------- Contact / FAQ ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; }
.contact-info .item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info .item svg { flex-shrink: 0; color: var(--clay); margin-top: 4px; }
.contact-info .item h4 { font-family: var(--sans); font-size: 1rem; margin: 0 0 2px; }
.contact-info .item p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--moss-dark); color: #eadccb; padding: 64px 0 28px; margin-top: 0; }
.scripture {
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; text-align: center;
  color: #f3e6d2; max-width: 820px; margin: 0 auto 46px; line-height: 1.45;
}
.scripture span { font-style: normal; font-family: var(--sans); font-size: .85rem; color: #d2b9a0; white-space: nowrap; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-family: var(--sans); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; color: #dfe3d4; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name small { color: #b9c1a8; }
.footer-about { font-size: .92rem; color: #c3cab4; margin-top: 14px; max-width: 320px; }
.footer-bottom {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: .82rem; color: #b9c1a8;
}
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
}
.socials a:hover { background: rgba(255,255,255,.1); text-decoration: none; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translate(-50%, 140%);
  background: var(--bark); color: #fff;
  padding: 14px 22px; border-radius: 999px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 14px;
  font-weight: 600; font-size: .92rem;
  z-index: 100; transition: transform .3s ease;
  max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }
.toast a { color: #f0c99e; font-weight: 800; white-space: nowrap; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
