:root {
  --bg-1: #090204;
  --bg-2: #14070c;
  --panel: rgba(11, 14, 20, 0.84);
  --panel-2: rgba(15, 19, 26, 0.94);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f7fb;
  --muted: #b7a8ad;
  --silver-1: #fbfdff;
  --silver-2: #dce4ef;
  --silver-3: #97a5bb;
  --accent: #e7edf6;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --radius-xl: 34px;
  --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 18% 12%, rgba(255, 74, 103, 0.16), transparent 20%),
    radial-gradient(circle at 84% 16%, rgba(255, 255, 255, 0.08), transparent 16%),
    linear-gradient(180deg, #1d090f 0%, #0c0608 34%, #040203 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: 18px 16px 28px;
  isolation: isolate;
}

.ambient,
.noise-layer,
.metal-fog,
.particle-field {
  pointer-events: none;
  position: absolute;
}

.particle-field {
  inset: -8%;
  overflow: hidden;
}

.particle {
  position: absolute;
  left: var(--left);
  top: var(--top);
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  opacity: var(--opacity);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.96), rgba(214, 223, 236, 0.54) 42%, rgba(214, 223, 236, 0.04) 78%, transparent 100%);
  box-shadow:
    0 0 16px rgba(255, 255, 255, 0.28),
    0 0 34px rgba(196, 209, 226, 0.14);
  filter: blur(calc(var(--blur) * 1px));
  animation:
    particle-up var(--duration) linear infinite,
    particle-sway calc(var(--duration) * 0.42) ease-in-out infinite alternate;
  animation-delay: var(--delay);
}

@keyframes particle-up {
  from {
    transform: translate3d(0, 0, 0) scale(0.92);
  }

  to {
    transform: translate3d(var(--drift-x), calc(var(--drift-y) * -1), 0) scale(1.18);
  }
}

@keyframes particle-sway {
  from {
    margin-left: -10px;
  }

  to {
    margin-left: 10px;
  }
}

.metal-fog {
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.55;
}

.metal-fog-one {
  top: -50px;
  right: -40px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 110, 136, 0.22), rgba(255, 110, 136, 0));
}

.metal-fog-two {
  left: -90px;
  bottom: 8%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 77, 111, 0.18), rgba(255, 77, 111, 0));
}

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

.ambient-one {
  top: -40px;
  left: -20px;
  width: 240px;
  height: 240px;
  background: rgba(255, 61, 98, 0.14);
}

.ambient-two {
  right: 6%;
  top: 200px;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.06);
}

.noise-layer {
  inset: 0;
  opacity: 0.14;
  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: 30px 30px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.86), transparent 94%);
}

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

.hero-panel,
.section-block,
.cart-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 32%),
    linear-gradient(180deg, rgba(29, 10, 16, 0.96), rgba(10, 7, 9, 0.93));
  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.1), transparent 22%),
    linear-gradient(135deg, rgba(255, 67, 98, 0.12), transparent 42%);
  pointer-events: none;
}

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

.hero-panel {
  min-height: 420px;
}

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

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

.brand-lockup h1 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(2.8rem, 9vw, 5rem);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, var(--silver-1) 0%, #edf3fb 32%, var(--silver-2) 56%, var(--silver-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
}

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

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

.hero-copy h2 {
  max-width: 16ch;
  font-size: clamp(2.1rem, 7vw, 3rem);
  line-height: 0.98;
}

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

.hero-text {
  max-width: 56ch;
}

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

.hero-badge,
.product-card,
.saved-card,
.cart-item,
.info-card {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.hero-badge {
  padding: 18px;
  text-align: left;
  backdrop-filter: blur(16px);
  border-radius: 30px;
}

.hero-badge-stack,
.tools-panel {
  display: none;
}

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

.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: 8px;
}

.primary-button,
.ghost-button,
.add-button,
.qty-button,
.icon-button,
.favorite-button,
.promo-pill,
.filter-chip,
.category-chip {
  min-height: 48px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms 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, #ff5d78, #e12648 58%, #930c22);
  box-shadow: 0 16px 34px rgba(225, 38, 72, 0.24);
}

.ghost-button,
.add-button,
.filter-chip,
.category-chip,
.promo-pill,
.icon-button,
.favorite-button {
  padding: 0 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
}

.wide-button {
  width: 100%;
}

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

.stat-pill {
  padding: 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

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

.search-box {
  margin-bottom: 14px;
}

.search-box input,
.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  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(220, 228, 239, 0.4);
  box-shadow: 0 0 0 4px rgba(220, 228, 239, 0.08);
}

.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(220, 228, 239, 0.18), rgba(255, 255, 255, 0.06));
  border-color: rgba(220, 228, 239, 0.3);
}

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

.product-card {
  overflow: hidden;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(31, 11, 16, 0.98), rgba(11, 7, 9, 0.94));
  border-radius: 30px;
}

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

.product-image {
  width: min(100%, 220px);
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  filter:
    drop-shadow(0 24px 36px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 18px rgba(214, 223, 236, 0.12));
}

.product-placeholder {
  width: 72%;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(214, 223, 236, 0.42) 44%, rgba(214, 223, 236, 0.04) 76%, transparent 100%);
}

.favorite-button {
  display: none;
}

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

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

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

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

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

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

.product-price {
  font-size: 1.34rem;
  color: #ffe4ea;
}

.saved-card,
.info-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 30px;
}

.saved-card {
  grid-template-columns: 1fr;
}

.saved-image {
  display: none;
}

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

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

.cart-item-image {
  display: none;
}

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

.qty-button {
  width: 36px;
  min-height: 36px;
  border-radius: 12px;
  padding: 0;
}

.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 {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

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

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

.bottom-bar {
  display: none;
}

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

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(3, 4, 7, 0.74);
  backdrop-filter: blur(12px);
  z-index: 50;
}

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

.modal-card {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 22px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 30%),
    linear-gradient(180deg, rgba(14, 18, 24, 0.98), rgba(8, 10, 14, 0.96));
  box-shadow: var(--shadow);
}

.modal-head,
.order-summary,
.field,
.modal-actions {
  display: grid;
  gap: 10px;
}

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

.empty-box {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.empty-box strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.06rem;
}

.helper-note {
  font-size: 0.82rem;
  color: var(--muted);
}

@media (min-width: 920px) {
  .phone-frame {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: start;
  }

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

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

  .cart-panel {
    position: sticky;
    top: 18px;
  }
}

@media (max-width: 919px) {
  .product-grid,
  .stats-row,
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

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

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

  .hero-actions,
  .product-actions,
  .cart-footer-actions,
  .profile-actions,
  .search-box,
  .product-bottom,
  .product-extra {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    display: grid;
  }
}
