:root {
  --bg: #eee9e1;
  --bg-2: #f7f3ed;
  --panel: #fffdf8;
  --card: rgba(255, 255, 255, .76);
  --card-solid: #fffaf2;
  --text: #111111;
  --muted: #756f68;
  --line: rgba(17,17,17,.10);
  --line-strong: rgba(17,17,17,.16);
  --accent: #ff7048;
  --accent-2: #a78bff;
  --accent-soft: #f0e6ff;
  --accent-text: #ffffff;
  --success: #1f8a52;
  --danger: #e05252;
  --shadow: 0 24px 80px rgba(56, 43, 26, .13);
  --soft-shadow: 0 12px 30px rgba(56, 43, 26, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(167,139,255,.12), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(255,112,72,.10), transparent 30%),
    linear-gradient(180deg, var(--bg), #e9e1d7);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image: radial-gradient(rgba(17,17,17,.09) 1px, transparent 1px);
  background-size: 18px 18px;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; border: 0; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.app-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 0 12px 30px;
  position: relative;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px 12px;
  background: rgba(238,233,225,.96);
  backdrop-filter: blur(14px);
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brand-title {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .12em;
  white-space: nowrap;
}
.brand-subtitle {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.mini-nav {
  display: flex;
  gap: 18px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 800;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin: 0 0 16px;
  max-width: 620px;
  font-size: clamp(44px, 11vw, 78px);
  line-height: .91;
  letter-spacing: -.065em;
  text-transform: uppercase;
  font-weight: 950;
}
h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 6vw, 44px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 950;
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--soft-shadow);
  font-weight: 800;
}
.cart-pill strong {
  min-width: 27px;
  min-height: 27px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: #5d35e8;
  border-radius: 999px;
  padding: 0 7px;
}

.hero {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 18px;
  align-items: stretch;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 36px;
  padding: clamp(20px, 5vw, 34px);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 560px;
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; }
.hero p {
  color: var(--muted);
  max-width: 560px;
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 22px;
}
.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #918a82;
  box-shadow: var(--soft-shadow);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
}
.badge i {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 7px rgba(167,139,255,.12);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.primary {
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 16px 24px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(0,0,0,.14);
}
.primary.full { width: 100%; }
.hero-secondary { background: rgba(255,255,255,.62); color: #111; }

.feature-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.feature-row span {
  padding: 8px 13px;
  border-radius: 999px;
  background: #fff;
  color: #77716b;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
}


.hero-media {
  position: relative;
  min-height: 100%;
  width: 100%;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.72), rgba(255,255,255,.28) 42%, transparent 67%),
    linear-gradient(160deg, #f6f1ea, #e7ddd2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72), var(--soft-shadow);
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.00));
}
.hero-video {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

.keycap-preview {
  display: grid;
  grid-template-columns: repeat(5, minmax(42px, 1fr));
  gap: 11px;
  align-content: center;
  justify-content: center;
  min-height: 100%;
  padding: 36px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.82), rgba(255,255,255,.36) 42%, transparent 67%),
    linear-gradient(160deg, #f6f1ea, #e7ddd2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72), var(--soft-shadow);
  transform: none;
}
.keycap-preview span {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17,17,17,.06);
  border-radius: 14px 14px 18px 18px;
  background: linear-gradient(180deg, #ffffff, #e8e2f4);
  color: #1a1620;
  box-shadow: inset 0 -8px 0 rgba(0,0,0,.06), 0 12px 20px rgba(0,0,0,.08);
  font-size: 13px;
  font-weight: 900;
  transform: rotate(-4deg);
}
.keycap-preview .accent { background: linear-gradient(180deg, #fff7fb, #ffd4e6); }
.keycap-preview .wide { grid-column: span 2; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 14px;
}
.stats-grid article {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.68);
  background: rgba(255,255,255,.58);
  border-radius: 26px;
  box-shadow: var(--soft-shadow);
}
.stats-grid small { display: block; color: var(--accent-2); font-size: 12px; font-weight: 950; margin-bottom: 10px; }
.stats-grid span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.stats-grid strong { font-size: 24px; letter-spacing: -.03em; }


.promo-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 18px;
  padding: 18px 20px;
  border-radius: 26px;
  background: linear-gradient(135deg, #111 0%, #2b241f 55%, #ff7048 130%);
  color: #fff;
  box-shadow: 0 18px 40px rgba(17,17,17,.16);
}
.promo-strip span {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #ffd3c6;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.promo-strip strong {
  display: block;
  font-size: clamp(20px, 4vw, 32px);
  line-height: .95;
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.promo-strip p {
  max-width: 290px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-weight: 750;
  line-height: 1.35;
}
.cart-promo {
  margin: 10px 0 4px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(31,138,82,.10);
  border: 1px solid rgba(31,138,82,.24);
  color: var(--success);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}
.cart-promo.pending {
  background: rgba(255,112,72,.10);
  border-color: rgba(255,112,72,.24);
  color: var(--accent);
}

.filters-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 6px;
  margin: 0 -2px 6px;
}
.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 5px 2px 12px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  min-width: 0;
}
.filters::-webkit-scrollbar { display: none; }
.filters-arrow {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
  position: relative;
  flex: 0 0 auto;
  z-index: 2;
}
.filters-arrow::before {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  border-top: 2px solid #111;
  border-right: 2px solid #111;
  top: 50%;
  left: 50%;
}
.filters-left::before { transform: translate(-38%, -50%) rotate(-135deg); }
.filters-right::before { transform: translate(-62%, -50%) rotate(45deg); }
.filter {
  white-space: nowrap;
  padding: 12px 16px;
  background: rgba(255,255,255,.58);
  color: #111;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 850;
  flex: 0 0 auto;
  user-select: none;
}
.filter.active {
  border-color: transparent;
  background: #111;
  color: #fff;
}

.search-box { display: block; margin-bottom: 24px; }
.search-box span, .checkout-form span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 7px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
}
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.62);
  color: var(--text);
  padding: 15px 16px;
  outline: none;
}
input:focus, textarea:focus { border-color: var(--accent); background: #fff; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 16px;
}
.section-head h2 { margin-bottom: 0; }
.section-head p:last-child { color: var(--muted); margin-bottom: 5px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.product-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 30px;
  background: rgba(255,255,255,.64);
  box-shadow: var(--soft-shadow);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.product-card:active { transform: none; }
.product-card:hover { border-color: rgba(17,17,17,.14); box-shadow: var(--shadow); }
.product-image {
  width: 100%;
  background: transparent;
  display: block;
  overflow: hidden;
  padding: 10px 10px 0;
}
.product-image img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  padding: 0;
  border-radius: 22px;
  background: transparent;
}
.product-body { padding: 16px; }
.product-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.product-body h3 { margin-bottom: 5px; font-size: 19px; letter-spacing: -.03em; }
.product-meta { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.product-desc { color: var(--muted); font-size: 14px; line-height: 1.45; min-height: 42px; }
.product-price { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.product-price strong { font-size: 22px; letter-spacing: -.035em; }
.product-price s { color: var(--muted); font-size: 13px; }
.card-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; align-items: center; }
.secondary {
  min-height: 50px;
  padding: 13px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.add-btn,
.qty-btn {
  position: relative;
  min-width: 48px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  line-height: 1;
  color: #fff;
}
.add-btn {
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(17,17,17,.12);
}
.add-btn::before,
.add-btn::after,
.qty-btn::before,
.qty-btn::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 2.5px;
  border-radius: 999px;
  background: currentColor;
}
.add-btn::before,
.qty-btn.plus::before { transform: rotate(90deg); }
.add-btn::after,
.qty-btn.plus::after,
.qty-btn.minus::after { transform: none; }
.qty-btn.minus::before { display:none; }
.product-badge {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.stock { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 13px; font-weight: 800; }
.stock::before { content: ''; width: 8px; height: 8px; border-radius: 999px; display: inline-block; }
.in-stock { color: var(--success); }
.in-stock::before { background: var(--success); }
.out-stock { color: var(--danger); }
.out-stock::before { background: var(--danger); }

.modal {
  width: min(96vw, 760px);
  border: 0;
  padding: 0;
  border-radius: 34px;
  background: transparent;
  color: var(--text);
}
.modal::backdrop { background: rgba(20,16,12,.52); backdrop-filter: blur(5px); }
.modal-card {
  position: relative;
  max-height: 90vh;
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 34px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  color: #111;
  font-size: 26px;
  z-index: 4;
  border: 1px solid var(--line);
}
.modal-product-image {
  position: relative;
  touch-action: pan-y;
  border-radius: 26px;
  overflow: hidden;
  background: #f0e9df;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-product-image img { width: 100%; height: auto; max-height: 72vh; object-fit: contain; display: block; }
.product-gallery { margin-bottom: 16px; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; }
.gallery-thumb {
  flex: 0 0 76px;
  height: 60px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #fff;
  opacity: .72;
}
.gallery-thumb.active { border-color: var(--accent); opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; background: #f5efe7; }
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(17,17,17,.78);
  color: white;
  border: 1px solid rgba(255,255,255,.22);
  font-size: 34px;
  line-height: 1;
  z-index: 3;
}
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-counter {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(17,17,17,.76);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  z-index: 3;
}

.gallery-swipe-hint {
  display: none;
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.features { display: grid; gap: 8px; padding-left: 0; list-style: none; }
.features li { padding: 11px 13px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.62); }
.cart-list { display: grid; gap: 10px; margin: 16px 0; }
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.66);
  border-radius: 20px;
}
.qty-controls { display: flex; align-items: center; gap: 8px; }
.qty-controls button {
  background: #111;
  color: #fff;
}
.qty-controls span {
  min-width: 18px;
  text-align: center;
  font-weight: 800;
}
.qty-controls button:disabled { background: #a7a19a; opacity: 1; }
.cart-total { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 14px 0; }
.checkout-form { display: grid; gap: 12px; margin-bottom: 14px; }
.order-result { padding: 13px; border-radius: 17px; background: rgba(31,138,82,.10); border: 1px solid rgba(31,138,82,.26); color: var(--success); }
.empty-state { padding: 18px; border: 1px solid var(--line); border-radius: 22px; color: var(--muted); text-align: center; background: rgba(255,255,255,.52); }
.hidden { display: none !important; }

select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.62);
  color: var(--text);
  padding: 15px 16px;
  outline: none;
  appearance: auto;
}
select:focus { border-color: var(--accent); background: #fff; }
.delivery-hint {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(14px);
  z-index: 9999;
  max-width: calc(100vw - 24px);
  padding: 13px 18px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  box-shadow: var(--shadow);
  font-weight: 900;
  letter-spacing: .02em;
  text-align: center;
  opacity: 0;
  pointer-events: none;
}
.cart-toast.show {
  animation: toastIn .9s ease forwards;
}
.cart-bump {
  animation: cartBump .44s ease;
}
.cart-fly-dot {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--accent);
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(255,112,72,.35);
  animation: flyToCart .7s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes toastIn {
  0% { opacity: 0; transform: translateX(-50%) translateY(14px) scale(.96); }
  18% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  82% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(10px) scale(.98); }
}
@keyframes cartBump {
  0% { transform: scale(1); }
  35% { transform: scale(1.08); }
  70% { transform: scale(.98); }
  100% { transform: scale(1); }
}
@keyframes flyToCart {
  0% { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(170px,-170px) scale(.35); opacity: 0; }
}


.product-story {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.66);
}
.product-story span {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.product-story p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.mobile-cart-float {
  position: fixed;
  right: 14px;
  bottom: 92px;
  z-index: 80;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: none;
  place-items: center;
  background: #111;
  color: #fff;
  box-shadow: 0 18px 44px rgba(17,17,17,.24);
  border: 1px solid rgba(255,255,255,.5);
}
.mobile-cart-float .cart-icon { font-size: 22px; line-height: 1; }
.mobile-cart-float strong {
  position: absolute;
  right: -3px;
  top: -5px;
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  border: 2px solid var(--bg-2);
}
.mobile-cart-float.has-items { animation: cartFloatPulse .5s ease; }
@keyframes cartFloatPulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@media (max-width: 820px) {
  .mini-nav { display: none; }
  .gallery-swipe-hint { display: block; }
  .mobile-cart-float { display: grid; }
  .topbar { grid-template-columns: 1fr auto; padding: 10px 10px 12px; }
  .hero { grid-template-columns: 1fr; min-height: auto; border-radius: 30px; }
  
.hero-media {
  position: relative;
  min-height: 100%;
  width: 100%;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.72), rgba(255,255,255,.28) 42%, transparent 67%),
    linear-gradient(160deg, #f6f1ea, #e7ddd2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72), var(--soft-shadow);
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.00));
}
.hero-video {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

.keycap-preview { padding: 24px; min-height: 280px; }
  .product-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid article { padding: 14px; border-radius: 22px; }
  .stats-grid strong { font-size: 18px; }
  .cart-pill span { display: none; }
  h1 { font-size: clamp(42px, 14vw, 64px); }
}

@media (max-width: 460px) {
  .app-shell { padding: 0 10px 26px; }
  .hero { padding: 18px; }
  .brand-title { font-size: 15px; }
  .brand-mark { width: 42px; height: 42px; }
  .stats-grid { gap: 8px; }
  .stats-grid span { font-size: 11px; }
  .stats-grid strong { font-size: 16px; }
  
.hero-media {
  position: relative;
  min-height: 100%;
  width: 100%;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.72), rgba(255,255,255,.28) 42%, transparent 67%),
    linear-gradient(160deg, #f6f1ea, #e7ddd2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72), var(--soft-shadow);
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.00));
}
.hero-video {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

.keycap-preview { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .keycap-preview span { min-height: 40px; font-size: 11px; }
  .feature-row span { font-size: 9px; }
  .modal { width: 98vw; }
  .modal-card { padding: 12px; border-radius: 26px; }
  .gallery-arrow { width: 40px; height: 40px; font-size: 30px; }
}


/* Full product images in catalog cards: no crop */
.product-image img { object-fit: contain !important; }
@media (max-width: 520px) {
  .product-image { padding: 10px 10px 0; }
  .product-image img { max-height: none; }
}

.hero-video::-webkit-media-controls { display: none !important; }
.product-image { touch-action: pan-y; }
.product-card { -webkit-tap-highlight-color: transparent; }
.modal { overscroll-behavior: contain; }

.pay-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(255,112,72,.20);
}


/* Cart modal polish: clean close icon, straight + / −, product thumbnails */
.close {
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 1 !important;
}
.close::before,
.close::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: #111;
}
.close::before { transform: rotate(45deg); }
.close::after { transform: rotate(-45deg); }

.cart-item {
  grid-template-columns: minmax(0, 1fr) auto !important;
  padding: 12px !important;
}
.cart-item-main {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.cart-item-thumb {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  background: #f2ece4;
  border: 1px solid var(--line);
}
.cart-item-main strong,
.cart-item-main .product-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qty-controls {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.qty-controls .qty-btn,
.qty-btn {
  position: relative !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 12px !important;
  display: inline-grid !important;
  place-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #111 !important;
  color: #fff !important;
  font-size: 0 !important;
  line-height: 1 !important;
}
.qty-btn::before,
.qty-btn::after {
  content: '' !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 14px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: currentColor !important;
  transform: translate(-50%, -50%) !important;
}
.qty-btn.plus::before {
  transform: translate(-50%, -50%) rotate(90deg) !important;
}
.qty-btn.minus::before { display: none !important; }
.qty-btn:disabled {
  background: #aaa39b !important;
  opacity: 1 !important;
}
.qty-controls span {
  min-width: 18px !important;
  text-align: center !important;
  font-weight: 900 !important;
}
.add-btn::before,
.add-btn::after {
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
}
.add-btn::before { transform: translate(-50%, -50%) rotate(90deg) !important; }

@media (max-width: 520px) {
  .cart-item { gap: 10px !important; }
  .cart-item-main { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; }
  .cart-item-thumb { width: 52px; height: 52px; border-radius: 13px; }
  .qty-controls .qty-btn,
  .qty-btn { width: 34px !important; height: 34px !important; min-width: 34px !important; }
}

@media (max-width: 520px) {
  
.promo-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 18px;
  padding: 18px 20px;
  border-radius: 26px;
  background: linear-gradient(135deg, #111 0%, #2b241f 55%, #ff7048 130%);
  color: #fff;
  box-shadow: 0 18px 40px rgba(17,17,17,.16);
}
.promo-strip span {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #ffd3c6;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.promo-strip strong {
  display: block;
  font-size: clamp(20px, 4vw, 32px);
  line-height: .95;
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.promo-strip p {
  max-width: 290px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-weight: 750;
  line-height: 1.35;
}
.cart-promo {
  margin: 10px 0 4px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(31,138,82,.10);
  border: 1px solid rgba(31,138,82,.24);
  color: var(--success);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}
.cart-promo.pending {
  background: rgba(255,112,72,.10);
  border-color: rgba(255,112,72,.24);
  color: var(--accent);
}

.filters-wrap { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 5px; }
  .filters-arrow { width: 34px; height: 34px; }
  .filter { padding: 11px 14px; }
}


/* FINAL FIX: centered gallery arrows + clean clickable backdrop */
.modal::backdrop {
  background: rgba(20,16,12,.56);
  backdrop-filter: blur(5px);
}
.modal-card {
  position: relative;
}
.modal-product-image {
  position: relative !important;
  overflow: hidden !important;
}
.gallery-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  border-radius: 999px !important;
  background: rgba(17,17,17,.74) !important;
  color: transparent !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  z-index: 10 !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0 !important;
  line-height: 1 !important;
}
.gallery-arrow::before {
  content: '' !important;
  display: block !important;
  width: 11px !important;
  height: 11px !important;
  border-top: 2.5px solid #fff !important;
  border-right: 2.5px solid #fff !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
}
.gallery-prev { left: 16px !important; right: auto !important; }
.gallery-prev::before { transform: translate(-42%, -50%) rotate(-135deg) !important; }
.gallery-next { right: 16px !important; left: auto !important; }
.gallery-next::before { transform: translate(-58%, -50%) rotate(45deg) !important; }

@media (max-width: 520px) {
  .gallery-arrow {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
  }
  .gallery-prev { left: 10px !important; }
  .gallery-next { right: 10px !important; }
}


/* Promo code + updated promo strip */
.promo-strip {
  align-items: stretch;
}
.promo-code-card {
  min-width: 190px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
}
.promo-code-card span {
  margin-bottom: 8px;
}
.promo-code-card strong {
  font-size: clamp(18px, 3.4vw, 26px);
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.promo-code-card p {
  max-width: none;
  margin-top: 6px;
  color: rgba(255,255,255,.78);
}
.promo-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.promo-input-row input {
  text-transform: uppercase;
}
.promo-input-row button {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 15px;
  background: #111;
  color: #fff;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.promo-success { color: var(--success) !important; }
.promo-error { color: var(--accent) !important; }
.cart-promo.code {
  background: rgba(17,17,17,.06);
  border-color: rgba(17,17,17,.10);
  color: var(--text);
}
.old-total {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 14px;
  margin-right: 8px;
}
@media (max-width: 720px) {
  .promo-strip {
    display: grid;
    grid-template-columns: 1fr;
  }
  .promo-code-card {
    min-width: 0;
  }
}
@media (max-width: 520px) {
  .promo-input-row {
    grid-template-columns: 1fr;
  }
  .promo-input-row button {
    width: 100%;
  }
}

/* Friend promo + weekly sets */
.promo-strip-expanded {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.promo-strip-expanded .promo-code-card {
  min-height: 100%;
}
.weekly-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 8px 0 4px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,112,72,.12);
  color: var(--accent);
  border: 1px solid rgba(255,112,72,.25);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.modal-weekly {
  margin: 10px 0 8px;
}
.weekly-cart-promo {
  background: rgba(255,112,72,.10) !important;
  border-color: rgba(255,112,72,.25) !important;
}
@media (max-width: 820px) {
  .promo-strip-expanded {
    grid-template-columns: 1fr;
  }
}


/* Premium promo cards — softer, cleaner typography */
.promo-strip.promo-strip-expanded {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 22px;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.promo-strip-expanded .promo-code-card {
  position: relative;
  min-width: 0 !important;
  min-height: 178px !important;
  padding: 22px 22px 20px !important;
  border-radius: 28px !important;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.18), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.055)) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  box-shadow: 0 18px 42px rgba(17, 14, 10, .10) !important;
  backdrop-filter: blur(8px);
}
.promo-strip-expanded .promo-code-card::after {
  content: '';
  position: absolute;
  inset: auto 18px 0 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
  opacity: .65;
}
.promo-strip-expanded .weekly-promo-card {
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 230, 207, .30), transparent 36%),
    linear-gradient(145deg, rgba(255, 145, 95, .20), rgba(255,255,255,.07)) !important;
}
.promo-strip-expanded .promo-code-card span {
  display: inline-flex !important;
  width: fit-content;
  margin: 0 0 18px !important;
  padding: 7px 10px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.12) !important;
  color: rgba(255,255,255,.72) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  font-size: 10px !important;
  font-weight: 760 !important;
  line-height: 1 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
}
.promo-strip-expanded .promo-code-card strong {
  display: block !important;
  max-width: 270px;
  color: rgba(255,255,255,.94) !important;
  font-size: clamp(22px, 2.55vw, 34px) !important;
  font-weight: 780 !important;
  line-height: 1.02 !important;
  letter-spacing: -.045em !important;
  text-transform: none !important;
}
.promo-strip-expanded .promo-code-card p {
  max-width: 290px !important;
  margin: 12px 0 0 !important;
  color: rgba(255,255,255,.64) !important;
  font-size: 14px !important;
  font-weight: 560 !important;
  line-height: 1.48 !important;
  letter-spacing: -.012em !important;
}
.promo-strip-expanded .promo-code-card:nth-child(2) strong {
  font-size: clamp(28px, 3.2vw, 42px) !important;
  letter-spacing: -.035em !important;
  text-transform: uppercase !important;
}
@media (max-width: 920px) {
  .promo-strip.promo-strip-expanded {
    grid-template-columns: 1fr;
  }
  .promo-strip-expanded .promo-code-card {
    min-height: 142px !important;
  }
}
@media (max-width: 520px) {
  .promo-strip.promo-strip-expanded {
    gap: 10px;
    margin-top: 14px;
  }
  .promo-strip-expanded .promo-code-card {
    padding: 18px !important;
    border-radius: 24px !important;
  }
  .promo-strip-expanded .promo-code-card span {
    margin-bottom: 14px !important;
  }
  .promo-strip-expanded .promo-code-card strong {
    font-size: 25px !important;
  }
  .promo-strip-expanded .promo-code-card:nth-child(2) strong {
    font-size: 31px !important;
  }
  .promo-strip-expanded .promo-code-card p {
    font-size: 13.5px !important;
  }
}

/* Promo cards contrast fix — keep soft premium background, make text readable */
.promo-strip-expanded .promo-code-card {
  border: 1px solid rgba(32, 26, 21, .10) !important;
  box-shadow: 0 18px 42px rgba(32, 24, 18, .08) !important;
}
.promo-strip-expanded .promo-code-card span {
  background: rgba(33, 27, 23, .075) !important;
  color: rgba(39, 32, 27, .66) !important;
  border: 1px solid rgba(33, 27, 23, .075) !important;
  text-shadow: none !important;
}
.promo-strip-expanded .promo-code-card strong {
  color: #211b17 !important;
  text-shadow: none !important;
}
.promo-strip-expanded .promo-code-card p {
  color: rgba(45, 37, 31, .72) !important;
  text-shadow: none !important;
}
.promo-strip-expanded .weekly-promo-card {
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 230, 207, .42), transparent 36%),
    linear-gradient(145deg, rgba(255, 176, 136, .28), rgba(255,255,255,.16)) !important;
}
.promo-strip-expanded .promo-code-card::after {
  background: linear-gradient(90deg, transparent, rgba(33, 27, 23, .16), transparent) !important;
}


/* 3 sets promo + four promo cards */
.promo-strip-expanded .bundle-promo-card {
  background: linear-gradient(145deg, rgba(230, 214, 202, .92), rgba(246, 237, 231, .9));
}
.bundle-cart-promo {
  background: rgba(36, 27, 20, .06);
  border-color: rgba(36, 27, 20, .16);
}
@media (min-width: 980px) {
  .promo-strip.promo-strip-expanded {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .promo-strip-expanded .promo-code-card strong {
    font-size: clamp(24px, 2.6vw, 38px);
  }
}


/* FAQ + custom request section */
.custom-note {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr) auto;
  gap: 18px;
  align-items: center;
  margin: 24px 0;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.62), rgba(244,236,226,.72));
  border: 1px solid rgba(36, 27, 20, .10);
  box-shadow: 0 18px 42px rgba(32, 24, 18, .06);
}
.custom-note h2 {
  margin: 4px 0 0;
  font-size: clamp(24px, 3vw, 42px);
  line-height: .98;
  letter-spacing: -.045em;
}
.custom-note p:not(.eyebrow) {
  margin: 0;
  color: rgba(45, 37, 31, .72);
  font-weight: 560;
  line-height: 1.45;
}
.faq-section {
  margin: 30px 0 56px;
  scroll-margin-top: 90px;
}
.custom-note { scroll-margin-top: 90px; }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.faq-grid details {
  border-radius: 22px;
  border: 1px solid rgba(36, 27, 20, .10);
  background: rgba(255,255,255,.64);
  box-shadow: 0 14px 30px rgba(32, 24, 18, .045);
  overflow: hidden;
}
.faq-grid summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  color: #211b17;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -.02em;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after {
  content: '';
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(33,27,23,.72);
  border-bottom: 2px solid rgba(33,27,23,.72);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
  flex: 0 0 auto;
}
.faq-grid details[open] summary::after {
  transform: rotate(-135deg) translateY(-1px);
}
.faq-grid details p {
  margin: -4px 20px 18px;
  color: rgba(45, 37, 31, .70);
  font-size: 14px;
  font-weight: 540;
  line-height: 1.55;
}
@media (max-width: 860px) {
  .custom-note {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .custom-note .secondary {
    width: 100%;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* Promo desktop layout fix: keep 4 cards clean, no escaping text */
.promo-strip.promo-strip-expanded {
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.promo-strip-expanded .promo-code-card {
  min-width: 0 !important;
  width: 100% !important;
}
.promo-strip-expanded .promo-code-card strong,
.promo-strip-expanded .promo-code-card p {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}
.promo-strip-expanded .promo-code-card strong {
  font-size: clamp(22px, 2.1vw, 31px) !important;
  line-height: 1.06 !important;
  letter-spacing: -.04em !important;
}
.promo-strip-expanded .promo-code-card:nth-child(2) strong {
  font-size: clamp(28px, 2.45vw, 34px) !important;
  line-height: 1 !important;
  letter-spacing: -.045em !important;
}
.promo-strip-expanded .promo-code-card p {
  font-size: 13.5px !important;
  line-height: 1.5 !important;
}
@media (max-width: 1120px) {
  .promo-strip.promo-strip-expanded {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 620px) {
  .promo-strip.promo-strip-expanded {
    grid-template-columns: 1fr !important;
  }
  .promo-strip-expanded .promo-code-card strong,
  .promo-strip-expanded .promo-code-card:nth-child(2) strong {
    font-size: 28px !important;
  }
}
