:root {
  --bg: #05070f;
  --surface: #121833;
  --surface-2: #161f3d;
  --line: #3d4f8c;
  --text: #f2f6ff;
  --muted: #b7c5f3;
  --primary: #8b5dff;
  --primary-hover: #6b47ef;
  --secondary: #a875ff;
  --danger: #ff6f6f;
  --success: #42d39f;
  --shadow: 0 18px 50px #03050ca1;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --section-y: clamp(52px, 7vw, 84px);
  --header-stack-h: 112px;
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="light"] {
  --bg: #f2f5ff;
  --surface: #ffffff;
  --surface-2: #eef2ff;
  --line: #cfd8f8;
  --text: #171d33;
  --muted: #4f5d8d;
  --primary: #5f4ff0;
  --primary-hover: #5142e0;
  --shadow: 0 16px 40px #56639a29;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at 12% -8%, #8b5dff66 0, transparent 36%),
    radial-gradient(circle at 88% 2%, #39f3a14a 0, transparent 32%),
    radial-gradient(circle at 50% 120%, #3d1f7b63 0, transparent 45%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at 15% -10%, #d9deff, transparent 34%),
    radial-gradient(circle at 90% 5%, #d5ebff, transparent 30%),
    linear-gradient(180deg, #f2f5ff 0%, #eef3ff 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
}

body::before {
  inset: 0;
  background: radial-gradient(circle at 20% 20%, #ffffff08 0, transparent 38%);
}

body::after {
  width: 520px;
  height: 520px;
  right: -200px;
  top: 90px;
  background: radial-gradient(circle, #5636ff24 0, transparent 62%);
  filter: blur(6px);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.announcement {
  border-bottom: 1px solid #222a47;
  background: #0b0f1d;
}

.announcement-content {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  font-size: 0.78rem;
  color: #aab8e5;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 10, 20, 0.62);
  border-bottom: 1px solid #26325b;
  backdrop-filter: blur(16px);
}

:root[data-theme="light"] .topbar {
  background: #f6f8ffd9;
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.logo {
  font-family: "Orbitron", "Inter", sans-serif;
  font-size: 1.42rem;
}

.logo span {
  color: var(--secondary);
}

.menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.92rem;
}

.menu a {
  border: 1px solid transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s var(--ease-premium), background-color 0.2s var(--ease-premium),
    border-color 0.2s var(--ease-premium);
}

.menu a.active,
.menu a:hover {
  border-color: var(--line);
  color: var(--text);
  background: #121933;
}

:root[data-theme="light"] .menu a.active,
:root[data-theme="light"] .menu a:hover {
  background: #dfe6ff;
}

#cart-count-badge {
  margin-left: 4px;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.73rem;
  background: var(--primary);
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.024em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.8rem);
  max-width: 20ch;
  margin-inline: auto;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  background: url("https://images.pexels.com/photos/7915212/pexels-photo-7915212.jpeg?auto=compress&cs=tinysrgb&w=1800") center/cover no-repeat;
}

:root[data-theme="light"] .hero {
  box-shadow: inset 0 0 0 1px #d8e0ff;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, #05070edc 36%, #080b148f 68%, #080b140f),
    radial-gradient(circle at 75% 50%, #5025ff55, transparent 38%);
}

:root[data-theme="light"] .overlay {
  background: linear-gradient(110deg, #f3f6ffe3 34%, #edf2ffd1 70%, #eef3ff8f),
    radial-gradient(circle at 75% 50%, #8ca0ff4d, transparent 38%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 350px);
  gap: clamp(20px, 3vw, 34px);
  align-items: center;
}

.hero-layout-single {
  grid-template-columns: 1fr;
}

.hero-content {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
  animation: fade-up 0.7s ease both;
}

.tag {
  display: inline-flex;
  border: 1px solid #495179;
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: var(--space-2);
  font-size: 0.84rem;
  color: #d8e0ff;
  background: #0f143088;
}

.subtitle {
  max-width: 600px;
  color: #c4ceef;
  margin: var(--space-2) 0 var(--space-4);
  margin-inline: auto;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  max-width: 530px;
  margin-inline: auto;
}

.hero-stats article {
  border: 1px solid #4b547a;
  border-radius: var(--radius-md);
  background: #0f1325bd;
  padding: var(--space-2);
}

.hero-stats small {
  color: #afbbe7;
  font-size: 0.8rem;
}

.hero-panel {
  border: 1px solid #4a568f;
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  background: linear-gradient(160deg, #131a35e8, #11172ee8);
  box-shadow: var(--shadow);
  animation: float-in 0.8s ease both;
  justify-self: end;
  width: 100%;
}

.highlight-offer-section {
  padding-top: clamp(18px, 3vw, 28px);
  padding-bottom: 0;
}

.relocated-offer {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 8px;
}

.relocated-offer .btn {
  width: fit-content;
}

:root[data-theme="light"] .hero-panel {
  background: linear-gradient(160deg, #f7f9ff, #eff4ff);
  border-color: #c9d3fb;
}

.panel-label {
  color: #b9c6f3;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.hero-panel h3 {
  margin: 6px 0 var(--space-2);
  font-size: 1.26rem;
}

.panel-price {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.panel-price span {
  color: #aab6df;
  font-size: 0.88rem;
  text-decoration: line-through;
  margin-left: 8px;
  font-weight: 500;
}

.hero-panel ul {
  margin: 0 0 var(--space-3) 18px;
  color: #b5c1ea;
}

.hero-panel li {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.trending-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0d1120;
}

:root[data-theme="light"] .trending-strip {
  background: #edf2ff;
}

.trending-content {
  min-height: 50px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  color: #bbc6ed;
  font-size: 0.88rem;
  padding-block: 4px;
}

.trending-content span {
  color: #f3f5ff;
  font-weight: 700;
}

.btn {
  border: 1px solid #323b61;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #1f2742, #161c31);
  color: var(--text);
  padding: 11px 18px;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease-premium), box-shadow 0.2s var(--ease-premium),
    border-color 0.2s var(--ease-premium), filter 0.2s ease;
}

:root[data-theme="light"] .btn {
  background: linear-gradient(180deg, #f7f9ff, #e9efff);
  border-color: #bcc9f1;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: #526199;
  box-shadow: 0 8px 22px #070a14ad;
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn-primary {
  border-color: #6a57ff;
  background: linear-gradient(180deg, var(--primary), var(--primary-hover));
}

.btn-small {
  padding: 8px 12px;
  font-size: 0.83rem;
}

.full {
  width: 100%;
}

.section {
  padding: var(--section-y) 0;
}

main.container {
  padding-bottom: clamp(22px, 4vw, 40px);
}

.mini-cards {
  padding-top: clamp(22px, 4vw, 34px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: var(--space-3);
}

.mini-cards article {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #12172a, #171e36);
  padding: var(--space-3);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.mini-cards article:hover {
  transform: translateY(-4px);
  border-color: #42508a;
}

:root[data-theme="light"] .mini-cards article,
:root[data-theme="light"] .card,
:root[data-theme="light"] .platform-grid article,
:root[data-theme="light"] .auth-aside,
:root[data-theme="light"] .auth-card,
:root[data-theme="light"] .cart-item,
:root[data-theme="light"] .cart-summary-panel,
:root[data-theme="light"] .flash-card,
:root[data-theme="light"] .review-card,
:root[data-theme="light"] .shop-sidebar,
:root[data-theme="light"] .product-info-panel,
:root[data-theme="light"] .contact-info,
:root[data-theme="light"] .contact-form-card,
:root[data-theme="light"] .coming-card,
:root[data-theme="light"] .faq-list details,
:root[data-theme="light"] .checkout-panel,
:root[data-theme="light"] .account-profile,
:root[data-theme="light"] .account-panel,
:root[data-theme="light"] .checkout-steps article {
  background: linear-gradient(150deg, #ffffff, #f2f6ff);
  border-color: #c9d3fb;
}

.mini-cards p {
  color: var(--muted);
  margin-top: 6px;
  font-size: 0.9rem;
}

.section-header {
  margin-bottom: var(--space-4);
  max-width: 760px;
}

.section-header p {
  margin-top: 6px;
  color: var(--muted);
}

input,
select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #394368;
  background: #0f1425;
  color: var(--text);
  padding: 11px 12px;
  font-family: inherit;
  transition: border-color 0.2s var(--ease-premium), box-shadow 0.2s var(--ease-premium),
    background-color 0.2s var(--ease-premium);
}

textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #394368;
  background: #0f1425;
  color: var(--text);
  padding: 11px 12px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s var(--ease-premium), box-shadow 0.2s var(--ease-premium),
    background-color 0.2s var(--ease-premium);
}

:root[data-theme="light"] input,
:root[data-theme="light"] select {
  background: #ffffff;
  border-color: #c6d2f6;
}

:root[data-theme="light"] textarea {
  background: #ffffff;
  border-color: #c6d2f6;
}

textarea:focus {
  outline: none;
  border-color: #7181c8;
  box-shadow: 0 0 0 3px #7486d535;
}

input:focus,
select:focus {
  outline: none;
  border-color: #7181c8;
  box-shadow: 0 0 0 3px #7486d535;
}

input::placeholder {
  color: #7f8dbd;
}

.catalog-toolbar {
  margin-bottom: var(--space-2);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 250px;
  gap: var(--space-2);
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin: var(--space-2) 0 var(--space-3);
}

.chip {
  border: 1px solid #3a446b;
  background: #12192d;
  color: #c6d1fb;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.83rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease-premium), border-color 0.2s var(--ease-premium),
    background-color 0.2s var(--ease-premium), color 0.2s var(--ease-premium);
}

.chip.active {
  border-color: #8e84ff;
  background: #6f59ff36;
  color: #fff;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: #6272ad;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-3);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #141a31, #111626);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  border-color: #5b6ba5;
  box-shadow: var(--shadow);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 25%, #ffffff0f 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-premium);
  pointer-events: none;
}

.card:hover::before {
  transform: translateX(120%);
}

.card img {
  width: 100%;
  height: 182px;
  object-fit: cover;
  transition: transform 0.35s var(--ease-premium), filter 0.35s var(--ease-premium);
}

.card:hover img {
  transform: scale(1.04);
  filter: saturate(1.08);
}

.card-media {
  width: 100%;
  height: 182px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #2f3861;
  background: linear-gradient(160deg, #1b2550, #141c39);
}

.card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, #9d6cff2f, #24d2ff24 50%, transparent);
}

.card-media svg {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  stroke: #d9e3ff;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-media-action svg {
  fill: #d9e3ff;
}

.card-media-rpg {
  background: linear-gradient(160deg, #2a1f5a, #19163a);
}

.card-media-fps {
  background: linear-gradient(160deg, #172a5a, #111c3d);
}

.card-media-sport {
  background: linear-gradient(160deg, #123258, #10253f);
}

.card-media-race {
  background: linear-gradient(160deg, #3a1d56, #22153a);
}

.card-media-action {
  background: linear-gradient(160deg, #2d1e58, #1a153a);
}

.card-body {
  padding: var(--space-3);
}

.card-headline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.card-headline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f3f6ff;
  background: linear-gradient(180deg, #7b67ff, #5c4ce2);
}

.card-platform {
  font-size: 0.72rem;
  color: #95a2d3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.favorite-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #5160a0;
  background: #182145;
  color: #d8e0ff;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  font-size: 0.85rem;
  transition: transform 0.2s var(--ease-premium), border-color 0.2s var(--ease-premium),
    background-color 0.2s var(--ease-premium);
}

.favorite-btn:hover {
  transform: scale(1.05);
  border-color: #7787d2;
}

.favorite-btn.is-favorite {
  color: #fff;
  background: #f05454;
  border-color: #f05454;
}

:root[data-theme="light"] .card-badge {
  color: #2d245f;
  background: linear-gradient(180deg, #d4dcff, #c3ceff);
}

:root[data-theme="light"] .card-platform {
  color: #6171a8;
}

.card h3 {
  font-size: 1.03rem;
  min-height: 2.45rem;
}

.card h3 a {
  transition: color 0.2s var(--ease-premium);
}

.card:hover h3 a {
  color: #cfd7ff;
}

.card-description {
  color: var(--muted);
  margin: 8px 0 12px;
  font-size: 0.9rem;
  min-height: 2.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta {
  margin: 0 0 var(--space-2);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
  color: #9aa8da;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed #2f3861;
}

:root[data-theme="light"] .card-footer {
  border-top-color: #cad5fb;
}

.section-header h2,
.section-header h1 {
  text-wrap: balance;
}

.skeleton-card {
  min-height: 330px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(110deg, #121a32 20%, #1b2547 40%, #121a32 60%);
  background-size: 250% 100%;
  animation: skeleton 1.1s linear infinite;
}

@keyframes skeleton {
  to {
    background-position: -250% 0;
  }
}

.empty-state {
  margin-top: var(--space-2);
  color: var(--muted);
}

.hidden {
  display: none;
}

.spotlight {
  border: 1px solid #36427b;
  border-radius: var(--radius-xl);
  padding: clamp(20px, 3vw, 30px);
  background: linear-gradient(122deg, #1d2158, #2b2174 46%, #16233f);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

:root[data-theme="light"] .spotlight {
  background: linear-gradient(122deg, #e7ecff, #e3ebff 46%, #dce8ff);
  border-color: #c7d2fa;
}

.spotlight p {
  margin-top: 8px;
  color: #ced7f9;
  max-width: 620px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(188px, 1fr));
  gap: var(--space-2);
}

.platform-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #121a2f;
  padding: var(--space-3);
  transition: transform 0.25s var(--ease-premium), border-color 0.25s var(--ease-premium);
}

.platform-grid article:hover {
  transform: translateY(-3px);
  border-color: #48588f;
}

.platform-grid p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.flash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-3);
}

.flash-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #121a32, #151e3a);
  padding: var(--space-3);
  position: relative;
}

.flash-badge {
  display: inline-flex;
  background: #f05454;
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 700;
}

.flash-badge.hot {
  background: #ff7b39;
}

.flash-title-row {
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.flash-urgency {
  border: 1px solid #d6753c;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.7rem;
  color: #ffd7bf;
  white-space: nowrap;
}

.flash-price {
  margin: var(--space-2) 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
}

.flash-price span {
  margin-left: 8px;
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.9rem;
}

.flash-card .meta {
  margin-bottom: 10px;
}

.promo-highlight {
  border: 1px solid #4a5ba1;
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, #1d2360, #151d45 55%, #15243b);
  padding: var(--space-3);
  display: grid;
  gap: 8px;
  margin-bottom: var(--space-3);
}

.promo-highlight p {
  color: #d5deff;
}

.promo-highlight .btn {
  width: fit-content;
  margin-top: 4px;
}

.promo-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin: 6px 0 var(--space-3);
}

.promo-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3);
}

.review-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  background: linear-gradient(160deg, #12182e, #111624);
}

.review-card strong {
  display: block;
  margin-bottom: 8px;
}

.review-card p {
  color: var(--muted);
  margin-bottom: 10px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: #111827;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-list p {
  color: var(--muted);
  margin-top: 8px;
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--space-4);
}

.shop-sidebar {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #111827;
  padding: var(--space-3);
  position: sticky;
  top: calc(var(--header-stack-h) + 16px);
}

.shop-sidebar h3 {
  margin-bottom: 10px;
}

.sidebar-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-3);
}

.sidebar-list .chip {
  width: fit-content;
}

.sidebar-prices {
  display: grid;
  gap: 8px;
  margin-bottom: var(--space-3);
}

.price-filter {
  text-align: left;
  border: 1px solid #3a446b;
  background: #12192d;
  color: #c6d1fb;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.price-filter.active {
  border-color: #8e84ff;
  background: #6f59ff36;
  color: #fff;
}

.promo-widget {
  border: 1px solid #3f4a77;
  border-radius: var(--radius-md);
  padding: 12px;
  background: linear-gradient(155deg, #1a2252, #131937);
}

.promo-widget h3 {
  margin: 6px 0;
}

.promo-widget p {
  color: #c8d2f4;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}

.shop-toolbar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.muted-inline {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: var(--space-4);
}

.product-gallery img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.product-info-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  background: #111827;
}

.detail-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  margin: 10px 0;
}

.detail-price {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

#detail-rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

#detail-rating-stars svg {
  width: 14px;
  height: 14px;
  fill: #f9d871;
  stroke: #f9d871;
  stroke-width: 1.2;
}

.detail-bullets {
  margin: 6px 0 0 18px;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: start;
}

.contact-info,
.contact-form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #111827;
  padding: var(--space-4);
}

.contact-info ul {
  margin: 12px 0 0 18px;
  color: var(--muted);
}

.coming-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.checkout-steps article {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #111827;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.checkout-steps article strong {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #1f2a53;
}

.checkout-steps article.active {
  border-color: #7b67ff;
  color: var(--text);
}

.checkout-steps article.done {
  border-color: #40b893;
}

.checkout-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #111827;
  padding: var(--space-4);
}

.checkout-panel h3 {
  margin-bottom: var(--space-3);
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.checkout-summary {
  display: grid;
  gap: 6px;
  margin-bottom: var(--space-3);
}

.checkout-inline-actions {
  display: flex;
  gap: var(--space-2);
  align-items: end;
}

.confirmation-code {
  margin: var(--space-2) 0 var(--space-3);
  font-size: 1.2rem;
  font-weight: 700;
}

.account-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
}

.account-profile {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #111827;
  padding: var(--space-4);
  position: sticky;
  top: calc(var(--header-stack-h) + 16px);
}

.account-profile p {
  color: var(--muted);
  margin-bottom: var(--space-3);
}

.account-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #111827;
  padding: var(--space-4);
}

.account-list {
  display: grid;
  gap: 10px;
}

.account-item {
  border: 1px solid #323c61;
  border-radius: var(--radius-md);
  background: #141d37;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.account-item small {
  color: var(--muted);
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coming-card {
  width: min(760px, 94%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 44px);
  background: linear-gradient(160deg, #12182f, #111728);
  text-align: center;
}

.countdown-grid {
  margin: var(--space-4) 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
}

.promo-countdown {
  max-width: 760px;
}

.countdown-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px;
}

.countdown-grid strong {
  display: block;
  font-size: 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  text-align: left;
}

.footer-grid h4 {
  margin-bottom: 8px;
}

.footer-grid a {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}

.footer a {
  color: var(--muted);
  transition: color 0.2s var(--ease-premium);
}

.footer a:hover {
  color: var(--text);
}

.footer-grid p {
  color: var(--muted);
  margin-top: 8px;
}

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, #273675, transparent 34%),
    linear-gradient(180deg, #090b14, #090b14);
}

.auth-wrapper {
  min-height: calc(100vh - var(--header-stack-h));
  padding: clamp(24px, 4vw, 40px) 0;
  width: min(1160px, 92%);
  margin: 0 auto;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: var(--space-4);
  align-items: center;
}

.auth-aside {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #121830, #151e3a);
  padding: clamp(20px, 2.5vw, 30px);
}

.auth-aside h2 {
  margin: var(--space-1) 0 var(--space-2);
}

.auth-aside p {
  color: var(--muted);
}

.auth-aside ul {
  margin: var(--space-2) 0 0 18px;
  color: #c4ceee;
}

.auth-aside li {
  margin-bottom: 8px;
}

.auth-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #12182c, #111624);
  padding: clamp(20px, 2.5vw, 30px);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: 1.72rem;
}

.auth-card p {
  color: var(--muted);
  margin: 6px 0 var(--space-3);
}

.form-group {
  margin-bottom: var(--space-2);
}

label {
  display: block;
  margin-bottom: 6px;
  color: #d5ddfb;
  font-size: 0.86rem;
  transition: color 0.2s var(--ease-premium);
}

.form-group:focus-within label {
  color: #e8ecff;
}

.message {
  min-height: 22px;
  margin-top: var(--space-2);
  font-size: 0.9rem;
}

.message.success {
  color: var(--success);
}

.message.error {
  color: var(--danger);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--space-4);
  align-items: start;
}

.cart-layout > section {
  min-width: 0;
}

.cart-list {
  display: grid;
  gap: var(--space-2);
}

.cart-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, #12192d, #101626);
  padding: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.2s var(--ease-premium), border-color 0.2s var(--ease-premium);
}

.cart-item:hover {
  transform: translateY(-2px);
  border-color: #465789;
}

.cart-item small {
  color: var(--muted);
}

.remove-btn {
  background: transparent;
  color: #ffadad;
  border-color: #a74e5f;
}

.cart-summary-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, #12192f, #0f1523);
  padding: var(--space-3);
  position: sticky;
  top: calc(var(--header-stack-h) + 16px);
}

.cart-summary-panel h3 {
  margin-bottom: var(--space-2);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-1);
  color: #c9d2f4;
}

.summary-row.total {
  margin-top: var(--space-1);
  padding-top: var(--space-2);
  border-top: 1px solid #2f385e;
  font-size: 1.05rem;
}

#cart-total {
  font-size: 1.28rem;
}

.coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-1);
  margin-top: var(--space-1);
}

.cart-actions {
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  padding: 16px 0 26px;
  margin-top: 34px;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  filter: blur(2px);
  transition:
    opacity 0.72s var(--ease-premium),
    transform 0.72s var(--ease-premium),
    filter 0.72s var(--ease-premium);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.toast-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  display: grid;
  gap: 8px;
}

.toast {
  min-width: 220px;
  max-width: 320px;
  border-radius: 12px;
  padding: 10px 12px;
  color: #f4f7ff;
  border: 1px solid #4b578a;
  background: #141b33;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease-premium), transform 0.25s var(--ease-premium);
  box-shadow: var(--shadow);
}

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

.toast-success {
  border-color: #2e9f79;
}

.toast-error {
  border-color: #b3586a;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  background: #090b14d8;
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-premium), visibility 0.35s var(--ease-premium);
}

.page-loader.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.loader-orb {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 3px solid #42508a;
  border-top-color: #aebdff;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.products-grid .reveal-on-scroll:nth-child(2n) {
  --reveal-delay: 50ms;
}

.products-grid .reveal-on-scroll:nth-child(3n) {
  --reveal-delay: 90ms;
}

body.page-transition-ready {
  opacity: 0;
  transform: translateY(8px) scale(0.998);
  filter: blur(2px);
}

body.page-transition-ready.page-transition-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition: opacity 0.2s var(--ease-premium), transform 0.2s var(--ease-premium),
    filter 0.2s var(--ease-premium);
}

body.page-transition-ready.page-transition-leave {
  opacity: 0;
  transform: translateY(-3px) scale(0.999);
  filter: blur(1px);
  transition: opacity 0.14s var(--ease-premium), transform 0.14s var(--ease-premium),
    filter 0.14s var(--ease-premium);
}

.shop-grid .reveal-on-scroll:nth-child(2n),
.review-grid .reveal-on-scroll:nth-child(2n),
.flash-grid .reveal-on-scroll:nth-child(2n) {
  --reveal-delay: 55ms;
}

.shop-grid .reveal-on-scroll:nth-child(3n),
.review-grid .reveal-on-scroll:nth-child(3n),
.flash-grid .reveal-on-scroll:nth-child(3n) {
  --reveal-delay: 95ms;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 930px) {
  .hero-layout,
  .auth-grid,
  .cart-layout,
  .contact-layout,
  .product-detail-layout,
  .account-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 460px;
    justify-self: center;
  }

  .cart-summary-panel {
    position: static;
  }

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

  .shop-sidebar {
    position: static;
  }

  .account-profile {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav {
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    min-height: 76vh;
  }

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

  h1 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  h2 {
    font-size: clamp(1.35rem, 6.2vw, 1.8rem);
  }

  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .catalog-toolbar,
  .coupon-row,
  .checkout-form-grid {
    grid-template-columns: 1fr;
  }

  .shop-toolbar-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .sidebar-list {
    justify-content: center;
  }

  .spotlight {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .toast-stack {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .toast {
    max-width: none;
    width: 100%;
  }

  .checkout-inline-actions {
    flex-direction: column;
  }

  .promo-filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
