﻿:root {
  --bg: #05070d;
  --bg-2: #121826;
  --panel: rgba(16, 19, 29, 0.92);
  --panel-strong: #0d1017;
  --card: rgba(20, 24, 35, 0.96);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f8f9ff;
  --muted: #b7bfce;
  --primary: #ff2d75;
  --primary-strong: #ff4f9c;
  --accent: #3ad7ff;
  --accent-strong: #27b7ff;
  --success: #7ef0bf;
  --shadow: 0 28px 70px rgba(255, 45, 117, 0.18);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 45, 117, 0.18), transparent 25%),
    radial-gradient(circle at top right, rgba(58, 215, 255, 0.18), transparent 26%),
    linear-gradient(135deg, var(--bg) 0%, #0d1018 40%, #171d2b 100%);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }

.announcement {
  padding: 10px 16px;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: var(--muted);
  text-transform: uppercase;
  background: rgba(18, 21, 31, 0.95);
  border-bottom: 1px solid var(--line);
}
.announcement span { color: var(--primary); padding: 0 12px; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 14px 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 16, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.04em;
}
.brand > span {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 1.28rem;
  font-weight: 800;
}
.brand-name {
  color: #168cff;
  letter-spacing: -0.03em;
}
.brand-nb { color: #ef233c; }
.brand-gadgets { color: #168cff; }
.brand-tagline {
  font-size: 8px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav a, .section-head > a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s ease;
}
nav a:hover, .section-head > a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn, .cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(19, 22, 33, 0.82);
  color: var(--text);
  transition: 0.2s ease;
}
.icon-btn {
  width: 42px;
  height: 42px;
  font-size: 20px;
}
.cart-btn {
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  font-weight: 700;
}
.upload-btn {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(58, 215, 255, 0.35);
  border-radius: 12px;
  background: rgba(13, 38, 55, 0.82);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.upload-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 28px rgba(28, 131, 255, 0.2); }
.cart-btn b {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #03131f;
  font-weight: 800;
  font-size: 10px;
}
.icon-btn:hover, .cart-btn:hover, .btn:hover, .category-grid button:hover,
.product-card:hover, .buy-button:hover, .checkout:hover, .quick:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(28, 131, 255, 0.2);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 32px;
  min-height: 700px;
  padding: 78px 8vw 60px;
  background:
    radial-gradient(circle at 76% 48%, rgba(52, 170, 255, 0.28), transparent 28%),
    radial-gradient(circle at 20% 18%, rgba(127, 227, 255, 0.2), transparent 24%),
    linear-gradient(135deg, rgba(7, 20, 31, 0.85), rgba(9, 29, 46, 0.9));
}
.hero-copy { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}
.eyebrow i {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 20px rgba(127, 227, 255, 0.9);
}

.hero h1, .section-head h2, .deal h2, .newsletter h2, .why-grid h3 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: -0.06em;
}
.hero h1 {
  margin-top: 20px;
  font-size: clamp(3rem, 5vw, 5.2rem);
  line-height: 0.96;
  color: var(--text);
}
.hero h1 em, .section-head h2 em, .deal h2 em {
  color: var(--accent);
  font-style: normal;
}
.hero-copy > p {
  max-width: 560px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}
.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: white;
  box-shadow: 0 18px 32px rgba(255, 45, 117, 0.28);
}
.btn.primary span { font-size: 18px; margin-left: 8px; }
.btn.ghost {
  background: rgba(17, 22, 33, 0.7);
  border-color: rgba(58, 215, 255, 0.28);
  color: var(--text);
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row span::before { content: "✓"; color: var(--accent); font-weight: 900; }

.hero-stage {
  position: relative;
  height: 610px;
  display: grid;
  place-items: center;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.8;
}
.orb1 {
  width: 240px;
  height: 240px;
  background: rgba(74, 167, 255, 0.25);
  top: 80px;
  right: 80px;
}
.orb2 {
  width: 420px;
  height: 420px;
  background: rgba(124, 231, 255, 0.18);
  bottom: 15px;
  left: 40px;
}
.hero-product {
  position: relative;
  width: min(88%, 470px);
  aspect-ratio: 1 / 1.1;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background: linear-gradient(160deg, rgba(15, 38, 61, 0.92), rgba(7, 18, 30, 0.8));
  border: 1px solid rgba(146, 204, 255, 0.2);
  box-shadow: var(--shadow);
}
.hero-glow {
  position: absolute;
  inset: 12% 14% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(110, 194, 255, 0.32);
  filter: blur(30px);
}
.hero-product img {
  position: relative;
  z-index: 2;
  width: 80%;
  object-fit: contain;
  filter: drop-shadow(0 28px 40px rgba(2, 20, 35, 0.65));
}
.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
  padding: 14px 16px;
  border: 1px solid rgba(138, 190, 255, 0.23);
  border-radius: 16px;
  background: rgba(10, 29, 48, 0.78);
  box-shadow: 0 22px 42px rgba(7, 23, 35, 0.45);
}
.floating-card small, .floating-card span { color: var(--muted); font-size: 10px; letter-spacing: 1.4px; }
.floating-card strong { font-size: 1rem; letter-spacing: -0.03em; }
.floating-card.top { left: 0; top: 50px; }
.floating-card.bottom {
  right: 24px;
  bottom: 48px;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: 210px;
}
.floating-card.bottom b { font-size: 1.6rem; color: var(--accent); }

.ticker {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
  padding: 18px 16px 12px;
  background: rgba(8, 22, 35, 0.8);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section { padding: 68px 8vw 20px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}
.section-head h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-top: 12px;
  color: var(--text);
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.category-grid button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  min-height: 260px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(17, 35, 57, 0.9), rgba(9, 20, 33, 0.96));
  color: var(--text);
  text-align: left;
  transition: 0.2s ease;
}
.category-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 16px;
}
.category-grid strong { font-size: 1.05rem; }
.category-grid small { color: var(--muted); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filters button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 34, 53, 0.7);
  color: var(--muted);
  padding: 9px 14px;
  font-weight: 700;
}
.filters button.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  color: #06182d;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 31, 50, 0.9), rgba(7, 18, 28, 0.95));
  box-shadow: 0 18px 38px rgba(4, 14, 26, 0.28);
  transition: 0.2s ease;
}
.product-image {
  position: relative;
  background: linear-gradient(180deg, rgba(29, 59, 95, 0.92), rgba(12, 26, 41, 0.8));
  height: 265px;
  padding: 16px 18px 14px;
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(15, 67, 114, 0.86);
  border: 1px solid rgba(142, 203, 255, 0.25);
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.heart {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(144, 199, 255, 0.2);
  border-radius: 50%;
  background: rgba(7, 19, 31, 0.7);
  color: var(--muted);
  font-size: 18px;
}
.heart.liked {
  background: rgba(78, 182, 255, 0.2);
  color: var(--accent);
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}
.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 16px 18px;
}
.product-info small {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.product-info h3 {
  margin-top: 8px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.35;
}
.rating {
  margin-top: 8px;
  color: var(--accent);
  font-weight: 700;
}
.price {
  margin-top: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}
.price del {
  color: var(--muted);
  font-size: 0.8rem;
  margin-left: 8px;
}
.buy-button, .quick, .checkout {
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: white;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(33, 130, 252, 0.2);
}
.buy-button {
  margin-top: 14px;
  min-height: 40px;
}
.negotiate {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}
.quick {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  height: 36px;
  display: none;
}

.deal, .newsletter {
  margin: 60px 8vw 20px;
  padding: 28px clamp(20px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(18, 48, 80, 0.92), rgba(10, 24, 39, 0.96));
  box-shadow: var(--shadow);
}
.deal {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 24px;
}
.deal h2 { margin-top: 14px; font-size: clamp(2rem, 3vw, 3.3rem); }
.deal p {
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin: 18px 0 0;
}
.deal .btn { margin-top: 22px; }
.deal-number {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(132, 192, 255, 0.22);
  border-radius: 22px;
  background: rgba(7, 20, 33, 0.7);
}
.deal-number strong {
  font-size: clamp(3rem, 6vw, 5.5rem);
  color: var(--accent);
  line-height: 1;
}
.deal-number span, .deal-number small {
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 10px;
}

.why { padding-top: 68px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.why-grid > div {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(15, 31, 50, 0.85), rgba(9, 20, 33, 0.92));
}
.why-grid b {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 1.1rem;
}
.why-grid h3 { font-size: 1.3rem; margin-bottom: 8px; }
.why-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.newsletter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.newsletter h2 { font-size: clamp(1.8rem, 2.5vw, 3rem); }

footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 8vw 40px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  background: rgba(5, 17, 28, 0.9);
}
footer p { margin: 10px 0 0; color: var(--muted); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.footer-contact strong { color: var(--text); font-size: 13px; }
.footer-contact a, .footer-contact address {
  color: var(--muted);
  text-decoration: none;
  font-style: normal;
}
footer > small {
  align-self: end;
  color: var(--muted);
  font-size: 11px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 9, 16, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
  z-index: 40;
}
.overlay.show {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 18px 18px;
  background: linear-gradient(180deg, rgba(10, 24, 39, 0.98), rgba(8, 18, 30, 1));
  border-left: 1px solid var(--line);
  transform: translateX(110%);
  transition: transform 0.25s ease;
  z-index: 50;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-size: 1.5rem; }
.drawer-head button, .search-box button, .image-viewer button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(12, 27, 44, 1);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}
#cartItems {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(13, 29, 47, 0.8);
}
.cart-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
}
.cart-item div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}
.cart-item strong { color: var(--text); }
.cart-item span { color: var(--muted); font-size: 12px; }
.cart-item button {
  margin-top: 6px;
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 10px;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.checkout { margin-top: 16px; min-height: 48px; }
.empty {
  padding: 20px 10px;
  color: var(--muted);
  text-align: center;
}

.search-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(2, 10, 18, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
  z-index: 60;
}
.search-modal.show { opacity: 1; visibility: visible; }
.search-box {
  width: min(560px, calc(100vw - 32px));
  padding: 18px 18px 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(10, 22, 34, 0.96), rgba(9, 18, 30, 0.98));
  box-shadow: var(--shadow);
}
.search-box button { float: right; }
.upload-modal {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 8, 15, 0.74);
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
}
.upload-modal.show { opacity: 1; visibility: visible; }
.upload-box {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(10, 22, 34, 0.98), rgba(9, 18, 30, 0.99));
  box-shadow: var(--shadow);
}
.upload-box h2 { margin: 10px 0 22px; font-family: "Space Grotesk", "Segoe UI", sans-serif; }
.upload-box label { display: grid; gap: 7px; margin-top: 14px; color: var(--muted); font-size: 12px; font-weight: 700; }
.upload-box input { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(13, 27, 42, 0.82); color: var(--text); }
.upload-box input[type="file"] { padding: 10px 13px; }
.upload-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-close { position: absolute; top: 18px; right: 20px; border: 0; background: transparent; color: var(--muted); font-size: 24px; }
.upload-submit { width: 100%; margin-top: 22px; border: 0; }
.upload-status { min-height: 18px; margin: 10px 0 0; color: var(--success); font-size: 12px; text-align: center; }
.upload-password-field { display: none !important; }
#searchInput {
  width: 100%;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 27, 42, 0.82);
  color: var(--text);
  min-height: 52px;
  padding: 0 16px;
  font-size: 16px;
}
#searchResults {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
#searchResults button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 27, 42, 0.8);
  color: var(--text);
  padding: 12px 14px;
  text-align: left;
}

.image-viewer {
  position: fixed;
  inset: 0;
  place-items: center;
  display: none;
  padding: 24px;
  background: rgba(2, 8, 15, 0.74);
  z-index: 70;
}
.image-viewer.show { display: grid; }
.image-viewer img {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  border-radius: 18px;
  border: 1px solid rgba(148, 203, 255, 0.22);
  box-shadow: var(--shadow);
}
.image-viewer button {
  position: absolute;
  top: 24px;
  right: 28px;
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .category-grid, .product-grid, .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deal { grid-template-columns: 1fr; }
  footer { flex-wrap: wrap; }
}

@media (max-width: 760px) {
  nav { display: none; }
  .header { padding-inline: 18px; }
  .category-grid, .why-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section, .hero, .deal, .newsletter, footer { padding-left: 20px; padding-right: 20px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .newsletter { flex-direction: column; align-items: flex-start; }
  .floating-card.top { left: 10px; top: 18px; }
  .floating-card.bottom { right: 18px; bottom: 18px; }
}
