:root {
  --accent: #d70f3f;
  --accent-left: #b90d36;
  --accent-right: #e01a3e;
  --site-bg: #f7f7f9;
  --site-surface: #ffffff;
  --site-surface-hover: #ffe3ea;
  --site-ink: #111111;
  --site-muted: #6c757d;
  --site-ink-muted: #6c757d;
  --site-border: #e6e9ee;
  --site-sidebar-bg: #151821;
  --site-sidebar-border: #ff1744;
  --site-sidebar-border-width: 3px;
  --site-sidebar-menu-hover-bg: #3a0d18;
  --site-sidebar-menu-active-bg: #d70f3f;
  --site-sidebar-menu-indicator: #ff5c7a;
  --site-header-bg: #fff5f7;
  --site-header-ink: #111111;
  --site-header-muted: #6c757d;
  --site-topbar-bg: #10131b;
  --site-topbar-ink: #ffffff;
  --site-footer-bg: #11141c;
  --site-footer-ink: rgba(255,255,255,.75);
  --site-menu-hover-bg: #ffe3ea;
  --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-ink-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);
  --site-menu-hover-bg: #121826;
}

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

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

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

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

.bg-white {
  background-color: var(--site-surface) !important;
}

.border,
.border-top,
.border-end,
.border-bottom,
.border-start {
  border-color: var(--site-border) !important;
}

a {
  color: var(--accent);
}

a:hover,
a:focus {
  color: var(--accent-right);
}

.form-control,
.form-select,
textarea.form-control {
  background-color: var(--site-surface);
  border-color: var(--site-border);
  color: var(--site-ink);
}

.form-control::placeholder,
textarea.form-control::placeholder {
  color: var(--site-muted);
  opacity: 1;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  background-color: var(--site-surface);
  border-color: var(--accent-right);
  color: var(--site-ink);
}

.form-control:disabled,
.form-control[readonly],
.form-select:disabled {
  background-color: var(--site-bg);
  border-color: var(--site-border);
  color: var(--site-muted);
  opacity: 1;
}

.form-select option,
.form-select optgroup {
  background: var(--site-surface);
  color: var(--site-ink);
}

.input-group-text {
  background-color: var(--site-bg);
  border-color: var(--site-border);
  color: var(--site-ink-muted);
}

.input-group .form-control,
.input-group .form-select,
.input-group .btn {
  border-color: var(--site-border);
}

.form-check-input {
  background-color: var(--site-surface);
  border-color: var(--site-border);
}

.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--site-ink);
  box-shadow: 0 0 0 1000px var(--site-surface) inset;
  caret-color: var(--site-ink);
}

.page-link {
  background-color: var(--site-surface);
  border-color: var(--site-border);
  color: var(--accent-left);
}

.btn-outline-secondary {
  color: var(--site-ink);
  border-color: var(--site-border);
  background: transparent;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active,
.btn-outline-secondary.active,
.show > .btn-outline-secondary.dropdown-toggle {
  color: var(--site-ink);
  border-color: var(--site-border);
  background: var(--site-surface-hover);
}

.dropdown-menu,
.list-group-item,
.accordion-item,
.accordion-button,
.modal-content {
  background-color: var(--site-surface);
  border-color: var(--site-border);
  color: var(--site-ink);
}

.accordion-button:not(.collapsed) {
  background-color: var(--site-surface-hover);
  color: var(--site-ink);
  box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--site-border);
}

.accordion-body,
.dropdown-item {
  color: var(--site-ink);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--site-surface-hover);
  color: var(--site-ink);
}

.table {
  --bs-table-bg: var(--site-surface);
  --bs-table-color: var(--site-ink);
  --bs-table-border-color: var(--site-border);
  --bs-table-striped-bg: var(--site-bg);
  --bs-table-striped-color: var(--site-ink);
  color: var(--site-ink);
  border-color: var(--site-border);
}

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

.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 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
}
.cart-page .cart-promo .form-control {
  font-size: 14px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.cart-page .cart-promo .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.cart-promo-state {
  min-height: 18px;
  color: var(--site-muted);
}
.cart-promo-state.is-success {
  color: var(--accent);
}
.cart-promo-state.is-error {
  color: #dc2626;
}
.cart-promo-breakdown {
  display: grid;
  gap: 8px;
  padding: 10px 0 2px;
  border-top: 1px solid var(--site-border);
  border-bottom: 1px solid var(--site-border);
}
.cart-promo-breakdown > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--site-muted);
  font-size: 14px;
}
.cart-promo-breakdown strong {
  color: var(--site-ink);
  font-weight: 800;
  text-align: right;
}
.cart-promo-breakdown > div:last-child {
  padding-top: 8px;
  border-top: 1px solid var(--site-border);
  color: var(--site-ink);
}
@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: var(--site-surface);
  color: var(--site-ink);
  border: 1px solid var(--site-border);
  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;
}

/* Theme-aware alerts */
.alert {
  border-radius: 12px;
  border-width: 1px;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--site-bg) 70%, transparent);
}

.alert-success {
  --bs-alert-color: color-mix(in srgb, #16a34a 76%, var(--site-ink));
  --bs-alert-bg: color-mix(in srgb, #16a34a 14%, var(--site-surface));
  --bs-alert-border-color: color-mix(in srgb, #16a34a 42%, var(--site-border));
}

.alert-danger {
  --bs-alert-color: color-mix(in srgb, #ef4444 78%, var(--site-ink));
  --bs-alert-bg: color-mix(in srgb, #ef4444 14%, var(--site-surface));
  --bs-alert-border-color: color-mix(in srgb, #ef4444 48%, var(--site-border));
}

.alert-warning {
  --bs-alert-color: color-mix(in srgb, #f59e0b 82%, var(--site-ink));
  --bs-alert-bg: color-mix(in srgb, #f59e0b 16%, var(--site-surface));
  --bs-alert-border-color: color-mix(in srgb, #f59e0b 48%, var(--site-border));
}

.alert-info {
  --bs-alert-color: color-mix(in srgb, var(--accent-right) 82%, var(--site-ink));
  --bs-alert-bg: color-mix(in srgb, var(--accent-right) 14%, var(--site-surface));
  --bs-alert-border-color: color-mix(in srgb, var(--accent-right) 42%, var(--site-border));
}

.alert-primary {
  --bs-alert-color: color-mix(in srgb, var(--accent) 82%, var(--site-ink));
  --bs-alert-bg: color-mix(in srgb, var(--accent) 15%, var(--site-surface));
  --bs-alert-border-color: color-mix(in srgb, var(--accent) 46%, var(--site-border));
}

.alert-light,
.alert-secondary {
  --bs-alert-color: var(--site-ink);
  --bs-alert-bg: color-mix(in srgb, var(--site-surface-hover) 54%, var(--site-surface));
  --bs-alert-border-color: color-mix(in srgb, var(--accent) 22%, var(--site-border));
}

.alert-dark {
  --bs-alert-color: var(--site-footer-ink);
  --bs-alert-bg: var(--site-footer-bg);
  --bs-alert-border-color: color-mix(in srgb, var(--accent) 34%, var(--site-border));
}

.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: var(--site-sidebar-border-width, 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);
}

.lead-captcha {
  display: grid;
  gap: 8px;
}

.lead-captcha-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--site-border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 12%, var(--site-surface));
}

.lead-captcha-value span {
  color: var(--site-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.lead-captcha-value strong {
  color: var(--site-ink);
  font-size: 24px;
  line-height: 1;
}

.lead-captcha .form-label {
  margin-bottom: 0;
}

.lead-captcha .form-range {
  margin: 0;
}
[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 .site-sidebar-logo {
  height: 36px;
  width: auto;
  max-width: 48px;
  object-fit: contain;
  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-title small {
  color: var(--accent);
  font-size: inherit;
  font-weight: inherit;
}
.site-sidebar-menu {
  flex: 1;
  min-height: 0;
  padding: 10px 12px 16px;
}
.site-main {
  flex: 1;
  min-width: 0;
  margin-left: 260px;
  background: var(--site-bg);
}
.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: var(--site-sidebar-menu-hover-bg);
  color: #fff;
  border-left-color: var(--site-sidebar-menu-indicator);
}
.site-sidebar .categories-item.is-active {
  background: var(--site-sidebar-menu-active-bg);
  color: #fff;
  border-left-color: var(--site-sidebar-menu-indicator);
}
.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;
}
.site-theme-canvas {
  width: min(380px, 100vw);
  background: var(--site-surface);
  color: var(--site-ink);
}
.site-theme-canvas .offcanvas-header {
  border-bottom: 1px solid var(--site-border);
}
.site-theme-section {
  display: grid;
  gap: 10px;
}
.site-theme-section + .site-theme-section {
  margin-top: 22px;
}
.site-theme-section-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--site-muted);
}

.custom-alert-close:hover,
.custom-alert-close:focus {
  color: var(--site-ink);
}
.site-theme-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.site-theme-mode,
.site-theme-preset {
  border: 1px solid var(--site-border);
  background: var(--site-surface-hover);
  color: var(--site-ink);
  border-radius: 8px;
}
.site-theme-mode {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
}
.site-theme-mode.is-active,
.site-theme-preset.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent);
}
.site-theme-preset-list {
  display: grid;
  gap: 8px;
}
.site-theme-preset {
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}
.site-theme-preset strong,
.site-theme-preset small {
  display: block;
}
.site-theme-preset small {
  margin-top: 2px;
  color: var(--site-muted);
  line-height: 1.25;
}
.site-theme-swatches {
  display: inline-flex;
  flex: 0 0 auto;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--site-border);
}
.site-theme-swatches i {
  width: 8px;
  height: 34px;
  display: block;
}
@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-menu-hover-bg);
  border-left-color: #0d6efd;
}
.categories-item.is-active {
  background: var(--site-menu-hover-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-subpanel-title a {
  color: var(--site-ink);
}
.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: 0;
  border: 1px solid var(--site-border);
  border-radius: 8px;
  background: var(--site-surface-hover);
}
.product-media.has-gallery {
  cursor: ew-resize;
}
.product-media a {
  display: block;
  padding: 0;
  box-sizing: border-box;
}
.product-card .card-img-top {
  width: 100%;
  display: block;
  height: 260px !important;
  max-height: 260px !important;
  padding: 0 !important;
  border: 0;
  border-radius: inherit;
  object-fit: cover !important;
  background: transparent;
}

.product-price,
.recent-price,
#quickViewPrice {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.product-price-current {
  font-weight: 700;
}

.product-price-old {
  color: var(--site-muted);
  font-weight: 500;
  text-decoration: line-through;
}

.product-price .product-price-old,
.recent-price .product-price-old,
.price-value .product-price-old,
#quickViewPrice .product-price-old {
  color: var(--site-muted);
  font-weight: 500;
  text-decoration-line: line-through;
  text-decoration-thickness: 1px;
}

.quick-view-media {
  position: relative;
}
.quick-view-media.has-gallery {
  cursor: ew-resize;
}
.quick-view-media-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .45);
}
.quick-view-media-dot {
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, .5);
  border-radius: 2px;
}
.quick-view-media-dot.is-active {
  background: #84cc16;
}
.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 var(--site-border);
  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);
}
.product-card .product-cart-bar,
.product-card .card-footer,
.product-card .card-footer.bg-white {
  background: transparent !important;
  border-top: 1px solid var(--site-border);
}

.contact-cta {
  background: var(--site-surface) !important;
  border-color: var(--site-border) !important;
  color: var(--site-ink);
}

.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"] .install-request-card {
  background: var(--site-surface) !important;
  border-color: var(--site-border) !important;
  color: var(--site-ink);
}
[data-theme="dark"] .install-request-card .fw-semibold {
  color: var(--site-ink);
}
[data-theme="dark"] .install-request-card .text-secondary,
[data-theme="dark"] .install-request-card .small,
[data-theme="dark"] .install-request-card .form-label {
  color: var(--site-muted) !important;
}
[data-theme="dark"] .install-request-card .form-control {
  background: #111827;
  border-color: var(--site-border);
  color: var(--site-ink);
}
[data-theme="dark"] .install-request-card .form-control::placeholder {
  color: var(--site-muted);
}
[data-theme="dark"] .install-request-card .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem rgba(195,12,46,.2);
}
[data-theme="dark"] .product-card:hover .product-cart-bar {
  background: transparent;
}
[data-theme="dark"] .product-card .text-dark {
  color: var(--site-ink) !important;
}
.product-card .badge {
  background: var(--accent);
  color: #fff;
}
.product-cart-controls {
  display: grid;
  grid-template-columns: 132px minmax(120px, 1fr);
  align-items: stretch;
  gap: 8px;
}
.product-card .product-cart-controls .btn-accent {
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.1;
  flex: none;
  min-width: 120px;
  width: 100%;
}
.product-card .product-qty {
  flex: 0 0 132px;
  width: 132px;
  min-width: 132px;
}
.product-cart-icon {
  display: none;
}

@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: 110px;
  }
}
.product-qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--site-border);
  border-radius: 8px;
  overflow: hidden;
}
.product-qty .btn {
  border: 0;
  border-radius: 0;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
}
.product-qty .form-control {
  width: 60px;
  min-width: 0;
  height: 36px;
  border: 0;
  border-left: 1px solid var(--site-border);
  border-right: 1px solid var(--site-border);
  text-align: center;
  box-shadow: none;
}
.product-qty .btn {
  background: var(--site-surface);
}
[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: none;
}

@media (max-width: 420px) {
  .product-card .product-cart-controls {
    grid-template-columns: 1fr;
  }

  .product-card .product-qty {
    width: 100%;
    min-width: 0;
  }

  .product-card .product-qty .form-control {
    flex: 1 1 auto;
    width: auto;
  }
}
.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-top-notice-col {
  min-width: 240px;
  max-width: none;
}
.top-info-bar--marquee {
  background: var(--site-notice-bg, var(--site-topbar-bg));
}
.top-info-bar--marquee .container {
  max-width: none;
  padding-right: 16px;
  padding-left: 16px;
}
.site-top-notice {
  --site-notice-bg: var(--site-topbar-bg);
  --site-notice-text: var(--site-topbar-ink);
  --site-notice-accent: var(--accent);
  --site-notice-speed: 18s;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 28px;
  padding: 3px 10px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--site-notice-accent) 38%, transparent);
  border-radius: 999px;
  background: var(--site-notice-bg);
  color: var(--site-notice-text) !important;
}
.top-info-bar--marquee .site-top-notice {
  border-radius: 6px;
}
.site-top-notice:hover,
.site-top-notice:focus-visible {
  color: var(--site-notice-text) !important;
  border-color: var(--site-notice-accent);
}
.site-top-notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--site-notice-accent) !important;
}
.site-top-notice-track {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.site-top-notice-track > span {
  display: inline-block;
  min-width: 100%;
  padding-left: 100%;
  color: var(--site-notice-text) !important;
  animation: site-notice-marquee var(--site-notice-speed) linear infinite;
}
.site-top-notice:hover .site-top-notice-track > span,
.site-top-notice:focus-visible .site-top-notice-track > span {
  animation-play-state: paused;
}
@keyframes site-notice-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-top-notice-track > span {
    padding-left: 0;
    animation: none;
  }
}
.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;
}
.site-header-sticky .top-info-bar .site-top-notice,
.site-header-sticky .top-info-bar .site-top-notice span {
  color: var(--site-notice-text) !important;
}
.site-header-sticky .top-info-bar .site-top-notice-icon {
  color: var(--site-notice-accent) !important;
}

/* 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,
footer.bg-dark{
  background: var(--site-footer-bg) !important;
  color: var(--site-footer-ink);
  margin-top: 40px;
}
footer a,
footer .text-light,
footer .text-secondary{
  color: var(--site-footer-ink) !important;
  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); }
}

/* Storefront layout presets */
.storefront-preset .site-theme-preset[data-storefront-layout-preset] > .bi {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  flex: 0 0 auto;
}

.storefront-mobile-nav {
  display: none;
}

@media (min-width: 992px) {
  .storefront-preset-boutique .site-sidebar {
    width: 228px;
  }
  .storefront-preset-boutique .site-main {
    margin-left: 228px;
  }
  .storefront-preset-boutique main.section,
  .storefront-preset-boutique main.catalog-page {
    max-width: 1280px;
  }
  .storefront-preset-boutique .product-card,
  .storefront-preset-boutique .recent-card,
  .storefront-preset-boutique .catalog-filter-card,
  .storefront-preset-boutique .card {
    border-radius: 18px;
  }
  .storefront-preset-boutique .product-card .card-img-top,
  .storefront-preset-boutique .product-media img {
    padding: 14px;
  }

  .storefront-preset-marketplace .site-sidebar {
    width: 236px;
  }
  .storefront-preset-marketplace .site-main {
    margin-left: 236px;
  }
  .storefront-preset-marketplace .section {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .storefront-preset-marketplace .catalog-products {
    --bs-gutter-x: .75rem;
    --bs-gutter-y: .75rem;
  }
  .storefront-preset-marketplace .catalog-products.is-grid-3 .catalog-product-item {
    width: 25%;
  }
  .storefront-preset-marketplace .product-card .card-body {
    padding: 12px;
  }
  .storefront-preset-marketplace .product-card img {
    height: 180px;
  }
  .storefront-preset-marketplace .catalog-filter-card {
    position: sticky;
    top: 86px;
  }
}

@media (max-width: 991.98px) {
  .storefront-preset-mobile_app {
    --mobile-bottom-nav-height: 72px;
  }
  .storefront-preset-mobile_app .site-main {
    padding-bottom: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  }
  .storefront-preset-mobile_app .site-header-sticky {
    top: 0;
    box-shadow: 0 10px 28px rgba(0,0,0,.16);
  }
  .storefront-preset-mobile_app .site-header-sticky .container.py-2 {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
  .storefront-preset-mobile_app .site-header-sticky .container.pb-3 {
    padding-bottom: 10px !important;
  }
  .storefront-preset-mobile_app .site-header-sticky .btn {
    min-width: 42px;
    min-height: 42px;
    border-radius: 14px;
  }
  .storefront-preset-mobile_app .section,
  .storefront-preset-mobile_app main.section,
  .storefront-preset-mobile_app main.catalog-page {
    padding-top: 14px;
    padding-bottom: 18px;
  }
  .storefront-preset-mobile_app main.container,
  .storefront-preset-mobile_app .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .storefront-preset-mobile_app h1,
  .storefront-preset-mobile_app .h3 {
    font-size: 24px;
    line-height: 1.15;
  }
  .storefront-preset-mobile_app .catalog-filter-card,
  .storefront-preset-mobile_app .filter-card {
    border-radius: 16px;
  }
  .storefront-preset-mobile_app .catalog-products {
    --bs-gutter-x: .75rem;
    --bs-gutter-y: .75rem;
  }
  .storefront-preset-mobile_app .catalog-products .catalog-product-item {
    width: 50%;
  }
  .storefront-preset-mobile_app .catalog-products.is-list .catalog-product-item {
    width: 100%;
  }
  .storefront-preset-mobile_app .product-card {
    min-height: 100%;
    border-radius: 16px;
    overflow: hidden;
  }
  .storefront-preset-mobile_app .product-card img,
  .storefront-preset-mobile_app .product-card .card-img-top {
    height: 170px;
    padding: 8px;
  }
  .storefront-preset-mobile_app .product-card .card-body {
    padding: 10px;
  }
  .storefront-preset-mobile_app .product-card .card-title {
    font-size: 14px;
    line-height: 1.25;
  }
  .storefront-preset-mobile_app .product-cart-controls {
    gap: 8px;
  }
  .storefront-preset-mobile_app .product-cart-controls .btn {
    min-height: 42px;
  }
  .storefront-preset-mobile_app .product-qty {
    min-height: 42px;
  }
  .storefront-preset-mobile_app .storefront-mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    min-height: var(--mobile-bottom-nav-height);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--site-border);
    background: color-mix(in srgb, var(--site-header-bg) 94%, transparent);
    box-shadow: 0 -14px 36px rgba(0,0,0,.2);
    backdrop-filter: blur(14px);
  }
  .storefront-preset-mobile_app .storefront-mobile-nav a,
  .storefront-preset-mobile_app .storefront-mobile-nav button {
    display: grid;
    place-items: center;
    gap: 3px;
    min-width: 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--site-header-ink);
    text-decoration: none;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
  }
  .storefront-preset-mobile_app .storefront-mobile-nav i {
    font-size: 18px;
    line-height: 1;
  }
  .storefront-preset-mobile_app .storefront-mobile-nav .is-active {
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    color: var(--accent);
  }
  .storefront-preset-mobile_app[data-storefront-preset="mobile_app"] .product-card [data-add-to-cart] {
    width: 100%;
  }
  .storefront-preset-mobile_app .product-card .product-cart-label {
    display: inline;
  }
  .storefront-preset-mobile_app .product-info {
    padding-bottom: 92px;
  }
  .storefront-preset-mobile_app .product-info .action-row {
    position: fixed;
    right: 0;
    bottom: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    left: 0;
    z-index: 1038;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--site-border);
    background: color-mix(in srgb, var(--site-surface) 96%, transparent);
    box-shadow: 0 -12px 28px rgba(0,0,0,.18);
    backdrop-filter: blur(14px);
  }
  .storefront-preset-mobile_app .product-info .action-row .btn {
    min-height: 46px;
    border-radius: 14px;
  }
  .storefront-preset-mobile_app .product-info .action-row > .btn-accent,
  .storefront-preset-mobile_app .product-info .action-row > .btn-icon[aria-label="Подробное описание"] {
    display: none;
  }
  .storefront-preset-mobile_app .product-info .action-row [data-add-to-cart] {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--accent-left), var(--accent-right));
    color: #fff;
    font-weight: 800;
  }
  .storefront-preset-mobile_app .product-info .action-row .product-qty {
    min-height: 46px;
  }
  .storefront-preset-mobile_app .product-info .action-row + .btn,
  .storefront-preset-mobile_app .product-info .action-row ~ .wishlist-button {
    margin-bottom: 8px;
  }
  .storefront-preset-mobile_app #cartCanvas,
  .storefront-preset-mobile_app #siteThemeCanvas,
  .storefront-preset-mobile_app #filtersCanvas {
    border-radius: 18px 18px 0 0;
  }
  .storefront-preset-mobile_app #cartCanvas.offcanvas-end,
  .storefront-preset-mobile_app #siteThemeCanvas.offcanvas-end,
  .storefront-preset-mobile_app #filtersCanvas.offcanvas-end {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 86vh;
    transform: translateY(100%);
  }
  .storefront-preset-mobile_app #cartCanvas.offcanvas-end.show,
  .storefront-preset-mobile_app #siteThemeCanvas.offcanvas-end.show,
  .storefront-preset-mobile_app #filtersCanvas.offcanvas-end.show {
    transform: none;
  }
}
