:root {
  --bg: #f1ebe1;
  --surface: rgba(251, 247, 241, 0.84);
  --surface-strong: #fff9f1;
  --ink: #171717;
  --muted: #5c5d60;
  --line: rgba(30, 29, 26, 0.12);
  --accent: #c87839;
  --accent-deep: #7d4318;
  --accent-soft: #f0c79a;
  --olive: #5e6960;
  --shadow: 0 24px 60px rgba(51, 42, 31, 0.12);
  --page-glow-one: rgba(255, 206, 133, 0.58);
  --page-glow-two: rgba(138, 160, 171, 0.18);
  --page-gradient-end: #eee5d8;
  --grid-line: rgba(255, 255, 255, 0.07);
  --glass-bg: rgba(255, 252, 246, 0.68);
  --glass-bg-strong: rgba(255, 248, 240, 0.75);
  --glass-border: rgba(255, 255, 255, 0.52);
  --section-bg: rgba(255, 250, 243, 0.74);
  --hero-bg: linear-gradient(135deg, rgba(255, 250, 243, 0.92), rgba(249, 233, 214, 0.74));
  --hero-panel-bg:
    linear-gradient(160deg, rgba(18, 22, 25, 0.96), rgba(70, 48, 28, 0.92)),
    radial-gradient(circle at top right, rgba(241, 191, 116, 0.34), transparent 24%);
  --featured-visual-bg:
    linear-gradient(145deg, rgba(255, 225, 190, 0.94), rgba(235, 192, 149, 0.74)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent);
  --chip-bg: rgba(255, 255, 255, 0.65);
  --button-secondary-bg: rgba(255, 255, 255, 0.55);
  --button-secondary-border: rgba(30, 29, 26, 0.08);
  --shop-button-bg: #ead2b4;
  --shop-button-text: #4f2f18;
  --shop-button-border: rgba(125, 67, 24, 0.16);
  --toggle-bg: #171717;
  --toggle-text: #f4eee6;
  --toggle-icon: #f4eee6;
  --toggle-shadow: 0 12px 24px rgba(23, 23, 23, 0.16);
  --toast-bg: rgba(31, 31, 29, 0.92);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --button-solid-bg: #171717;
  --button-solid-text: #fff;
  --cart-button-bg: #5e6d5f;
  --cart-button-text: #f8f3ec;
  --cart-count-bg: #738474;
}

html[data-theme="dark"] {
  --bg: #0f1114;
  --surface: rgba(26, 29, 34, 0.82);
  --surface-strong: #1f242b;
  --ink: #f4eee6;
  --muted: #b6aea3;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #df9d5f;
  --accent-deep: #f3c28e;
  --accent-soft: #4a3320;
  --olive: #7e8f81;
  --shadow: 0 26px 64px rgba(0, 0, 0, 0.32);
  --page-glow-one: rgba(201, 137, 76, 0.18);
  --page-glow-two: rgba(92, 129, 154, 0.12);
  --page-gradient-end: #101318;
  --grid-line: rgba(255, 255, 255, 0.05);
  --glass-bg: rgba(22, 25, 29, 0.72);
  --glass-bg-strong: rgba(22, 25, 29, 0.86);
  --glass-border: rgba(255, 255, 255, 0.08);
  --section-bg: rgba(24, 27, 31, 0.78);
  --hero-bg: linear-gradient(135deg, rgba(23, 26, 30, 0.95), rgba(31, 24, 20, 0.8));
  --hero-panel-bg:
    linear-gradient(160deg, rgba(7, 10, 13, 0.98), rgba(50, 34, 21, 0.95)),
    radial-gradient(circle at top right, rgba(241, 191, 116, 0.2), transparent 28%);
  --featured-visual-bg:
    linear-gradient(145deg, rgba(77, 54, 36, 0.96), rgba(41, 31, 23, 0.86)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  --chip-bg: rgba(255, 255, 255, 0.08);
  --button-secondary-bg: rgba(255, 255, 255, 0.06);
  --button-secondary-border: rgba(255, 255, 255, 0.08);
  --shop-button-bg: #5c4633;
  --shop-button-text: #f6e7d4;
  --shop-button-border: rgba(243, 194, 142, 0.18);
  --toggle-bg: #f4eee6;
  --toggle-text: #171717;
  --toggle-icon: #171717;
  --toggle-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  --toast-bg: rgba(9, 10, 12, 0.94);
  --button-solid-bg: #f4eee6;
  --button-solid-text: #171717;
  --cart-button-bg: #e0b07a;
  --cart-button-text: #171717;
  --cart-count-bg: #c79257;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

#featured,
#shop,
#story,
#faq {
  scroll-margin-top: 100px;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, var(--page-glow-one), transparent 28%),
    radial-gradient(circle at top right, var(--page-glow-two), transparent 24%),
    linear-gradient(180deg, #f7f0e6 0%, var(--page-gradient-end) 100%);
  transition:
    background-color 220ms ease,
    color 220ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 90%);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 20px auto 32px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  background: var(--surface-strong);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transform: translateZ(0);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 12px;
  min-width: 220px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  min-width: 220px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
}

.site-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(460px, calc(100% - 560px));
  gap: 20px;
}

.site-nav a,
.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--accent-deep);
}

.cart-button,
.button,
.theme-toggle {
  border: 0;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--cart-button-bg);
  color: var(--cart-button-text);
  font: inherit;
  text-decoration: none;
}

.cart-button:hover,
.button:hover,
.theme-toggle:hover {
  transform: translateY(-1px);
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--cart-count-bg);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--toggle-bg);
  box-shadow: var(--toggle-shadow);
  color: var(--toggle-text);
  font: inherit;
}

.theme-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--toggle-icon);
}

.theme-toggle__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.theme-toggle__icon-moon svg path {
  fill: currentColor;
  stroke: none;
}

.theme-toggle__icon-sun,
html[data-theme="dark"] .theme-toggle__icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle__icon-sun {
  display: inline-flex;
}

.theme-toggle__label {
  font-weight: 700;
}

html[data-theme-action="light"] .theme-toggle__label {
  font-size: 0;
}

html[data-theme-action="light"] .theme-toggle__label::after {
  content: "Light";
  font-size: 1rem;
}

main {
  display: grid;
  gap: 32px;
  margin-top: 28px;
}

.hero,
.featured-section,
.shop-section,
.story-section,
.faq-section {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  min-height: 560px;
  background: var(--hero-bg), var(--surface);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

.checkout-section-heading h2,
.checkout-item h3 {
  margin: 0;
  font-family: "Baskerville", "Iowan Old Style", "Palatino Linotype", serif;
  line-height: 1.02;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 20px 12px;
}

.eyebrow,
.product-tag {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-deep);
  font-size: 0.76rem;
  font-weight: 800;
}

.hero h1,
.section-heading h2,
.featured-details h3,
.product-card h3,
.story-card h3 {
  margin: 0;
  font-family: "Baskerville", "Iowan Old Style", "Palatino Linotype", serif;
  line-height: 1.02;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 6vw, 5.5rem);
}

.hero-text,
.featured-details p,
.product-card p,
.story-card p,
.faq-list p,
.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions,
.feature-list,
.story-layout,
.price-row,
.site-footer {
  display: flex;
}

.hero-actions {
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.checkout-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.checkout-card--summary {
  position: sticky;
  top: 112px;
  background: var(--surface-strong);
}

.checkout-section-heading h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.checkout-form {
  display: grid;
  gap: 18px;
}

.checkout-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--button-secondary-border);
  border-radius: 18px;
  background: var(--surface-strong);
  color: var(--ink);
  font: inherit;
}

.checkout-form textarea {
  resize: vertical;
}

.checkout-form input::placeholder,
.checkout-form textarea::placeholder {
  color: var(--muted);
}

.checkout-form__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.checkout-form__actions {
  display: grid;
  gap: 12px;
}

.checkout-helper,
.checkout-empty p,
.checkout-item p,
.checkout-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.checkout-status {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--chip-bg);
  border: 1px solid var(--button-secondary-border);
}

.checkout-empty {
  display: grid;
  gap: 14px;
}

.checkout-items {
  display: grid;
  gap: 16px;
}

.checkout-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.checkout-item + .checkout-item {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.checkout-item__image {
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  background-color: var(--surface-strong);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.checkout-item__content {
  display: grid;
  gap: 14px;
}

.checkout-item__top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: start;
}

.checkout-item__top strong {
  font-size: 1.05rem;
}

.checkout-item__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-quantity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--button-secondary-border);
}

.checkout-quantity button,
.checkout-remove {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.checkout-quantity button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--surface-strong);
}

.checkout-remove {
  color: var(--accent-deep);
  font-weight: 700;
}

.checkout-totals {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
}

.checkout-totals div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.checkout-totals dt,
.checkout-totals dd {
  margin: 0;
}

.checkout-totals__grand {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.checkout-totals__grand dd {
  font-size: 1.2rem;
}

.checkout-form button[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font: inherit;
}

.button-primary {
  background: var(--button-solid-bg);
  color: var(--button-solid-text);
}


.button-secondary {
  background: var(--button-secondary-bg);
  color: var(--ink);
  border: 1px solid var(--button-secondary-border);
}

.hero-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.hero-link:hover {
  color: var(--accent-deep);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-notes span {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--button-secondary-border);
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-panel {
  position: relative;
  min-height: 430px;
  border-radius: calc(var(--radius-lg) - 6px);
  overflow: hidden;
  background: var(--hero-panel-bg);
  display: grid;
  align-content: end;
  gap: 22px;
  padding: 32px;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel::before {
  width: 220px;
  height: 220px;
  top: 30px;
  right: -40px;
}

.hero-panel::after {
  width: 300px;
  height: 300px;
  bottom: -120px;
  left: -48px;
}

.hero-brand-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  max-width: 360px;
  padding: 24px;
  border-radius: 26px;
  background: rgba(14, 16, 19, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fffaf3;
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.2);
}

.hero-brand-card img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 18px;
}

.hero-brand-card span,
.hero-brand-card p {
  margin: 0;
  color: rgba(255, 250, 243, 0.78);
}

.hero-brand-card strong {
  max-width: 12ch;
  font-size: clamp(2rem, 3vw, 3.1rem);
  font-family: "Baskerville", "Iowan Old Style", "Palatino Linotype", serif;
  line-height: 1;
}

.hero-principles {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-principles span {
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.12);
  color: rgba(255, 250, 243, 0.86);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.trust-bar article {
  display: grid;
  gap: 6px;
}

.trust-bar p {
  margin: 0;
  color: var(--muted);
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.section-heading h2 {
  max-width: 30ch;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.featured-product {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  padding: 24px;
  background: var(--surface-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.featured-visual {
  position: relative;
  min-height: 400px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--featured-visual-bg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.featured-visual--image::before,
.featured-visual--image::after {
  display: none;
}

.featured-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--glass-bg);
  font-weight: 700;
}

.featured-shape {
  position: absolute;
  box-shadow: 0 30px 60px rgba(88, 48, 27, 0.18);
}

.featured-shape-one {
  top: 178px;
  left: 128px;
  width: 180px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(45, 30, 21, 0.92), rgba(119, 78, 43, 0.92));
}

.featured-shape-two {
  top: 126px;
  right: 68px;
  width: 144px;
  height: 12px;
  border-radius: 999px;
  transform: rotate(22deg);
  background: linear-gradient(90deg, rgba(58, 38, 26, 0.9), rgba(135, 92, 55, 0.88));
}

.featured-visual::before,
.featured-visual::after {
  content: "";
  position: absolute;
  top: 128px;
  width: 148px;
  height: 132px;
  border: 8px solid rgba(58, 38, 26, 0.95);
  border-radius: 44px;
  background:
    linear-gradient(180deg, rgba(133, 86, 43, 0.28), rgba(25, 25, 26, 0.35)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 40%);
}

.featured-visual::before {
  left: 78px;
}

.featured-visual::after {
  right: 78px;
}

.featured-details {
  display: grid;
  align-content: center;
  gap: 18px;
}

.featured-details h3 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

.price-row {
  align-items: baseline;
  gap: 14px;
}

.price-row strong {
  font-size: 2rem;
}

.price-row span {
  color: var(--muted);
}

.feature-list {
  flex-wrap: wrap;
  gap: 10px;
}

.feature-list span {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--button-secondary-border);
}

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

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.product-art {
  position: relative;
  aspect-ratio: 1 / 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.product-art--image::before,
.product-art--image::after {
  display: none;
}

.product-art::before,
.product-art::after {
  content: "";
  position: absolute;
  top: 38%;
  width: 32%;
  height: 24%;
  border: 5px solid rgba(24, 24, 24, 0.95);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 30%),
    linear-gradient(180deg, rgba(57, 49, 43, 0.18), rgba(18, 18, 18, 0.38));
}

.product-art::before {
  left: 18%;
}

.product-art::after {
  right: 18%;
}

.product-art-sand,
.product-art-slate,
.product-art-copper,
.product-art-olive {
  background-size: cover;
}

.product-art-sand::after,
.product-art-slate::after,
.product-art-copper::after,
.product-art-olive::after {
  box-shadow: -54px -10px 0 -48px rgba(24, 24, 24, 0.95);
}

.product-art-sand {
  background:
    radial-gradient(circle at 48% 26%, rgba(255, 255, 255, 0.42), transparent 24%),
    linear-gradient(145deg, #e0c39a, #b57d48);
}

.product-art-slate {
  background:
    radial-gradient(circle at 45% 28%, rgba(255, 255, 255, 0.38), transparent 24%),
    linear-gradient(145deg, #8f9aa8, #596170);
}

.product-art-copper {
  background:
    radial-gradient(circle at 52% 28%, rgba(255, 255, 255, 0.34), transparent 22%),
    linear-gradient(145deg, #d08b57, #8f5027);
}

.product-art-olive {
  background:
    radial-gradient(circle at 48% 30%, rgba(255, 255, 255, 0.34), transparent 22%),
    linear-gradient(145deg, #88967d, #526057);
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.product-card-body .add-to-cart {
  margin-top: auto;
  background: var(--shop-button-bg);
  color: var(--shop-button-text);
  border: 1px solid var(--shop-button-border);
}

.product-price {
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
}

.story-layout {
  gap: 20px;
}

.story-card {
  display: grid;
  align-content: start;
  gap: 16px;
  flex: 1;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.story-card-dark {
  background: linear-gradient(135deg, rgba(31, 31, 29, 0.95), rgba(80, 50, 30, 0.92));
  color: #fffaf3;
}

.story-card-dark p {
  color: rgba(255, 250, 243, 0.78);
}

.story-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list details p {
  padding-top: 12px;
}

.site-footer {
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.checkout-footer {
  margin-top: 42px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--toast-bg);
  color: #fff;
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.theme-toggle:focus-visible,
.cart-button:focus-visible,
.button:focus-visible,
.site-nav a:focus-visible,
.site-footer a:focus-visible,
.faq-list summary:focus-visible,
.checkout-quantity button:focus-visible,
.checkout-remove:focus-visible,
.checkout-form input:focus-visible,
.checkout-form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero,
.trust-bar,
.featured-product,
.product-card,
.story-card,
.faq-list details {
  animation: rise 650ms ease both;
}

.trust-bar {
  animation-delay: 80ms;
}

.featured-product {
  animation-delay: 120ms;
}

.product-card:nth-child(2) {
  animation-delay: 90ms;
}

.product-card:nth-child(3) {
  animation-delay: 130ms;
}

.product-card:nth-child(4) {
  animation-delay: 170ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1040px) {
  .site-header,
  .site-nav {
    flex-wrap: wrap;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero,
  .featured-product,
  .story-layout {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-card--summary {
    position: static;
  }

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

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 18px, 1180px);
    margin-top: 10px;
  }

  .site-header {
    position: static;
    border-radius: 28px;
  }

  .site-nav {
    position: static;
    transform: none;
    width: auto;
    justify-content: center;
    gap: 14px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .featured-section,
  .shop-section,
  .story-section,
  .faq-section,
  .checkout-card,
  .site-footer {
    padding: 20px;
  }

  .hero h1 {
    max-width: 10ch;
  }

  .hero-panel {
    min-height: 360px;
    padding: 22px;
  }

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

  .trust-bar,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .checkout-form__row,
  .checkout-item {
    grid-template-columns: 1fr;
  }

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

  .featured-visual {
    min-height: 300px;
  }

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