:root {
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-sm: 0 10px 24px rgba(24, 35, 52, 0.09);
  --shadow-md: 0 16px 34px rgba(24, 35, 52, 0.14);
  --shadow-lg: 0 28px 70px rgba(24, 35, 52, 0.2);
}

body[data-theme="pastel"] {
  --font-body: "Nunito", "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  --font-head: "Be Vietnam Pro", "Nunito", "Segoe UI", Arial, sans-serif;
  --bg-main: #fffaf4;
  --bg-alt: #fffdf8;
  --bg-soft: #fff5ee;
  --text: #24324a;
  --muted: #5f6f85;
  --line: #eadfcd;
  --line-soft: #f2e9db;
  --primary: #ff8a5b;
  --primary-strong: #e86c3a;
  --secondary: #45bdb5;
  --accent: #ffd166;
  --top-a: #3ea69f;
  --top-b: #56c4bc;
  --menu-hover: #fef1df;
  --hero-a: #ffe8d8;
  --hero-b: #d6f4ef;
  --hero-c: #fff9ee;
  --trust-bg: rgba(255, 255, 255, 0.78);
  --trust-line: #eddcc9;
  --promo-a: #4ecdc4;
  --promo-b: #6fb1ff;
  --promo-c: #74d39f;
  --footer-bg: #16243a;
  --footer-link: #cae2ff;
  --chip-active: #ff8a5b;
  --chip-active-text: #ffffff;
  --card-bg: #ffffff;
  --cover-1-a: #ffd7df;
  --cover-1-b: #ffc6b3;
  --cover-2-a: #d7f7f3;
  --cover-2-b: #bfe9ff;
  --cover-3-a: #fff2c5;
  --cover-3-b: #ffd8a8;
  --cover-4-a: #e3ddff;
  --cover-4-b: #d0f0fd;
}

body[data-theme="learn"] {
  --font-body: "Be Vietnam Pro", "Nunito", "Segoe UI", Arial, sans-serif;
  --font-head: "Be Vietnam Pro", "Nunito", "Segoe UI", Arial, sans-serif;
  --bg-main: #f8fbff;
  --bg-alt: #ffffff;
  --bg-soft: #eef5ff;
  --text: #10233c;
  --muted: #536a87;
  --line: #d8e4f3;
  --line-soft: #e9f0fa;
  --primary: #1d4ed8;
  --primary-strong: #1e40af;
  --secondary: #22c55e;
  --accent: #f59e0b;
  --top-a: #0f4dc7;
  --top-b: #1d65df;
  --menu-hover: #edf4ff;
  --hero-a: #dbeafe;
  --hero-b: #dcfce7;
  --hero-c: #f8fbff;
  --trust-bg: rgba(255, 255, 255, 0.9);
  --trust-line: #d6e3f3;
  --promo-a: #1d4ed8;
  --promo-b: #3b82f6;
  --promo-c: #22c55e;
  --footer-bg: #0f1b30;
  --footer-link: #bfdbfe;
  --chip-active: #1d4ed8;
  --chip-active-text: #ffffff;
  --card-bg: #ffffff;
  --cover-1-a: #dbeafe;
  --cover-1-b: #bfdbfe;
  --cover-2-a: #dcfce7;
  --cover-2-b: #bbf7d0;
  --cover-3-a: #fff3c4;
  --cover-3-b: #fde68a;
  --cover-4-a: #e9d5ff;
  --cover-4-b: #c4b5fd;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 16% 8%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 28%),
    radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--secondary) 25%, transparent), transparent 25%),
    linear-gradient(180deg, var(--bg-alt), var(--bg-main));
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 45%, #fff);
  outline-offset: 2px;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1140px, calc(100% - 2.6rem));
  margin-inline: auto;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.42;
  z-index: -1;
  pointer-events: none;
}

.orb-a {
  width: 260px;
  height: 260px;
  background: color-mix(in srgb, var(--accent) 60%, #fff);
  top: -80px;
  left: -30px;
}

.orb-b {
  width: 220px;
  height: 220px;
  background: color-mix(in srgb, var(--secondary) 55%, #fff);
  top: 60px;
  right: -40px;
}

.orb-c {
  width: 280px;
  height: 280px;
  background: color-mix(in srgb, var(--primary) 40%, #fff);
  bottom: -130px;
  left: 38%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar {
  margin: 0;
  background: linear-gradient(90deg, var(--top-a), var(--top-b));
  color: #f6fbff;
  font-size: 0.86rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.56rem 1.2rem;
}

.topbar p {
  margin: 0;
}

.accent {
  color: #fff7c7;
}

.header-shell {
  background: color-mix(in srgb, var(--bg-alt) 84%, transparent);
  backdrop-filter: blur(11px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

.main-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.2rem;
  align-items: center;
  padding: 0.9rem 0;
}

.mobile-toggle {
  display: none;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent) 35%, #fff);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 220px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 32%, transparent);
  background: #fff;
  border: 1px solid var(--line);
}

.brand-badge {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(150deg, var(--primary), color-mix(in srgb, var(--primary) 80%, #fff));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 45%, transparent);
}

.brand strong {
  font-family: var(--font-head);
  font-size: 1.34rem;
  letter-spacing: 0.01em;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  display: block;
}

.search-box input {
  width: 100%;
  padding: 0.82rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
  border-color: color-mix(in srgb, var(--primary) 52%, #fff);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent);
}

.actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.action-link {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.cart-btn {
  border: none;
  border-radius: 999px;
  background: linear-gradient(130deg, var(--text), color-mix(in srgb, var(--text) 80%, #fff));
  color: #fff;
  padding: 0.58rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.25);
}

.cart-btn span {
  background: #fff;
  color: #18283a;
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 0.1rem 0.45rem;
  margin-left: 0.36rem;
}

.menu {
  display: flex;
  align-items: center;
  gap: 0.68rem;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 0.92rem;
}

.menu a {
  padding: 0.43rem 0.82rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.93rem;
  color: color-mix(in srgb, var(--text) 80%, #fff);
  transition: background 0.2s ease, color 0.2s ease;
}

.menu a:hover {
  background: var(--menu-hover);
  color: var(--text);
}

main {
  position: relative;
}

section {
  margin-top: 4rem;
}

.theme-switcher {
  margin-top: 1.2rem;
  background: var(--trust-bg);
  border: 1px solid var(--trust-line);
  border-radius: 14px;
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.theme-switcher p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.theme-options {
  display: flex;
  gap: 0.58rem;
}

.theme-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.44rem 0.8rem;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.theme-chip.active {
  background: var(--chip-active);
  color: var(--chip-active-text);
  border-color: var(--chip-active);
}

.hero {
  margin-top: 1.1rem;
  padding: 2.65rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(125deg, color-mix(in srgb, var(--hero-c) 88%, #fff), color-mix(in srgb, var(--hero-a) 70%, #fff)),
    linear-gradient(35deg, var(--hero-b), var(--hero-a));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--secondary) 28%, transparent), transparent 68%);
  right: -120px;
  top: -120px;
}

.hero::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 22%, transparent), transparent 68%);
  left: -90px;
  bottom: -130px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  margin: 0;
  color: color-mix(in srgb, var(--secondary) 75%, #fff);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.33rem 0.78rem;
  border: 1px solid color-mix(in srgb, var(--secondary) 40%, #fff);
  background: color-mix(in srgb, var(--secondary) 11%, #fff);
}

.hero h1 {
  margin: 0.8rem 0 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.9rem, 3vw, 3.05rem);
  line-height: 1.09;
  max-width: 16ch;
}

.hero p {
  color: color-mix(in srgb, var(--text) 74%, #fff);
  max-width: 56ch;
  line-height: 1.58;
}

.hero-cta {
  display: flex;
  gap: 0.82rem;
  margin-block: 1.22rem 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.67rem 1.2rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(130deg, var(--primary), color-mix(in srgb, var(--primary) 82%, #fff));
  color: #fff;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--primary) 32%, transparent);
}

.btn-primary:hover {
  background: linear-gradient(130deg, var(--primary-strong), var(--primary));
}

.btn-secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.hero-metrics {
  display: flex;
  gap: 1rem;
}

.hero-metrics article {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 0.65rem 0.8rem;
  min-width: 108px;
  box-shadow: var(--shadow-sm);
}

.hero-metrics strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.1rem;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.79rem;
}

.hero-art {
  position: relative;
  min-height: 336px;
  border-radius: 22px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--hero-c) 45%, transparent), transparent),
    linear-gradient(145deg, color-mix(in srgb, var(--hero-a) 75%, #fff), color-mix(in srgb, var(--hero-b) 80%, #fff));
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}

.hero-main-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.book {
  position: absolute;
  width: 170px;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  animation: floatBook 5.5s ease-in-out infinite;
  z-index: 2;
}

.book-a {
  left: 14%;
  top: 16%;
  background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 70%, #fff), color-mix(in srgb, var(--accent) 70%, #fff));
  transform: rotate(-8deg);
}

.book-b {
  right: 16%;
  top: 10%;
  background: linear-gradient(160deg, color-mix(in srgb, var(--secondary) 75%, #fff), color-mix(in srgb, var(--primary) 45%, #fff));
  transform: rotate(7deg);
  animation-delay: 0.6s;
}

.book-c {
  left: 35%;
  bottom: 9%;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 72%, #fff), color-mix(in srgb, var(--secondary) 54%, #fff));
  animation-delay: 1.2s;
}

@keyframes floatBook {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -7px;
  }
}

.hero-note {
  position: absolute;
  background: rgba(255, 255, 255, 0.83);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.55rem 0.72rem;
  box-shadow: var(--shadow-sm);
  z-index: 3;
}

.hero-note strong {
  display: block;
  font-family: var(--font-head);
}

.hero-note span {
  color: var(--muted);
  font-size: 0.76rem;
}

.note-a {
  top: 14px;
  left: 14px;
}

.note-b {
  right: 14px;
  bottom: 14px;
}

.trust-strip {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.trust-strip article {
  background: var(--trust-bg);
  border: 1px solid var(--trust-line);
  border-radius: 16px;
  padding: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.trust-strip strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.97rem;
}

.trust-strip span {
  color: var(--muted);
  font-size: 0.85rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.14rem;
}

.section-eyebrow {
  margin: 0 0 0.28rem;
  color: color-mix(in srgb, var(--secondary) 75%, #fff);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.38rem, 2.1vw, 2.02rem);
}

.section-heading a {
  color: color-mix(in srgb, var(--secondary) 88%, #fff);
  font-weight: 700;
  font-size: 0.92rem;
}

.section-heading a:hover {
  text-decoration: underline;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.collection-card {
  background: linear-gradient(160deg, #fff, color-mix(in srgb, var(--bg-soft) 70%, #fff));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.1rem;
  min-height: 176px;
  position: relative;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.collection-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -45px;
  bottom: -56px;
  border-radius: 50%;
  background: linear-gradient(150deg, color-mix(in srgb, var(--primary) 26%, transparent), color-mix(in srgb, var(--secondary) 24%, transparent));
}

.collection-icon {
  font-size: 1.3rem;
}

.collection-card h3 {
  margin: 0.52rem 0 0;
  font-family: var(--font-head);
}

.collection-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.54;
  max-width: 24ch;
}

.collection-card a {
  position: relative;
  z-index: 1;
  color: color-mix(in srgb, var(--secondary) 88%, #fff);
  font-weight: 700;
  font-size: 0.88rem;
}

.toolbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.44rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 700;
}

.sort-wrap select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: color-mix(in srgb, var(--text) 92%, #fff);
  padding: 0.38rem 0.5rem;
  font: inherit;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: color-mix(in srgb, var(--text) 82%, #fff);
  padding: 0.44rem 0.88rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
}

.chip.active {
  background: var(--chip-active);
  border-color: var(--chip-active);
  color: var(--chip-active-text);
}

.results-info {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.product-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-illustration {
  width: 100%;
  height: 100%;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}

.product-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.product-illustration::before,
.product-illustration::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  opacity: 0.65;
  z-index: 1;
}

.product-illustration::before {
  width: 130px;
  height: 130px;
  top: -35px;
  left: -35px;
  background: rgba(255, 255, 255, 0.55);
}

.product-illustration::after {
  width: 95px;
  height: 95px;
  right: -28px;
  bottom: -28px;
  background: rgba(255, 255, 255, 0.52);
}

.illustration-badge {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 14px;
  padding: 0.55rem 0.74rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.illustration-emoji {
  display: block;
  font-size: 1.6rem;
}

.illustration-age {
  display: block;
  margin-top: 0.22rem;
  color: #2b3f57;
  font-size: 0.78rem;
  font-weight: 700;
}

.tone-1 {
  background: linear-gradient(145deg, var(--cover-1-a), var(--cover-1-b));
}

.tone-2 {
  background: linear-gradient(145deg, var(--cover-2-a), var(--cover-2-b));
}

.tone-3 {
  background: linear-gradient(145deg, var(--cover-3-a), var(--cover-3-b));
}

.tone-4 {
  background: linear-gradient(145deg, var(--cover-4-a), var(--cover-4-b));
}

.discount {
  position: absolute;
  top: 0.72rem;
  left: 0.72rem;
  background: linear-gradient(130deg, #ef4444, #b91c1c);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.24rem 0.52rem;
  z-index: 2;
}

.product-body {
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex-grow: 1;
}

.product-tag {
  margin: 0;
  color: color-mix(in srgb, var(--secondary) 85%, #fff);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-title {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.45;
  min-height: 2.85em;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.81rem;
}

.product-variant-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.79rem;
}

.product-gift {
  margin: 0;
  font-size: 0.78rem;
  color: #7c2d12;
  background: #fff7ed;
  border: 1px dashed #fdba74;
  border-radius: 10px;
  padding: 0.3rem 0.45rem;
}

.rating {
  color: color-mix(in srgb, var(--accent) 92%, #000);
  font-weight: 700;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 0.48rem;
}

.price {
  color: color-mix(in srgb, var(--primary) 90%, #b91c1c);
  font-weight: 700;
}

.old-price {
  color: #8da0b6;
  text-decoration: line-through;
  font-size: 0.85rem;
}

.card-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.42rem;
}

.add-btn {
  border: none;
  border-radius: 12px;
  background: linear-gradient(130deg, var(--text), color-mix(in srgb, var(--text) 70%, #3f4e63));
  color: #fff;
  padding: 0.59rem 0.74rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.add-btn:hover {
  box-shadow: 0 8px 16px rgba(17, 24, 39, 0.28);
}

.ghost-btn {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: color-mix(in srgb, var(--text) 88%, #fff);
  padding: 0.59rem 0.56rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.ghost-btn:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
}

.empty-state {
  grid-column: 1 / -1;
  background: color-mix(in srgb, var(--bg-soft) 80%, #fff);
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 1.1rem;
  color: var(--muted);
  text-align: center;
}

.promo-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(112deg, var(--promo-a), var(--promo-b), var(--promo-c));
  color: #f6faff;
}

.promo-band::before,
.promo-band::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.promo-band::before {
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.11);
  right: 12%;
  top: -120px;
}

.promo-band::after {
  width: 170px;
  height: 170px;
  background: rgba(255, 255, 255, 0.13);
  left: 17%;
  bottom: -80px;
}

.promo-wrap {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.promo-wrap p {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  opacity: 0.92;
}

.promo-wrap h3 {
  margin: 0.55rem 0 1.03rem;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  max-width: 24ch;
}

.btn-light {
  background: #fff;
  color: #122036;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.article-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.article-card h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.45;
}

.article-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.54;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  color: color-mix(in srgb, var(--muted) 90%, #8da0b6);
  font-size: 0.82rem;
}

.site-footer {
  margin-top: 4rem;
  background:
    radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--primary) 23%, transparent), transparent 30%),
    radial-gradient(circle at 87% 12%, color-mix(in srgb, var(--secondary) 20%, transparent), transparent 30%),
    var(--footer-bg);
  color: #dbeafe;
  padding: 3rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1.3rem;
}

.footer-content h3,
.footer-content h4 {
  margin-top: 0;
  color: #fff;
  font-family: var(--font-head);
}

.footer-content a {
  display: block;
  color: var(--footer-link);
  margin-bottom: 0.54rem;
  font-size: 0.91rem;
}

.footer-content a:hover {
  color: #f4f8ff;
}

.footer-brand p {
  color: #d1dff4;
}

.newsletter label {
  display: block;
  margin-bottom: 0.45rem;
}

.newsletter div {
  display: flex;
  gap: 0.5rem;
}

.newsletter input {
  flex: 1;
  border: 1px solid #304159;
  border-radius: 10px;
  background: #081226;
  color: #e2e8f0;
  padding: 0.58rem 0.68rem;
}

.newsletter button {
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #1a273a;
  font-weight: 700;
  padding: 0.58rem 0.84rem;
}

.newsletter-status {
  min-height: 1.05rem;
  margin: 0.52rem 0 0;
  font-size: 0.82rem;
  color: #bfdbfe;
}

.newsletter-status.error {
  color: #fecaca;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  z-index: 80;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100dvh;
  background: var(--bg-alt);
  border-left: 1px solid var(--line);
  box-shadow: -8px 0 28px rgba(15, 23, 42, 0.24);
  z-index: 90;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-head,
.cart-foot {
  padding: 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.cart-foot {
  border-bottom: none;
  border-top: 1px solid var(--line-soft);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-head h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.15rem;
}

.icon-btn {
  border: 1px solid var(--line);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.cart-body {
  flex: 1;
  overflow: auto;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.cart-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.72rem;
  background: #fff;
}

.cart-item-head {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}

.cart-item-title {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.42;
}

.cart-item-price {
  margin: 0.36rem 0 0;
  color: color-mix(in srgb, var(--primary) 86%, #000);
  font-weight: 700;
  font-size: 0.87rem;
}

.cart-item-variant {
  margin: 0.38rem 0 0;
  color: var(--muted);
  font-size: 0.79rem;
}

.cart-item-gift {
  margin: 0.36rem 0 0;
  color: #7c2d12;
  font-size: 0.78rem;
  background: #fff7ed;
  border: 1px dashed #fdba74;
  border-radius: 8px;
  padding: 0.24rem 0.36rem;
  display: inline-block;
}

.cart-item-actions {
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.qty-value {
  min-width: 30px;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
}

.remove-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #b91c1c;
  padding: 0.32rem 0.48rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-summary strong {
  font-size: 1.1rem;
  font-family: var(--font-head);
}

.shipping-line {
  margin-top: 0.4rem;
}

.shipping-line strong {
  font-size: 0.95rem;
  font-family: inherit;
}

.ship-progress {
  margin: 0.6rem 0 0.8rem;
}

.ship-progress-track {
  height: 8px;
  background: color-mix(in srgb, var(--line) 65%, #fff);
  border-radius: 999px;
  overflow: hidden;
}

.ship-progress-track span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  transition: width 0.25s ease;
}

.cart-note {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.total-line {
  padding: 0.65rem 0;
  border-top: 1px dashed var(--line-soft);
  margin-top: 0.2rem;
}

.checkout-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  background: linear-gradient(130deg, var(--primary), color-mix(in srgb, var(--primary) 80%, #fff));
  color: #fff;
  padding: 0.68rem 0.8rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.checkout-btn:disabled {
  cursor: not-allowed;
}

.quick-view {
  width: min(1080px, calc(100% - 1rem));
  border: none;
  border-radius: 20px;
  padding: 0;
  background: transparent;
}

.quick-view::backdrop {
  background: rgba(2, 6, 23, 0.56);
}

.quick-shell {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.quick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.quick-head p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.quick-scroll {
  max-height: min(86dvh, 840px);
  overflow-y: auto;
  padding: 1rem;
}

.quick-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
}

.quick-gallery {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.72rem;
  background: color-mix(in srgb, var(--bg-soft) 78%, #fff);
}

.quick-main-media {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  min-height: 340px;
  overflow: hidden;
  position: relative;
}

.quick-main-stage {
  min-height: 340px;
}

.quick-main-media .product-illustration {
  min-height: 340px;
}

.quick-main-media .illustration-emoji {
  font-size: 2.3rem;
}

.quick-main-media .illustration-age {
  font-size: 0.92rem;
}

.quick-main-caption {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.gallery-nav.prev {
  left: 10px;
}

.gallery-nav.next {
  right: 10px;
}

.quick-thumb-row {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.quick-thumb {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  min-height: 80px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}

.quick-thumb.active {
  border-color: var(--chip-active);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--chip-active) 24%, transparent);
}

.quick-thumb .product-illustration {
  min-height: 80px;
}

.quick-thumb .illustration-emoji {
  font-size: 1.2rem;
}

.quick-thumb .illustration-age {
  font-size: 0.65rem;
}

.modal-close {
  position: static;
}

.quick-content {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 0.9rem;
}

.quick-tag {
  margin: 0;
  color: color-mix(in srgb, var(--secondary) 90%, #fff);
  font-size: 0.79rem;
  text-transform: uppercase;
  font-weight: 700;
}

.quick-content h3 {
  margin: 0.45rem 0 0;
  font-family: var(--font-head);
  font-size: 1.45rem;
}

.quick-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.42rem 0;
}

.quick-price {
  margin: 0.2rem 0;
  color: color-mix(in srgb, var(--primary) 88%, #000);
  font-size: 1.08rem;
  font-weight: 800;
}

.quick-gift {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.83rem;
  font-weight: 700;
  color: #7c2d12;
  background: #fff7ed;
  border: 1px dashed #fdba74;
  border-radius: 10px;
  padding: 0.34rem 0.5rem;
}

.quick-gift:empty {
  display: none;
}

.quick-desc {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.variant-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-soft) 70%, #fff);
  padding: 0.7rem;
  margin-bottom: 0.75rem;
}

.variant-title {
  margin: 0 0 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--text) 92%, #fff);
}

.variant-group + .variant-group {
  margin-top: 0.52rem;
}

.variant-group strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.34rem;
  color: var(--muted);
}

.variant-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.variant-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: color-mix(in srgb, var(--text) 86%, #fff);
  padding: 0.3rem 0.62rem;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.variant-chip.active {
  border-color: var(--chip-active);
  background: color-mix(in srgb, var(--chip-active) 16%, #fff);
  color: color-mix(in srgb, var(--chip-active) 84%, #000);
}

.variant-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.buy-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-soft) 72%, #fff);
  padding: 0.72rem;
}

.qty-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.qty-control > span {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
}

.qty-control-inner {
  display: inline-grid;
  grid-template-columns: 30px 58px 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.qty-control-inner button {
  border: none;
  background: #fff;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
}

.qty-control-inner input {
  border: none;
  border-left: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  text-align: center;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  width: 100%;
}

.qty-control-inner input:focus {
  outline: none;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.quick-actions .btn {
  width: 100%;
}

.quick-buy-highlight {
  background: linear-gradient(130deg, #f97316, #ef4444 58%, #e11d48);
  border: none;
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.35);
}

.quick-buy-highlight:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 34px rgba(239, 68, 68, 0.45);
}

.detail-media-section {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.detail-media-stack {
  display: flex;
  flex-direction: column;
}

.detail-media-stack img {
  display: block;
  width: 100%;
  height: auto;
}

.detail-media-stack img + img {
  border-top: 1px solid var(--line-soft);
}

.checkout-modal {
  width: min(980px, calc(100% - 1rem));
  border: none;
  border-radius: 20px;
  padding: 0;
  background: transparent;
}

.checkout-modal::backdrop {
  background: rgba(2, 6, 23, 0.56);
}

.checkout-shell {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.checkout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.82rem 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.checkout-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.checkout-head h3 {
  margin: 0.22rem 0 0;
  font-family: var(--font-head);
  font-size: 1.2rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
  padding: 1rem;
  max-height: min(84dvh, 840px);
  overflow-y: auto;
}

.checkout-form,
.checkout-summary {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.checkout-form {
  padding: 0.85rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
}

.checkout-form label {
  display: grid;
  gap: 0.32rem;
  font-size: 0.82rem;
  font-weight: 600;
}

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

.checkout-form label.full {
  grid-column: 1 / -1;
}

.checkout-form input[type="text"],
.checkout-form input[type="tel"],
.checkout-form input[type="email"],
.checkout-form select,
.checkout-form textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  background: #fff;
  width: 100%;
  padding: 0.56rem 0.64rem;
  outline: none;
}

.checkout-form textarea {
  resize: vertical;
}

.checkout-form input[type="text"]:focus,
.checkout-form input[type="tel"]:focus,
.checkout-form input[type="email"]:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
  border-color: color-mix(in srgb, var(--primary) 46%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}

.pay-method {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 0.65rem;
}

.pay-method legend {
  padding: 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.pay-method label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 500;
}

.pay-method label + label {
  margin-top: 0.45rem;
}

.qr-payment-box {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 0.72rem;
  background: color-mix(in srgb, var(--bg-soft) 72%, #fff);
}

.qr-payment-box h5 {
  margin: 0;
  font-size: 0.9rem;
}

.qr-payment-sub {
  margin: 0.28rem 0 0.62rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.qr-payment-content {
  display: grid;
  grid-template-columns: minmax(128px, 140px) minmax(0, 1fr);
  gap: 0.62rem;
  align-items: flex-start;
}

#checkout-qr-image {
  width: 140px;
  height: 140px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: #fff;
  object-fit: cover;
}

.qr-payment-meta p {
  margin: 0;
  font-size: 0.79rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.qr-payment-meta p + p {
  margin-top: 0.36rem;
}

.qr-payment-meta strong {
  color: var(--muted);
}

.qr-payment-meta {
  min-width: 0;
}

.checkout-submit {
  grid-column: 1 / -1;
  width: 100%;
  border: none;
  border-radius: 12px;
}

.checkout-status {
  grid-column: 1 / -1;
  min-height: 1rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.checkout-status.error {
  color: #b91c1c;
}

.checkout-summary {
  padding: 0.85rem;
}

.checkout-summary h4 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.02rem;
}

.checkout-items {
  margin-top: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
}

.checkout-item {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 0.54rem;
  background: color-mix(in srgb, var(--bg-soft) 75%, #fff);
}

.checkout-item strong {
  display: block;
  font-size: 0.86rem;
}

.checkout-item small {
  color: var(--muted);
  font-size: 0.78rem;
}

.checkout-item-gift {
  margin-top: 0.28rem;
  display: inline-block;
  font-size: 0.75rem;
  color: #7c2d12;
  background: #fff7ed;
  border: 1px dashed #fdba74;
  border-radius: 8px;
  padding: 0.18rem 0.34rem;
}

.checkout-lines {
  margin-top: 0.78rem;
  border-top: 1px dashed var(--line-soft);
  padding-top: 0.65rem;
}

.checkout-lines > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  color: var(--muted);
}

.checkout-lines > div + div {
  margin-top: 0.42rem;
}

.checkout-lines strong {
  color: var(--text);
}

.checkout-total-line {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--line-soft);
  font-size: 0.95rem;
}

.checkout-total-line strong {
  font-size: 1.15rem;
  font-family: var(--font-head);
}

.checkout-ship-note {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}


.toast-wrap {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  z-index: 110;
}

.toast {
  background: color-mix(in srgb, var(--text) 92%, #fff);
  color: #fff;
  border-radius: 12px;
  padding: 0.62rem 0.76rem;
  font-size: 0.84rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(8px);
  animation: toastIn 0.25s ease forwards;
}

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

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

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

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

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

@media (max-width: 760px) {
  .site-header {
    position: static;
  }

  .topbar {
    font-size: 0.74rem;
    flex-direction: column;
    gap: 0.26rem;
    text-align: center;
  }

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
    grid-area: menu;
  }

  .main-header {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "menu brand cart"
      "search search search";
    gap: 0.82rem;
  }

  .brand {
    grid-area: brand;
    min-width: 0;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .actions {
    grid-area: cart;
    gap: 0.56rem;
  }

  .action-link {
    display: none;
  }

  .search-box {
    grid-area: search;
  }

  .menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding-bottom: 0.86rem;
  }

  .menu.is-open {
    display: flex;
  }

  .menu a {
    width: 100%;
    border-radius: 10px;
  }

  .theme-switcher {
    margin-top: 0.8rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .theme-options {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero {
    padding: 1.35rem;
    border-radius: 22px;
  }

  .hero p {
    max-width: 100%;
  }

  .hero-cta {
    flex-wrap: wrap;
  }

  .hero-metrics {
    flex-wrap: wrap;
  }

  .hero-art {
    min-height: 284px;
  }

  .book {
    width: 132px;
  }

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

  .toolbar-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

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

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

  .footer-content {
    grid-template-columns: 1fr;
  }

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

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

  .quick-main-media .product-illustration {
    min-height: 240px;
  }

  .quick-main-stage {
    min-height: 240px;
  }

}

@media (max-width: 520px) {
  .container {
    width: min(1140px, calc(100% - 1.25rem));
  }

  section {
    margin-top: 3.15rem;
  }

  .hero h1 {
    font-size: 1.78rem;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

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

  .hero-note {
    transform: scale(0.92);
  }

  .quick-scroll {
    padding: 0.7rem;
  }

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

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

  .qr-payment-content {
    grid-template-columns: 1fr;
  }

  #checkout-qr-image {
    width: 130px;
    height: 130px;
    margin: 0 auto;
  }

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

  .toast-wrap {
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0.6rem;
  }
}
