/* ====================================================================
   OnScripts — стилі сайту
   ==================================================================== */

/* ==================== БАЗА ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0A0F1C;
  --bg-2: #111827;
  --border: #1F2A48;
  --text: #E0E4F0;
  --muted: #8892B0;
  --accent: #2A7FFF;
  --accent-2: #00D2FF;
  --modal-bg: #1E1E2E;
  --danger: #ff4d6d;
  --success: #2dd4bf;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Roboto', 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.25; }
h2 { font-size: 2.2rem; margin-bottom: 14px; text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 50px; max-width: 720px; margin-left: auto; margin-right: auto; }

/* ==================== КНОПКИ ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 12px; font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s, opacity .2s;
  font-size: .95rem;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(42,127,255,.35); }
.btn-outline { border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-2); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: .85; }
.btn-sm { padding: 8px 14px; font-size: .85rem; border-radius: 8px; }

/* ==================== ХЕДЕР ==================== */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,15,28,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.logo { font-size: 1.4rem; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  position: relative;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent-2); }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--accent); color: #fff;
  border-radius: 999px; min-width: 18px; height: 18px;
  font-size: .7rem; display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.menu-toggle { display: none; }

/* ==================== HERO ==================== */
.hero { padding: 100px 0 80px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(42,127,255,.18), transparent 60%);
  pointer-events: none;
}
.hero h1 {
  font-size: 3rem; margin-bottom: 18px; position: relative;
  background: linear-gradient(135deg, #fff, #b8c5ff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 720px; margin: 0 auto 36px; position: relative; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ==================== ТОВАРИ ==================== */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.product-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; display: flex; flex-direction: column;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 16px 40px rgba(42,127,255,.15); }
.product-icon { font-size: 2.4rem; margin-bottom: 14px; }
.product-image { margin: -22px -22px 16px; aspect-ratio: 16/9; overflow: hidden; border-radius: 16px 16px 0 0; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.product-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.product-desc { color: var(--muted); font-size: .92rem; margin-bottom: 16px; flex: 1; }
.product-price { font-size: 1.3rem; font-weight: 700; color: var(--accent-2); margin-bottom: 14px; }
.empty-state {
  grid-column: 1 / -1;
  text-align: center; padding: 60px 20px; color: var(--muted);
  border: 1px dashed var(--border); border-radius: 16px;
}

/* ==================== ПОСЛУГИ ==================== */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px; margin-bottom: 36px;
}
.service-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 26px;
  transition: border-color .25s, transform .25s;
}
.service-card:hover { border-color: var(--accent-2); transform: translateY(-3px); }
.service-card i { font-size: 1.8rem; color: var(--accent-2); margin-bottom: 14px; }
.service-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: .92rem; }
.center-cta { text-align: center; }

/* ==================== ЯК ЗАМОВИТИ ==================== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.step {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 26px; text-align: center;
  position: relative;
}
.step p { color: var(--muted); font-size: .92rem; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}

/* ==================== ПЕРЕВАГИ ==================== */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.feature {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 30px; text-align: center;
}
.feature i { font-size: 2rem; color: var(--accent-2); margin-bottom: 16px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .92rem; }

/* ==================== ВІДГУКИ ==================== */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.review {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 26px;
}
.review p { color: var(--muted); font-style: italic; margin-bottom: 18px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff;
}
.review-name { font-weight: 600; }
.review-role { font-size: .8rem; color: var(--muted); }

/* ==================== ФОРМА ==================== */
.form-wrapper {
  max-width: 620px; margin: 0 auto;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px;
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: .9rem; margin-bottom: 6px; color: var(--muted); }
.form-row input:not([type="checkbox"]):not([type="radio"]), .form-row textarea, .form-row select {
  width: 100%; padding: 12px 14px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-family: inherit; font-size: .95rem;
  transition: border-color .2s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--accent);
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-row input[type="checkbox"], .form-row input[type="radio"] {
  width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--accent-2);
}

/* ==================== CTA ==================== */
.cta-block {
  text-align: center;
  background: linear-gradient(135deg, rgba(42,127,255,.15), rgba(0,210,255,.08));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 60px 30px;
}
.cta-block h2 { margin-bottom: 14px; }
.cta-block p { color: var(--muted); margin-bottom: 26px; }

/* ==================== ФУТЕР ==================== */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  color: var(--muted);
  font-size: .9rem;
}
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; margin-bottom: 26px; }
.footer-col h4 { color: var(--text); margin-bottom: 12px; font-size: 1rem; }
.footer-col a { display: block; margin-bottom: 6px; transition: color .2s; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--border); }
.socials { display: flex; gap: 10px; margin-top: 6px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, color .2s;
}
.socials a:hover { border-color: var(--accent); color: var(--accent-2); }

/* ==================== МОДАЛЬНІ ВІКНА ==================== */
.modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  z-index: 100;
  align-items: flex-start; justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.modal.active { display: flex; }
.modal-content {
  background: var(--modal-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%; max-width: 800px;
  padding: 28px;
  position: relative;
  animation: modalIn .25s ease;
  max-height: calc(100vh - 80px); overflow-y: auto;
}
.modal-sm { max-width: 420px; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1.3rem; }
.modal-close {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: background .2s, color .2s;
  background: transparent; border: 0; padding: 0;
  cursor: pointer;
}
.modal-close i { pointer-events: none; }
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ==================== АДМІНКА ==================== */
.admin-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tab {
  padding: 8px 16px; border-radius: 8px;
  background: transparent; border: 1px solid var(--border);
  font-size: .9rem; color: var(--muted);
  transition: all .2s;
}
.admin-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.admin-tab:hover:not(.active) { color: var(--text); border-color: var(--accent-2); }

.products-table-wrap { max-height: 420px; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; }
table.products-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.products-table th, table.products-table td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--border);
}
table.products-table th {
  background: #15151f; position: sticky; top: 0;
  font-weight: 600; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .5px;
}
table.products-table tr:last-child td { border-bottom: none; }
table.products-table .actions { display: flex; gap: 6px; }
.icon-cell { font-size: 1.3rem; }

.icon-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-option {
  width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; transition: all .2s;
}
.icon-option.selected { border-color: var(--accent); background: rgba(42,127,255,.15); }
.icon-option:hover { border-color: var(--accent-2); }

.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

/* ==================== ОПЛАТА ==================== */
.pay-summary {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px; margin-bottom: 18px;
  display: flex; align-items: center; gap: 14px;
}
.pay-summary .pi { font-size: 2rem; }
.pay-summary .pt { font-weight: 600; }
.pay-summary .pp { color: var(--accent-2); font-weight: 700; font-size: 1.15rem; }
.pay-methods { display: flex; flex-direction: column; gap: 12px; }
.pay-method {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px;
}
.pay-method-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.pay-method-head i { font-size: 1.4rem; color: var(--accent-2); width: 28px; text-align: center; }
.pay-method-head h4 { font-size: 1rem; }
.pay-method-head .note { color: var(--muted); font-size: .8rem; margin-left: auto; }
.pay-field {
  display: flex; align-items: center; gap: 8px;
  background: var(--modal-bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px;
  font-family: 'Roboto Mono', monospace; font-size: .9rem;
  word-break: break-all;
}
.pay-field span { flex: 1; }
.pay-field .copy-btn {
  color: var(--accent-2); font-size: .85rem; padding: 4px 8px;
  border-radius: 6px; transition: background .2s;
  white-space: nowrap;
}
.pay-field .copy-btn:hover { background: rgba(0,210,255,.1); }
.pay-empty {
  text-align: center; color: var(--muted);
  padding: 30px; border: 1px dashed var(--border); border-radius: 12px;
}

/* ==================== ТОГЛ ==================== */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 14px;
}
.toggle-row .info { display: flex; align-items: center; gap: 12px; }
.toggle-row .info i { font-size: 1.4rem; color: var(--accent-2); width: 24px; text-align: center; }
.toggle-row .info strong { display: block; }
.toggle-row .info small { color: var(--muted); font-size: .8rem; }
.switch { position: relative; width: 46px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0; cursor: pointer;
  background: #2a2a3e; border-radius: 24px;
  transition: background .2s;
}
.switch .slider::before {
  content: ''; position: absolute; height: 18px; width: 18px;
  left: 3px; top: 3px; background: #fff; border-radius: 50%;
  transition: transform .2s;
}
.switch input:checked + .slider { background: var(--accent); }

/* ==================== АВТО-КНОПКИ ХЕДЕРА ==================== */
.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 10px;
  color: var(--muted); font-weight: 500; font-size: .9rem;
  border: 1px solid transparent;
  transition: color .2s, border-color .2s, background .2s;
}
.btn-link:hover { color: var(--text); border-color: var(--border); }
.btn-link.primary { color: var(--accent-2); border-color: rgba(0,210,255,.3); }
.btn-link.primary:hover { background: rgba(0,210,255,.08); }
.account-label { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==================== SHOP HERO ==================== */
.shop-hero {
  padding: 60px 0 40px;
  position: relative;
  overflow: hidden;
}
.shop-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(42,127,255,.18), transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(0,210,255,.14), transparent 55%);
  pointer-events: none;
}
.shop-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 50px;
  align-items: center;
}
.shop-hero-text h1 {
  font-size: 2.8rem;
  margin: 14px 0 16px;
  background: linear-gradient(135deg, #fff 30%, #b8c5ff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.shop-hero-text p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin-bottom: 22px;
}
.shop-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(0,210,255,.1);
  border: 1px solid rgba(0,210,255,.25);
  color: var(--accent-2); font-size: .82rem; font-weight: 600;
}
.shop-hero-search {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 8px 16px;
  max-width: 520px;
  transition: border-color .2s, box-shadow .2s;
}
.shop-hero-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(42,127,255,.15);
}
.shop-hero-search i { color: var(--muted); }
.shop-hero-search input {
  flex: 1; border: 0; background: transparent;
  color: var(--text); font-size: 1rem; padding: 12px 0;
  outline: none; font-family: inherit;
}
.shop-hero-perks {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-top: 22px;
  color: var(--muted); font-size: .9rem;
}
.shop-hero-perks i { color: var(--success); margin-right: 6px; }

.shop-hero-promo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.promo-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 18px;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .25s, border-color .25s;
}
.promo-card:hover { transform: translateY(-4px); border-color: var(--accent-2); }
.promo-card i { font-size: 1.8rem; color: var(--accent-2); margin-bottom: 6px; }
.promo-card b { font-size: 1.05rem; }
.promo-card span { color: var(--muted); font-size: .85rem; }
.promo-1 { transform: translateY(8px); }
.promo-3 { transform: translateY(8px); }

@media (max-width: 880px) {
  .shop-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .shop-hero-text h1 { font-size: 2.1rem; }
  .promo-1, .promo-3 { transform: none; }
}

/* ==================== SHOP TOOLBAR ==================== */
.shop-section { padding: 30px 0 70px; }
.shop-toolbar {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
  margin-bottom: 18px;
  position: sticky; top: 72px; z-index: 20;
  background: rgba(10,15,28,.85);
  backdrop-filter: blur(12px);
  padding: 12px 0;
}
.shop-toolbar-left { display: flex; align-items: baseline; gap: 12px; }
.shop-title {
  font-size: 1.6rem; text-align: left; margin: 0;
  display: inline-flex; align-items: center; gap: 10px;
}
.shop-title i { color: var(--accent-2); }
.shop-count {
  font-size: .85rem; color: var(--muted);
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 999px;
}
.shop-toolbar-right { display: flex; gap: 10px; flex-wrap: wrap; }
.shop-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 0 14px;
  min-width: 260px;
}
.shop-search:focus-within { border-color: var(--accent); }
.shop-search i { color: var(--muted); }
.shop-search input {
  flex: 1; border: 0; background: transparent;
  color: var(--text); padding: 10px 0; font-size: .92rem;
  outline: none; font-family: inherit;
}
.shop-select {
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 14px; font-size: .92rem; font-family: inherit;
  cursor: pointer;
}
.shop-select:focus { outline: none; border-color: var(--accent); }

.shop-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 22px;
}
.shop-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--muted); font-size: .85rem; font-weight: 500;
  cursor: pointer; transition: all .2s;
}
.shop-chip:hover { color: var(--text); border-color: var(--accent-2); }
.shop-chip.active {
  background: linear-gradient(135deg, rgba(42,127,255,.18), rgba(0,210,255,.12));
  color: var(--text); border-color: var(--accent);
}

/* ==================== ПРОДУКТИ V2 (магазинні картки) ==================== */
.products-grid {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}
.product-card {
  position: relative;
  padding: 0;
  overflow: hidden;
}
.product-card .pc-media {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, rgba(42,127,255,.12), rgba(0,210,255,.08));
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.product-card .pc-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.product-card .pc-icon {
  font-size: 3.4rem;
  filter: drop-shadow(0 4px 18px rgba(0,210,255,.25));
}
.product-card .pc-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,210,255,.92); color: #0a0f1c;
  font-size: .72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .5px;
}
.product-card .pc-body {
  padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.product-card .pc-title {
  font-size: 1.05rem; font-weight: 600;
  margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}
.product-card .pc-desc {
  color: var(--muted); font-size: .88rem; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.product-card .pc-meta {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 4px;
}
.product-card .pc-meta-item {
  font-size: .72rem; color: var(--muted);
  background: var(--bg); border: 1px solid var(--border);
  padding: 3px 8px; border-radius: 6px;
}
.product-card .pc-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; gap: 10px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.18);
}
.product-card .pc-price {
  display: flex; flex-direction: column; line-height: 1;
}
.product-card .pc-price b {
  color: var(--accent-2); font-size: 1.25rem; font-weight: 700;
}
.product-card .pc-price small { color: var(--muted); font-size: .72rem; margin-top: 4px; }
.product-card .pc-actions { display: flex; gap: 6px; }
.product-card .pc-actions .btn { padding: 9px 14px; font-size: .85rem; border-radius: 9px; }
.product-card .pc-actions .btn-icon {
  width: 38px; height: 38px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
}

/* ==================== ПЕРЕВАГИ (нова секція WHY) ==================== */
.why-section { padding: 60px 0; background: linear-gradient(180deg, transparent, rgba(42,127,255,.04), transparent); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.why-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px;
  transition: border-color .25s, transform .25s;
}
.why-item:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.why-item > i {
  font-size: 1.6rem; color: var(--accent-2);
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(0,210,255,.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.why-item h3 { font-size: 1rem; margin-bottom: 4px; }
.why-item p { color: var(--muted); font-size: .87rem; line-height: 1.5; }

/* ==================== ORDER SECTION (двоколонка) ==================== */
.order-section { padding: 70px 0; }
.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.order-info h2 { font-size: 2rem; margin-bottom: 12px; }
.order-list { list-style: none; margin: 18px 0 0; padding: 0; }
.order-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; color: var(--text);
}
.order-list li i { color: var(--success); }
@media (max-width: 880px) {
  .order-grid { grid-template-columns: 1fr; gap: 24px; }
  .order-info h2 { font-size: 1.6rem; }
}

/* ==================== КОШИК (drawer) ==================== */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.drawer-backdrop.active { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: var(--modal-bg);
  border-left: 1px solid var(--border);
  z-index: 95;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: -20px 0 40px rgba(0,0,0,.4);
}
.cart-drawer.active { transform: translateX(0); }
.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer-head h3 { font-size: 1.15rem; display: inline-flex; align-items: center; gap: 10px; }
.cart-drawer-body {
  flex: 1; overflow-y: auto;
  padding: 18px 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.cart-empty {
  text-align: center; color: var(--muted);
  padding: 40px 16px;
}
.cart-empty i { font-size: 2.6rem; margin-bottom: 14px; color: var(--border); }
.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  align-items: center;
}
.cart-item-thumb {
  width: 56px; height: 56px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(42,127,255,.12), rgba(0,210,255,.08));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  overflow: hidden;
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { min-width: 0; }
.cart-item-title { font-size: .9rem; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.cart-item-price { color: var(--accent-2); font-weight: 700; font-size: .92rem; }
.cart-item-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.cart-item-actions .btn { padding: 6px 10px; font-size: .78rem; border-radius: 8px; }
.cart-item-remove {
  background: transparent; border: 0;
  color: var(--muted); cursor: pointer;
  padding: 4px; transition: color .2s;
}
.cart-item-remove:hover { color: var(--danger); }
.cart-drawer-foot {
  border-top: 1px solid var(--border);
  padding: 18px 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.cart-total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .95rem; color: var(--muted);
}
.cart-total b { color: var(--accent-2); font-size: 1.4rem; font-weight: 700; }
.cart-hint {
  font-size: .78rem; color: var(--muted); line-height: 1.45;
  background: rgba(0,210,255,.06);
  border: 1px solid rgba(0,210,255,.14);
  border-radius: 10px; padding: 10px 12px;
}

/* ==================== QTY-CONTROL у кошику ==================== */
.qty-control {
  display: inline-flex; align-items: stretch;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-2);
}
.qty-btn {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0;
  color: var(--muted); cursor: pointer;
  font-size: .78rem;
  transition: background .15s, color .15s;
}
.qty-btn:hover { background: rgba(0,210,255,.08); color: var(--accent-2); }
.qty-input {
  width: 38px; height: 28px;
  border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  background: var(--bg);
  color: var(--text); text-align: center;
  font-family: inherit; font-size: .85rem; font-weight: 600;
  outline: none;
}

/* ==================== PC-QTY (бейдж у кнопці «+ кошик») ==================== */
.product-card .pc-actions .btn-icon { position: relative; }
.pc-qty {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent-2);
  color: #0a0f1c;
  font-size: .68rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* ==================== РЕСПОНСИВ ==================== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 16px 20px;
  }
  .nav-links.open a { padding: 10px 4px; }
  .menu-toggle { display: inline-flex; }
  #authButtons span, #supportBtn span { display: none; }
  .nav-actions { gap: 6px; }
  .lang-switch button { padding: 6px 7px; font-size: .72rem; }
  .shop-toolbar { position: static; }
  .shop-toolbar-right { width: 100%; }
  .shop-search { flex: 1; min-width: 0; }
}
.switch input:checked + .slider::before { transform: translateX(22px); }

/* ==================== АДАПТИВ ==================== */
@media (max-width: 768px) {
  h2 { font-size: 1.7rem; }
  .hero h1 { font-size: 2.1rem; }
  .hero p { font-size: 1rem; }
  section { padding: 60px 0; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-2); flex-direction: column; padding: 20px; gap: 16px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .form-wrapper { padding: 24px; }
  .modal-content { padding: 20px; }
  table.products-table th:nth-child(3),
  table.products-table td:nth-child(3) { display: none; }
}


