/* ==========================================================================
   GreenNest Garden & Outdoor — global stylesheet
   1. Tokens
   2. Base / reset
   3. Layout helpers
   4. Buttons & forms
   5. Header & navigation
   6. Hero
   7. Value strip
   8. Shop
   9. Article
  10. About
  11. Newsletter
  12. Contact
  13. Footer
  14. Cart drawer, modal, toast
  15. Cookie banner, back to top
  16. Responsive
  17. Motion & print
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --green-900: #16301f;
  --green-800: #1f3d2b;
  --green-700: #2f5d3f;
  --green-500: #6b8f5e;
  --green-200: #d7e3cf;
  --cream: #f8f5ee;
  --cream-200: #efe9dc;
  --clay: #b9683f;
  --clay-dark: #99522f;
  --ink: #21261f;
  --ink-soft: #4d564b;
  --line: #dfd8c8;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 6px rgba(22, 48, 31, 0.06);
  --shadow: 0 14px 34px rgba(22, 48, 31, 0.10);
  --shadow-lg: 0 26px 60px rgba(22, 48, 31, 0.18);
  --container: 1180px;
  --font-body: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-ui: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: 180ms ease;
}

/* 2. Base ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

body.no-scroll { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.2;
  color: var(--green-900);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }

a { color: var(--green-700); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--clay-dark); }

ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: 0.4em; }

address { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--green-800);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transition: top var(--transition);
}
.skip-link:focus { top: 12px; color: var(--white); }

/* 3. Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 84px 0; }
section[id] { scroll-margin-top: 92px; }

.section-head { max-width: 720px; margin-bottom: 44px; }

.section-lead { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay-dark);
  margin: 0 0 12px;
}

/* 4. Buttons & forms ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background-color: var(--green-800);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background-color: var(--green-700); color: var(--white); }

.btn-ghost {
  background-color: transparent;
  border-color: var(--green-800);
  color: var(--green-800);
}
.btn-ghost:hover { background-color: var(--green-800); color: var(--white); }

.btn-text {
  background: none;
  border: none;
  color: var(--green-700);
  padding: 12px 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-text:hover { color: var(--clay-dark); background: none; }

.btn-sm { padding: 11px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }

.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.link-button:hover { color: var(--clay-dark); }

label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  color: var(--green-900);
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(107, 143, 94, 0.22);
  outline: none;
}
textarea { resize: vertical; min-height: 120px; }

.field { margin-bottom: 16px; }

.field.has-error input,
.field.has-error textarea,
input.has-error { border-color: var(--clay); background: #fdf3ef; }

.form-feedback {
  min-height: 1.3em;
  margin: 12px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}
.form-feedback.is-error { color: var(--clay-dark); }
.form-feedback.is-success { color: var(--green-700); }

.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 10px 0 0;
  line-height: 1.55;
}

.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin: 4px 0 18px;
  line-height: 1.5;
}
.form-consent input { margin-top: 4px; flex: 0 0 auto; }
.form-consent label { font-size: 0.84rem; font-weight: 400; margin: 0; color: var(--ink-soft); }

/* 5. Header ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: rgba(248, 245, 238, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled { box-shadow: 0 6px 22px rgba(22, 48, 31, 0.08); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--green-900);
  flex: 0 0 auto;
}
.brand-logo { border-radius: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--green-900);
}
.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--clay-dark);
}

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav li { margin: 0; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--green-900);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}
.main-nav a:hover,
.main-nav a.is-active { border-bottom-color: var(--clay); color: var(--green-700); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-900);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.cart-button:hover { border-color: var(--green-500); box-shadow: var(--shadow-sm); }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--green-800);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--green-800);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 6. Hero ------------------------------------------------------------------ */
.hero {
  padding: 66px 0 74px;
  background:
    radial-gradient(1100px 460px at 12% -10%, #eef3e7 0%, rgba(238, 243, 231, 0) 70%),
    var(--cream);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-lead { font-size: 1.06rem; color: var(--ink-soft); max-width: 54ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 26px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.hero-points li {
  position: relative;
  padding-left: 20px;
  margin: 0;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-500);
}

.hero-media { margin: 0; }
.hero-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-media figcaption {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding-left: 4px;
  border-left: 3px solid var(--green-200);
  padding-left: 12px;
}

/* 7. Value strip ----------------------------------------------------------- */
.value-strip {
  background: var(--green-900);
  color: #e7eee1;
  padding: 40px 0;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.value-item p { margin: 0; font-size: 0.92rem; color: #c6d3bc; }
.value-title {
  font-size: 1.08rem;
  color: var(--white);
  margin-bottom: 6px;
}

/* 8. Shop ------------------------------------------------------------------ */
.shop { background: var(--cream); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--green-200);
}

.product-media { background: var(--cream-200); }
.product-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.product-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }

.product-title { margin-bottom: 6px; }

.product-price {
  font-family: var(--font-ui);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--clay-dark);
  margin: 0 0 12px;
}

.product-desc { font-size: 0.94rem; color: var(--ink-soft); }

.product-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.87rem;
  color: var(--ink-soft);
}
.product-specs li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
}
.product-specs li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--green-500);
  font-weight: 700;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  flex-wrap: wrap;
}

.shop-note {
  margin: 32px 0 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

/* 9. Article --------------------------------------------------------------- */
.article-section { background: var(--white); }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}

.article-body { max-width: 68ch; }
.article-body > h2 { margin-bottom: 12px; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.article-body p { font-size: 1.02rem; }
.article-body .lede { font-size: 1.1rem; color: #364033; }

.article-body h3 {
  margin-top: 34px;
  padding-top: 4px;
  font-size: 1.32rem;
}

.article-figure { margin: 30px 0; }
.article-figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.article-figure figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.article-quote {
  margin: 32px 0;
  padding: 22px 26px;
  background: var(--cream);
  border-left: 4px solid var(--clay);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-quote p {
  font-family: var(--font-body);
  font-size: 1.18rem;
  font-style: italic;
  color: var(--green-900);
  margin-bottom: 8px;
}
.article-quote cite {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.article-callout {
  margin-top: 38px;
  padding: 26px 28px;
  background: var(--green-900);
  border-radius: var(--radius);
  color: #dfe8d8;
}
.article-callout h4 { color: var(--white); font-size: 1.2rem; }
.article-callout p { color: #cdd9c4; font-size: 0.94rem; margin-bottom: 16px; }

.article-aside {
  position: sticky;
  top: 100px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.article-aside h3 { font-size: 1.1rem; }

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.9rem;
}
.checklist li {
  position: relative;
  padding: 8px 0 8px 26px;
  border-bottom: 1px dashed var(--line);
  margin: 0;
  color: var(--ink-soft);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--clay);
}

.aside-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.aside-card h4 { margin-bottom: 6px; }
.aside-card p { font-size: 0.86rem; color: var(--ink-soft); margin: 0; }

/* 10. About ---------------------------------------------------------------- */
.about { background: var(--cream); }
.about-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 52px;
  align-items: center;
}
.about-copy p { color: var(--ink-soft); }
.about-media { margin: 0; }
.about-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.about-points {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.about-points li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  color: var(--ink-soft);
}
.about-points strong { color: var(--green-900); }

/* 11. Newsletter ----------------------------------------------------------- */
.newsletter { background: var(--green-800); color: #e3ecd9; padding: 60px 0; }
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.newsletter h2 { color: var(--white); }
.newsletter p { color: #c8d6bd; margin-bottom: 0; }
.newsletter-form { display: block; }
.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}
.newsletter-form .form-feedback,
.newsletter-form .form-note { grid-column: 1 / -1; }
.newsletter-form input[type="email"] {
  background: rgba(255, 255, 255, 0.96);
  border-color: transparent;
}
.newsletter-form .btn-primary {
  background: var(--clay);
  color: var(--white);
}
.newsletter-form .btn-primary:hover { background: var(--clay-dark); }
.newsletter-form .form-note { color: #b9c9ad; }
.newsletter-form .form-note a { color: #e8f0e0; }
.newsletter-form .form-feedback.is-success { color: #d8f0c9; }
.newsletter-form .form-feedback.is-error { color: #ffd9c9; }

/* 12. Contact -------------------------------------------------------------- */
.contact { background: var(--white); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-copy p { color: var(--ink-soft); }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  border-top: 1px solid var(--line);
}
.contact-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  font-size: 0.95rem;
}
.contact-label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--clay-dark);
  margin-bottom: 4px;
}
.contact-list p { margin: 0; }

.contact-form {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.contact-form h3 { margin-bottom: 18px; }

/* 13. Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--green-900);
  color: #c3d0b9;
  padding: 60px 0 24px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.brand-footer { margin-bottom: 14px; }
.brand-footer .brand-name { color: var(--white); }
.brand-footer .brand-sub { color: #a8bd9c; }
.footer-brand p { color: #a9bda0; max-width: 32ch; margin: 0; }

.footer-col h2 {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #eaf1e4;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a,
.footer-col .link-button { color: #c3d0b9; text-decoration: none; }
.footer-col a:hover,
.footer-col .link-button:hover { color: var(--white); text-decoration: underline; }
.footer-col address { color: #a9bda0; line-height: 1.7; }
.footer-col address a { color: #c3d0b9; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.8rem;
  color: #9db293;
}
.footer-bottom p { margin: 0; }
.footer-legal a { color: #c3d0b9; }

/* 14. Cart drawer, modal, toast -------------------------------------------- */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  background: rgba(16, 32, 22, 0.45);
}
.cart-drawer.is-open { display: block; }

.cart-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(400px, 100%);
  height: 100%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 220ms ease;
}
.cart-drawer.is-visible .cart-drawer-panel { transform: translateX(0); }

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.cart-drawer-head h2 { font-size: 1.25rem; margin: 0; }

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--green-900);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}
.icon-button:hover { background: var(--green-800); color: var(--white); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px;
}
.cart-empty { color: var(--ink-soft); font-size: 0.92rem; }

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item-name { font-weight: 600; font-size: 0.94rem; color: var(--green-900); }
.cart-item-meta { font-size: 0.82rem; color: var(--ink-soft); }
.cart-item-price { font-weight: 700; font-size: 0.92rem; color: var(--clay-dark); }
.cart-item-remove {
  grid-column: 2;
  justify-self: end;
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-decoration: underline;
  cursor: pointer;
}
.cart-item-remove:hover { color: var(--clay-dark); }

.cart-drawer-foot {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.cart-total { font-size: 0.95rem; margin: 0 0 4px; }
.cart-total strong { font-size: 1.1rem; color: var(--green-900); }
.cart-note { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 14px; }
.cart-drawer-foot .btn { margin-bottom: 10px; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(16, 32, 22, 0.55);
  overflow-y: auto;
}
.modal.is-open { display: flex; }

.modal-panel {
  position: relative;
  width: min(860px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius) 0 0 var(--radius);
  min-height: 260px;
}
.modal-body { padding: 30px 30px 32px; }
.modal-body h2 { font-size: 1.5rem; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 140;
  max-width: min(420px, calc(100% - 32px));
  padding: 14px 20px;
  background: var(--green-900);
  color: var(--white);
  font-size: 0.9rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* 15. Cookie banner, back to top ------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  background: var(--cream);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(22, 48, 31, 0.12);
  padding: 18px 0;
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.cookie-text h2 {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  margin-bottom: 4px;
  letter-spacing: 0;
}
.cookie-text p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
  max-width: 78ch;
  line-height: 1.55;
}
.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  width: 46px;
  height: 46px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--green-800);
  color: var(--white);
  border: 0;
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}
.back-to-top:hover { background: var(--green-700); transform: translateY(-2px); }
.back-to-top.is-visible { display: inline-flex; }
body.cookie-open .back-to-top { bottom: 120px; }

/* Privacy policy page ------------------------------------------------------ */
.page-hero {
  background: var(--green-900);
  color: #dfe8d8;
  padding: 56px 0;
}
.page-hero .eyebrow { color: #e2a882; }
.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero p { color: #b9c9ad; margin: 0; max-width: 70ch; }

.policy-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
  padding: 64px 0 84px;
}
.policy-toc {
  position: sticky;
  top: 100px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.policy-toc h2 {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-dark);
  margin-bottom: 12px;
}
.policy-toc ul { list-style: none; padding: 0; margin: 0; font-size: 0.86rem; }
.policy-toc li { margin-bottom: 8px; }
.policy-toc a { text-decoration: none; color: var(--green-900); }
.policy-toc a:hover { color: var(--clay-dark); text-decoration: underline; }

.policy-content { max-width: 74ch; }
.policy-content h2 {
  font-size: 1.45rem;
  scroll-margin-top: 96px;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.policy-content h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.policy-content h3 { font-size: 1.1rem; margin-top: 24px; }
.policy-content p,
.policy-content li { color: var(--ink-soft); }
.policy-content address {
  margin: 0 0 1.2em;
  color: var(--ink-soft);
  line-height: 1.7;
}
.policy-content .btn { margin-top: 6px; }
.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  margin: 18px 0 24px;
  background: var(--white);
}
.policy-table th,
.policy-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.policy-table th { background: var(--cream-200); font-weight: 700; color: var(--green-900); }
.policy-updated {
  display: inline-block;
  font-size: 0.8rem;
  background: var(--green-200);
  color: var(--green-900);
  border-radius: 999px;
  padding: 5px 14px;
  font-weight: 600;
  margin-bottom: 18px;
}

/* 16. Responsive ----------------------------------------------------------- */
@media (max-width: 1040px) {
  .hero-inner { gap: 36px; }
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .article-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .policy-layout { grid-template-columns: 1fr; gap: 32px; }
  .policy-toc { position: static; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    padding: 12px 24px 20px;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .main-nav li:last-child a { border-bottom: 0; }

  .hero-inner,
  .about-inner,
  .newsletter-inner,
  .contact-inner { grid-template-columns: 1fr; }

  .hero { padding: 40px 0 52px; }
  .hero-media { order: -1; }
  .section { padding: 60px 0; }
  .value-grid { grid-template-columns: 1fr; gap: 22px; }
  .product-grid { grid-template-columns: 1fr; }
  .newsletter-form { grid-template-columns: 1fr; }
  .newsletter-form .btn-primary { width: 100%; }
  .cookie-inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .cookie-actions { flex-wrap: wrap; }
  .cookie-actions .btn { flex: 1 1 auto; }
  body.cookie-open .back-to-top { bottom: 190px; }
  .modal-panel { grid-template-columns: 1fr; }
  .modal-image { border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 16 / 9; }
}

@media (max-width: 620px) {
  .container { padding: 0 18px; }
  .header-inner { gap: 10px; min-height: 68px; }
  .brand-name { font-size: 1.18rem; }
  .brand-sub { font-size: 0.6rem; letter-spacing: 0.13em; }
  .cart-label { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .article-callout { padding: 22px; }
  .hero-actions .btn { width: 100%; }
  .product-actions .btn-primary { flex: 1 1 auto; }
  .modal { padding: 12px; }
  .modal-body { padding: 22px; }
  .cookie-text p { font-size: 0.8rem; }
}

/* 17. Motion & print ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .product-card:hover { transform: none; }
}

@media print {
  .site-header,
  .cookie-banner,
  .back-to-top,
  .cart-drawer,
  .modal,
  .toast,
  .newsletter,
  .hero-actions { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
