:root {
  color-scheme: light;
  --ink: #1e2630;
  --muted: #65707c;
  --line: #dce2e7;
  --paper: #ffffff;
  --soft: #f5f8fa;
  --aqua: #17a9a4;
  --aqua-dark: #08726e;
  --coral: #ff6b5f;
  --sun: #f6b443;
  --grape: #7253b8;
  --mint: #95d66b;
  --shadow: 0 18px 44px rgba(33, 43, 54, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.announcement {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  background: #182432;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 850;
  text-align: center;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links,
.cart-trigger,
.hero-actions,
.filter-group,
.product-top,
.listing-meta,
.card-actions,
.bundle-builder,
.bundle-card,
.cart-header,
.cart-summary div {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  font-weight: 900;
  font-size: 1.05rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #182432;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 7px;
  flex: 0 0 auto;
}

.brand-mark span {
  border-radius: 999px;
}

.brand-mark span:nth-child(1) {
  background: var(--aqua);
}

.brand-mark span:nth-child(2) {
  background: var(--sun);
}

.brand-mark span:nth-child(3) {
  background: var(--coral);
}

.nav-links {
  justify-content: center;
  gap: clamp(16px, 4vw, 34px);
  color: var(--muted);
  font-weight: 750;
}

.nav-links a:hover {
  color: var(--aqua-dark);
}

.cart-trigger,
.icon-button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  justify-content: center;
}

.cart-trigger {
  justify-self: end;
  gap: 8px;
  min-width: 70px;
  min-height: 42px;
  font-weight: 900;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

main {
  overflow: hidden;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(24px, 5vw, 70px) clamp(16px, 4vw, 56px) 36px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96) 0 45%, rgba(231, 249, 248, 0.8) 45% 100%);
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--aqua-dark);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.45rem, 7vw, 5.6rem);
  line-height: 0.94;
  max-width: 900px;
}

.hero-text {
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.24rem);
  line-height: 1.55;
  max-width: 640px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-link,
.secondary-link,
.primary-button,
.add-button,
.details-button,
.checkout-button {
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-weight: 900;
}

.primary-link,
.primary-button,
.checkout-button {
  background: var(--aqua);
  color: #fff;
}

.secondary-link {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
  max-width: 620px;
}

.hero-metrics span {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-metrics strong {
  display: block;
  color: var(--ink);
  font-size: 1.12rem;
  margin-bottom: 4px;
}

.hero-media {
  margin: 0;
  min-height: 420px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--paper);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.best-sellers-section,
.grade-school-section,
.video-section,
.signup-section,
.order-help {
  margin: 0 clamp(16px, 4vw, 56px) 48px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-heading h2,
.signup-section h2 {
  max-width: 760px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.best-seller-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

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

.best-seller-card,
.grade-school-card {
  min-width: 0;
  display: grid;
  grid-template-rows: 160px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(33, 43, 54, 0.08);
}

.best-seller-visual,
.grade-school-visual {
  min-height: 160px;
}

.best-seller-body,
.grade-school-body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}

.best-seller-body h3,
.grade-school-body h3 {
  font-size: 1rem;
  line-height: 1.22;
}

.best-seller-body p,
.grade-school-body p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.kid-safety-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.kid-safety-strip span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fff7e8;
  color: #7a4e00;
  border: 1px solid #f5d590;
  padding: 0 11px;
  font-size: 0.8rem;
  font-weight: 900;
}

.shop-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 20px;
  padding: 42px clamp(16px, 4vw, 56px) 18px;
}

.shop-toolbar h2,
.bundle-copy h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.06;
}

.shop-toolbar p,
.bundle-copy p,
.trust-section p,
.product-info p {
  color: var(--muted);
  line-height: 1.5;
}

.shop-toolbar p {
  margin-top: 6px;
}

.filter-group {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  padding: 0 14px;
  font-weight: 850;
}

.filter.active {
  background: #182432;
  color: #fff;
  border-color: #182432;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0 clamp(16px, 4vw, 56px) 46px;
}

.product-card {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 180px minmax(0, 1fr);
  box-shadow: 0 12px 28px rgba(33, 43, 54, 0.08);
}

.product-card.active-ad {
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(23, 169, 164, 0.15), 0 12px 28px rgba(33, 43, 54, 0.08);
}

.product-visual {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--visual-bg), #ffffff);
}

.product-visual.has-image {
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--selected-color, var(--aqua)) 24%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--selected-color, var(--aqua)) 18%, #f8fbfc), #ffffff 68%);
}

.product-visual.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  transition: filter 0.18s ease, opacity 0.18s ease;
}

.gallery-button {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(24, 36, 50, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #182432;
  display: grid;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  box-shadow: 0 10px 22px rgba(24, 36, 50, 0.16);
}

.gallery-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.gallery-button:hover,
.gallery-button:focus-visible {
  background: #ffffff;
  color: var(--aqua-dark);
}

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

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

.gallery-count {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 4;
  min-height: 24px;
  border-radius: 999px;
  background: rgba(24, 36, 50, 0.78);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  font-size: 0.74rem;
  font-weight: 900;
  transform: translateX(-50%);
}

.product-visual.has-image::before {
  display: none;
}

.product-visual.has-image::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 3px solid #fff;
  background: var(--selected-color, var(--aqua));
  box-shadow: 0 12px 24px rgba(24, 36, 50, 0.18), 0 0 0 1px rgba(24, 36, 50, 0.12);
  z-index: 2;
}

.product-visual.has-image.fallback-color-image img {
  opacity: 0.88;
  filter: saturate(1.12) contrast(0.96);
}

.product-visual.has-image.fallback-color-image::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  background: var(--selected-color, var(--aqua));
  mix-blend-mode: color;
  opacity: 0.24;
  z-index: 2;
  pointer-events: none;
}

.product-visual.has-image.fallback-color-image::after {
  z-index: 3;
}

.product-visual:not(.has-image)::before,
.product-visual:not(.has-image)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.visual-pop::before {
  width: 124px;
  height: 112px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20px 22px, rgba(255, 255, 255, 0.78) 0 11px, transparent 12px),
    radial-gradient(circle at 62px 22px, rgba(255, 255, 255, 0.78) 0 11px, transparent 12px),
    radial-gradient(circle at 104px 22px, rgba(255, 255, 255, 0.78) 0 11px, transparent 12px),
    radial-gradient(circle at 20px 58px, rgba(255, 255, 255, 0.78) 0 11px, transparent 12px),
    radial-gradient(circle at 62px 58px, rgba(255, 255, 255, 0.78) 0 11px, transparent 12px),
    radial-gradient(circle at 104px 58px, rgba(255, 255, 255, 0.78) 0 11px, transparent 12px),
    linear-gradient(135deg, var(--color-one), var(--color-two));
  box-shadow: 16px 18px 0 rgba(30, 38, 48, 0.12);
}

.visual-spinner::before {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #ffffff 0 17px, var(--color-two) 18px 27px, transparent 28px),
    conic-gradient(from 45deg, var(--color-one) 0 24%, transparent 24% 37%, var(--color-one) 37% 61%, transparent 61% 76%, var(--color-one) 76% 100%);
}

.visual-cube::before {
  width: 105px;
  height: 105px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent 31%, rgba(255, 255, 255, 0.55) 31% 35%, transparent 35% 66%, rgba(255, 255, 255, 0.55) 66% 70%, transparent 70%),
    linear-gradient(0deg, transparent 31%, rgba(255, 255, 255, 0.55) 31% 35%, transparent 35% 66%, rgba(255, 255, 255, 0.55) 66% 70%, transparent 70%),
    linear-gradient(135deg, var(--color-one), var(--color-two));
  transform: translate(-50%, -50%) rotate(8deg);
  box-shadow: 18px 16px 0 rgba(30, 38, 48, 0.12);
}

.visual-ring::before {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: conic-gradient(var(--color-one), var(--color-two), var(--color-one));
  mask: radial-gradient(circle, transparent 0 40px, #000 41px);
}

.visual-slider::before {
  width: 132px;
  height: 70px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-one), var(--color-two));
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.32), 15px 16px 0 rgba(30, 38, 48, 0.12);
}

.visual-slider::after {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(-5%, -50%);
}

.product-info {
  padding: 16px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.product-top {
  justify-content: space-between;
  gap: 10px;
}

.tag {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #edf7f6;
  color: var(--aqua-dark);
  padding: 0 9px;
  font-size: 0.76rem;
  font-weight: 900;
}

.price {
  font-size: 1rem;
}

.product-info h3 {
  font-size: 1.08rem;
  line-height: 1.22;
}

.listing-meta {
  flex-wrap: wrap;
  gap: 6px;
}

.listing-meta span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 0.74rem;
  font-weight: 900;
}

.noise-label {
  background: #eef8ff;
  color: #245f88;
}

.feature-one {
  background: #f0f8ec;
  color: #386d32;
}

.feature-two {
  max-width: 100%;
  background: #f4f0ff;
  color: var(--grape);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.color-picker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: var(--swatch);
  box-shadow: 0 0 0 1px var(--line);
  padding: 0;
  flex: 0 0 auto;
}

.color-swatch.selected {
  box-shadow: 0 0 0 3px rgba(23, 169, 164, 0.28), 0 0 0 1px var(--aqua);
}

.color-block {
  display: grid;
  gap: 8px;
}

.color-block > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.ad-angle {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-size: 0.88rem;
}

.card-actions {
  align-items: stretch;
  gap: 8px;
  margin-top: 4px;
}

.add-button {
  flex: 1;
  color: #fff;
  background: #182432;
}

.details-button {
  flex: 0.7;
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

.bundle-band {
  margin: 0 clamp(16px, 4vw, 56px) 48px;
  border-radius: 8px;
  background: #182432;
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 4vw, 42px);
}

.bundle-band .eyebrow,
.bundle-band p {
  color: rgba(255, 255, 255, 0.75);
}

.bundle-copy p {
  margin-top: 10px;
  max-width: 680px;
}

.bundle-builder {
  justify-content: space-between;
  gap: 18px;
  min-height: 118px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.bundle-builder span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 850;
  margin-bottom: 6px;
}

.bundle-builder strong {
  line-height: 1.25;
}

.bundle-grid {
  display: grid;
  gap: 12px;
}

.bundle-card {
  justify-content: space-between;
  gap: 16px;
  min-height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.bundle-card span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bundle-card strong {
  display: block;
  line-height: 1.25;
}

.bundle-card p {
  margin-top: 8px;
  max-width: 420px;
  font-size: 0.9rem;
}

.bundle-card .primary-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.trust-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 clamp(16px, 4vw, 56px) 56px;
}

.trust-section article {
  min-height: 150px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 22px;
}

.trust-section h2 {
  margin-bottom: 8px;
}

.policy-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(16px, 4vw, 56px) 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.policy-strip article {
  min-height: 156px;
  padding: 20px;
  background: var(--paper);
}

.policy-strip h2 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.policy-strip p {
  color: var(--muted);
  line-height: 1.5;
}

.video-section {
  padding-top: 8px;
}

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

.video-slot {
  min-width: 0;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 16px;
}

.video-frame {
  min-height: 180px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 169, 164, 0.16), rgba(246, 180, 67, 0.16)),
    #f8fbfc;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink);
  font-weight: 900;
  padding: 18px;
}

.video-slot p,
.signup-form p,
.help-grid p {
  color: var(--muted);
  line-height: 1.5;
}

.signup-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  border-radius: 8px;
  background: #182432;
  color: #ffffff;
  padding: clamp(20px, 4vw, 36px);
}

.signup-section .eyebrow,
.signup-form p {
  color: rgba(255, 255, 255, 0.78);
}

.signup-form {
  display: grid;
  gap: 10px;
}

.signup-form label {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.signup-form div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.signup-form input {
  min-height: 46px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 14px;
}

.signup-form .success {
  color: #b9f4d2;
  font-weight: 850;
}

.signup-target {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

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

.help-grid article {
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 20px;
}

.help-grid span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: #ffffff;
  font-weight: 900;
  margin-bottom: 14px;
}

.help-grid h3 {
  margin-bottom: 8px;
}

.quality-section,
.faq-section {
  margin: 0 clamp(16px, 4vw, 56px) 48px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(20px, 4vw, 36px);
}

.quality-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.6fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.quality-copy h2,
.faq-section h2 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.08;
}

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

.quality-grid article {
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 18px;
}

.quality-grid span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--aqua);
  color: #fff;
  font-weight: 900;
  margin-bottom: 16px;
}

.quality-grid h3 {
  margin-bottom: 8px;
}

.quality-grid p,
.faq-list p,
.site-footer p {
  color: var(--muted);
  line-height: 1.5;
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.5fr) minmax(0, 1fr);
  gap: 24px;
}

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

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 14px 16px;
}

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

details p {
  margin-top: 10px;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: rgba(16, 24, 32, 0);
  transition: background 180ms ease;
}

.cart-drawer.open {
  pointer-events: auto;
  background: rgba(16, 24, 32, 0.35);
}

.cart-panel {
  position: absolute;
  right: 0;
  top: 0;
  width: min(430px, 100%);
  height: 100%;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform 220ms ease;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  box-shadow: -18px 0 44px rgba(33, 43, 54, 0.18);
}

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

.cart-header,
.cart-summary {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.cart-header {
  justify-content: space-between;
  gap: 12px;
}

.cart-header h2 {
  font-size: 1.4rem;
}

.icon-button {
  width: 42px;
  height: 42px;
}

.cart-items {
  overflow: auto;
  padding: 10px 20px;
}

.cart-empty {
  color: var(--muted);
  padding: 28px 0;
  line-height: 1.5;
}

.cart-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-thumb {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-one), var(--color-two));
}

.cart-item h3 {
  font-size: 0.95rem;
}

.cart-item p {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 3px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-control button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--soft);
  font-weight: 900;
}

.cart-summary {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  display: grid;
  gap: 12px;
}

.cart-summary div {
  justify-content: space-between;
  gap: 12px;
}

.cart-summary span {
  color: var(--muted);
}

.total-row {
  font-size: 1.2rem;
}

.shipping-meter {
  display: grid;
  gap: 8px;
}

.shipping-meter span {
  font-size: 0.86rem;
  font-weight: 850;
}

.shipping-meter div {
  height: 9px;
  border-radius: 999px;
  background: var(--soft);
  overflow: hidden;
}

.shipping-meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--aqua);
  transition: width 180ms ease;
}

.checkout-button {
  width: 100%;
}

dialog {
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(16, 24, 32, 0.42);
}

.product-dialog {
  width: min(920px, calc(100vw - 24px));
  padding: 0;
}

.checkout-dialog {
  width: min(620px, calc(100vw - 24px));
  padding: clamp(20px, 4vw, 34px);
}

.dialog-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
}

.dialog-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
}

.dialog-visual {
  min-height: 420px;
}

.dialog-copy {
  padding: clamp(22px, 4vw, 42px);
  display: grid;
  gap: 14px;
  align-content: center;
}

.dialog-copy h2,
.checkout-copy h2 {
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  line-height: 1.04;
}

#dialogPrice {
  font-size: 1.5rem;
}

.dialog-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.dialog-meta span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eef8ff;
  color: #245f88;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.dialog-copy ul,
.checkout-copy ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.dialog-copy li,
.checkout-copy li {
  margin: 7px 0;
}

.dialog-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}

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

.checkout-copy p {
  color: var(--muted);
  line-height: 1.5;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 60;
  transform: translate(-50%, 120%);
  min-height: 42px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  background: #182432;
  color: #fff;
  padding: 0 16px;
  font-weight: 850;
  transition: transform 180ms ease;
}

.toast.visible {
  transform: translate(-50%, 0);
}

.site-footer {
  display: grid;
  gap: 12px;
  padding: 28px clamp(16px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--aqua-dark);
  font-weight: 850;
}

@media (max-width: 1120px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media,
  .hero-media img {
    min-height: 360px;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .shop-toolbar,
  .bundle-band,
  .quality-section,
  .faq-section,
  .signup-section,
  .trust-section,
  .policy-strip {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-group {
    justify-content: flex-start;
  }

  .product-grid,
  .best-seller-grid,
  .grade-school-grid,
  .video-grid,
  .help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

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

  .dialog-visual {
    min-height: 260px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 22px;
  }

  .hero-metrics,
  .product-grid,
  .best-seller-grid,
  .grade-school-grid,
  .video-grid,
  .help-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-media,
  .hero-media img {
    min-height: 270px;
  }

  .product-card {
    grid-template-rows: 170px minmax(0, 1fr);
  }

  .card-actions {
    flex-direction: column;
  }

  .dialog-actions {
    flex-direction: column;
  }

  .brand span:last-child {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
