:root {
  --ink: #111317;
  --muted: #626873;
  --paper: #f8f7f2;
  --panel: #ffffff;
  --line: rgba(17, 19, 23, 0.12);
  --coral: #ff5d52;
  --cyan: #12c7d9;
  --yellow: #ffd84d;
  --green: #2fc878;
  --blue: #335cff;
  --violet: #7a5cff;
  --shadow: 0 18px 50px rgba(18, 22, 31, 0.16);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 93, 82, 0.08), transparent 28%),
    linear-gradient(180deg, #fffcf4 0%, #f7fbff 46%, #fff8f3 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.drawer-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

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

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

.icon-sprite {
  display: none;
}

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

.cursor-light {
  position: fixed;
  z-index: 1;
  width: 280px;
  height: 280px;
  left: var(--x, 50%);
  top: var(--y, 20%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(circle, rgba(18, 199, 217, 0.24), rgba(255, 216, 77, 0.12) 38%, transparent 68%);
  filter: blur(16px);
  transition: left 140ms linear, top 140ms linear;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 14px;
  left: 50%;
  width: min(1180px, calc(100% - 28px));
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(230px, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 44px rgba(20, 26, 38, 0.12);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: conic-gradient(from 210deg, var(--coral), var(--yellow), var(--cyan), var(--blue), var(--coral));
  box-shadow: 0 8px 20px rgba(255, 93, 82, 0.28);
  animation: markSpin 7s linear infinite;
}

.search-shell {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.search-submit {
  display: grid;
  width: 48px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(18, 22, 31, 0.08);
  transition: transform 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}

.search-submit:hover,
.search-submit:focus-visible {
  color: var(--blue);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(51, 92, 255, 0.28), 0 12px 26px rgba(51, 92, 255, 0.14);
  transform: translateY(-2px);
  outline: 0;
}

.search {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 247, 242, 0.86);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #343945;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a {
  padding: 12px 10px;
  border-radius: 8px;
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}

.nav-links a:hover {
  background: rgba(18, 199, 217, 0.12);
  transform: translateY(-1px);
}

.icon-button {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), color 200ms var(--ease);
}

.icon-button:hover {
  color: var(--blue);
  transform: translateY(-2px) rotate(-2deg);
  box-shadow: inset 0 0 0 1px rgba(51, 92, 255, 0.3), 0 10px 22px rgba(51, 92, 255, 0.15);
}

.cart-trigger span {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: var(--coral);
  font-size: 0.72rem;
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  padding: 128px max(24px, calc((100vw - 1180px) / 2)) 46px;
  overflow: hidden;
  background: #121317;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroFloat 12s ease-in-out infinite alternate;
}

.hero-shade {
  background:
    radial-gradient(circle at 74% 24%, rgba(255, 216, 77, 0.18), transparent 31%),
    linear-gradient(90deg, rgba(10, 12, 16, 0.86) 0%, rgba(10, 12, 16, 0.54) 42%, rgba(10, 12, 16, 0.16) 100%),
    linear-gradient(180deg, rgba(10, 12, 16, 0.1), rgba(10, 12, 16, 0.76));
}

.hero-content,
.hero-stats {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 720px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.77rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 7px color-mix(in srgb, currentColor 18%, transparent);
  animation: pulse 1.7s ease-in-out infinite;
}

.hero h1,
.section-head h2,
.deal-copy h2,
.products-toolbar h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(3.1rem, 8vw, 6.9rem);
  line-height: 0.89;
  font-weight: 900;
}

.hero-copy {
  max-width: 580px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

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

.primary-action,
.ghost-action,
.filter-button,
.checkout-button,
.add-button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}

.primary-action {
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  color: #121317;
  background: var(--yellow);
  box-shadow: 0 15px 34px rgba(255, 216, 77, 0.3);
}

.ghost-action,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.primary-action:hover,
.ghost-action:hover,
.filter-button:hover,
.checkout-button:hover,
.add-button:hover {
  transform: translateY(-3px);
}

.hero-stats {
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 56px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
}

.hero-stats div {
  padding: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats strong {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
  line-height: 1.45;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid rgba(17, 19, 23, 0.1);
  background: #111317;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 22s linear infinite;
}

.ticker span {
  padding: 16px 28px;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
}

.ticker span:nth-child(3n + 1) {
  color: var(--yellow);
}

.ticker span:nth-child(3n + 2) {
  color: var(--cyan);
}

.category-band,
.products-section,
.trust-band,
.deal-strip {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.category-band {
  padding: 72px 0 34px;
}

.section-head,
.products-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-head h2,
.products-toolbar h2,
.deal-copy h2 {
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.95;
  font-weight: 900;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.category {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 10px 34px rgba(18, 22, 31, 0.06);
  transition: transform 240ms var(--ease), background 240ms var(--ease), border-color 240ms var(--ease);
}

.category span,
.category small {
  display: block;
}

.category span {
  font-size: 1.2rem;
  font-weight: 900;
}

.category small {
  margin-top: 28px;
  color: var(--muted);
  font-weight: 800;
}

.category:hover,
.category.active {
  transform: translateY(-6px);
  border-color: rgba(18, 199, 217, 0.45);
  background: #fff;
}

.category.active {
  box-shadow: 0 14px 34px rgba(18, 199, 217, 0.16);
}

.deal-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
  margin-top: 24px;
  padding: 34px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 93, 82, 0.96), rgba(51, 92, 255, 0.94)),
    #252a33;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.deal-strip::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -120px;
  width: 320px;
  height: 320px;
  border: 38px solid rgba(255, 216, 77, 0.38);
  border-radius: 50%;
  animation: rotateSlow 18s linear infinite;
}

.deal-copy {
  position: relative;
  z-index: 1;
}

.deal-copy .eyebrow {
  color: var(--yellow);
}

.deal-copy p:last-child {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.77);
  line-height: 1.7;
}

.deal-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.deal-meter {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.deal-meter span {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow), var(--cyan));
  animation: meter 1.8s var(--ease) both;
}

.deal-card strong,
.deal-card small {
  display: block;
}

.deal-card strong {
  font-size: 1.8rem;
}

.deal-card small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.74);
}

.products-section {
  padding: 76px 0 34px;
}

.filter-button {
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.product-card {
  position: relative;
  min-height: 478px;
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 38px rgba(18, 22, 31, 0.08);
  overflow: hidden;
  isolation: isolate;
  transform: translateY(20px);
  opacity: 0;
  animation: cardIn 620ms var(--ease) forwards;
  animation-delay: calc(var(--i) * 70ms);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), color-mix(in srgb, var(--accent) 24%, transparent), transparent 38%);
  opacity: 0;
  transition: opacity 220ms var(--ease);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 56px rgba(18, 22, 31, 0.14);
}

.product-card:hover::before {
  opacity: 1;
}

.product-visual {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f5f7;
}

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

.product-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 500ms var(--ease), filter 500ms var(--ease);
}

.product-card:hover .product-photo {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.09);
}

.product-glow {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(180deg, transparent, rgba(17, 19, 23, 0.32));
  pointer-events: none;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 8px 10px;
  border-radius: 999px;
  color: #111317;
  background: var(--yellow);
  font-size: 0.72rem;
  font-weight: 900;
}

.wish-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  color: #111317;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.wish-button svg {
  transition: fill 180ms var(--ease), transform 180ms var(--ease);
}

.wish-button.liked {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 14px 26px rgba(255, 93, 82, 0.32);
  transform: translateY(-1px) scale(1.04);
}

.wish-button.liked svg {
  fill: currentColor;
  stroke: currentColor;
  animation: heartPop 260ms var(--ease);
}

.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 4px 4px;
}

.product-meta {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-info h3 {
  min-height: 52px;
  margin: 8px 0 10px;
  font-size: 1.22rem;
  line-height: 1.15;
}

.product-info p {
  min-height: 48px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.stock-line {
  margin-top: 12px;
  color: #343945;
  font-size: 0.82rem;
  font-weight: 900;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

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

.price-row small {
  display: block;
  color: var(--green);
  font-weight: 900;
}

.add-button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: #111317;
}

.add-button:hover {
  background: var(--blue);
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
  font-weight: 800;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 48px 0 90px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
}

.trust-item svg {
  width: 30px;
  height: 30px;
  color: var(--blue);
}

.trust-item strong,
.trust-item span {
  display: block;
}

.trust-item strong {
  font-weight: 900;
}

.trust-item span {
  margin-top: 3px;
  color: var(--muted);
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  justify-items: end;
  background: rgba(17, 19, 23, 0);
  pointer-events: none;
  transition: background 240ms var(--ease);
}

.cart-drawer.open {
  background: rgba(17, 19, 23, 0.45);
  pointer-events: auto;
}

.cart-panel {
  width: min(430px, 100%);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: #fff;
  box-shadow: -30px 0 70px rgba(0, 0, 0, 0.18);
  transform: translateX(102%);
  transition: transform 300ms var(--ease);
}

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

.cart-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.cart-top h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
}

.backend-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.backend-status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(255, 216, 77, 0.18);
}

.backend-status.online::before {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(47, 200, 120, 0.16);
}

.backend-status.offline::before {
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(255, 93, 82, 0.16);
}

.cart-items {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.cart-item {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  animation: itemPop 260ms var(--ease) both;
}

.cart-thumb {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  object-fit: cover;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 88%, white), #111317);
}

.cart-item strong,
.cart-item span {
  display: block;
}

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

.cart-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

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

.qty button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #f0f3f6;
  cursor: pointer;
}

.qty svg {
  width: 14px;
  height: 14px;
}

.qty b {
  min-width: 22px;
  text-align: center;
}

.cart-empty {
  margin-top: 24px;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f8f7f2;
  text-align: center;
  font-weight: 800;
}

.cart-bottom {
  margin-top: auto;
  padding-top: 20px;
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.total-row strong {
  font-size: 1.5rem;
}

.checkout-button {
  width: 100%;
  color: #fff;
  background: linear-gradient(135deg, var(--ink), var(--blue));
}

.checkout-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 24px;
  max-width: min(420px, calc(100% - 32px));
  padding: 14px 18px;
  border-radius: 8px;
  color: #fff;
  background: #111317;
  box-shadow: var(--shadow);
  font-weight: 900;
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

#confettiCanvas {
  position: fixed;
  inset: 0;
  z-index: 55;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--delay, 0ms);
}

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

@keyframes markSpin {
  to {
    filter: hue-rotate(360deg);
  }
}

@keyframes heroFloat {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.09) translate3d(1.4%, -1.2%, 0);
  }
}

@keyframes pulse {
  50% {
    transform: scale(1.35);
  }
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@keyframes rotateSlow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes meter {
  from {
    width: 0;
  }
}

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

@keyframes floatRing {
  50% {
    transform: translate3d(12px, -12px, 0) rotate(18deg);
  }
}

@keyframes productBob {
  50% {
    transform: translateY(-12px) rotate(7deg);
  }
}

@keyframes heartPop {
  50% {
    transform: scale(1.22);
  }
}

@keyframes itemPop {
  from {
    opacity: 0;
    transform: scale(0.96) translateX(10px);
  }
}

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

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-stats,
  .deal-strip,
  .trust-band {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .site-header {
    top: 8px;
    width: calc(100% - 16px);
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .search-shell {
    grid-column: 1 / -1;
    order: 3;
  }

  .hero {
    min-height: 92svh;
    padding: 152px 16px 30px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 15vw, 4.5rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

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

  .primary-action,
  .ghost-action {
    justify-content: center;
    width: 100%;
  }

  .hero-stats {
    margin-top: 30px;
  }

  .hero-stats div {
    padding: 14px;
  }

  .section-head,
  .products-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .deal-strip {
    width: calc(100% - 24px);
    padding: 22px;
  }

  .product-card {
    min-height: 386px;
  }

  .trust-band {
    padding-bottom: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
