:root {
  --accent: #c30c2e;
  --accent-left: #a60a25;
  --accent-right: #e01a3e;
  --site-bg: #f6f8fa;
  --site-surface: #ffffff;
  --site-ink: #111111;
  --site-muted: #6c757d;
  --site-border: #e6e9ee;
  --site-sidebar-bg: #1c2533;
  --site-sidebar-border: #c30c2e;
  --site-header-bg: #ffffff;
  --site-header-ink: #111111;
  --site-header-muted: #6c757d;
  --site-topbar-bg: #1c2533;
  --site-topbar-ink: #ffffff;
  --site-footer-bg: #2f343a;
  --site-footer-ink: rgba(255,255,255,.75);
  --card-shadow: 0 12px 26px rgba(16,24,40,.08);
  --card-glow: 0 6px 14px rgba(195,12,46,.12), 0 2px 8px rgba(224,26,62,.08);
  --card-border: rgba(195,12,46,.12);
}

[data-theme="dark"] {
  --site-bg: rgb(46, 47, 53);
  --site-surface: #0b0f16;
  --site-surface-hover: #121826;
  --site-ink: #e2e8f0;
  --site-muted: #94a3b8;
  --site-border: rgba(226,232,240,.12);
  --site-header-bg: #0b1220;
  --site-header-ink: #e2e8f0;
  --site-header-muted: #94a3b8;
  --site-topbar-bg: #0b1220;
  --site-topbar-ink: #e2e8f0;
  --site-footer-bg: #0b1220;
  --site-footer-ink: rgba(226,232,240,.75);
}

.bg-soft { background: var(--site-bg); }

body {
  color: var(--site-ink);
}

.admin-brand { font-weight: 700; font-size: 20px; letter-spacing: .2px; color: #fff; }
.admin-brand small { font-weight: 500; color: #c30c2e; }

.text-secondary {
  color: var(--site-muted) !important;
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color:#fff;
}
.btn-accent:hover,
.btn-accent:focus,
.btn-accent:active,
.btn-accent.active,
.show > .btn-accent.dropdown-toggle {
  background: var(--accent);
  border-color: var(--accent);
  color:#fff;
  filter: brightness(.95);
}
.btn-accent:focus {
  box-shadow: 0 0 0 .25rem rgba(26,163,200,.25);
}

.section { padding: 24px 0; }

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cart-item-card {
  display: flex;
  gap: 16px;
  border: 1px solid var(--site-border);
  border-radius: 16px;
  padding: 18px;
  background: var(--site-surface);
  box-shadow: 0 16px 32px rgba(16,24,40,.08);
  min-height: 0;
  align-items: stretch;
}
.cart-item-media {
  width: 120px;
  flex-shrink: 0;
}
.cart-item-media img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--site-bg);
}
.cart-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cart-item-qty .form-control {
  max-width: 120px;
}
.cart-mini-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  align-items: flex-start;
  border: 1px solid var(--site-border);
  border-radius: 14px;
  background: var(--site-surface);
  box-shadow: var(--card-shadow), var(--card-glow);
  position: relative;
}
.cart-mini-item:last-of-type {
  margin-bottom: 0;
}
.cart-mini-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid var(--site-border);
  background: var(--site-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--site-surface);
}
.cart-mini-body {
  flex: 1;
  min-width: 0;
}
.cart-mini-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  color: var(--site-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-mini-qty {
  font-size: 12px;
  color: var(--site-muted);
  margin-top: 6px;
}
.cart-mini-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.cart-mini-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cart-mini-qty .btn {
  padding: 0 8px;
  height: 28px;
}
.cart-mini-qty .form-control {
  width: 54px;
  height: 28px;
  text-align: center;
  padding: 0 6px;
}
.cart-mini-remove {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: var(--site-muted);
  font-size: 18px;
  line-height: 1;
  padding: 4px;
}
.cart-mini-remove:hover {
  color: var(--site-ink);
}

.cart-mini-clear {
  color: var(--site-muted);
}
.cart-mini-clear:hover {
  color: var(--site-ink);
}

.cart-offcanvas {
  --bs-offcanvas-width: min(44vw, 720px);
  width: var(--bs-offcanvas-width);
}
[data-theme="dark"] .offcanvas {
  background: var(--site-bg);
  color: var(--site-ink);
}
[data-theme="dark"] .offcanvas .offcanvas-header,
[data-theme="dark"] .offcanvas .offcanvas-footer {
  border-color: var(--site-border);
}
[data-theme="dark"] .offcanvas .offcanvas-title {
  color: var(--site-ink);
}
[data-theme="dark"] .offcanvas .offcanvas-body {
  color: var(--site-ink);
}
[data-theme="dark"] .offcanvas .text-secondary,
[data-theme="dark"] .offcanvas .text-muted,
[data-theme="dark"] .offcanvas .small {
  color: var(--site-ink-muted) !important;
}
[data-theme="dark"] .offcanvas .btn-outline-secondary {
  color: var(--site-ink);
  border-color: var(--site-border);
  background: transparent;
}
[data-theme="dark"] .offcanvas .btn-outline-secondary:hover {
  background: var(--site-surface-hover);
  border-color: var(--site-border);
}
[data-theme="dark"] .offcanvas .btn-close {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23e11d48' stroke-width='2'%3e%3cpath d='M2 2l12 12M14 2L2 14'/%3e%3c/svg%3e");
  opacity: 1;
}
[data-theme="dark"] .offcanvas .btn-close:hover {
  opacity: 1;
}
[data-theme="dark"] .offcanvas .offcanvas-body::-webkit-scrollbar {
  width: 8px;
}
[data-theme="dark"] .offcanvas .offcanvas-body::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 8px;
}
[data-theme="dark"] .offcanvas .offcanvas-body::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, .12);
}
[data-theme="dark"] #siteCategoriesCanvas .categories-panel,
[data-theme="dark"] #siteCategoriesCanvas .categories-panel-inner,
[data-theme="dark"] #siteCategoriesCanvas .categories-list,
[data-theme="dark"] #siteCategoriesCanvas .categories-content,
[data-theme="dark"] #categoriesCanvas .categories-panel,
[data-theme="dark"] #categoriesCanvas .categories-panel-inner,
[data-theme="dark"] #categoriesCanvas .categories-list,
[data-theme="dark"] #categoriesCanvas .categories-content {
  background: var(--site-surface);
  color: var(--site-ink);
}
[data-theme="dark"] #siteCategoriesCanvas .categories-item,
[data-theme="dark"] #categoriesCanvas .categories-item {
  color: var(--site-ink);
}
[data-theme="dark"] #siteCategoriesCanvas .categories-item.is-active,
[data-theme="dark"] #categoriesCanvas .categories-item.is-active {
  background: var(--site-surface-hover);
}
[data-theme="dark"] #siteCategoriesCanvas .categories-subpanel-title a,
[data-theme="dark"] #categoriesCanvas .categories-subpanel-title a,
[data-theme="dark"] #siteCategoriesCanvas .categories-subgroup-title,
[data-theme="dark"] #categoriesCanvas .categories-subgroup-title,
[data-theme="dark"] #siteCategoriesCanvas .categories-subgroup-list a,
[data-theme="dark"] #categoriesCanvas .categories-subgroup-list a {
  color: var(--site-ink);
}
.cart-mini-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.cart-mini-actions .btn {
  width: 100%;
}
@media (max-width: 576px) {
  .cart-mini-actions {
    grid-template-columns: 1fr;
  }
}

.cart-page .cart-panel {
  padding: 0;
}
.cart-page .cart-panel-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--site-border);
}
.cart-page .cart-clear {
  font-size: 13px;
  color: var(--site-muted);
}
.cart-page .cart-clear:hover {
  color: var(--site-ink);
}
.cart-page .cart-items-root {
  padding: 16px 18px;
}
.cart-page .cart-items {
  display: grid;
  gap: 14px;
}
.cart-page .cart-row {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 150px 140px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--site-border);
  border-radius: 12px;
  background: var(--site-surface);
}
.cart-page .cart-row-thumb {
  width: 120px;
  height: 90px;
  border-radius: 10px;
  border: 1px solid var(--site-border);
  overflow: hidden;
  background: var(--site-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-page .cart-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.cart-page .cart-row-title a {
  color: var(--site-ink);
  font-weight: 600;
}
.cart-page .cart-row-total {
  text-align: right;
}
.cart-page .cart-row-remove {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--site-border);
  background: var(--site-surface);
  border-radius: 6px;
  color: var(--site-muted);
}
.cart-page .cart-row-remove:hover {
  color: var(--site-ink);
}
.cart-page .cart-summary {
  padding: 16px 18px;
  gap: 12px;
}
.cart-page .cart-summary-head {
  font-size: 18px;
  margin-bottom: 8px;
}
.cart-page .cart-promo .form-control {
  font-size: 14px;
}
@media (max-width: 992px) {
  .cart-page .cart-row {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
  }
  .cart-page .cart-row-qty,
  .cart-page .cart-row-total {
    grid-column: 2 / -1;
  }
  .cart-page .cart-row-total {
    text-align: left;
  }
}

.recent-viewed {
  margin-bottom: 24px;
}
.recent-viewed .recent-controls .btn {
  border: 1px solid var(--site-border);
  background: var(--site-surface);
}
[data-theme="dark"] .recent-viewed .recent-controls .btn {
  background: var(--site-surface);
  border-color: var(--site-border);
  color: var(--site-ink);
}
[data-theme="dark"] .recent-viewed .recent-controls .btn:hover,
[data-theme="dark"] .recent-viewed .recent-controls .btn:focus {
  background: var(--site-surface-hover);
  color: #fff;
}
.recent-viewed .recent-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

/* Custom alert (showAlertCenter) */
.custom-alert-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 20000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.custom-alert-overlay.show {
  opacity: 1;
}
.custom-alert-center {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 20010;
  min-width: 300px;
  max-width: 90%;
  padding: 1.25rem 1.5rem 1rem 1.5rem;
  background-color: #fff;
  color: #212529;
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.5);
  border-radius: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
  text-align: center;
}
.custom-alert-center.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.custom-alert-body {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  margin-top: 0.25rem;
}
.custom-alert-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}
.custom-alert-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 1;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Цвета для alert'ов (если Bootstrap не подключён) */
.alert-success {
  background-color: #d1e7dd;
  color: #0f5132;
}

.alert-danger {
  background-color: #f8d7da;
  color: #842029;
}

.alert-warning {
  background-color: #fff3cd;
  color: #664d03;
}

.alert-info {
  background-color: #cff4fc;
  color: #055160;
}

.alert-primary {
  background-color: #cfe2ff;
  color: #084298;
}

.alert-dark {
  background-color: #000000;
  color: #ffffff;
}

.alert-secondary {
  background-color: #6c757d;
  color: #ffffff;
}

.alert-dark .custom-alert-close {
  color: #ffffff;
}

.alert-secondary .custom-alert-close {
  color: #ffffff;
}

/* Анимации */
.animate-fade {
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translate(-50%, -50%) scale(0.95);
}

.animate-fade.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.animate-slide-up {
  opacity: 0;
  transform: translate(-50%, 20%) scale(1);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.animate-slide-up.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.animate-zoom-in {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.animate-zoom-in.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Контейнер для кнопок */
.custom-alert-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Кнопки */
.custom-alert-buttons button {
  cursor: pointer;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background-color: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

.btn-danger {
  background-color: #dc3545;
  color: #fff;
  border-color: #dc3545;
}

.btn-danger:hover {
  background-color: #bb2d3b;
  border-color: #b02a37;
}

.btn-secondary {
  background-color: #6c757d;
  color: #fff;
  border-color: #6c757d;
}

.btn-secondary:hover {
  background-color: #5c636a;
  border-color: #565e64;
}

.list-group-item .border-start {
  border-color: #1084e5 !important; /* стандартный серый Bootstrap */
  border-width: 3px;
}

.list-group-item .border-end {
  border-color: #1084e5 !important; /* стандартный серый Bootstrap */
  border-width: 3px;
}

.recent-viewed .recent-track::-webkit-scrollbar {
  height: 6px;
}
.recent-viewed .recent-track::-webkit-scrollbar-thumb {
  background: var(--site-border);
  border-radius: 6px;
}
.recent-viewed .recent-item {
  flex: 0 0 360px;
  scroll-snap-align: start;
}
.recent-viewed .recent-card {
  border: 1px solid var(--site-border);
  border-radius: .75rem;
  background: var(--site-surface);
  padding: 12px 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  height: 100%;
}
[data-theme="dark"] .recent-viewed .recent-card {
  background: var(--site-surface);
  border-color: var(--site-border);
}
[data-theme="dark"] .recent-viewed .recent-card:hover {
  background: var(--site-surface-hover);
  border-color: var(--site-border);
}
.recent-viewed .recent-card .recent-title,
.recent-viewed .recent-card .recent-price {
  color: var(--site-ink);
}
.recent-viewed .recent-card .text-secondary {
  color: var(--site-muted) !important;
}
.recent-viewed .recent-thumb {
  width: 120px;
  height: 90px;
  border-radius: .5rem;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.recent-viewed .recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.recent-viewed .recent-title {
  font-weight: 600;
  line-height: 1.25;
}
.recent-viewed .recent-price {
  font-weight: 700;
  margin-top: 4px;
}
@media (max-width: 576px) {
  .cart-offcanvas {
    --bs-offcanvas-width: 100%;
    width: 100%;
  }
}

.cart-items-root {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.btn-primary {
  background: var(--accent-left);
  border-color: var(--accent-left);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
  background: var(--accent-right);
  border-color: var(--accent-right);
}
.btn-primary:focus {
  box-shadow: 0 0 0 .25rem rgba(26,163,200,.25);
}

.form-select:focus {
  border-color: var(--accent-right);
  box-shadow: 0 0 0 .25rem rgba(26,163,200,.25);
}
.form-select:hover {
  border-color: var(--accent-left);
}
.form-select {
  accent-color: var(--accent-right);
}

.nav-link.active,
.nav-pills .nav-link.active,
.nav-tabs .nav-link.active {
  background: var(--accent-left);
  border-color: var(--accent-left);
  color: #fff;
}
.nav-link:hover {
  color: var(--accent-right);
}

/* Header navigation should be text-only and highlight only by accent color. */
.main-menu .nav-link {
  border-radius: 0;
  padding: 0.65rem 0.9rem;
  background: transparent;
  color: var(--site-header-ink);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.main-menu .nav-link:hover,
.main-menu .nav-link:focus-visible,
.main-menu .nav-link.active {
  color: var(--accent);
  background: transparent;
  border-color: transparent;
}
.site-shell {
  display: flex;
  min-height: 100vh;
}
.site-menu-backdrop {
  position: fixed;
  top: 0;
  left: 260px;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, visibility .15s ease;
  z-index: 1060;
  pointer-events: none;
}
body.site-menu-open .site-menu-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.site-sidebar {
  width: 260px;
  background: var(--site-sidebar-bg);
  border-right: 3px solid var(--site-sidebar-border);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1070;
}
.modal {
  z-index: 1090;
}
.modal-backdrop {
  z-index: 1085;
}
[data-theme="dark"] .modal-content {
  background: var(--site-surface);
  color: var(--site-ink);
  border-color: var(--site-border);
}
[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
  border-color: var(--site-border);
}
[data-theme="dark"] .modal-title {
  color: var(--site-ink);
}
[data-theme="dark"] .modal-body,
[data-theme="dark"] .modal-body p,
[data-theme="dark"] .modal-body li,
[data-theme="dark"] .modal-body h1,
[data-theme="dark"] .modal-body h2,
[data-theme="dark"] .modal-body h3,
[data-theme="dark"] .modal-body h4,
[data-theme="dark"] .modal-body h5,
[data-theme="dark"] .modal-body h6 {
  color: var(--site-ink);
}
[data-theme="dark"] #descriptionModal .modal-title,
[data-theme="dark"] #descriptionModal .modal-body,
[data-theme="dark"] #descriptionContent,
[data-theme="dark"] #descriptionContent p,
[data-theme="dark"] #descriptionContent li,
[data-theme="dark"] #descriptionContent td,
[data-theme="dark"] #descriptionContent th,
[data-theme="dark"] #descriptionContent h1,
[data-theme="dark"] #descriptionContent h2,
[data-theme="dark"] #descriptionContent h3,
[data-theme="dark"] #descriptionContent h4,
[data-theme="dark"] #descriptionContent h5,
[data-theme="dark"] #descriptionContent h6 {
  color: var(--site-ink);
}
[data-theme="dark"] #descriptionContent * {
  color: inherit !important;
}
[data-theme="dark"] #descriptionContent a {
  color: var(--accent) !important;
}
[data-theme="dark"] #descriptionContent [style*="color:#000"],
[data-theme="dark"] #descriptionContent [style*="color: #000"],
[data-theme="dark"] #descriptionContent [style*="color:rgb(0,0,0)"],
[data-theme="dark"] #descriptionContent [style*="color: rgb(0, 0, 0)"] {
  color: var(--site-ink) !important;
}
[data-theme="dark"] .modal-body .text-muted,
[data-theme="dark"] .modal-body .text-secondary {
  color: var(--site-muted) !important;
}
[data-theme="dark"] .modal .btn-outline-secondary {
  color: var(--site-ink);
  border-color: var(--site-border);
  background: transparent;
}
[data-theme="dark"] .modal .btn-outline-secondary:hover,
[data-theme="dark"] .modal .btn-outline-secondary:focus {
  background: var(--site-surface-hover);
  color: #fff;
}
[data-theme="dark"] .modal .btn-close {
  opacity: 1;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ff2d2d' stroke-linecap='round' stroke-width='2'%3e%3cpath d='M2 2l12 12M14 2L2 14'/%3e%3c/svg%3e");
}
.site-sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.site-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
}
.site-sidebar-brand img {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}
.site-sidebar-title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  color: #fff;
}
.site-sidebar-menu {
  flex: 1;
  min-height: 0;
  padding: 10px 12px 16px;
}
.site-main {
  flex: 1;
  min-width: 0;
  margin-left: 260px;
}
.site-main main {
  padding: 0 24px;
}
.site-sidebar .categories-panel {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  width: 100%;
  border-radius: 12px;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.site-sidebar .categories-panel-inner {
  min-height: 0;
  max-height: none;
  height: auto;
  display: block;
}
.site-sidebar .categories-list,
.site-sidebar .categories-content {
  overflow-y: auto;
}
.site-sidebar .categories-list {
  width: 100%;
  border-right: 0;
  padding: 6px 0;
}
.site-sidebar .categories-item {
  color: #cbd5e1;
  border-left-color: transparent;
}
.site-sidebar .categories-item:hover,
.site-sidebar .categories-item:focus {
  background: rgba(255,255,255,.06);
  color: #fff;
  border-left-color: rgba(255,255,255,.4);
}
.site-sidebar .categories-item.is-active {
  background: rgba(195,12,46,.16);
  color: #fff;
  border-left-color: #c30c2e;
}
.site-sidebar .categories-icon {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.site-sidebar .categories-name {
  font-weight: 600;
}
.site-sidebar .categories-content {
  position: fixed;
  left: 260px;
  top: 120px;
  width: min(980px, calc(100vw - 300px));
  max-height: calc(100vh - 160px);
  padding: 16px 20px;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(16,24,40,.28), var(--card-glow), 0 0 0 1px rgba(195,12,46,.08);
  display: none;
  z-index: 1080;
}
.site-sidebar .js-categories-menu.is-open .categories-content {
  display: block;
}
.site-sidebar-panel .site-sidebar-brand {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-sidebar-panel .site-sidebar-menu {
  padding: 12px 12px 16px;
}
.site-sidebar-panel .categories-panel {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  width: 100%;
  border: 0;
  box-shadow: none;
  background: transparent;
}
@media (max-width: 1199px) {
  .site-sidebar .categories-content {
    width: min(820px, calc(100vw - 300px));
  }
}
@media (max-width: 991px) {
  .site-sidebar {
    display: none;
  }
  .site-main {
    margin-left: 0;
  }
  .site-menu-backdrop {
    left: 0;
    display: none;
  }
  .site-sidebar-panel .categories-panel-inner {
    flex-direction: column;
    max-height: none;
  }
  .site-sidebar-panel .categories-list {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid #eef1f4;
  }
  .site-sidebar-panel .categories-content {
    position: static;
    display: block;
    width: 100%;
    max-height: none;
    box-shadow: none;
    border: 0;
    padding: 12px 16px 16px;
  }
}
.catalog-categories-menu {
  position: relative;
}
.catalog-categories-trigger {
  cursor: pointer;
  user-select: none;
}
.categories-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(980px, 90vw);
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: 16px;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .15s ease;
  z-index: 20;
}
.catalog-categories-menu:hover .categories-panel,
.catalog-categories-menu:focus-within .categories-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.categories-panel-inner {
  display: flex;
  min-height: 360px;
  max-height: 520px;
}
.categories-list {
  width: 260px;
  border-right: 1px solid var(--site-border);
  padding: 12px 0;
  overflow-y: auto;
}
.categories-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--site-ink);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}
.categories-item:hover,
.categories-item:focus {
  background: var(--site-bg);
  border-left-color: #0d6efd;
}
.categories-item.is-active {
  background: var(--site-bg);
  border-left-color: #0d6efd;
  font-weight: 600;
}
.categories-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--site-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.categories-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.categories-content {
  flex: 1;
  padding: 16px 20px;
  overflow: auto;
}
.categories-subpanel {
  display: none;
}
.categories-subpanel.is-active {
  display: block;
}
.categories-subpanel-title {
  font-weight: 600;
  margin-bottom: 10px;
}
.categories-subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
}
.categories-subgroup {
  break-inside: avoid;
}
.categories-subgroup-title {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--site-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.categories-subgroup-title:hover,
.categories-subgroup-title:focus {
  color: var(--accent);
}
.categories-subgroup-title.is-active {
  color: var(--accent);
}
.categories-subgroup-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--site-ink);
  text-decoration: none;
  padding: 3px 0;
}
.categories-subgroup-list a:hover,
.categories-subgroup-list a:focus {
  color: var(--accent);
}
.categories-subgroup-list a.is-active {
  color: var(--accent);
  font-weight: 600;
}
.categories-thumb {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--site-bg);
  border: 1px solid var(--site-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.categories-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
[data-theme="dark"] .category-tile,
[data-theme="dark"] .subcategory-tile {
  background: var(--site-surface);
  border-color: var(--site-border);
  color: var(--site-ink);
}
[data-theme="dark"] .category-tile .category-note,
[data-theme="dark"] .subcategory-tile .category-note {
  color: var(--site-muted);
}
@media (min-width: 1200px) {
  .categories-subgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 991px) {
  .categories-subgrid {
    grid-template-columns: 1fr;
  }
}

.link-primary,
.text-primary,
a.text-primary {
  color: var(--accent-left);
}
.link-primary:hover,
.text-primary:hover,
a.text-primary:hover {
  color: var(--accent-right);
}

.page-link {
  color: var(--accent-left);
}
.page-link:hover {
  color: #fff;
  background: var(--accent-right);
  border-color: var(--accent-right);
}
.page-link:focus {
  box-shadow: 0 0 0 .25rem rgba(26,163,200,.25);
}
.page-item.active .page-link {
  background: var(--accent-left);
  border-color: var(--accent-left);
}

.card,
.product-card,
.recent-card,
.filter-card,
.info-card {
  box-shadow: var(--card-shadow), var(--card-glow);
  border-color: var(--card-border);
  background: var(--site-surface);
  color: var(--site-ink);
}
.card,
.product-card,
.recent-card,
.filter-card,
.info-card {
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover,
.product-card:hover,
.recent-card:hover,
.filter-card:hover,
.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(16,24,40,.12), 0 8px 18px rgba(26,163,200,.16);
}

[data-theme="dark"] .card:hover,
[data-theme="dark"] .product-card:hover,
[data-theme="dark"] .recent-card:hover,
[data-theme="dark"] .filter-card:hover,
[data-theme="dark"] .info-card:hover {
  background: var(--site-surface-hover);
  box-shadow: 0 16px 32px rgba(2,6,23,.55);
}
.product-card {
  position: relative;
  overflow: hidden;
}
.product-media {
  position: relative;
  overflow: hidden;
  padding-top: 12px;
}
.product-media a {
  display: block;
  padding: 0 12px;
  box-sizing: border-box;
}
.product-card .card-img-top {
  width: 100%;
  display: block;
  height: 240px;
  max-height: 240px;
  object-fit: contain;
  background: #fff;
}
.product-badge {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 1;
}
.product-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease;
  z-index: 2;
}
.product-action {
  border: 1px solid #e6e9ee;
  box-shadow: 0 6px 18px rgba(16,24,40,.12);
}
.product-action:hover,
.product-action:focus {
  color: var(--accent);
}
.product-card:hover .product-actions {
  opacity: 1;
  transform: translateY(0);
}
.product-cart-bar {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .15s ease, transform .15s ease;
}
.product-card:hover .product-cart-bar {
  opacity: 1;
  transform: translateY(0);
}
[data-theme="dark"] .product-card .product-cart-bar,
[data-theme="dark"] .product-card .card-footer,
[data-theme="dark"] .product-card .card-footer.bg-white {
  background: var(--site-surface-hover) !important;
  border-top: 1px solid var(--site-border);
}

[data-theme="dark"] .contact-cta {
  background: var(--site-surface) !important;
  border-color: var(--site-border) !important;
  color: var(--site-ink);
}

[data-theme="dark"] .contact-cta .text-secondary {
  color: var(--site-ink-muted) !important;
}

[data-theme="dark"] .contact-card,
[data-theme="dark"] .contact-map-card {
  background: var(--site-surface) !important;
  border-color: var(--site-border) !important;
  color: var(--site-ink);
}

[data-theme="dark"] .contact-card .text-secondary,
[data-theme="dark"] .contact-card .small,
[data-theme="dark"] .contact-map-card .text-secondary {
  color: var(--site-ink-muted) !important;
}

[data-theme="dark"] .contact-card .text-decoration-none,
[data-theme="dark"] .contact-card a {
  color: var(--site-ink);
}
[data-theme="dark"] .product-card:hover .product-cart-bar {
  background: var(--site-surface-hover);
}
[data-theme="dark"] .product-card .text-dark {
  color: var(--site-ink) !important;
}
.product-card .badge {
  background: var(--accent);
  color: #fff;
}
.product-cart-controls {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
}
.product-card .product-cart-controls .btn-accent {
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.1;
  flex: 1 1 120px;
  min-width: 100px;
}
.product-card .product-qty {
  flex: 1 1 120px;
  min-width: 120px;
}

@media (max-width: 640px) {
  .product-card .product-cart-controls {
    gap: 6px;
  }
  .product-card .product-cart-controls .btn-accent {
    padding: 7px 8px;
    font-size: 12px;
    min-width: 92px;
  }
  .product-card .product-qty {
    min-width: 110px;
  }
}
.product-qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #e6e9ee;
  border-radius: 8px;
  overflow: hidden;
}
.product-qty .btn {
  border: 0;
  border-radius: 0;
  min-width: 32px;
}
.product-qty .form-control {
  width: 54px;
  border: 0;
  border-left: 1px solid #e6e9ee;
  border-right: 1px solid #e6e9ee;
  text-align: center;
  box-shadow: none;
}
.product-qty .btn {
  background: #fff;
}
[data-theme="dark"] .product-qty {
  border-color: var(--site-border);
}
[data-theme="dark"] .product-qty .btn,
[data-theme="dark"] .product-qty .form-control {
  background: var(--site-surface);
  color: var(--site-ink);
}
[data-theme="dark"] .product-qty .btn {
  border-color: var(--site-border);
}
[data-theme="dark"] .product-qty .form-control {
  border-left-color: var(--site-border);
  border-right-color: var(--site-border);
}
.product-cart-controls .btn-accent {
  flex: 1;
}
.quick-view-actions .badge {
  background: var(--accent);
  color: #fff;
}
.quick-view-meta li {
  padding: 4px 0;
  border-bottom: 1px dashed #eef1f4;
}
.quick-view-meta li:last-child {
  border-bottom: 0;
}
@media (hover: none) {
  .product-actions,
  .product-cart-bar {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 576px) {
  .breadcrumb {
    padding: 0 12px;
  }
  .breadcrumb-item {
    font-size: 14px;
  }
}

.breadcrumb {
  color: var(--site-muted);
  --bs-breadcrumb-divider-color: var(--site-muted);
}
.breadcrumb .breadcrumb-item > a,
.breadcrumb .breadcrumb-item > a.text-decoration-none {
  color: var(--site-ink) !important;
}
.breadcrumb .breadcrumb-item > a:hover,
.breadcrumb .breadcrumb-item > a:focus {
  color: var(--site-ink) !important;
}
.breadcrumb .breadcrumb-item.active {
  color: var(--accent) !important;
}

.top-info-bar {
  background: var(--site-topbar-bg);
  border-bottom-color: rgba(255,255,255,.08) !important;
}
.site-header-sticky .top-info-bar .text-secondary {
  color: var(--site-topbar-ink) !important;
}
.site-header-sticky .top-info-bar .text-dark {
  color: var(--site-topbar-ink) !important;
  text-shadow: none;
}
.site-header-sticky .top-info-bar a,
.site-header-sticky .top-info-bar span {
  color: var(--site-topbar-ink) !important;
}
.site-header-sticky .top-info-bar .text-muted {
  color: rgba(255,255,255,.45) !important;
}
.top-info-bar .text-accent {
  color: var(--accent);
  text-shadow: none;
}

/* Sticky header + cart badge */
.site-header-sticky{
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--site-header-bg);
}
.site-header-sticky.bg-white{
  background: var(--site-header-bg) !important;
}

.site-header-sticky .text-dark {
  color: var(--site-header-ink) !important;
}
.site-header-sticky .text-secondary {
  color: var(--site-header-muted) !important;
}

footer{
  background: var(--site-footer-bg);
  color: var(--site-footer-ink);
  margin-top: 40px;
}
footer a{
  color: var(--site-footer-ink);
  text-decoration: none;
}
footer a:hover{
  color: #fff;
  text-decoration: underline;
}

.site-cart-badge{
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent-left);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(26,163,200,.25);
}

.site-cart-badge.is-pulse{
  animation: cartPulse 1.25s ease-in-out infinite;
}

@keyframes cartPulse{
  0%{ transform: scale(1); box-shadow: 0 0 0 0 rgba(26,163,200,.35); }
  70%{ transform: scale(1.05); box-shadow: 0 0 0 10px rgba(26,163,200,0); }
  100%{ transform: scale(1); box-shadow: 0 0 0 0 rgba(26,163,200,0); }
}
