:root {
  --bg: #0d0f1a;
  --bg-2: #141829;
  --surface: #1b2036;
  --surface-2: #232947;
  --text: #eef1ff;
  --muted: #a7aecb;
  --accent: #ff7a1a;
  --accent-2: #ffcc00;
  --danger: #ff3b3b;
  --green: #26d07c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(255, 122, 26, 0.18), transparent 60%),
    radial-gradient(900px 400px at -10% 10%, rgba(255, 204, 0, 0.10), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 15, 26, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #1a1206;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 18px rgba(255, 122, 26, 0.5);
}

.brand-text { font-size: 1.2rem; font-weight: 800; letter-spacing: 0.3px; }

.main-nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  color: var(--muted);
}

.main-nav a { font-weight: 600; transition: color 0.2s; }
.main-nav a:hover { color: var(--accent-2); }

.cart-btn {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-radius: 12px;
  padding: 9px 12px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.1s;
}

.cart-btn:hover { border-color: var(--accent); }
.cart-btn:active { transform: scale(0.95); }

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--danger);
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  color: #fff;
}

.hero {
  background:
    linear-gradient(rgba(13, 15, 26, 0.72), rgba(13, 15, 26, 0.85)),
    radial-gradient(700px 380px at 50% 60%, rgba(255, 122, 26, 0.30), transparent 60%);
  padding: 96px 24px 84px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-inner { max-width: 820px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 18px;
}

.accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto 30px; }

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  padding: 13px 24px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.2s, background 0.2s;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #1a1206;
  box-shadow: 0 6px 20px rgba(255, 122, 26, 0.35);
}

.btn-primary:hover { box-shadow: 0 8px 26px rgba(255, 122, 26, 0.5); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }

.btn-video {
  background: rgba(255, 60, 60, 0.12);
  color: #ff6b6b;
  border: 1px solid rgba(255, 60, 60, 0.4);
}

.btn-video:hover { background: rgba(255, 60, 60, 0.22); }

.btn-block { width: 100%; }

.section { max-width: 1200px; margin: 0 auto; padding: 48px 24px; }

.section h2 { font-size: 1.8rem; margin-bottom: 20px; }

.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.active {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #1a1206;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(255, 122, 26, 0.35);
}

.section-head { display: flex; align-items: baseline; gap: 12px; }
.count { color: var(--muted); font-size: 0.95rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 122, 26, 0.45);
}

.card-image {
  background: #0a0c16;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  cursor: pointer;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform 0.25s;
}

.card-image:hover img { transform: scale(1.05); }

.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.badge {
  align-self: flex-start;
  background: rgba(255, 122, 26, 0.15);
  color: var(--accent-2);
  border: 1px solid rgba(255, 122, 26, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 10px;
}

.card-name {
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
}

.card-name:hover { color: var(--accent-2); }

.card-desc {
  color: var(--muted);
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price { margin-top: auto; font-size: 1.35rem; font-weight: 800; color: var(--accent-2); }

.card-actions { display: flex; gap: 8px; margin-top: 6px; }

.card-actions .btn { padding: 10px 14px; font-size: 0.9rem; flex: 1; }

.card-actions .btn-icon {
  flex: 0 0 auto;
  width: 42px;
  padding: 10px;
}

.empty { text-align: center; color: var(--muted); padding: 40px 0; }

.legal {
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
}

.legal ul { list-style: none; color: var(--muted); max-width: 760px; }
.legal li { padding: 6px 0 6px 26px; position: relative; }
.legal li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Modal */
.modal-backdrop, .drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 16, 0.8);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal-backdrop.open, .drawer-backdrop.open { display: grid; }

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1.1fr;
  box-shadow: var(--shadow);
}

.modal-gallery {
  background: #0a0c16;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.modal-gallery img { width: 100%; height: auto; object-fit: contain; margin: auto; }

.modal-video-wrap { margin-top: 14px; }

.modal-video-wrap iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
  display: block;
}

.modal-body { padding: 26px; display: flex; flex-direction: column; gap: 14px; }

.modal-body h3 { font-size: 1.5rem; line-height: 1.2; }

.ean { color: var(--muted); font-size: 0.85rem; }

.price { font-size: 1.9rem; font-weight: 800; color: var(--accent-2); }

.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s;
}

.modal-close:hover { background: rgba(255, 255, 255, 0.2); }

/* Cart drawer */
.drawer-backdrop { place-items: stretch end; padding: 0; }

.cart-drawer {
  background: var(--surface);
  width: min(420px, 100vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.25s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-head .modal-close { position: static; }

.cart-items { flex: 1; overflow-y: auto; padding: 14px 22px; display: flex; flex-direction: column; gap: 12px; }

.cart-line {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--bg-2);
  border-radius: 12px;
  padding: 10px;
}

.cart-line img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #0a0c16;
  border-radius: 8px;
  padding: 4px;
}

.cart-line-name { font-weight: 600; font-size: 0.92rem; }
.cart-line-price { color: var(--accent-2); font-weight: 700; font-size: 0.9rem; }

.cart-line-controls { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--surface-2);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
}

.cart-line-remove {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
}

.cart-empty { text-align: center; color: var(--muted); padding: 40px 0; }

.cart-foot { padding: 18px 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; flex-direction: column; gap: 12px; }

.cart-total { display: flex; justify-content: space-between; font-size: 1.1rem; }
.cart-total strong { font-size: 1.4rem; color: var(--accent-2); }

.cart-note { color: var(--muted); font-size: 0.8rem; text-align: center; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #06251a;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 200;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn { from { opacity: 0; transform: translateX(-50%) translateY(8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

@media (max-width: 720px) {
  .modal { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .hero { padding: 64px 20px 56px; }
}