:root {
  --bg-dark: #0f1115;
  --bg-card: #181b22;
  --bg-card-hover: #1f232c;
  --gold: #d4af37;
  --gold-hover: #c29e2e;
  --text-main: #f0f2f5;
  --text-muted: #9aa0a6;
  --border: #292e39;
  --green: #2ecc71;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 21, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.header-row { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 2.5px;
  color: #fff;
  text-transform: uppercase;
}
.logo span { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* Кнопка телефона в иконку как на Svakom Tech */
.header-phone-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #232731;
  border: 1px solid var(--border);
  color: var(--gold);
  transition: all 0.2s ease;
}
.header-phone-btn:hover {
  background: #2b303d;
  border-color: var(--gold);
  color: #fff;
}
.cart-btn {
  background: #232731;
  border: 1px solid var(--border);
  color: #fff;
  padding: 8px 16px;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}
.cart-count {
  background: var(--gold);
  color: #000;
  border-radius: 50%;
  font-size: 12px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Hero & Triggers */
.hero { padding: 35px 0 20px; text-align: center; }
.hero-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.hero h1 { font-size: 28px; line-height: 1.25; margin-bottom: 12px; }
@media (min-width: 768px) { .hero h1 { font-size: 38px; } }
.hero p { color: var(--text-muted); max-width: 660px; margin: 0 auto 20px; font-size: 15px; }

.triggers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 30px; }
@media (min-width: 768px) { .triggers { grid-template-columns: repeat(4, 1fr); } }
.trigger-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: var(--radius);
  font-size: 13px;
  text-align: center;
}
.trigger-item strong { display: block; color: var(--gold); margin-bottom: 2px; }

/* Catalog Grid */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 50px;
}
@media (min-width: 600px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
}
.product-card:hover { border-color: #3f4656; }
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  z-index: 2;
}
.card-img-link {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #13151b;
  aspect-ratio: 1;
  padding: 20px;
}
.card-img-link img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  transition: transform 0.3s;
}
.product-card:hover .card-img-link img { transform: scale(1.05); }

.card-body { padding: 18px; display: flex; flex-direction: column; flex-grow: 1; }
.card-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card-title a { color: #fff; }
.card-title a:hover { color: var(--gold); }
.specs-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.spec-tag {
  background: #232732;
  color: var(--text-muted);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
}
.card-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; flex-grow: 1; line-height: 1.4; }

.packs-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 6px; font-weight: 700; }
.packs-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.pack-pill {
  background: #232731;
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s;
}
.pack-pill.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
  color: var(--gold);
}

.price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.current-price { font-size: 22px; font-weight: 800; color: #fff; }
.current-price small { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.old-price { font-size: 14px; color: #6e7687; text-decoration: line-through; }
.btn-buy {
  width: 100%;
  background: var(--gold);
  color: #000;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-buy:hover { background: var(--gold-hover); }

/* Product Page (PDP) Layout */
.breadcrumbs { padding: 18px 0; font-size: 13px; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span { margin: 0 6px; }

.pdp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 40px;
}
@media (min-width: 820px) {
  .pdp-grid {
    grid-template-columns: 460px 1fr;
    gap: 40px;
    align-items: start;
  }
}

.pdp-gallery-box {
  background: #13151b;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  text-align: center;
}
.pdp-main-img-wrap {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp-main-img-wrap img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
}
.gallery-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.gallery-dot { width: 8px; height: 8px; border-radius: 50%; background: #333a47; cursor: pointer; }
.gallery-dot.active { background: var(--gold); width: 20px; border-radius: 4px; }

.pdp-info-box h1 { font-size: 26px; line-height: 1.25; margin-bottom: 10px; color: #fff; }
@media (min-width: 768px) { .pdp-info-box h1 { font-size: 32px; } }
.pdp-meta-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-size: 13px; }
.pdp-rating { color: #f1c40f; }
.pdp-stock { color: var(--green); font-weight: 600; }

.pdp-price-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin: 18px 0;
}
.btn-pdp-buy {
  width: 100%;
  background: var(--gold);
  color: #000;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 12px;
}
.btn-pdp-buy:hover { background: var(--gold-hover); }

.specs-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.specs-table td { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.specs-table td:first-child { color: var(--text-muted); width: 45%; }
.specs-table td:last-child { font-weight: 600; color: #fff; }

/* Cart Drawer & Clean Order Form */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.cart-drawer-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #14171e;
  border-left: 1px solid var(--border);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.cart-drawer-overlay.open .cart-drawer { transform: translateX(0); }

.cart-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-close { background: none; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; }

.shipping-bar-box { background: #1b1f28; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.shipping-bar-msg { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.shipping-bar-track { width: 100%; height: 6px; background: #2b313e; border-radius: 3px; overflow: hidden; }
.shipping-bar-fill { height: 100%; width: 0%; background: var(--gold); border-radius: 3px; transition: width 0.3s; }
.shipping-bar-fill.success { background: var(--green); }

.cart-body-items { flex-grow: 1; overflow-y: auto; padding: 20px; }
.cart-empty { text-align: center; color: var(--text-muted); padding: 40px 0; }
.cart-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.cart-item-img { width: 60px; height: 60px; background: #1a1e27; border-radius: 8px; object-fit: contain; }
.cart-item-info { flex-grow: 1; }
.cart-item-title { font-size: 13px; font-weight: 700; }
.cart-item-pack { font-size: 12px; color: var(--gold); margin-bottom: 6px; }
.cart-qty-row { display: flex; align-items: center; gap: 10px; }
.qty-btn {
  background: #232732;
  border: 1px solid var(--border);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  cursor: pointer;
}
.cart-item-remove { margin-left: auto; background: none; border: none; color: #7f8695; cursor: pointer; }

.cart-footer { padding: 20px; background: #181b22; border-top: 1px solid var(--border); }
.cart-total-row { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; margin-bottom: 14px; }

/* Форма заказа: Прізвище и Ім'я в 2 колонки в 1 строку */
.checkout-form { display: flex; flex-direction: column; gap: 10px; }
.checkout-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.checkout-input, .checkout-select {
  width: 100%;
  background: #111318;
  border: 1px solid var(--border);
  color: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  transition: border-color 0.15s;
}
.checkout-input:focus, .checkout-select:focus { border-color: var(--gold); outline: none; }
.checkout-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}
.btn-submit-order {
  width: 100%;
  background: var(--gold);
  color: #000;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 6px;
}
.btn-submit-order:hover { background: var(--gold-hover); }

/* FAQ & Reviews */
.info-section { padding: 40px 0; border-top: 1px solid var(--border); }
.section-title { font-size: 24px; font-weight: 800; text-align: center; margin-bottom: 24px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.faq-q { padding: 14px 18px; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; }
.faq-a { padding: 0 18px 14px; font-size: 14px; color: var(--text-muted); display: none; line-height: 1.5; }
.faq-item.active .faq-a { display: block; }

.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 768px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
.review-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.review-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.review-stars { color: #f1c40f; font-size: 14px; }
.review-text { font-size: 13px; color: var(--text-muted); }

footer { padding: 30px 0; border-top: 1px solid var(--border); text-align: center; color: var(--text-muted); font-size: 13px; }