:root {
  --bg: #090a0f;
  --bg-soft: #11131a;
  --panel: rgba(18, 20, 28, 0.92);
  --panel-soft: rgba(22, 24, 32, 0.82);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f7fb;
  --muted: rgba(245, 247, 251, 0.66);
  --danger: #ff4a44;
  --success: #86d84d;
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-xl: 0 26px 80px rgba(0, 0, 0, 0.48);
  --shadow-lg: 0 16px 44px rgba(0, 0, 0, 0.34);
  --transition-slow: 360ms cubic-bezier(0.22, 0.86, 0.24, 1);
  --transition-base: 200ms ease;
  --heading-font: "Bahnschrift SemiBold", "Segoe UI", sans-serif;
  --display-font: "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --body-font: "Bahnschrift", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(255, 61, 61, 0.18), transparent 28%),
    radial-gradient(circle at 12% 20%, rgba(54, 150, 255, 0.14), transparent 26%),
    linear-gradient(180deg, #050608 0%, #0a0b11 48%, #040507 100%);
  font-family: var(--body-font);
  overflow-x: clip;
}

body.modal-open,
body.sheet-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

[data-media-fallback] {
  position: relative;
}

[data-media-fallback].is-missing {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top, rgba(255, 89, 76, 0.18), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(15, 17, 24, 0.96);
  border: 1px dashed rgba(255, 255, 255, 0.14);
}

[data-media-fallback].is-missing::after {
  content: attr(data-fallback-label);
  padding: 0 18px;
  text-align: center;
  font-family: var(--heading-font);
  font-size: 0.92rem;
  color: rgba(245, 247, 251, 0.82);
}

[data-media-fallback].is-missing img,
[data-media-fallback].is-missing video {
  opacity: 0;
}

.app-backdrop {
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
}

.app-backdrop--grid {
  background:
    linear-gradient(transparent 0 95%, rgba(255, 255, 255, 0.018) 95% 100%),
    linear-gradient(90deg, transparent 0 95%, rgba(255, 255, 255, 0.012) 95% 100%);
  background-size: 100% 18px, 18px 100%;
  opacity: 0.5;
}

.app-backdrop--glow {
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 76, 76, 0.22), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(21, 110, 255, 0.18), transparent 24%),
    radial-gradient(circle at 50% 80%, rgba(120, 255, 188, 0.08), transparent 26%);
  filter: blur(70px);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 12px calc(120px + env(safe-area-inset-bottom));
}

.app-header {
  position: sticky;
  top: 10px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--stroke);
  border-radius: 26px;
  background: rgba(13, 15, 21, 0.9);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.app-header__lead,
.app-header__actions,
.brand,
.search-panel,
.hero-card__footer,
.section__head,
.section__head--compact,
.product-card__head,
.product-card__footer,
.cart-row,
.cart-row__meta,
.cart-summary__row,
.profile-hero {
  display: flex;
  align-items: center;
}

.profile-action,
.product-modal__actions,
.action-sheet__card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.app-header__lead {
  flex: 1;
  min-width: 0;
  gap: 12px;
}

.brand {
  min-width: 0;
  gap: 12px;
}

.brand > div {
  min-width: 0;
}

.app-header__actions {
  flex-shrink: 0;
  gap: 10px;
}

.brand h1 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  line-height: 1;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.brand-mark {
  flex: 0 0 auto;
  width: clamp(82px, 22vw, 98px);
  height: 38px;
  background: center / contain no-repeat url("RED logo red.png");
  filter: drop-shadow(0 10px 22px rgba(255, 74, 68, 0.22));
}

.icon-button,
.ghost-button,
.primary-button,
.section-link,
.filter-chip,
.nav-chip,
.product-card__button,
.qty-button,
.favorite-button,
.sheet-action,
.bottom-nav__item,
.product-modal__close {
  border: 1px solid transparent;
  transition:
    transform var(--transition-base),
    background-color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    opacity var(--transition-base);
}

.icon-button,
.product-modal__close {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.ghost-button,
.primary-button,
.section-link,
.filter-chip,
.sheet-action,
.bottom-nav__item {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
}

.ghost-button,
.section-link,
.filter-chip,
.sheet-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, #ff4343, #ff6e45);
  box-shadow: 0 14px 30px rgba(255, 74, 68, 0.24);
}

.primary-button--block {
  width: 100%;
  justify-content: center;
}

.ghost-button--compact,
.section-link,
.filter-chip {
  min-height: 42px;
  padding: 0 14px;
}

.icon-button:hover,
.ghost-button:hover,
.primary-button:hover,
.section-link:hover,
.filter-chip:hover,
.product-card__button:hover,
.qty-button:hover,
.favorite-button:hover,
.sheet-action:hover,
.bottom-nav__item:hover,
.product-modal__close:hover {
  transform: translateY(-2px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none !important;
  box-shadow: none !important;
}

.search-panel {
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
  padding: 0 16px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 24px;
  background: rgba(14, 16, 22, 0.86);
  transition:
    max-height var(--transition-slow),
    padding var(--transition-slow),
    border-color var(--transition-slow),
    opacity var(--transition-slow);
}

.search-panel.is-open {
  max-height: 120px;
  padding: 14px 16px;
  opacity: 1;
  border-color: var(--stroke);
}

.search-panel__field {
  flex: 1;
  display: grid;
  gap: 8px;
}

.search-panel__field span,
.section__eyebrow,
.surface-note {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-panel__field input {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

.search-panel__field input:focus {
  border-color: rgba(255, 103, 87, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 96, 76, 0.12);
}

.app-main {
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.screen {
  display: none;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.screen.is-active {
  display: grid;
  animation: screenFade var(--transition-slow);
}

.hero-card,
.section,
.surface-card,
.cart-hero,
.profile-hero,
.benefit-card {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--stroke);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    var(--panel);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.hero-card,
.section,
.surface-card,
.cart-hero,
.profile-hero {
  padding: 16px;
  border-radius: var(--radius-xl);
}

.hero-carousel {
  overflow: hidden;
  border-radius: 24px;
}

.hero-carousel__track {
  display: flex;
  width: 100%;
  transition: transform var(--transition-slow);
  will-change: transform;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.hero-carousel__track.is-dragging {
  cursor: grabbing;
}

.hero-slide {
  position: relative;
  min-width: 100%;
  min-height: 260px;
  padding: 18px;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 36%),
    linear-gradient(135deg, rgba(255, 56, 56, 0.18), rgba(9, 10, 16, 0.96) 58%);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.08), transparent 22%);
  pointer-events: none;
}

.hero-slide--video {
  background: #08090d;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-slide--video .hero-slide__content {
  margin-top: auto;
  max-width: min(72%, 360px);
}

.hero-slide--video video,
.hero-slide__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #090a0f;
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 13, 0.9), rgba(8, 9, 13, 0.24)),
    linear-gradient(180deg, transparent, rgba(8, 9, 13, 0.5));
}

.hero-slide__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  max-width: min(66%, 360px);
}

.hero-badge {
  display: inline-flex;
  justify-self: start;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-slide h2,
.section h2,
.cart-hero h2,
.profile-hero h2,
.surface-card h3,
.product-modal__body h3 {
  margin: 0;
  font-family: var(--display-font);
  line-height: 0.92;
  text-transform: uppercase;
}

.hero-slide h2 {
  font-size: clamp(2.35rem, 9vw, 4.6rem);
}

.hero-slide p,
.section p,
.cart-hero p,
.profile-hero p,
.surface-card p,
.profile-action span,
.benefit-card span,
.empty-state span,
.product-card__meta,
.product-card__subline,
.cart-row__meta,
.product-modal__body p,
.toast {
  color: var(--muted);
}

.hero-slide__stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-slide__stats span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
}

.hero-slide__art {
  position: absolute;
  right: 10px;
  bottom: 6px;
  width: min(48%, 300px);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.42));
  transform: rotate(-8deg);
}

.hero-card__footer {
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
}

.hero-dots button.is-active {
  width: 22px;
  background: linear-gradient(135deg, #ff4a44, #ff7846);
}

.section--media {
  overflow: hidden;
}

.welcome-media-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 88vw);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.welcome-media-rail::-webkit-scrollbar {
  display: none;
}

.welcome-video-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(15, 17, 24, 0.96);
  box-shadow: var(--shadow-lg);
  scroll-snap-align: start;
}

.welcome-video-card__frame {
  overflow: hidden;
  min-height: 230px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top, rgba(255, 68, 68, 0.18), transparent 56%),
    #07090d;
}

.welcome-video-card__media {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: contain;
  background: #07090d;
}

.welcome-video-card__body {
  display: grid;
  gap: 6px;
}

.welcome-video-card__body strong {
  font-family: var(--heading-font);
  font-size: 1.05rem;
}

.welcome-video-card__body span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.section {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.section__head,
.section__head--compact {
  justify-content: space-between;
  gap: 16px;
}

.section__head--compact {
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.section-link {
  color: rgba(255, 255, 255, 0.92);
}

.product-grid,
.profile-stats,
.profile-actions,
.favorites-grid {
  display: grid;
  gap: 14px;
}

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

.product-card {
  position: relative;
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 14px;
  min-height: 280px;
  border: 1px solid var(--stroke);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, var(--accent, rgba(255, 72, 72, 0.18)), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(15, 17, 24, 0.96);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(0);
}

.product-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -20% 40%;
  height: 120px;
  background: radial-gradient(circle at center, var(--accent, rgba(255, 72, 72, 0.3)), transparent 70%);
  filter: blur(18px);
  opacity: 0.6;
  pointer-events: none;
}

.product-card__head,
.product-card__footer,
.cart-row,
.cart-summary__row,
.cart-row__meta {
  justify-content: space-between;
  gap: 12px;
}

.product-card__footer {
  flex-wrap: wrap;
  align-items: stretch;
}

.favorite-button {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.favorite-button.is-active {
  background: rgba(255, 83, 83, 0.18);
  border-color: rgba(255, 83, 83, 0.4);
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-card__visual {
  padding: 0;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  position: relative;
  display: grid;
  place-items: center;
  justify-self: stretch;
  min-height: 176px;
  overflow: hidden;
  border-radius: 22px;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -18px 36px rgba(0, 0, 0, 0.22),
    0 16px 30px rgba(0, 0, 0, 0.24);
}

.product-card__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.16), transparent 20%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.08), transparent 32%, transparent 72%, rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.product-card__visual::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.product-card__visual[data-visual-tone="dark"] {
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    #050608;
}

.product-card__visual[data-visual-tone="light"] {
  border-color: rgba(255, 255, 255, 0.24);
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.42) 34%, transparent 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(233, 236, 243, 0.96)),
    #eef2f8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -16px 28px rgba(166, 174, 191, 0.18),
    0 16px 30px rgba(0, 0, 0, 0.18);
}

.product-card__visual[data-visual-tone="light"]::before {
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.72), transparent 22%),
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.45), transparent 24%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.34), transparent 36%, transparent 72%, rgba(255, 255, 255, 0.18));
}

.product-card__visual[data-visual-tone="light"]::after {
  border-color: rgba(122, 132, 151, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.28);
}

.product-card__visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  padding: 6px;
  filter:
    drop-shadow(0 12px 18px rgba(0, 0, 0, 0.22))
    drop-shadow(0 24px 28px rgba(0, 0, 0, 0.44));
}

.product-card__visual[data-visual-tone="light"] img {
  width: 92%;
  height: 92%;
  padding: 0;
  filter:
    drop-shadow(0 6px 14px rgba(255, 255, 255, 0.5))
    drop-shadow(0 22px 26px rgba(67, 79, 105, 0.2));
}

.product-card[data-product-id^="ice-"] .product-card__visual img {
  transform: translateY(2px) scale(1.04);
}

.product-card__title {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 1.5rem;
  line-height: 0.95;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card__meta {
  font-size: 0.88rem;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.product-card__subline {
  font-size: 0.82rem;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.45;
}

.price-pill {
  padding: 10px 14px;
  border-radius: 16px;
  font-family: var(--heading-font);
  font-size: 1.6rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-card__button {
  position: relative;
  z-index: 1;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.product-card__footer-actions {
  display: flex;
  gap: 8px;
  width: 100%;
  min-width: 0;
  flex: 1 1 240px;
}

.product-card__button--buy {
  background: linear-gradient(135deg, #ff4d45, #ff7344);
  box-shadow: 0 10px 24px rgba(255, 82, 70, 0.2);
}

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

.benefit-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 22px;
}

.benefit-card--action {
  appearance: none;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition:
    transform var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background var(--transition-base);
}

.benefit-card--action:hover,
.benefit-card--action:focus-visible {
  border-color: rgba(255, 108, 82, 0.5);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 108, 82, 0.18);
  transform: translateY(-2px);
}

.benefit-card strong {
  display: block;
  font-family: var(--heading-font);
  font-size: 1.08rem;
}

.family-filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.family-filters::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  white-space: nowrap;
}

.filter-chip.is-active {
  background: rgba(255, 88, 76, 0.16);
  border-color: rgba(255, 88, 76, 0.38);
}

.empty-state {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-radius: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
}

.empty-state strong {
  font-family: var(--heading-font);
  font-size: 1.3rem;
}

.cart-hero,
.profile-hero {
  justify-content: space-between;
  gap: 16px;
}

.cart-layout {
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

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

.cart-row {
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
}

.cart-row__visual {
  display: grid;
  place-items: center;
  width: 74px;
  min-width: 74px;
  height: 74px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.cart-row__visual img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.cart-row__meta {
  flex: 1;
  align-items: center;
}

.cart-row__copy {
  display: grid;
  gap: 6px;
}

.cart-row__actions {
  display: grid;
  gap: 10px;
  justify-items: end;
  align-items: center;
}

.cart-row__copy strong {
  font-family: var(--heading-font);
  font-size: 1.16rem;
  line-height: 0.95;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
}

.qty-button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.08);
}

.qty-stepper strong {
  min-width: 28px;
  text-align: center;
}

.cart-summary {
  display: grid;
  gap: 14px;
}

.cart-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.cart-summary__box,
.profile-stats article,
.profile-action,
.favorite-card {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
}

.cart-summary__row strong {
  font-family: var(--heading-font);
  font-size: 1.16rem;
}

.cart-summary__total {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-summary__total strong {
  font-size: 1.55rem;
}

.surface-note {
  margin: 12px 0 0;
  line-height: 1.45;
}

.profile-hero__avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  font-family: var(--display-font);
  font-size: 2.1rem;
  background: linear-gradient(135deg, #ff4d45, #6f1e1e);
  box-shadow: 0 14px 30px rgba(255, 77, 69, 0.22);
}

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

.profile-stats strong {
  display: block;
  font-family: var(--display-font);
  font-size: 2rem;
  line-height: 1;
}

.profile-stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

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

.profile-action {
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  text-align: left;
}

.profile-action strong,
.favorite-card strong {
  display: block;
  font-family: var(--heading-font);
  font-size: 1.08rem;
}

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

.favorite-card {
  display: grid;
  gap: 12px;
}

.favorite-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(calc(100vw - 20px), 720px);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: rgba(11, 13, 19, 0.92);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  max-width: calc(100vw - 12px);
}

.bottom-nav__item {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 12px 10px;
  text-align: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.04);
}

.bottom-nav__item strong {
  font-family: var(--heading-font);
  font-size: 1rem;
}

.bottom-nav__item span {
  color: var(--muted);
  font-size: 0.74rem;
}

.bottom-nav__item.is-active {
  background:
    linear-gradient(180deg, rgba(255, 86, 70, 0.16), rgba(255, 86, 70, 0.05)),
    rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 86, 70, 0.3);
  box-shadow: 0 0 0 1px rgba(255, 86, 70, 0.08), 0 18px 34px rgba(255, 86, 70, 0.18);
}

.action-sheet,
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: end center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition-base),
    visibility 0s linear var(--transition-base);
}

.product-modal {
  z-index: 13;
  place-items: center;
  overflow-y: auto;
  padding: calc(20px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));
}

.action-sheet.is-open,
.product-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.action-sheet__backdrop,
.product-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 9, 0.76);
  backdrop-filter: blur(10px);
}

.action-sheet__card,
.product-modal__card {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  gap: 12px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid var(--stroke);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(15, 17, 24, 0.98);
  box-shadow: var(--shadow-xl);
}

.sheet-action {
  width: 100%;
  justify-content: center;
}

.product-modal__card {
  width: min(100%, 920px);
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.product-modal__visual {
  display: grid;
  place-items: center;
  min-height: 320px;
  border-radius: 24px;
  border: 1px solid var(--stroke);
  background:
    radial-gradient(circle at center, var(--modal-accent, rgba(255, 86, 70, 0.22)), transparent 60%),
    rgba(255, 255, 255, 0.03);
}

.product-card__viewer {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 280px;
  border-radius: 24px;
}

.viewer-media {
  width: min(92%, 300px);
  max-height: 280px;
  object-fit: contain;
  transform:
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg));
  transition: transform 140ms ease;
  filter: drop-shadow(0 26px 36px rgba(0, 0, 0, 0.36));
}

.product-card__viewer[data-product-id^="ice-"] .viewer-media {
  max-height: 300px;
}

.product-card__viewer::after {
  content: attr(data-hint);
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-modal__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.product-modal__facts span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.76rem;
}

.product-modal__body h3 {
  font-size: clamp(2.1rem, 6vw, 3.8rem);
}

.product-modal__actions {
  gap: 10px;
  align-items: stretch;
  margin-top: 18px;
}

.toast {
  position: fixed;
  left: 50%;
  top: 26px;
  z-index: 14;
  min-width: 240px;
  max-width: min(92vw, 460px);
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 14, 18, 0.96);
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, -18px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--transition-base),
    transform var(--transition-base);
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}

.reveal.in-view,
.reveal--instant {
  opacity: 1;
  transform: none;
}

.reveal--delay {
  transition-delay: 90ms;
}

@keyframes screenFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 760px) {
  .app-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .welcome-media-rail {
    grid-auto-flow: initial;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow: visible;
  }

  .hero-slide {
    min-height: 310px;
    padding: 24px;
  }

  .hero-slide__art {
    width: min(42%, 360px);
    right: 24px;
    bottom: 12px;
  }

  .cart-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

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

  .profile-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (min-width: 1080px) {
  .app-shell {
    width: min(100%, 1280px);
  }

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

  .hero-slide__content {
    max-width: 420px;
  }

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

@media (min-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 719px) {
  .app-shell {
    padding:
      10px
      max(10px, env(safe-area-inset-right))
      calc(118px + env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
  }

  .app-header {
    align-items: start;
    gap: 10px;
    padding: 12px;
    border-radius: 22px;
  }

  .app-header__lead {
    align-items: center;
  }

  .brand p {
    max-width: 164px;
    line-height: 1.35;
    font-size: 0.68rem;
  }

  .brand h1 {
    font-size: 1.08rem;
  }

  .brand-mark {
    width: clamp(76px, 20vw, 88px);
    height: 34px;
  }

  .search-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-slide {
    min-height: 224px;
    padding: 16px;
  }

  .hero-slide__content {
    max-width: 68%;
    gap: 10px;
  }

  .hero-slide h2 {
    font-size: 1.95rem;
  }

  .hero-slide__art {
    width: min(42%, 176px);
    right: 4px;
    bottom: 10px;
  }

  .welcome-media-rail {
    grid-auto-columns: minmax(0, 100%);
  }

  .welcome-video-card__frame,
  .welcome-video-card__media {
    min-height: 204px;
  }

  .section__head,
  .hero-card__footer,
  .cart-hero,
  .profile-hero,
  .product-modal__card,
  .product-modal__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .product-card__footer-actions {
    flex-direction: column;
  }

  .family-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
  }

  .filter-chip {
    min-width: 0;
    justify-content: center;
    padding-inline: 10px;
    font-size: 0.78rem;
  }

  .product-card {
    min-height: 0;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
  }

  .product-card__visual {
    min-height: 128px;
    border-radius: 18px;
  }

  .product-card__visual img {
    width: 100%;
    height: 100%;
  }

  .product-card__title {
    font-size: 1.08rem;
  }

  .product-card__meta {
    font-size: 0.74rem;
  }

  .product-card__subline {
    font-size: 0.7rem;
    -webkit-line-clamp: 2;
    line-height: 1.35;
  }

  .price-pill {
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    padding: 8px 10px;
  }

  .product-card__button {
    min-height: 36px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 0.74rem;
  }

  .section-link,
  .hero-card__footer .ghost-button {
    width: 100%;
    justify-content: center;
  }

  .benefits,
  .profile-stats,
  .profile-actions,
  .favorites-grid {
    grid-template-columns: 1fr;
  }

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

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

  .cart-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-row__meta {
    align-items: start;
  }

  .bottom-nav {
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: auto;
    gap: 8px;
    padding: 8px;
    border-radius: 24px;
    transform: none;
    max-width: none;
  }

  .bottom-nav__item {
    padding: 10px 4px;
  }

  .bottom-nav__item span {
    font-size: 0.64rem;
  }

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

  .product-modal__visual {
    min-height: 260px;
  }
}

@media (max-width: 539px) {
  .app-shell {
    padding-bottom: calc(106px + env(safe-area-inset-bottom));
  }

  .app-header {
    top: 6px;
    margin-bottom: 10px;
  }

  .icon-button,
  .product-modal__close {
    width: 40px;
    height: 40px;
  }

  .section h2 {
    font-size: clamp(1.45rem, 8vw, 2rem);
    line-height: 0.95;
  }

  .brand p {
    display: none;
  }

  .brand-mark {
    width: 74px;
    height: 32px;
  }

  .benefits,
  .product-grid--featured,
  .profile-stats,
  .profile-actions,
  .favorites-grid {
    grid-template-columns: 1fr;
  }

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

  .product-card {
    padding: 9px;
    gap: 7px;
  }

  .product-card__visual {
    min-height: 112px;
  }

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

  .hero-slide__art {
    opacity: 0.2;
    width: min(54%, 150px);
  }

  .hero-slide__stats {
    gap: 8px;
  }

  .hero-slide__stats span {
    font-size: 0.72rem;
  }

  .product-card__button {
    width: 100%;
    font-size: 0.72rem;
  }

  .product-card__footer-actions {
    flex-basis: 100%;
  }
}

body.access-locked {
  overflow: hidden;
}

.access-layer {
  position: fixed;
  inset: 0;
  z-index: 24;
  display: grid;
  place-items: center;
  padding: calc(20px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));
  overflow-y: auto;
}

.access-layer__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 74, 68, 0.2), transparent 26%),
    radial-gradient(circle at 82% 12%, rgba(33, 114, 255, 0.18), transparent 22%),
    rgba(4, 5, 9, 0.84);
  backdrop-filter: blur(18px);
}

.access-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(12, 14, 20, 0.97);
  box-shadow: var(--shadow-xl);
}

.access-panel--welcome {
  width: min(100%, 780px);
  max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 40px);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-content: start;
  overflow: hidden;
}

.access-panel h2 {
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 0.98;
}

.access-copy,
.welcome-copy {
  margin: 0;
  color: rgba(245, 247, 251, 0.84);
  line-height: 1.65;
}

.welcome-copy {
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding-right: 6px;
}

.access-form,
.profile-identity,
.welcome-actions {
  display: grid;
  gap: 12px;
}

.access-field {
  display: grid;
  gap: 8px;
}

.access-field span,
.profile-identity__item span {
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.access-field input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  outline: none;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

.access-field input:focus {
  border-color: rgba(255, 86, 70, 0.42);
  box-shadow: 0 0 0 4px rgba(255, 86, 70, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

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

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

.profile-identity__item {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
}

.profile-identity__item strong {
  display: block;
  margin-top: 8px;
  font-family: var(--heading-font);
  font-size: 1.1rem;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .access-layer {
    padding: calc(14px + env(safe-area-inset-top)) 12px calc(14px + env(safe-area-inset-bottom));
  }

  .access-panel {
    padding: 20px;
    border-radius: 24px;
  }

  .access-panel--welcome {
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 28px);
  }

  .welcome-actions,
  .profile-identity {
    grid-template-columns: 1fr;
  }
}

/* Neon 2026 visual override: structure stays intact, only the skin is upgraded. */
:root {
  --bg: #0a0a0f;
  --bg-soft: #15060b;
  --panel: rgba(14, 16, 20, 0.8);
  --panel-soft: rgba(18, 12, 14, 0.76);
  --stroke: rgba(255, 48, 48, 0.24);
  --stroke-strong: rgba(0, 255, 136, 0.28);
  --text: #ffffff;
  --muted: rgba(236, 244, 255, 0.82);
  --danger: #ff2b2b;
  --success: #00ff88;
  --lime: #00ff88;
  --cyan: #00f7ff;
  --magenta: #ff304f;
  --purple: #8f0f2e;
  --white-glow: rgba(255, 255, 255, 0.9);
  --shadow-xl:
    0 34px 96px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 48, 48, 0.1),
    0 0 38px rgba(0, 255, 136, 0.14);
  --shadow-lg:
    0 22px 58px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(0, 255, 136, 0.08);
  --heading-font: "Bahnschrift SemiCondensed", "Bahnschrift SemiBold", "Segoe UI", sans-serif;
  --display-font: "Bahnschrift Condensed", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
}

@keyframes neonGridShift {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 0 24px, 24px 0;
  }
}

@keyframes neonBackdropFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(1%, -1%, 0) scale(1.04);
  }
  100% {
    transform: translate3d(-1.5%, 1%, 0) scale(1.08);
  }
}

@keyframes neonGradientDrift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes neonCtaPulse {
  0%,
  100% {
    box-shadow:
      0 18px 42px rgba(255, 44, 44, 0.34),
      0 0 28px rgba(0, 255, 136, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.26);
  }
  50% {
    box-shadow:
      0 22px 52px rgba(255, 44, 44, 0.42),
      0 0 42px rgba(0, 255, 136, 0.32),
      0 0 18px rgba(0, 247, 255, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.34);
  }
}

@keyframes neonNavPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 48, 48, 0.2),
      0 14px 34px rgba(255, 48, 48, 0.28),
      0 0 22px rgba(0, 255, 136, 0.16);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(0, 255, 136, 0.28),
      0 18px 40px rgba(255, 48, 48, 0.34),
      0 0 32px rgba(0, 247, 255, 0.18);
  }
}

body {
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 42, 42, 0.24), transparent 24%),
    radial-gradient(circle at 84% 14%, rgba(0, 247, 255, 0.16), transparent 22%),
    radial-gradient(circle at 52% 86%, rgba(0, 255, 136, 0.16), transparent 28%),
    radial-gradient(circle at 28% 66%, rgba(255, 96, 0, 0.12), transparent 20%),
    linear-gradient(180deg, #050508 0%, #09070b 36%, #120607 68%, #040506 100%);
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 24%, rgba(255, 255, 255, 0.04) 0 1px, transparent 1.6px),
    radial-gradient(circle at 80% 20%, rgba(0, 247, 255, 0.08) 0 1px, transparent 1.6px),
    radial-gradient(circle at 60% 74%, rgba(0, 255, 136, 0.08) 0 1px, transparent 1.6px);
  opacity: 0.72;
}

.app-backdrop--grid {
  background:
    linear-gradient(transparent 0 94%, rgba(0, 247, 255, 0.045) 94% 100%),
    linear-gradient(90deg, transparent 0 94%, rgba(255, 48, 48, 0.04) 94% 100%);
  background-size: 100% 18px, 18px 100%;
  opacity: 0.8;
  animation: neonGridShift 18s linear infinite;
}

.app-backdrop--glow {
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 48, 48, 0.3), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(0, 247, 255, 0.2), transparent 24%),
    radial-gradient(circle at 50% 78%, rgba(0, 255, 136, 0.18), transparent 26%),
    radial-gradient(circle at 36% 56%, rgba(255, 102, 0, 0.12), transparent 20%);
  filter: blur(98px) saturate(1.4);
  animation: neonBackdropFloat 18s ease-in-out infinite alternate;
}

.app-header,
.search-panel,
.hero-card,
.section,
.surface-card,
.cart-hero,
.profile-hero,
.benefit-card,
.welcome-video-card,
.cart-row,
.cart-summary__box,
.profile-stats article,
.profile-action,
.favorite-card,
.access-panel,
.profile-identity__item,
.action-sheet__card,
.product-modal__card,
.bottom-nav {
  position: relative;
  isolation: isolate;
  border-color: rgba(255, 48, 48, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(255, 42, 42, 0.12), rgba(0, 247, 255, 0.05) 42%, rgba(0, 255, 136, 0.07) 100%),
    rgba(10, 11, 17, 0.86);
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 48, 48, 0.08),
    0 0 30px rgba(0, 255, 136, 0.1);
  backdrop-filter: blur(28px) saturate(1.6);
}

.app-header::before,
.hero-card::before,
.surface-card::before,
.cart-hero::before,
.profile-hero::before,
.benefit-card::before,
.welcome-video-card::before,
.cart-row::before,
.cart-summary__box::before,
.profile-stats article::before,
.profile-action::before,
.favorite-card::before,
.access-panel::before,
.profile-identity__item::before,
.action-sheet__card::before,
.product-modal__card::before,
.bottom-nav::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(132deg, rgba(255, 255, 255, 0.14), transparent 16%, transparent 72%, rgba(0, 255, 136, 0.08));
  opacity: 0.75;
}

.brand h1,
.section h2,
.cart-hero h2,
.profile-hero h2,
.surface-card h3,
.product-modal__body h3,
.access-panel h2,
.product-card__title,
.bottom-nav__item strong,
.profile-stats strong {
  color: var(--text);
  letter-spacing: 0.05em;
  text-shadow:
    0 0 14px rgba(255, 255, 255, 0.2),
    0 0 22px rgba(255, 48, 48, 0.22),
    0 0 24px rgba(0, 255, 136, 0.12);
}

.section__eyebrow,
.surface-note,
.search-panel__field span,
.access-field span,
.profile-identity__item span {
  color: rgba(173, 255, 215, 0.98);
  letter-spacing: 0.14em;
  text-shadow:
    0 0 16px rgba(0, 255, 136, 0.3),
    0 0 10px rgba(0, 247, 255, 0.14);
}

.brand p,
.section p,
.cart-hero p,
.profile-hero p,
.surface-card p,
.benefit-card span,
.product-card__meta,
.product-card__subline,
.cart-row__meta,
.welcome-copy,
.access-copy,
.bottom-nav__item span,
.profile-action span,
.empty-state span,
.toast {
  color: var(--muted);
}

.brand-mark {
  filter:
    drop-shadow(0 0 18px rgba(255, 48, 48, 0.42))
    drop-shadow(0 0 18px rgba(0, 255, 136, 0.16))
    drop-shadow(0 16px 30px rgba(0, 0, 0, 0.34));
}

.icon-button,
.product-modal__close,
.ghost-button,
.section-link,
.filter-chip,
.sheet-action,
.bottom-nav__item,
.product-card__button,
.qty-button,
.favorite-button {
  color: #fff;
  border-color: rgba(0, 255, 136, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(255, 40, 40, 0.12), rgba(0, 247, 255, 0.05) 52%, rgba(0, 255, 136, 0.06)),
    rgba(10, 12, 18, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(255, 48, 48, 0.05),
    0 12px 28px rgba(0, 0, 0, 0.26),
    0 0 18px rgba(0, 255, 136, 0.08);
}

.primary-button,
.product-card__button--buy {
  color: #ffffff;
  letter-spacing: 0.08em;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.22),
    0 0 14px rgba(0, 255, 136, 0.18);
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, #ff1f1f 0%, #ff5a00 34%, #00ff88 100%);
  background-size: 180% 180%;
  box-shadow:
    0 18px 42px rgba(255, 44, 44, 0.34),
    0 0 30px rgba(0, 255, 136, 0.22),
    0 0 14px rgba(0, 247, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  animation:
    neonGradientDrift 8s ease-in-out infinite alternate,
    neonCtaPulse 3.2s ease-in-out infinite;
}

.primary-button:hover,
.product-card__button--buy:hover {
  box-shadow:
    0 22px 54px rgba(255, 44, 44, 0.42),
    0 0 40px rgba(0, 255, 136, 0.28),
    0 0 16px rgba(0, 247, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.ghost-button:hover,
.section-link:hover,
.filter-chip:hover,
.sheet-action:hover,
.product-card__button:hover,
.icon-button:hover,
.favorite-button:hover,
.qty-button:hover {
  border-color: rgba(0, 255, 136, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 1px rgba(0, 255, 136, 0.08),
    0 0 24px rgba(0, 255, 136, 0.18),
    0 0 18px rgba(255, 48, 48, 0.12),
    0 14px 30px rgba(0, 0, 0, 0.28);
}

button:active,
.product-card:active,
.benefit-card--action:active,
.profile-action:active,
.bottom-nav__item:active {
  transform: scale(0.985);
}

.search-panel,
.search-panel.is-open {
  border-color: rgba(255, 48, 48, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)),
    linear-gradient(135deg, rgba(255, 48, 48, 0.12), rgba(0, 247, 255, 0.05) 54%, rgba(0, 255, 136, 0.04)),
    rgba(10, 12, 18, 0.82);
}

.search-panel__field input,
.access-field input {
  border-color: rgba(0, 247, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(8, 10, 18, 0.8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.search-panel__field input:focus,
.access-field input:focus {
  border-color: rgba(0, 247, 255, 0.48);
  box-shadow:
    0 0 0 4px rgba(0, 255, 136, 0.14),
    0 0 18px rgba(255, 48, 48, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(10, 12, 20, 0.86);
}

.hero-slide {
  border: 1px solid rgba(255, 48, 48, 0.22);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 22px 48px rgba(0, 0, 0, 0.44),
    0 0 34px rgba(255, 48, 48, 0.14);
  background:
    radial-gradient(circle at top right, rgba(0, 247, 255, 0.12), transparent 34%),
    radial-gradient(circle at 18% 0%, rgba(255, 48, 48, 0.18), transparent 34%),
    radial-gradient(circle at 86% 82%, rgba(0, 255, 136, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(255, 40, 40, 0.22), rgba(8, 10, 18, 0.98) 62%);
}

.hero-slide--video {
  background:
    linear-gradient(135deg, rgba(255, 48, 48, 0.12), rgba(0, 247, 255, 0.06) 54%, rgba(0, 255, 136, 0.08)),
    #07070d;
}

.hero-slide__bg,
.welcome-video-card__media {
  filter: saturate(1.2) contrast(1.1) brightness(1.02);
}

.hero-slide__overlay {
  background:
    linear-gradient(90deg, rgba(7, 8, 12, 0.92), rgba(7, 8, 12, 0.34)),
    linear-gradient(180deg, rgba(255, 48, 48, 0.08), rgba(7, 8, 12, 0.56)),
    radial-gradient(circle at top left, rgba(0, 255, 136, 0.08), transparent 26%);
}

.hero-badge,
.hero-slide__stats span,
.tag-pill,
.price-pill,
.product-modal__facts span,
.product-card__viewer::after {
  color: #fff;
  border-color: rgba(0, 255, 136, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 48, 48, 0.2), rgba(0, 247, 255, 0.08) 52%, rgba(0, 255, 136, 0.08)),
    rgba(10, 12, 20, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 18px rgba(255, 48, 48, 0.14);
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.12),
    0 0 16px rgba(0, 255, 136, 0.18);
}

.price-pill {
  font-family: var(--heading-font);
  letter-spacing: 0.04em;
}

.hero-dots button {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 247, 255, 0.08);
}

.hero-dots button.is-active {
  background: linear-gradient(135deg, #ff1f1f, #ff6a00 48%, #00ff88);
  box-shadow:
    0 0 18px rgba(255, 48, 48, 0.24),
    0 0 16px rgba(0, 255, 136, 0.18);
}

.benefit-card,
.benefit-card--action,
.welcome-video-card__frame,
.profile-identity__item,
.cart-row__visual,
.qty-stepper,
.product-modal__visual {
  border-color: rgba(0, 255, 136, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 48, 48, 0.06),
    0 14px 32px rgba(0, 0, 0, 0.24);
}

.product-card {
  border-color: rgba(255, 48, 48, 0.26);
  background:
    radial-gradient(circle at 84% 16%, rgba(255, 48, 48, 0.22), transparent 48%),
    radial-gradient(circle at 16% 0%, rgba(0, 247, 255, 0.1), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(0, 255, 136, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(12, 13, 19, 0.9);
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(255, 48, 48, 0.08),
    0 0 24px rgba(0, 255, 136, 0.12);
}

.product-card::after {
  background: radial-gradient(circle at center, var(--accent, rgba(255, 48, 48, 0.46)), transparent 70%);
  filter: blur(26px);
  opacity: 0.86;
}

.product-card__visual {
  border-color: rgba(0, 255, 136, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -18px 36px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 48, 48, 0.08),
    0 18px 32px rgba(0, 0, 0, 0.28),
    0 0 26px rgba(0, 255, 136, 0.1);
}

.product-card__visual::before {
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.18), transparent 20%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.12), transparent 32%, transparent 72%, rgba(0, 255, 136, 0.08));
}

.product-card__visual::after {
  box-shadow:
    0 0 24px rgba(255, 48, 48, 0.18),
    0 0 42px rgba(0, 255, 136, 0.08);
}

.product-card__visual[data-visual-tone="dark"] {
  background:
    radial-gradient(circle at 24% 12%, rgba(255, 48, 48, 0.18), transparent 24%),
    radial-gradient(circle at 80% 80%, rgba(0, 247, 255, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(22, 8, 9, 0.86), rgba(7, 8, 12, 0.96));
}

.product-card__visual[data-visual-tone="light"] {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.16), transparent 22%),
    radial-gradient(circle at 82% 14%, rgba(0, 255, 136, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(24, 22, 26, 0.9), rgba(9, 10, 16, 0.94));
}

.product-card__visual img,
.viewer-media,
.cart-row__visual img,
.favorite-card img {
  filter:
    saturate(1.18)
    drop-shadow(0 24px 36px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 14px rgba(255, 48, 48, 0.1));
}

.product-card__meta,
.product-card__subline {
  text-shadow:
    0 0 10px rgba(0, 247, 255, 0.08),
    0 0 10px rgba(0, 255, 136, 0.08);
}

.favorite-button.is-active {
  border-color: rgba(0, 255, 136, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 48, 48, 0.26), rgba(0, 255, 136, 0.22)),
    rgba(10, 12, 20, 0.78);
  box-shadow:
    0 0 18px rgba(255, 48, 48, 0.22),
    0 0 20px rgba(0, 255, 136, 0.14);
}

.filter-chip.is-active,
.section-link,
.benefit-card--action:hover,
.benefit-card--action:focus-visible {
  border-color: rgba(0, 255, 136, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 48, 48, 0.2), rgba(0, 255, 136, 0.14)),
    rgba(10, 12, 20, 0.72);
  box-shadow:
    0 0 0 1px rgba(255, 48, 48, 0.08),
    0 0 24px rgba(0, 255, 136, 0.14),
    0 18px 34px rgba(0, 0, 0, 0.34);
}

.empty-state {
  border: 1px dashed rgba(0, 247, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 48, 48, 0.1), rgba(0, 247, 255, 0.06) 56%, rgba(0, 255, 136, 0.06)),
    rgba(10, 12, 18, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 24px rgba(0, 255, 136, 0.1);
}

.empty-state strong {
  color: #ffffff;
  text-shadow:
    0 0 16px rgba(255, 48, 48, 0.2),
    0 0 14px rgba(0, 255, 136, 0.14);
}

.cart-row,
.profile-action,
.favorite-card,
.profile-stats article,
.cart-summary__box,
.profile-identity__item {
  border-color: rgba(255, 48, 48, 0.18);
}

.qty-button {
  border-color: rgba(0, 255, 136, 0.16);
}

.cart-summary__total strong,
.profile-hero__avatar {
  color: #fff;
  text-shadow:
    0 0 16px rgba(255, 48, 48, 0.2),
    0 0 18px rgba(0, 255, 136, 0.14);
}

.profile-hero__avatar {
  background: linear-gradient(135deg, #ff1f1f 0%, #ff6a00 52%, #00ff88 100%);
  box-shadow:
    0 18px 40px rgba(255, 48, 48, 0.28),
    0 0 24px rgba(0, 255, 136, 0.14);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 10;
  transform: translateX(-50%);
  width: min(calc(100vw - 20px), 720px);
  max-width: calc(100vw - 12px);
  border-color: rgba(255, 48, 48, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(255, 48, 48, 0.1), rgba(0, 247, 255, 0.04) 54%, rgba(0, 255, 136, 0.05)),
    rgba(9, 10, 18, 0.9);
}

.bottom-nav__item {
  border-color: rgba(0, 255, 136, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(14, 16, 24, 0.72);
}

.bottom-nav__item.is-active {
  border-color: rgba(0, 255, 136, 0.3);
  background:
    linear-gradient(135deg, rgba(255, 48, 48, 0.26), rgba(0, 255, 136, 0.18) 58%, rgba(0, 247, 255, 0.14)),
    rgba(255, 255, 255, 0.03);
  animation: neonNavPulse 3s ease-in-out infinite;
}

.toast {
  border-color: rgba(0, 247, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 48, 48, 0.16), rgba(0, 247, 255, 0.08) 54%, rgba(0, 255, 136, 0.06)),
    rgba(10, 12, 20, 0.94);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(255, 48, 48, 0.18);
}

.access-layer__backdrop {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 48, 48, 0.28), transparent 26%),
    radial-gradient(circle at 82% 12%, rgba(0, 247, 255, 0.18), transparent 22%),
    radial-gradient(circle at 50% 82%, rgba(0, 255, 136, 0.16), transparent 26%),
    rgba(4, 5, 9, 0.82);
}

.reveal.in-view.product-card,
.reveal.in-view.benefit-card,
.reveal.in-view.surface-card,
.reveal.in-view.profile-hero,
.reveal.in-view.cart-hero {
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(255, 48, 48, 0.08),
    0 0 24px rgba(0, 255, 136, 0.1);
}

@media (max-width: 719px) {
  .primary-button,
  .product-card__button--buy {
    letter-spacing: 0.05em;
  }

  .hero-slide {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.03),
      0 18px 34px rgba(0, 0, 0, 0.42),
      0 0 24px rgba(255, 0, 102, 0.1);
  }

  .bottom-nav {
    box-shadow:
      0 20px 38px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(255, 0, 102, 0.08),
      0 0 24px rgba(0, 247, 255, 0.08);
  }
}

.family-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  overflow: visible;
  padding-bottom: 0;
}

.family-filters__group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.layout-switcher {
  position: relative;
  display: flex;
  flex: 0 0 auto;
}

.filter-chip--layout {
  width: 48px;
  min-width: 48px;
  padding: 0;
  letter-spacing: 0.18em;
  font-size: 1.12rem;
}

.filter-chip--layout span {
  transform: translateX(0.12em);
}

.layout-switcher__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 4;
  display: grid;
  gap: 8px;
  min-width: 168px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(0, 255, 136, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(255, 48, 48, 0.14), rgba(0, 247, 255, 0.06) 54%, rgba(0, 255, 136, 0.08)),
    rgba(9, 11, 18, 0.96);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 48, 48, 0.08),
    0 0 24px rgba(0, 255, 136, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition:
    opacity var(--transition-base),
    transform var(--transition-base),
    visibility var(--transition-base);
}

.layout-switcher.is-open .layout-switcher__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.layout-switcher__option {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.layout-switcher__option.is-active {
  border-color: rgba(0, 255, 136, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 48, 48, 0.18), rgba(0, 255, 136, 0.14) 70%),
    rgba(255, 255, 255, 0.04);
}

.layout-switcher__preview {
  display: grid;
  align-items: center;
  justify-content: stretch;
  gap: 3px;
  width: 100%;
  height: 16px;
}

.layout-switcher__preview::before,
.layout-switcher__preview::after {
  content: "";
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(0, 255, 136, 0.7));
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.16);
}

.layout-switcher__preview--list {
  grid-template-columns: 1fr;
}

.layout-switcher__preview--list::after {
  display: none;
}

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

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

.layout-switcher__preview--grid-3::after {
  display: block;
}

.layout-switcher__preview--grid-3 {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.84), rgba(0, 255, 136, 0.7));
  -webkit-mask:
    linear-gradient(#000 0 0) left/28% 100% no-repeat,
    linear-gradient(#000 0 0) center/28% 100% no-repeat,
    linear-gradient(#000 0 0) right/28% 100% no-repeat;
          mask:
    linear-gradient(#000 0 0) left/28% 100% no-repeat,
    linear-gradient(#000 0 0) center/28% 100% no-repeat,
    linear-gradient(#000 0 0) right/28% 100% no-repeat;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.16);
}

.layout-switcher__preview--grid-3::before,
.layout-switcher__preview--grid-3::after {
  display: none;
}

.product-grid[data-layout="list"] {
  grid-template-columns: 1fr;
}

.product-grid[data-layout="grid-2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-grid[data-layout="grid-3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.product-card__copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.product-card--list {
  grid-template-columns: 1fr;
  grid-template-areas:
    "head"
    "visual"
    "copy"
    "footer";
  align-items: stretch;
  gap: 10px;
  min-height: 0;
}

.product-card--list .product-card__head {
  grid-area: head;
}

.product-card--list .product-card__visual {
  grid-area: visual;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 10;
  align-self: stretch;
}

.product-card--list .product-card__visual img {
  width: 96%;
  height: 96%;
  object-fit: contain;
  padding: 2px;
}

.product-card--list .product-card__copy {
  grid-area: copy;
  align-content: start;
}

.product-card--list .product-card__footer {
  grid-area: footer;
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
}

.product-card--list .product-card__footer-actions {
  flex-direction: column;
  flex-basis: auto;
}

.product-card--list .price-pill {
  width: 100%;
  text-align: center;
  font-size: 1.08rem;
}

.product-card--grid-3 {
  min-height: 0;
  gap: 6px;
  padding: 8px;
  border-radius: 16px;
}

.product-card--grid-3 .product-card__head,
.product-card--grid-3 .product-card__footer {
  gap: 6px;
}

.product-card--grid-3 .tag-pill {
  padding: 5px 7px;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
}

.product-card--grid-3 .favorite-button {
  width: 30px;
  height: 30px;
  font-size: 0.9rem;
}

.product-card--grid-3 .product-card__visual {
  min-height: 92px;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
}

.product-card--grid-3 .product-card__visual img {
  padding: 3px;
}

.product-card--grid-3 .product-card__title {
  font-size: 0.92rem;
}

.product-card--grid-3 .product-card__meta {
  font-size: 0.62rem;
  -webkit-line-clamp: 2;
}

.product-card--grid-3 .product-card__subline {
  display: none;
}

.product-card--grid-3 .price-pill {
  width: 100%;
  padding: 6px 8px;
  border-radius: 12px;
  text-align: center;
  font-size: 0.9rem;
}

.product-card--grid-3 .product-card__footer-actions {
  flex-direction: column;
  flex-basis: auto;
  gap: 6px;
}

.product-card--grid-3 .product-card__button {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 0.62rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 719px) {
  .family-filters {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .family-filters__group {
    gap: 8px;
  }

  .filter-chip--layout {
    width: 44px;
    min-width: 44px;
  }

  .layout-switcher__menu {
    min-width: 156px;
    padding: 8px;
  }

  .product-grid[data-layout="list"] {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-grid[data-layout="grid-2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .product-grid[data-layout="grid-3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .product-grid[data-layout="grid-2"] .product-card {
    padding: 9px;
    gap: 7px;
  }

  .product-grid[data-layout="grid-2"] .product-card__visual {
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  .product-grid[data-layout="grid-2"] .product-card__footer,
  .product-grid[data-layout="grid-3"] .product-card__footer {
    flex-wrap: nowrap;
  }

  .product-grid[data-layout="grid-2"] .product-card__footer-actions,
  .product-grid[data-layout="grid-3"] .product-card__footer-actions {
    min-width: 0;
    flex-basis: auto;
  }

  .product-grid[data-layout="grid-2"] .product-card__button {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 539px) {
  .filter-chip--layout {
    width: 40px;
    min-width: 40px;
    font-size: 1rem;
  }

  .product-card--list .product-card__visual {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .product-card--list .product-card__visual img {
    width: 96%;
    height: 96%;
    padding: 2px;
  }

  .product-card--grid-3 {
    padding: 6px;
    gap: 5px;
  }

  .product-card--grid-3 .product-card__visual {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .product-card--grid-3 .product-card__title {
    font-size: 0.82rem;
  }

  .product-card--grid-3 .product-card__meta {
    font-size: 0.58rem;
  }

  .product-card--grid-3 .product-card__button {
    min-height: 28px;
    font-size: 0.58rem;
  }

  .product-card--grid-3 .price-pill {
    font-size: 0.82rem;
  }
}

/* Catalog view correction: product cards stay readable and contained in every layout. */
.product-grid[data-layout] .product-card {
  max-width: 100%;
  overflow: hidden;
}

.product-grid[data-layout] .product-card__copy {
  min-width: 0;
}

.product-grid[data-layout] .product-card__meta,
.product-grid[data-layout] .product-card__subline {
  display: none;
}

.product-grid[data-layout] .product-card__title {
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-grid[data-layout] .product-card__visual {
  min-height: 0;
  aspect-ratio: 1 / 1;
}

.product-grid[data-layout] .product-card__visual img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 4px;
}

.product-grid[data-layout] .product-card__footer {
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 8px;
}

.product-grid[data-layout] .product-card__footer-actions {
  flex: 0 0 auto;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  gap: 7px;
}

.product-grid[data-layout] .price-pill,
.product-grid[data-layout] .product-card__button {
  width: 100%;
  min-width: 0;
}

.product-grid[data-layout] .product-card__button {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-grid[data-layout="list"] .product-card--list {
  grid-template-columns: 1fr;
  grid-template-areas:
    "head"
    "visual"
    "copy"
    "footer";
  padding: 12px;
  gap: 10px;
}

.product-grid[data-layout="list"] .product-card--list .product-card__visual {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
}

.product-grid[data-layout="list"] .product-card--list .product-card__visual img {
  width: 96%;
  height: 96%;
  padding: 2px;
}

.product-grid[data-layout="list"] .product-card--list .product-card__title {
  -webkit-line-clamp: 1;
  font-size: 1.22rem;
}

.product-grid[data-layout="grid-2"] .product-card {
  padding: 9px;
  gap: 7px;
}

.product-grid[data-layout="grid-2"] .product-card__visual {
  border-radius: 16px;
}

.product-grid[data-layout="grid-2"] .product-card__title {
  -webkit-line-clamp: 1;
  font-size: 1rem;
}

.product-grid[data-layout="grid-2"] .price-pill {
  padding: 8px 10px;
  font-size: 1rem;
}

.product-grid[data-layout="grid-2"] .product-card__button {
  min-height: 34px;
  font-size: 0.7rem;
}

.product-grid[data-layout="grid-3"] .product-card {
  padding: 6px;
  gap: 5px;
  border-radius: 14px;
}

.product-grid[data-layout="grid-3"] .product-card__head {
  gap: 4px;
}

.product-grid[data-layout="grid-3"] .tag-pill {
  max-width: calc(100% - 32px);
  padding: 4px 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.54rem;
}

.product-grid[data-layout="grid-3"] .favorite-button {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.product-grid[data-layout="grid-3"] .product-card__visual {
  border-radius: 12px;
}

.product-grid[data-layout="grid-3"] .product-card__title {
  -webkit-line-clamp: 1;
  font-size: 0.74rem;
  line-height: 1.05;
}

.product-grid[data-layout="grid-3"] .price-pill {
  padding: 6px 6px;
  font-size: 0.74rem;
  border-radius: 10px;
}

.product-grid[data-layout="grid-3"] .product-card__footer {
  gap: 5px;
}

.product-grid[data-layout="grid-3"] .product-card__footer-actions {
  gap: 5px;
}

.product-grid[data-layout="grid-3"] .product-card__button {
  min-height: 26px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 0.52rem;
}

@media (max-width: 539px) {
  .product-grid[data-layout="list"] .product-card--list {
    padding: 11px;
  }

  .product-grid[data-layout="grid-2"] {
    gap: 8px;
  }

  .product-grid[data-layout="grid-3"] {
    gap: 5px;
  }

  .product-grid[data-layout="grid-2"] .product-card__button--buy,
  .product-grid[data-layout="grid-3"] .product-card__button--buy {
    letter-spacing: 0;
  }
}

/* Mobile WebView performance pass: keep RED neon, remove GPU-heavy excess. */
@media (max-width: 760px) {
  html {
    scroll-behavior: auto;
  }

  body {
    min-height: 100dvh;
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
  }

  .app-shell {
    min-height: 100dvh;
    padding-bottom: calc(116px + env(safe-area-inset-bottom));
  }

  .app-backdrop--grid,
  .app-backdrop--glow,
  body::before {
    animation: none !important;
  }

  .app-backdrop--grid {
    opacity: 0.28;
  }

  .app-backdrop--glow {
    opacity: 0.32;
    filter: blur(28px) saturate(1.05);
  }

  .app-header,
  .search-panel,
  .hero-card,
  .section,
  .surface-card,
  .cart-hero,
  .profile-hero,
  .benefit-card,
  .welcome-video-card,
  .cart-row,
  .cart-summary__box,
  .profile-stats article,
  .profile-action,
  .favorite-card,
  .access-panel,
  .profile-identity__item,
  .action-sheet__card,
  .product-modal__card,
  .bottom-nav {
    box-shadow:
      0 14px 32px rgba(0, 0, 0, 0.38),
      0 0 0 1px rgba(255, 48, 48, 0.08) !important;
    backdrop-filter: blur(8px) saturate(1.08) !important;
    -webkit-backdrop-filter: blur(8px) saturate(1.08) !important;
  }

  .primary-button,
  .product-card__button--buy {
    background-size: 220% 220%;
    animation: neonGradientDrift 5.5s linear infinite alternate !important;
    will-change: background-position;
    box-shadow:
      0 12px 24px rgba(255, 44, 44, 0.22),
      0 0 16px rgba(0, 255, 136, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  }

  .bottom-nav__item.is-active {
    animation: none !important;
  }

  .product-card,
  .hero-slide,
  .filter-chip,
  .product-card__button,
  .bottom-nav__item {
    transition-duration: 120ms !important;
  }

  .reveal {
    transform: none !important;
    transition: opacity 120ms ease !important;
  }

  .brand-mark,
  .hero-product,
  .viewer-media {
    filter: none !important;
  }

  .bottom-nav {
    bottom: max(8px, env(safe-area-inset-bottom));
    transform: translate3d(-50%, 0, 0);
    will-change: auto;
  }

  .product-modal,
  .action-sheet {
    min-height: 100dvh;
  }
}

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