/* APPLE EMPIRE — mockup-accurate storefront */
:root {
  --bg: #2a2a2e;
  --card: #35353a;
  --card2: #3c3c42;
  --pink: #f06296;
  --pink2: #fb96c1;
  --depth: #8c2746;
  --text: #f5f0f2;
  --muted: #c4c0c4;
  --line: rgba(240, 98, 150, 0.28);
  --line-soft: rgba(255, 255, 255, 0.08);
  --grad: linear-gradient(90deg, #f06296, #8c2746);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --h: 56px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe: var(--safe-b);
  --pad-x: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  height: 100%;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
  min-height: 100dvh;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  padding-left: var(--safe-l);
  padding-right: var(--safe-r);
}
img { display: block; max-width: 100%; height: auto; }
button, input, select {
  font: inherit; color: inherit; background: none; border: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
input { cursor: text; }
a { color: inherit; text-decoration: none; }
.wrap {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ========== HEADER ========== */
.top {
  position: sticky; top: 0; z-index: 40;
  height: calc(var(--h) + var(--safe-t));
  padding-top: var(--safe-t);
  background: rgba(42, 42, 46, 0.94);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
}
.top__in {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.brand img {
  width: 36px; height: 36px; border-radius: 9px; object-fit: cover;
}
.brand__txt {
  display: flex; flex-direction: column; gap: 1px;
  font-weight: 600; letter-spacing: 0.32em; font-size: 11px; line-height: 1.05;
}
.brand__txt b { font-weight: 600; }
.brand__txt i {
  font-style: normal; color: var(--pink); letter-spacing: 0.42em; font-size: 9.5px;
}
.top__acts { display: flex; align-items: center; gap: 6px; }
.btn-nav {
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: .18s;
  white-space: nowrap;
}
.btn-nav:hover {
  border-color: var(--line);
  color: var(--pink2);
  background: rgba(240, 98, 150, 0.08);
}
.ib {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; position: relative;
  color: var(--text); transition: .18s;
}
.ib:hover { background: var(--card); color: var(--pink2); }
.ib--pink { background: var(--pink); color: #fff; }
.ib--pink:hover { background: var(--pink2); color: #1a1a1a; }
.dot-n {
  position: absolute; top: 5px; right: 5px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 99px; background: var(--pink); color: #fff;
  font-size: 10px; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.dot-n[hidden] { display: none !important; }

/* ========== VIEWS ========== */
.view[hidden] { display: none !important; }
body.is-home .top { border-bottom-color: transparent; }

/* ========== HOME ========== */
.home {
  position: relative;
  min-height: calc(100dvh - var(--h) - var(--safe-t));
  padding: 20px 0 calc(40px + var(--safe-b));
  overflow-x: hidden;
}
.home__glow {
  pointer-events: none;
  position: absolute;
  inset: -20% -10% auto;
  height: 75%;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(240, 98, 150, 0.3), transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 30%, rgba(140, 39, 70, 0.24), transparent 65%),
    radial-gradient(ellipse 35% 30% at 15% 40%, rgba(240, 98, 150, 0.1), transparent 60%);
}
.home__in {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.home__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink2);
}
.home__title {
  font-size: clamp(32px, 7vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 4px 0 2px;
}
.home__title span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home__lead {
  color: var(--muted);
  font-size: 15px;
  max-width: 36ch;
  margin-bottom: 22px;
  line-height: 1.45;
}
.home__cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (min-width: 560px) {
  .home__cats { gap: 12px; }
}
@media (min-width: 900px) {
  .home__cats { gap: 14px; }
}
.home-tile--all { grid-column: 1 / -1; }

.home-tile {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 12px;
  min-height: 84px;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  background: var(--card);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .22s, transform .22s, box-shadow .22s, background .22s;
  animation: homeIn .45s ease both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes homeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.home-tile:hover {
  border-color: var(--line);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22), 0 0 28px rgba(240, 98, 150, 0.14);
  transform: translateY(-3px);
  background: var(--card2);
}
.home-tile:hover .home-tile__arrow {
  background: rgba(240, 98, 150, 0.22);
  color: #fff;
  transform: translateX(2px);
}
.home-tile:active { transform: scale(0.99); }
.home-tile__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(240, 98, 150, 0.1), transparent 55%);
  opacity: 0.95;
  pointer-events: none;
}
.home-tile--all {
  background: linear-gradient(135deg, #4a2a38 0%, #3a2a32 40%, var(--card) 100%);
  border-color: rgba(240, 98, 150, 0.4);
  min-height: 108px;
  box-shadow: 0 0 0 1px rgba(240, 98, 150, 0.08), 0 12px 36px rgba(140, 39, 70, 0.15);
}
.home-tile--all:hover {
  background: linear-gradient(135deg, #553040 0%, #423038 40%, var(--card2) 100%);
  border-color: rgba(240, 98, 150, 0.55);
}
.home-tile--all .home-tile__name { font-size: 18px; }
.home-tile--all .home-tile__media {
  width: 72px;
  height: 72px;
  border-radius: 14px;
}
.home-tile__media {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(240, 98, 150, 0.18), transparent 60%),
    #252528;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.home-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
  transition: transform .3s ease;
}
.home-tile:hover .home-tile__media img { transform: scale(1.06); }
.home-tile__ico {
  font-size: 22px;
  line-height: 1;
  opacity: 0.9;
}
.home-tile__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.home-tile__name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.home-tile__sub {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-tile__count {
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--pink2);
  opacity: 0.9;
}
.home-tile__arrow {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--pink2);
  background: rgba(240, 98, 150, 0.12);
  flex-shrink: 0;
  transition: background .2s, color .2s, transform .2s;
}

/* Home reviews */
.home-reviews {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.home-reviews__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.home-reviews__all {
  flex-shrink: 0;
  align-self: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(240, 98, 150, 0.1);
  color: var(--pink2);
  font-size: 13px;
  font-weight: 600;
  width: auto;
  white-space: nowrap;
  transition: .15s;
}
.home-reviews__all:hover {
  background: rgba(240, 98, 150, 0.18);
  border-color: var(--pink);
}
.home-reviews__all:active {
  transform: scale(0.97);
}
.home-reviews__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink2);
  margin-bottom: 4px;
}
.home-reviews__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.home-reviews__note {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
  max-width: 52ch;
}
.home-reviews__note strong { color: var(--pink2); font-weight: 700; }
.home-reviews__track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 2px 8px;
  margin: 0 -2px;
}
.home-reviews__track::-webkit-scrollbar { display: none; }

.rev-card {
  flex: 0 0 min(280px, 82vw);
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 168px;
}
.rev-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.rev-card__name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.rev-card__meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}
.rev-card__stars {
  color: #f5c542;
  font-size: 12px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.rev-card__text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Home about teaser */
.home-about {
  margin-top: 22px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(145deg, rgba(240, 98, 150, 0.1), transparent 50%),
    var(--card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 560px;
}
.home-about__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.home-about__text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 4px;
}
.btn-ghost {
  align-self: flex-start;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--pink2);
  font-size: 13px;
  font-weight: 600;
  background: rgba(240, 98, 150, 0.08);
  transition: .18s;
}
.btn-ghost:hover {
  background: rgba(240, 98, 150, 0.16);
  border-color: var(--pink);
}

/* Catalog bar */
.cat-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  min-height: 40px;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: .15s;
}
.btn-back:hover {
  border-color: var(--line);
  color: var(--pink2);
}
.cat-bar__head {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.cat-bar__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.cat-bar__sub {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.cat-empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 12px;
  font-size: 14px;
}

/* ========== GRID ========== */
.main { padding: 16px 0 100px; }
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
}

/* Product card — mockup style */
.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 10px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  position: relative;
  min-width: 0;
}
.card:hover {
  border-color: var(--line);
  box-shadow: 0 0 32px rgba(240, 98, 150, 0.12);
}
/* Studio image stage */
.stage {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.06);
}
.stage::before {
  content: "";
  position: absolute; left: 12%; right: 12%; bottom: 10%;
  height: 18%;
  background: transparent;
  filter: none;
  pointer-events: none; z-index: 0;
}
.stage img {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 10% 10% 12%;
  filter: none;
  transition: transform .35s ease;
  background: transparent !important;
  image-rendering: auto;
  transform-origin: center center;
}
.card:hover .stage img { transform: scale(1.04) translateY(-2px); }

/* iPhone 16 / 17 / large iPads — a bit more room so they match */
.card[data-id^="ip16"] .stage img,
.card[data-id^="iphone-17"] .stage img,
.card[data-id="iphone-air"] .stage img,
.card[data-id="ipadpro13"] .stage img,
.card[data-id="ipadair13"] .stage img {
  padding: 14% 14% 16%;
}

/* Watches: full product with band */
.card[data-cat="watch"] .stage img {
  padding: 8% 10% 12%;
}

/* PlayStation consoles */
.card[data-cat="ps5"] .stage img {
  padding: 8% 8% 10%;
}

/* Photo products (PS5/Dyson/glasses) */
.stage.is-photo {
  background: #2a2a2e;
}
.stage.is-photo img {
  object-fit: cover;
  padding: 0;
  filter: none;
}
.stage.is-photo::after {
  content: "";
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,10,.5));
}

.colors {
  display: flex; gap: 6px; flex-wrap: wrap; min-height: 14px; padding: 0 2px;
}
.c-dot {
  width: 12px; height: 12px; border-radius: 50%; padding: 0;
  border: 1.5px solid rgba(255,255,255,.22);
  transition: outline .15s;
}
.c-dot.on {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

.card__name {
  font-size: 12.5px; font-weight: 600; line-height: 1.35;
  min-height: 2.4em;
  cursor: pointer;
  letter-spacing: -0.01em;
}
.card__name:hover { color: var(--pink2); }

.price-block { display: flex; flex-direction: column; gap: 2px; }
.price-now {
  font-size: 18px; font-weight: 700; letter-spacing: -0.02em;
}

.acts { display: flex; flex-direction: column; gap: 7px; margin-top: auto; padding-top: 2px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; border-radius: 99px; font-size: 13px; font-weight: 600;
  transition: .18s; width: 100%;
}
.btn-outline {
  border: 1.5px solid var(--pink);
  color: var(--pink2);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(240, 98, 150, 0.1);
  color: #fff;
}
.btn-fill {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 18px rgba(240, 98, 150, 0.28);
}
.btn-fill:hover { filter: brightness(1.07); }
.btn-fill:disabled {
  opacity: .4; cursor: not-allowed; filter: none; box-shadow: none;
}
.btn-lg { height: 48px; font-size: 14px; }

.empty {
  grid-column: 1 / -1;
  text-align: center; padding: 56px 16px; color: var(--muted);
}
.empty p { margin-bottom: 14px; font-size: 15px; }
.empty button {
  height: 42px; padding: 0 20px; border-radius: 99px;
  border: 1.5px solid var(--pink); color: var(--pink2); font-weight: 600;
}

.scrim {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,.62);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.scrim.open { opacity: 1; pointer-events: auto; }

.panel {
  position: fixed; z-index: 60;
  background: var(--bg);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.panel-head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px; border-bottom: 1px solid var(--line-soft);
}
.panel-head h2 { flex: 1; font-size: 18px; }

/* ========== PRODUCT SHEET ========== */
.sheet {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: end center;
  pointer-events: none;
}
.sheet.open { pointer-events: auto; }
.sheet__box {
  width: min(520px, 100%); max-height: 94dvh;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  background: var(--card);
  border-radius: 22px 22px 0 0;
  border: 1px solid var(--line);
  border-bottom: none;
  padding: 10px 16px calc(20px + var(--safe));
  transform: translateY(105%);
  transition: transform .32s cubic-bezier(.2,.8,.2,1);
  box-shadow: none;
}
.sheet__box::-webkit-scrollbar { display: none; } /* Chrome / Edge / Safari */
.sheet.open .sheet__box { transform: translateY(0); }
@media (min-width: 720px) {
  .sheet { place-items: center; padding: 24px; }
  .sheet__box {
    border-radius: 22px; border-bottom: 1px solid var(--line);
    max-height: 90vh;
  }
}
.sheet__handle {
  width: 40px; height: 4px; border-radius: 99px;
  background: rgba(0,0,0,.12); margin: 4px auto 10px;
}
.sheet__x { float: right; }
.sheet .stage {
  margin: 8px 0 14px; cursor: default;
  min-height: 260px;
}
.sheet .stage img {
  padding: 8% 8% 10%;
}
.sheet h2 { font-size: 22px; font-weight: 700; margin: 4px 0 6px; clear: both; }
.sheet .about { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.opt { margin-bottom: 14px; }
.opt label {
  display: block; font-size: 12px; color: var(--muted);
  margin-bottom: 8px; font-weight: 500;
}
.opt__row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  height: 40px; padding: 0 14px; border-radius: 99px;
  border: 1px solid var(--line-soft); background: var(--bg);
  font-size: 13px; display: inline-flex; align-items: center; gap: 8px;
  transition: .15s;
}
.pill.on {
  border-color: var(--pink); background: rgba(240,98,150,.12); color: var(--pink2);
}
.pill i {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
}
.sheet__price {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin: 6px 0 16px;
}
.sheet__price strong { font-size: 26px; font-weight: 700; }
.sheet .acts { gap: 10px; }

/* ========== CART ========== */
.panel-cart {
  top: 0; right: 0; width: min(400px, 100vw); height: 100%;
  border-left: 1px solid var(--line);
  transform: translateX(105%);
  display: flex; flex-direction: column;
  background: var(--bg);
}
.panel-cart.open { transform: translateX(0); }
.cart-list {
  flex: 1; overflow-y: auto; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: none;
}
.cart-list::-webkit-scrollbar { display: none; }
.cart-empty {
  text-align: center; color: var(--muted); padding: 48px 12px; font-size: 14px;
}
.ci {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 10px; align-items: center;
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: 16px; padding: 10px;
}
.ci__img {
  width: 76px; height: 76px; border-radius: 12px; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(240,98,150,.12), transparent 60%),
    #2a2a2e;
  display: grid; place-items: center;
}
.ci__img img {
  width: 100%; height: 100%; object-fit: contain; padding: 8px;
}
.ci h4 { font-size: 13px; font-weight: 600; line-height: 1.3; }
.ci p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.ci .sum { font-size: 14px; font-weight: 700; margin-top: 6px; }
.qty { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.qty button {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--line-soft); font-size: 15px;
}
.qty button:hover { border-color: var(--pink); color: var(--pink2); }
.qty span { font-size: 13px; font-weight: 600; min-width: 14px; text-align: center; }
.cart-foot {
  padding: 14px 16px calc(16px + var(--safe));
  border-top: 1px solid var(--line-soft);
  background: var(--card);
  display: flex; flex-direction: column; gap: 10px;
}
.cart-total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px; color: var(--muted);
}
.cart-total strong { font-size: 22px; color: var(--text); }
.hint { font-size: 12px; color: var(--muted); text-align: center; }

/* ========== ABOUT SHEET ========== */
.sheet-about { z-index: 72; }
.about-box { padding-top: 8px; }
.about-box__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink2);
  margin: 4px 0 6px;
  clear: both;
}
.about-box #about-title {
  margin-bottom: 8px;
}
.about-box__lead {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.about-stat {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-stat strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--pink2);
  letter-spacing: -0.02em;
}
.about-stat span {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.25;
}
.about-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.about-copy p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}
.about-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.about-contact {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: var(--bg);
  transition: border-color .18s, background .18s, transform .18s;
}
.about-contact:hover {
  border-color: var(--line);
  background: rgba(240, 98, 150, 0.08);
  transform: translateY(-1px);
}
.about-contact__ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(240, 98, 150, 0.14);
  color: var(--pink2);
}
.about-contact__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.about-contact__body strong {
  font-size: 14px;
  font-weight: 700;
}
.about-contact__body span {
  font-size: 12px;
  color: var(--muted);
}
.about-contact__go {
  color: var(--pink2);
  font-weight: 700;
  font-size: 16px;
}
.about-box__hint {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  padding-bottom: 4px;
}
.about-box__hint span {
  color: var(--pink2);
  font-weight: 600;
}

/* Trust block in About */
.about-trust {
  margin: 4px 0 18px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(240, 98, 150, 0.28);
  background:
    linear-gradient(145deg, rgba(240, 98, 150, 0.14), transparent 55%),
    var(--bg);
}
.about-trust__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink2);
  margin-bottom: 6px;
}
.about-trust__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.about-trust__text {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 14px;
}
.about-trust__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.about-trust__item {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.about-trust__item strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--pink2);
  letter-spacing: -0.02em;
}
.about-trust__item span {
  font-size: 11px;
  color: var(--muted);
}
.about-trust__btn {
  margin-top: 12px;
  align-self: stretch;
  width: 100%;
}

/* ========== REVIEWS SHEET ========== */
.sheet-reviews { z-index: 73; }
.reviews-box { padding-top: 8px; }
.reviews-box__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink2);
  margin: 4px 0 6px;
  clear: both;
}
.reviews-box #reviews-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  clear: both;
}
.reviews-box__lead {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.reviews-box__lead strong { color: var(--pink2); }
.reviews-score {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: var(--bg);
  margin-bottom: 14px;
}
.reviews-score__n {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--pink2);
  line-height: 1;
}
.reviews-score__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.reviews-score__meta .stars {
  color: #f5c542;
  letter-spacing: 2px;
  font-size: 14px;
}
.reviews-score__meta span {
  font-size: 12.5px;
  color: var(--muted);
}
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.rev-row {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rev-row__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.rev-row__name {
  font-size: 14px;
  font-weight: 700;
}
.rev-row__meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.rev-row__stars {
  color: #f5c542;
  font-size: 12px;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.rev-row__text {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
}
.reviews-box__foot {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 4px 0 8px;
}

/* ========== TOAST ========== */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--safe));
  transform: translateX(-50%) translateY(12px);
  z-index: 100; max-width: calc(100% - 32px);
  background: var(--card); border: 1px solid var(--line);
  padding: 12px 18px; border-radius: 14px;
  font-size: 13px; font-weight: 500; text-align: center;
  opacity: 0; pointer-events: none; transition: .25s;
  box-shadow: 0 10px 30px rgba(0,0,0,.4), 0 0 24px rgba(240,98,150,.12);
}
.toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

/* ========== MOBILE OPTIMIZATION ========== */
@media (max-width: 719px) {
  :root {
    --h: 52px;
    --pad-x: 12px;
  }

  .top__in { gap: 6px; }
  .brand { gap: 7px; min-width: 0; max-width: 42%; }
  .brand img { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; }
  .brand__txt {
    font-size: 9.5px;
    letter-spacing: 0.18em;
    overflow: hidden;
  }
  .brand__txt i { letter-spacing: 0.22em; font-size: 8px; }
  .top__acts {
    gap: 3px;
    flex-shrink: 0;
    margin-left: auto;
  }
  .btn-nav {
    height: 32px;
    min-height: 32px;
    padding: 0 8px;
    font-size: 11px;
    border-radius: 999px;
  }
  .ib {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    flex-shrink: 0;
  }
  .dot-n {
    top: 3px;
    right: 3px;
    min-width: 15px;
    height: 15px;
    font-size: 9px;
  }

  .home { padding: 14px 0 calc(24px + var(--safe-b)); }
  .home__in { gap: 8px; }
  .home__eyebrow { font-size: 10.5px; letter-spacing: 0.12em; }
  .home__title {
    font-size: clamp(24px, 7.5vw, 32px);
    margin: 0;
    line-height: 1.1;
  }
  .home__lead {
    font-size: 13px;
    max-width: none;
    margin-bottom: 10px;
    line-height: 1.4;
  }
  .home__cats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .home-tile {
    grid-template-columns: 44px 1fr;
    gap: 8px;
    padding: 9px;
    min-height: 72px;
    border-radius: 14px;
    animation: none;
  }
  .home-tile__arrow { display: none; }
  .home-tile__media {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  .home-tile__media img { padding: 4px; }
  .home-tile__name {
    font-size: 12.5px;
    line-height: 1.2;
  }
  .home-tile__sub {
    font-size: 10px;
  }
  .home-tile__count {
    font-size: 10px;
    margin-top: 1px;
  }
  .home-tile--all {
    min-height: 80px;
    grid-template-columns: 52px 1fr;
  }
  .home-tile--all .home-tile__media {
    width: 52px;
    height: 52px;
  }
  .home-tile--all .home-tile__name { font-size: 14px; }
  .home-tile:hover {
    transform: none;
    box-shadow: none;
  }
  .home-tile:active {
    transform: scale(0.98);
    border-color: var(--line);
    background: var(--card2);
  }

  .home-reviews { margin-top: 14px; gap: 8px; }
  .home-reviews__head {
    align-items: center;
    gap: 10px;
  }
  .home-reviews__title { font-size: 16px; }
  .home-reviews__note { font-size: 11.5px; line-height: 1.4; }
  .home-reviews__all {
    height: 30px;
    padding: 0 12px;
    font-size: 12px;
  }
  .home-reviews__track {
    gap: 8px;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }
  .rev-card {
    flex: 0 0 min(252px, 76vw);
    min-height: 148px;
    padding: 12px;
    border-radius: 14px;
    scroll-snap-align: start;
  }
  .rev-card__name { font-size: 13px; }
  .rev-card__meta { font-size: 11px; }
  .rev-card__text {
    font-size: 12px;
    -webkit-line-clamp: 5;
    line-height: 1.4;
  }

  .home-about {
    margin-top: 14px;
    padding: 14px;
    border-radius: 16px;
    max-width: none;
  }
  .home-about__title { font-size: 16px; }
  .home-about__text { font-size: 12.5px; line-height: 1.45; }
  .btn-ghost { height: 38px; font-size: 12.5px; padding: 0 14px; }

  .main { padding: 10px 0 calc(64px + var(--safe-b)); }
  .cat-bar {
    gap: 8px;
    margin-bottom: 10px;
    min-height: 34px;
  }
  .btn-back {
    height: 34px;
    min-height: 34px;
    padding: 0 10px 0 6px;
    font-size: 12px;
    flex-shrink: 0;
  }
  .cat-bar__title {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cat-bar__sub { font-size: 11px; }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .card {
    padding: 8px;
    gap: 6px;
    border-radius: 14px;
  }
  .stage { border-radius: 11px; }
  .stage img {
    padding: 7% 7% 9%;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
  }
  .card:hover .stage img,
  .card:hover {
    transform: none;
    box-shadow: none;
  }
  .colors {
    gap: 6px;
    min-height: 18px;
    padding: 2px 0;
  }
  .c-dot {
    width: 15px;
    height: 15px;
    /* bigger tap target without layout shift */
    position: relative;
  }
  .c-dot::before {
    content: "";
    position: absolute;
    inset: -8px;
  }
  .card__name {
    font-size: 11.5px;
    min-height: 2.55em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .price-now { font-size: 14.5px; }
  .btn {
    height: 40px;
    min-height: 40px;
    font-size: 12px;
    border-radius: 12px;
  }
  .btn-lg { height: 48px; min-height: 48px; font-size: 14px; }

  /* Sheets: product / about / reviews */
  .sheet__box {
    width: 100%;
    max-width: 100%;
    max-height: min(94dvh, 100%);
    padding: 8px 12px calc(14px + var(--safe-b));
    border-radius: 18px 18px 0 0;
  }
  .sheet .stage {
    min-height: 0;
    aspect-ratio: 1;
    max-height: min(38dvh, 280px);
    margin: 4px 0 10px;
  }
  .sheet h2,
  .reviews-box #reviews-title {
    font-size: 17px;
    margin: 2px 0 6px;
    padding-right: 40px;
    line-height: 1.2;
  }
  .sheet .about { font-size: 12.5px; margin-bottom: 10px; }
  .sheet__price { margin: 4px 0 12px; }
  .sheet__price strong { font-size: 20px; }
  .sheet__x {
    position: sticky;
    top: 0;
    float: right;
    z-index: 3;
    width: 36px;
    height: 36px;
    background: #ffffff;
    border-radius: 10px;
  }
  .opt { margin-bottom: 10px; }
  .opt label { font-size: 11.5px; margin-bottom: 6px; }
  .opt__row {
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0 4px;
    margin: 0;
  }
  .opt__row::-webkit-scrollbar { display: none; }
  .pill {
    height: 36px;
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
    flex-shrink: 0;
  }

  /* Cart full-bleed */
  .panel-cart {
    width: 100%;
    max-width: 100vw;
    border-left: none;
    padding-top: var(--safe-t);
  }
  .panel-head { padding: 12px; }
  .panel-head h2 { font-size: 16px; }
  .cart-list { padding: 10px; gap: 8px; }
  .ci {
    grid-template-columns: 60px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
  }
  .ci__img { width: 60px; height: 60px; border-radius: 10px; }
  .ci h4 {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .ci p { font-size: 11px; }
  .ci .sum { font-size: 12.5px; }
  .qty button {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    border-radius: 9px;
  }
  .cart-foot {
    padding: 12px calc(12px + var(--safe-r)) calc(12px + var(--safe-b)) calc(12px + var(--safe-l));
  }
  .cart-total strong { font-size: 19px; }
  .hint { font-size: 11.5px; }

  /* About + reviews sheets */
  .about-box__eyebrow,
  .reviews-box__eyebrow { font-size: 10.5px; }
  .about-stats { gap: 6px; margin-bottom: 12px; }
  .about-stat { padding: 10px 6px; border-radius: 12px; }
  .about-stat strong { font-size: 14px; }
  .about-stat span { font-size: 10px; }
  .about-copy { margin-bottom: 12px; gap: 8px; }
  .about-copy p { font-size: 12.5px; line-height: 1.45; }
  .about-contact {
    grid-template-columns: 38px 1fr auto;
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
  }
  .about-contact__ico { width: 38px; height: 38px; border-radius: 10px; }
  .about-contact__body strong { font-size: 13px; }
  .about-contact__body span {
    font-size: 11px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .about-trust { padding: 12px; border-radius: 14px; margin-bottom: 14px; }
  .about-trust__title { font-size: 16px; }
  .about-trust__text { font-size: 12px; margin-bottom: 10px; }
  .about-trust__item { padding: 10px 8px; border-radius: 12px; }
  .about-trust__item strong { font-size: 15px; }
  .about-trust__btn { height: 38px; margin-top: 10px; }

  .reviews-score {
    padding: 12px;
    gap: 12px;
    border-radius: 14px;
    margin-bottom: 12px;
  }
  .reviews-score__n { font-size: 30px; }
  .reviews-score__meta span { font-size: 11.5px; }
  .reviews-list { gap: 8px; }
  .rev-row {
    padding: 12px;
    border-radius: 14px;
    gap: 6px;
  }
  .rev-row__name { font-size: 13px; }
  .rev-row__meta { font-size: 11px; }
  .rev-row__text { font-size: 12.5px; line-height: 1.45; }
  .reviews-box__foot { font-size: 11px; padding-bottom: 4px; }

  .toast {
    bottom: calc(14px + var(--safe-b));
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    transform: translateY(12px);
    padding: 11px 14px;
    font-size: 12.5px;
    border-radius: 12px;
  }
  .toast.show {
    transform: translateY(0);
  }

  @media (hover: none) {
    .home-tile:hover,
    .card:hover,
    .about-contact:hover,
    .btn-nav:hover,
    .btn-back:hover,
    .btn-ghost:hover {
      transform: none;
      box-shadow: none;
      filter: none;
    }
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .brand__txt { display: none; }
  .brand { max-width: none; }
  .btn-nav { padding: 0 7px; font-size: 10.5px; }
  .home-tile__sub { display: none; }
  .home-tile { min-height: 64px; }
  .price-now { font-size: 13.5px; }
  .card__name { font-size: 11px; }
}

/* Landscape phones */
@media (max-height: 480px) and (orientation: landscape) {
  .sheet .stage {
    max-height: 32dvh;
    min-height: 0;
  }
  .home__title { font-size: 22px; }
  .home__lead { display: none; }
  .panel-cart { padding-top: 0; }
}

/* Desktop polish */
@media (min-width: 900px) {
  :root { --h: 60px; --pad-x: 16px; }
  .brand__txt { font-size: 12px; }
  .brand img { width: 40px; height: 40px; }
  .card__name { font-size: 13px; }
  .price-now { font-size: 19px; }
  .btn { height: 42px; }
  .home { padding: 32px 0 calc(56px + var(--safe-b)); }
  .home-tile {
    grid-template-columns: 76px 1fr auto;
    min-height: 96px;
    padding: 14px 16px;
  }
  .home-tile__media { width: 76px; height: 76px; }
  .home-tile__arrow { display: grid; }
  .home-tile__name { font-size: 16px; }
}

/* ===== FINAL WHITE THEME OVERRIDE ===== */
:root {
  --bg: #ffffff;
  --card: #ffffff;
  --card2: #ffffff;
  --text: #202024;
  --muted: #77777f;
  --line-soft: rgba(32, 32, 36, 0.10);
  --line: rgba(240, 98, 150, 0.28);
  --depth: #8c2746;
}

html, body { background: #fff !important; color: var(--text) !important; }
body { background-image: none !important; }
.top { background: rgba(255,255,255,.96) !important; border-bottom-color: rgba(32,32,36,.08) !important; }
.home, .main, .view, .panel, .panel-cart, .sheet, .sheet__box { background: #fff !important; }
.home__glow { display: none !important; background: none !important; }

.home-tile,
.home-tile:hover,
.home-tile--all,
.home-tile--all:hover,
.card,
.card:hover,
.ci,
.cart-foot,
.about-stat,
.about-contact,
.about-trust,
.about-trust__item,
.reviews-score,
.reviews-list,
.reviews-box,
.sheet__box { background: #fff !important; }

.home-tile__bg { background: none !important; opacity: 0 !important; }
.home-tile__media,
.ci__img,
.stage,
.stage.is-photo { background: #fff !important; background-image: none !important; }
.home-tile__media { border-color: rgba(32,32,36,.08) !important; }
.home-tile__media img { filter: none !important; }
.stage::before,
.stage.is-photo::after { display: none !important; background: none !important; }
.stage img { filter: none !important; background: transparent !important; }

.scrim { background: rgba(255,255,255,.78) !important; }
.sheet__box { box-shadow: 0 8px 30px rgba(32,32,36,.10) !important; }
.sheet__handle { background: rgba(32,32,36,.12) !important; }

.btn-nav, .ib, .pill, .qty button { color: var(--text); }
.ib:hover, .pill, .qty button { background: #fff; }
.btn-outline:hover { color: var(--pink) !important; background: rgba(240,98,150,.06) !important; }

/* Never create a dark backdrop behind product images. */
.card .stage,
.sheet .stage,
.card .stage.is-photo,
.sheet .stage.is-photo,
.home-tile__media,
.ci__img { background-color: #fff !important; }

/* Remove any legacy dark gradients/shadows around product areas. */
.card .stage,
.card .stage img,
.sheet .stage,
.sheet .stage img,
.home-tile__media,
.home-tile__media img,
.ci__img,
.ci__img img { box-shadow: none !important; }


/* FINAL VISIBILITY/INTERACTION SAFETY OVERRIDE */
html, body { width:100%; min-width:0; overflow-x:hidden !important; }
.view-home { display:block !important; visibility:visible !important; opacity:1 !important; transform:none !important; position:relative !important; }
.view-catalog:not([hidden]) { display:block !important; visibility:visible !important; opacity:1 !important; }
.view-home[hidden] { display:none !important; }
.view-home .home { display:block !important; visibility:visible !important; opacity:1 !important; transform:none !important; }
.view-home .home__in { display:flex !important; visibility:visible !important; opacity:1 !important; transform:none !important; position:relative !important; left:auto !important; right:auto !important; }
.home__cats, .home-reviews, .home-about { visibility:visible !important; opacity:1 !important; }
.home-tile { visibility:visible !important; opacity:1 !important; transform:none !important; }
.home-tile:hover { transform:translateY(-2px) !important; }
/* Closed sheets must never cover or intercept the page. */
.sheet:not(.open), .scrim:not(.open) { visibility:hidden !important; }
.sheet:not(.open) { pointer-events:none !important; }
.scrim:not(.open) { pointer-events:none !important; opacity:0 !important; }
.panel:not(.open) { visibility:hidden !important; pointer-events:none !important; }


/* ===== APPLE EMPIRE — FINAL PHONE POLISH ===== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior-x: none;
}
body {
  min-width: 0;
  width: 100%;
  overflow-x: hidden;
}
img {
  max-width: 100%;
}

@media (max-width: 719px) {
  /* Keep the header compact and safe around iPhone notches. */
  .top {
    min-height: calc(52px + var(--safe-t));
  }
  .top__in {
    padding-left: max(var(--pad-x), var(--safe-l));
    padding-right: max(var(--pad-x), var(--safe-r));
  }
  .brand {
    max-width: 45%;
    min-width: 0;
  }
  .brand__txt {
    min-width: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  /* Comfortable page gutters on narrow screens. */
  .wrap {
    width: min(100%, 100vw);
    max-width: 100%;
  }
  .main {
    padding-left: max(0px, var(--safe-l));
    padding-right: max(0px, var(--safe-r));
  }

  /* Product grid: stable two-column layout with no overflow. */
  .grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .card {
    min-width: 0;
    width: 100%;
    padding: 7px;
    gap: 6px;
    border-radius: 15px;
    overflow: hidden;
  }
  .stage {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-width: 0;
    border-radius: 11px;
  }
  .stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6%;
  }
  .colors {
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    gap: 5px;
    min-height: 20px;
  }
  .c-dot {
    flex: 0 0 15px;
  }
  .card__name {
    width: 100%;
    min-width: 0;
    font-size: 11.5px;
    line-height: 1.22;
    min-height: 2.45em;
  }
  .price-now {
    font-size: clamp(13px, 3.7vw, 15px);
    line-height: 1.15;
    white-space: nowrap;
  }
  .btn {
    width: 100%;
    min-width: 0;
    height: 40px;
    min-height: 40px;
    padding: 0 7px;
    font-size: 11.5px;
    white-space: nowrap;
  }

  /* Category header doesn't squeeze or create horizontal scrolling. */
  .cat-bar {
    min-width: 0;
    width: 100%;
  }
  .cat-bar__title,
  .cat-bar__sub {
    min-width: 0;
  }

  /* Home category tiles stay readable on small phones. */
  .home {
    padding-left: max(0px, var(--safe-l));
    padding-right: max(0px, var(--safe-r));
  }
  .home__in {
    width: 100%;
    max-width: 100%;
  }
  .home__cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .home-tile {
    min-width: 0;
    overflow: hidden;
  }
  .home-tile__name,
  .home-tile__sub,
  .home-tile__count {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Product sheet: fit the full phone viewport and respect safe areas. */
  .sheet__box {
    width: 100vw;
    max-width: 100vw;
    padding-left: max(12px, var(--safe-l));
    padding-right: max(12px, var(--safe-r));
    padding-bottom: calc(14px + var(--safe-b));
  }
  .sheet .stage {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1;
    max-height: min(42dvh, 300px);
  }
  .sheet__x {
    margin-right: 0;
  }

  /* Prevent long option rows from widening the page. */
  .opt,
  .opt__row {
    min-width: 0;
    max-width: 100%;
  }

  /* Larger real tap targets without visually enlarging the layout. */
  .btn-nav,
  .btn-back,
  .ib,
  .btn,
  .pill,
  .qty button,
  .sheet__x {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
}

@media (max-width: 390px) {
  .top__in { gap: 4px; }
  .brand { max-width: 40%; }
  .top__acts { gap: 2px; }
  .btn-nav {
    padding-left: 7px;
    padding-right: 7px;
    font-size: 10.5px;
  }
  .ib {
    width: 36px;
    height: 36px;
  }
  .grid { gap: 7px; }
  .card { padding: 6px; border-radius: 13px; }
  .card__name { font-size: 11px; }
  .price-now { font-size: 13px; }
  .btn { font-size: 11px; }
}
