:root {
  --bg: #050505;
  --panel: rgba(17, 14, 18, 0.9);
  --panel-soft: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f8f8fb;
  --muted: #b5b7c2;
  --red-1: #ff2f43;
  --red-2: #cf102f;
  --red-3: #7f091d;
  --chrome-1: #ffffff;
  --chrome-2: #bfc8d8;
  --chrome-3: #6f7788;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.45);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(255, 47, 67, 0.32), transparent 26%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08), transparent 20%),
    linear-gradient(180deg, #13060b 0%, #08080a 38%, #020203 100%);
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 20px 16px 28px;
}

.ambient,
.noise-layer {
  pointer-events: none;
  position: absolute;
}

.ambient {
  border-radius: 999px;
  filter: blur(70px);
}

.ambient-one {
  top: -40px;
  left: -30px;
  width: 240px;
  height: 240px;
  background: rgba(255, 31, 63, 0.28);
}

.ambient-two {
  right: -40px;
  top: 260px;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.08);
}

.noise-layer {
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.86), transparent 92%);
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 1220px);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.hero-panel,
.section-block,
.cart-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(20, 14, 18, 0.97), rgba(8, 8, 10, 0.95));
  box-shadow: var(--shadow);
}

.hero-panel::before,
.section-block::before,
.cart-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.09), transparent 24%),
    linear-gradient(135deg, rgba(255, 42, 61, 0.14), transparent 38%, rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.hero-top,
.hero-core,
.section-head,
.cart-head,
.cart-footer {
  position: relative;
  z-index: 1;
}

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

.hero-panel,
.section-block,
.cart-panel {
  padding: 20px;
}

.brand-kicker,
.hero-label,
.section-kicker {
  display: block;
  margin-bottom: 8px;
  color: #ff94a0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-lockup h1 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.4rem, 11vw, 3.8rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--chrome-1) 0%, #ecf3ff 24%, var(--chrome-2) 52%, var(--chrome-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 34px rgba(0, 0, 0, 0.35);
}

.age-badge,
.promo-pill,
.cart-counter,
.section-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.hero-core {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.hero-copy h2,
.section-head h3,
.cart-head h3 {
  margin: 0;
}

.hero-copy h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 8vw, 2.9rem);
  line-height: 0.98;
}

.hero-text,
.feature-card p,
.info-card p,
.empty-state,
.product-description,
.saved-copy small,
.cart-item-meta,
.order-line span,
.field span,
.cart-total-box span,
.cart-total-box small {
  color: var(--muted);
  line-height: 1.65;
}

.hero-badge-stack,
.feature-list,
.saved-grid,
.cart-list,
.profile-grid {
  display: grid;
  gap: 12px;
}

.hero-badge,
.feature-card,
.product-card,
.saved-card,
.cart-item,
.info-card {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
}

.chrome-card,
.soft-card,
.feature-card,
.product-card,
.cart-item,
.saved-card,
.info-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chrome-card,
.soft-card,
.feature-card,
.saved-card,
.cart-item,
.info-card,
.product-card {
  background: rgba(255, 255, 255, 0.04);
}

.action-card {
  text-align: left;
}

.chrome-card {
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(255, 38, 66, 0.3), rgba(22, 19, 25, 0.9));
}

.soft-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
}

.hero-badge span,
.stat-pill span,
.feature-card span,
.product-meta,
.saved-copy span,
.saved-copy small,
.cart-total-box span,
.cart-item-meta,
.field span {
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-badge strong,
.stat-pill strong,
.product-price,
.cart-item-price,
.saved-copy strong,
.cart-total-box strong,
.info-card strong {
  display: block;
  margin-top: 6px;
}

.hero-actions,
.category-row,
.filter-row,
.product-tags,
.product-actions,
.cart-footer-actions,
.profile-actions,
.promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-button,
.ghost-button,
.add-button,
.qty-button,
.icon-button,
.favorite-button,
.promo-pill,
.filter-chip,
.category-chip {
  min-height: 48px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button:hover,
.ghost-button:hover,
.add-button:hover,
.qty-button:hover,
.icon-button:hover,
.favorite-button:hover,
.promo-pill:hover,
.filter-chip:hover,
.category-chip:hover,
.bottom-item:hover {
  transform: translateY(-2px);
}

.primary-button {
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #ff3a52, #d31534 58%, #920b1f);
  box-shadow: 0 16px 38px rgba(211, 21, 52, 0.36);
}

.ghost-button,
.add-button,
.filter-chip,
.category-chip,
.promo-pill,
.icon-button {
  padding: 0 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.compact-action {
  min-height: 40px;
  padding: 0 14px;
}

.wide-button {
  width: 100%;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.stat-pill {
  padding: 14px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.section-head,
.cart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 12px;
}

.search-box input,
.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 0 16px;
  outline: none;
}

.field textarea {
  min-height: 120px;
  padding: 14px 16px;
  resize: vertical;
}

.search-box input:focus,
.field input:focus,
.field textarea:focus {
  border-color: rgba(255, 120, 136, 0.48);
  box-shadow: 0 0 0 4px rgba(255, 58, 82, 0.12);
}

.category-chip,
.filter-chip,
.promo-pill {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
}

.category-chip.is-active,
.filter-chip.is-active {
  background: linear-gradient(135deg, rgba(255, 58, 82, 0.3), rgba(255, 255, 255, 0.08));
  border-color: rgba(255, 103, 124, 0.44);
}

.product-grid {
  display: grid;
  gap: 14px;
}

.product-card {
  overflow: hidden;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(32, 21, 28, 0.96), rgba(14, 13, 16, 0.92));
}

.favorite-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  font-size: 1rem;
}

.favorite-button.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 58, 82, 0.85), rgba(157, 12, 38, 0.92));
}

.product-visual {
  display: grid;
  place-items: center;
  min-height: 180px;
  margin-bottom: 16px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 49, 72, 0.16), rgba(255, 255, 255, 0.03));
}

.product-image,
.saved-image,
.cart-item-image {
  object-fit: contain;
}

.product-image {
  width: min(100%, 188px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.42));
}

.product-headline h4 {
  margin: 4px 0 8px;
  font-size: 1.18rem;
}

.product-description {
  margin: 0 0 14px;
  line-height: 1.6;
}

.product-tags {
  margin-bottom: 14px;
}

.product-tag {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--muted);
  font-size: 0.78rem;
}

.product-extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.product-extra span,
.product-extra strong {
  font-size: 0.84rem;
}

.product-extra strong {
  color: #ffc7cf;
}

.product-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.product-price {
  font-size: 1.35rem;
  color: var(--text);
}

.promo-banner {
  display: grid;
  gap: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.14), transparent 26%),
    linear-gradient(135deg, rgba(255, 49, 72, 0.18), rgba(16, 12, 15, 0.94));
}

.promo-banner h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

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

.feature-card {
  padding: 18px;
}

.feature-card span {
  display: inline-flex;
  margin-bottom: 14px;
  color: #ff8a98;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.saved-card,
.info-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.saved-card {
  grid-template-columns: 72px 1fr;
  align-items: center;
}

.saved-image {
  width: 72px;
  height: 72px;
}

.saved-copy strong {
  margin-top: 2px;
}

.saved-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
}

.cart-list {
  min-height: 90px;
}

.cart-item {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.cart-item-image {
  width: 74px;
  height: 74px;
}

.cart-item-info strong {
  display: block;
  margin-bottom: 6px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-button {
  width: 36px;
  min-height: 36px;
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 14px;
}

.cart-total-box strong {
  font-size: 1.4rem;
}

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

.info-card {
  min-height: 170px;
}

.bottom-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(10, 10, 12, 0.92);
  box-shadow: var(--shadow);
  position: sticky;
  bottom: 10px;
  z-index: 5;
}

.bottom-item {
  min-height: 48px;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
}

.bottom-item.is-active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(255, 58, 82, 0.24), rgba(255, 255, 255, 0.06));
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(16px);
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 13, 16, 0.96);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 20;
}

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  z-index: 25;
}

.modal-backdrop.is-hidden {
  display: none;
}

.modal-card {
  width: min(100%, 560px);
  max-height: 90vh;
  overflow: auto;
  padding: 20px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(21, 15, 19, 0.98), rgba(10, 9, 12, 0.96));
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.order-summary,
.field {
  display: grid;
  gap: 8px;
}

.order-summary {
  margin-bottom: 16px;
}

.order-line {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.modal-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

@media (min-width: 720px) {
  .phone-frame {
    width: min(100%, 1220px);
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }

  .hero-panel,
  .catalog-block,
  #favoritesSection,
  .promo-banner {
    grid-column: 1;
  }

  .tools-panel,
  .cart-panel,
  .profile-panel {
    grid-column: 2;
  }

  .bottom-bar {
    grid-column: 1 / -1;
  }

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

@media (max-width: 760px) {
  .feature-list,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .search-box {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-item-controls,
  .product-bottom,
  .saved-actions,
  .profile-actions,
  .cart-footer-actions,
  .hero-actions {
    flex-direction: column;
  }

  .add-button,
  .primary-button,
  .ghost-button,
  .compact-action {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .app-shell {
    padding: 14px 12px 22px;
  }

  .hero-panel,
  .section-block,
  .cart-panel {
    border-radius: 26px;
    padding: 18px;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

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