/* ============================================================
   DARKSHOP THEME — OpenCart 3.0.5.0
   Dark premium e-commerce theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;600;700&family=Golos+Text:wght@400;500;600&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --bg-primary:     #0f0f12;
  --bg-secondary:   #18181e;
  --bg-card:        #1e1e26;
  --bg-hover:       #25252f;
  --border:         #2a2a36;
  --border-light:   #3a3a48;

  --accent:         #f5a623;
  --accent-hover:   #ffb83f;
  --accent-dark:    #c4821a;
  --danger:         #e74c3c;
  --success:        #27ae60;

  --text-primary:   #f0f0f5;
  --text-secondary: #9090a8;
  --text-muted:     #60606e;

  --font-display:   'Unbounded', sans-serif;
  --font-body:      'Golos Text', sans-serif;

  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --shadow-card:    0 4px 24px rgba(0,0,0,0.4);
  --shadow-hover:   0 8px 40px rgba(0,0,0,0.6);
  --transition:     all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ╔══════════════════════════════════════
   ║  HEADER
   ╚══════════════════════════════════════ */
#ds-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.header-top {
  background: #0a0a0d;
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  font-size: 12px;
  color: var(--text-muted);
}
.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.header-top a { color: var(--text-secondary); font-size: 12px; }
.header-top a:hover { color: var(--accent); }
.ht-phones { display: flex; gap: 16px; align-items: center; }
.ht-phones .main-phone {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary) !important;
}
.ht-links { display: flex; gap: 16px; }

.header-main {
  padding: 14px 0;
}
.header-main .container {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.ds-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary) !important;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}
.ds-logo span { color: var(--accent); }

/* Search */
.ds-search {
  flex: 1;
  max-width: 560px;
  margin: 0 auto;
}
.ds-search form {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.ds-search form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.15);
}
.ds-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 16px;
}
.ds-search input::placeholder { color: var(--text-muted); }
.ds-search button {
  background: var(--accent);
  border: none;
  color: #000;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
}
.ds-search button:hover { background: var(--accent-hover); }

/* Header Icons */
.header-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.hicon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  background: transparent;
  border: none;
  font-family: var(--font-body);
}
.hicon-btn:hover { color: var(--text-primary); background: var(--bg-hover); }
.hicon-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.hicon-btn span { font-size: 11px; white-space: nowrap; }

/* Cart button special */
.hicon-btn.cart-btn { position: relative; }
.cart-count {
  position: absolute;
  top: 4px;
  right: 6px;
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-display);
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* ── NAVBAR ── */
.ds-navbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.ds-navbar .container {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(245,166,35,0.05);
}
.nav-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 500;
  padding: 8px 0;
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 9px 18px;
  color: var(--text-secondary);
  font-size: 13px;
  transition: var(--transition);
}
.nav-dropdown a:hover {
  color: var(--accent);
  background: var(--bg-hover);
  padding-left: 24px;
}

/* ╔══════════════════════════════════════
   ║  CART DROPDOWN
   ╚══════════════════════════════════════ */
.cart-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 60px rgba(0,0,0,0.7);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.97);
  transform-origin: top right;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.cart-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.cart-dropdown-inner { padding: 0; }

.cart-drop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}
.cart-drop-header h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.cart-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--transition);
}
.cart-close-btn:hover { color: var(--text-primary); background: var(--bg-hover); }

.cart-items-list { max-height: 340px; overflow-y: auto; padding: 12px; }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  border: 1px solid transparent;
}
.cart-item:hover { background: var(--bg-hover); border-color: var(--border); }
.cart-item + .cart-item { margin-top: 4px; }

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--bg-secondary);
  flex-shrink: 0;
  padding: 4px;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  margin-bottom: 6px;
}
.cart-item-qty { font-size: 12px; color: var(--text-muted); }
.cart-item-price {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
  text-align: right;
}
.cart-item-remove {
  display: block;
  font-size: 11px;
  color: var(--danger);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-top: 4px;
  transition: var(--transition);
}
.cart-item-remove:hover { color: #ff6b5b; }

.cart-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.cart-empty-state svg {
  width: 48px; height: 48px;
  stroke: var(--border-light);
  fill: none; stroke-width: 1.5;
  margin: 0 auto 12px;
}
.cart-empty-state p { font-size: 13px; }

.cart-drop-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.cart-total-row .label { font-size: 13px; color: var(--text-secondary); }
.cart-total-row .amount {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}
.cart-drop-btns { display: flex; gap: 10px; }
.btn-checkout {
  flex: 1;
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.btn-checkout:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-cart-page {
  padding: 11px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.btn-cart-page:hover { border-color: var(--accent); color: var(--accent); }

/* ╔══════════════════════════════════════
   ║  BREADCRUMB
   ╚══════════════════════════════════════ */
.ds-breadcrumb {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
}
.breadcrumb-list li { font-size: 12.5px; color: var(--text-muted); }
.breadcrumb-list li + li::before {
  content: '/';
  margin-right: 8px;
  color: var(--border-light);
}
.breadcrumb-list a { color: var(--text-secondary); }
.breadcrumb-list a:hover { color: var(--accent); }
.breadcrumb-list li:last-child { color: var(--text-primary); }

/* ╔══════════════════════════════════════
   ║  PRODUCT PAGE
   ╚══════════════════════════════════════ */
.product-page {
  padding: 30px 0 60px;
}
.product-layout {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 40px;
  align-items: start;
}

/* Gallery */
.product-gallery { position: sticky; top: 90px; }
.gallery-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  cursor: zoom-in;
  position: relative;
}
.gallery-main img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.gallery-main:hover img { transform: scale(1.06); }

.gallery-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-sale { background: var(--danger); color: #fff; }
.badge-hit  { background: var(--accent); color: #000; }
.badge-top  { background: #6c5ce7; color: #fff; }
.badge-new  { background: var(--success); color: #fff; }

.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.thumb-item {
  width: 74px;
  height: 74px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  padding: 4px;
}
.thumb-item img { width: 100%; height: 100%; object-fit: contain; }
.thumb-item:hover, .thumb-item.active { border-color: var(--accent); }

/* Product Info */
.product-info { display: flex; flex-direction: column; gap: 20px; }

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stars { display: flex; gap: 2px; }
.star {
  color: var(--accent);
  font-size: 16px;
}
.rating-score {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}
.rating-count { font-size: 13px; color: var(--text-muted); }

.product-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}
.meta-item { color: var(--text-muted); }
.meta-item strong { color: var(--text-secondary); font-weight: 500; }
.meta-item a { color: var(--text-secondary); }
.meta-item a:hover { color: var(--accent); }

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-secondary);
}
.brand-badge img { height: 24px; width: auto; filter: brightness(0) invert(1) opacity(0.7); }

/* Stock */
.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.stock-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.in-stock .stock-dot { background: var(--success); }
.in-stock { color: var(--success); }
.out-stock .stock-dot { background: var(--danger); animation: none; }
.out-stock { color: var(--danger); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* Price */
.price-block { display: flex; flex-direction: column; gap: 4px; }
.price-old {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-current-row { display: flex; align-items: center; gap: 14px; }
.price-current {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -1px;
}
.price-discount {
  background: var(--danger);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

/* Options (if any) */
.product-options { display: flex; flex-direction: column; gap: 14px; }
.option-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}
.option-radio-group { display: flex; gap: 8px; flex-wrap: wrap; }
.option-radio {
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}
.option-radio:hover, .option-radio.selected {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245,166,35,0.08);
}

/* Buy buttons */
.buy-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-buy {
  flex: 1;
  min-width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: -0.2px;
}
.btn-buy svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

.btn-add-cart {
  background: var(--accent);
  color: #000;
}
.btn-add-cart:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,166,35,0.35);
}
.btn-add-cart:active { transform: translateY(0); }

.btn-quick-order {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-light);
}
.btn-quick-order:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245,166,35,0.06);
}

.btn-wishlist {
  width: 52px;
  height: 52px;
  min-width: unset;
  flex: none;
  padding: 0;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  color: var(--text-muted);
  border-radius: var(--radius-md);
}
.btn-wishlist:hover { border-color: #e74c3c; color: #e74c3c; background: rgba(231,76,60,0.08); }
.btn-wishlist.active { border-color: #e74c3c; color: #e74c3c; background: rgba(231,76,60,0.12); }

/* Delivery info block */
.delivery-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.delivery-block-header {
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.delivery-items { padding: 8px; }
.delivery-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.delivery-item:hover { background: var(--bg-hover); }
.delivery-icon { width: 36px; height: 36px; flex-shrink: 0; object-fit: contain; filter: brightness(0.8); }
.delivery-text { font-size: 13px; }
.delivery-text strong { display: block; color: var(--text-primary); font-size: 13px; }
.delivery-text span { color: var(--text-muted); font-size: 12px; }

/* ╔══════════════════════════════════════
   ║  PRODUCT TABS
   ╚══════════════════════════════════════ */
.product-tabs-section { margin-top: 50px; }
.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  gap: 4px;
  overflow-x: auto;
}
.tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

.tab-pane { display: none; padding: 30px 0; }
.tab-pane.active { display: block; }

/* Description tab */
.tab-description {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
  max-width: 860px;
}
.tab-description h2, .tab-description h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin: 24px 0 12px;
  font-size: 18px;
}
.tab-description p { margin-bottom: 14px; }
.tab-description strong { color: var(--text-primary); }

/* Specs table */
.specs-table { width: 100%; border-collapse: collapse; max-width: 700px; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table tr:hover td { background: var(--bg-hover); }
.specs-table td {
  padding: 12px 16px;
  font-size: 14px;
  vertical-align: top;
}
.specs-table td:first-child { color: var(--text-muted); width: 240px; }
.specs-table td:last-child { color: var(--text-primary); }

/* Reviews */
.reviews-summary {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 30px;
}
.rating-big {
  text-align: center;
  flex-shrink: 0;
}
.rating-big .score {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.rating-big .total { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.rating-bars { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.rbar-row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.rbar-row .stars-num { width: 14px; color: var(--text-secondary); text-align: right; }
.rbar-track {
  flex: 1;
  height: 6px;
  background: var(--bg-hover);
  border-radius: 3px;
  overflow: hidden;
}
.rbar-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.6s ease; }

.review-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  transition: var(--transition);
}
.review-card:hover { border-color: var(--border-light); }
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.reviewer-name { font-weight: 600; color: var(--text-primary); font-size: 14px; }
.review-date { font-size: 12px; color: var(--text-muted); }
.review-pros, .review-cons {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 8px;
}
.review-pros strong { color: var(--success); }
.review-cons strong { color: var(--danger); }

/* ╔══════════════════════════════════════
   ║  RELATED PRODUCTS
   ╚══════════════════════════════════════ */
.section-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.product-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.card-img-wrap {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  overflow: hidden;
  padding: 12px;
}
.card-img-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.35s ease; }
.product-card:hover .card-img-wrap img { transform: scale(1.08); }

.card-body { padding: 14px; }
.card-code { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.card-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.card-price-old { font-size: 12px; color: var(--text-muted); text-decoration: line-through; }
.card-price {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.card-btn {
  width: 100%;
  padding: 9px;
  background: var(--bg-hover);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.card-btn:hover { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 600; }

/* Card badges */
.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-availability {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  color: var(--success);
  background: rgba(39,174,96,0.12);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid rgba(39,174,96,0.3);
}

/* ╔══════════════════════════════════════
   ║  QUICK ORDER MODAL
   ╚══════════════════════════════════════ */
.ds-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.28s ease;
}
.ds-overlay.open { opacity: 1; visibility: visible; }

.ds-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  z-index: 9999;
  width: 100%;
  max-width: 500px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
  opacity: 0;
  visibility: hidden;
  transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
.ds-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}
.modal-header h2 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.modal-close {
  width: 32px; height: 32px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { color: var(--text-primary); border-color: var(--border-light); }

.modal-product-preview {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 24px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.modal-product-preview img {
  width: 60px; height: 60px;
  object-fit: contain;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--border);
}
.modal-product-name { font-size: 13px; font-weight: 500; color: var(--text-primary); line-height: 1.4; margin-bottom: 4px; }
.modal-product-price {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.modal-body { padding: 24px; }

.ds-form-group { margin-bottom: 16px; }
.ds-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 7px;
}
.ds-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 14px;
  outline: none;
  transition: var(--transition);
}
.ds-input:focus {
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.12);
}
.ds-input::placeholder { color: var(--text-muted); }
.ds-input.error { border-color: var(--danger); }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 5px; }

.modal-footer {
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.btn-submit-order {
  width: 100%;
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  padding: 14px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: -0.2px;
}
.btn-submit-order:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245,166,35,0.4);
}
.modal-privacy {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}
.modal-privacy a { color: var(--text-secondary); }

/* Modal success state */
.modal-success {
  display: none;
  text-align: center;
  padding: 40px 24px;
}
.modal-success.show { display: block; }
.success-icon {
  width: 64px; height: 64px;
  background: rgba(39,174,96,0.12);
  border: 2px solid var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.success-icon svg { width: 32px; height: 32px; stroke: var(--success); fill: none; stroke-width: 2.5; }
.modal-success h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.modal-success p { font-size: 14px; color: var(--text-secondary); }

/* ╔══════════════════════════════════════
   ║  FEEDBACK WIDGET (floating)
   ╚══════════════════════════════════════ */
.feedback-widget {
  position: fixed;
  right: 20px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
  align-items: flex-end;
}
.fw-toggle {
  width: 52px; height: 52px;
  background: var(--accent);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(245,166,35,0.5);
  transition: var(--transition);
}
.fw-toggle:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(245,166,35,0.6); }
.fw-toggle svg { width: 24px; height: 24px; stroke: #000; fill: none; stroke-width: 2; }

.fw-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
}
.fw-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
.fw-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 40px;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: var(--transition);
}
.fw-link:hover { border-color: var(--accent); color: var(--accent); transform: translateX(-3px); }
.fw-link img { width: 24px; height: 24px; }

/* ╔══════════════════════════════════════
   ║  FOOTER
   ╚══════════════════════════════════════ */
#ds-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
.footer-top {
  padding: 50px 0 40px;
  display: grid;
  grid-template-columns: 280px repeat(3, 1fr);
  gap: 40px;
}
.footer-brand .ds-logo { font-size: 20px; margin-bottom: 16px; display: block; }
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.footer-newsletter { display: flex; gap: 8px; }
.footer-newsletter input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  padding: 9px 12px;
  outline: none;
}
.footer-newsletter input:focus { border-color: var(--accent); }
.footer-newsletter button {
  background: var(--accent);
  border: none;
  color: #000;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: 13px; color: var(--text-muted); }
.footer-col ul a:hover { color: var(--accent); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer-copy { font-size: 12px; color: var(--text-muted); }
.payment-icons { display: flex; gap: 8px; }
.payment-icons img { height: 22px; width: auto; opacity: 0.5; filter: grayscale(1); transition: var(--transition); }
.payment-icons img:hover { opacity: 1; filter: grayscale(0); }

/* ╔══════════════════════════════════════
   ║  BUTTONS / UTILS
   ╚══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── TOAST ── */
.ds-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-card);
  font-size: 14px;
  color: var(--text-primary);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  max-width: 400px;
}
.ds-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.ds-toast.success { border-left: 3px solid var(--success); }
.ds-toast.error { border-left: 3px solid var(--danger); }
.toast-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.ds-toast.success .toast-icon { color: var(--success); }
.ds-toast.error .toast-icon { color: var(--danger); }

/* ── LOADER ── */
.ds-spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ╔══════════════════════════════════════
   ║  RESPONSIVE
   ╚══════════════════════════════════════ */
@media (max-width: 1100px) {
  .product-layout { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .ds-modal { max-width: calc(100% - 24px); }
  .cart-dropdown { width: calc(100vw - 24px); right: -10px; }
  .header-top .ht-links { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .buy-buttons { flex-direction: column; }
  .btn-wishlist { width: 100%; height: auto; padding: 12px; }
}
@media (max-width: 480px) {
  .price-current { font-size: 28px; }
  .product-title { font-size: 19px; }
}

/* ╔══════════════════════════════════════
   ║  OVERRIDE: стандартні модулі OpenCart
   ╚══════════════════════════════════════ */

/* ── Search module override ── */
.ds-search .input-group {
  display: flex !important;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.ds-search .input-group:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,166,35,.15);
}
.ds-search .form-control {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--text-primary) !important;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 16px !important;
  height: auto !important;
  border-radius: 0 !important;
}
.ds-search .form-control::placeholder { color: var(--text-muted); }
.ds-search .input-group-btn .btn {
  background: var(--accent) !important;
  border: none !important;
  border-radius: 0 !important;
  color: #000 !important;
  padding: 10px 18px !important;
  height: auto !important;
  box-shadow: none !important;
}
.ds-search .input-group-btn .btn:hover { background: var(--accent-hover) !important; }
.ds-search .input-group-btn .btn .fa { font-size: 16px; }

/* ── Menu module override ── */
#menu .navbar {
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: unset !important;
}
#menu .navbar-nav {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0;
  float: none !important;
  margin: 0 !important;
}
#menu .navbar-nav > li > a {
  color: var(--text-secondary) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  padding: 12px 16px !important;
  border-bottom: 2px solid transparent;
  transition: var(--transition) !important;
  background: transparent !important;
  line-height: 1.4 !important;
}
#menu .navbar-nav > li > a:hover,
#menu .navbar-nav > li.active > a,
#menu .navbar-nav > li.open > a {
  color: var(--accent) !important;
  border-bottom-color: var(--accent) !important;
  background: rgba(245,166,35,.05) !important;
}
#menu .navbar-nav > li .dropdown-menu {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-card) !important;
  padding: 8px 0 !important;
  min-width: 200px;
}
#menu .navbar-nav > li .dropdown-menu > li > a {
  color: var(--text-secondary) !important;
  padding: 9px 18px !important;
  font-size: 13px !important;
  transition: var(--transition) !important;
}
#menu .navbar-nav > li .dropdown-menu > li > a:hover {
  color: var(--accent) !important;
  background: var(--bg-hover) !important;
  padding-left: 24px !important;
}
#menu .navbar-toggle { display: none; }
#menu .navbar-collapse { padding: 0 !important; }

/* Ховаємо стандартний Bootstrap navbar-header */
#menu .navbar-header { display: none !important; }

/* ── Кнопка "Переглянути всі" в меню ── */
#menu .see-all {
  color: var(--accent) !important;
  font-size: 12px !important;
}

/* ── Top links override (language/currency dropdowns) ── */
.ht-links .btn-group .btn,
.ht-links .dropdown > a {
  background: transparent !important;
  border: none !important;
  color: var(--text-secondary) !important;
  font-size: 12px !important;
  padding: 4px 8px !important;
  box-shadow: none !important;
}
.ht-links .btn-group .btn:hover,
.ht-links .dropdown > a:hover {
  color: var(--accent) !important;
}
.ht-links .dropdown-menu {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-card) !important;
  min-width: 140px !important;
  padding: 6px 0 !important;
}
.ht-links .dropdown-menu > li > a {
  color: var(--text-secondary) !important;
  font-size: 12px !important;
  padding: 7px 14px !important;
}
.ht-links .dropdown-menu > li > a:hover {
  color: var(--accent) !important;
  background: var(--bg-hover) !important;
}
.ht-link-btn {
  color: var(--text-secondary);
  font-size: 12px;
  padding: 4px 8px;
}
.ht-link-btn:hover { color: var(--accent); }

/* ── Bootstrap скидання для темної теми ── */
.container { max-width: 1280px !important; }
a:hover { text-decoration: none !important; }

/* Приховати стандартний nav#top від default теми якщо залишився */
nav#top { display: none !important; }
