/* === 1. Root-перемінні === */
:root {
  --bg: #f8f9fa;
  --block: #fff;
  --block2: #f6f7fb;
  --text: #23272c;
  --text2: #23272c;
  --icon: #23272c;
  --accent: #ff8a00;
  --accent-dark: #e67600;
  --link: #23272c;
  --badge-wishlist: #e53935;
  --badge-cart: #43a047;
  --radius: 0.5rem;
  --radius-lg: 1rem;
  --shadow-main: 0 6px 24px rgba(50,50,60,.08);
  --shadow-small: 0 1px 4px rgba(40,40,50,.07);
  --transition-main: background 0.22s, color 0.18s, border 0.18s, box-shadow 0.18s;
  --input-height: 46px;
  --max-content-width: 880px;
  --icon-size: 1.5rem;
  --border: #d3d7de;
}
[data-theme="dark"] {
  --bg: #181b1e;
  --block: #23272c;
  --block2: #181b1e;
  --text: #f0f3f7;
  --text2: #23272c;
  --icon: #f0f3f7;
  --accent: #ff8a00;
  --accent-dark: #e67600;
  --link: #f0f3f7;
  --badge-wishlist: #e57373;
  --badge-cart: #aeea00;
  --border: #3a3f46;
}

.mw-logo .logo {
  display: none;
}

html[data-theme="light"] .mw-logo .logo-light {
  display: inline-block;
}

html[data-theme="dark"] .mw-logo .logo-dark {
  display: inline-block;
}

.mw-mobile-logo img{
  display:none;
}

html[data-theme="light"] .mw-mobile-logo .mw-logo-light{
  display:block;
}

html[data-theme="dark"] .mw-mobile-logo .mw-logo-dark{
  display:block;
}

a, .link {
  color: var(--link);
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, .link:hover {
  text-decoration: underline;
  color: var(--accent-dark);
}

a:focus, a:active, a:focus-visible,
.btn:focus, .btn:active, .btn:focus-visible,
.mw-link:focus, .mw-link:active, .mw-link:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.alert a {
  color: var(--text2);
  text-decoration: underline;
}
[data-theme="dark"] .alert a {
  color: var(--text2);
}

.mw-breadcrumb {
  background-color: inherit;
  padding: 20px 0;
  position: relative;
  z-index: 1
}

@media (max-width: 575px) {
  .mw-breadcrumb {
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    overflow-x: auto
  }
}

.mw-breadcrumb-item {
  font-size: 15px
}

@media (max-width: 575px) {
  .mw-breadcrumb-item {
    white-space: nowrap
  }
}

.mw-breadcrumb-item a {
  color: var(--text)
}

.mw-breadcrumb-item a:hover {
  text-decoration: none
}

.mw-breadcrumb-item:last-child {
  color: var(--bs-gray)
}

.mw-breadcrumb-item+.mw-breadcrumb-item::before {
  content: '>';
  font-weight: 100;
  padding-right: 6px;
  float: unset;
}

.pagination {
  display: inline-block;
  white-space: nowrap;
  padding: 0;
  clear: both;
  border-right: 0;
  margin: 1px
}

.pagination li {
  padding: 0;
  margin: 0;
  margin-left: 2px;
  float: left;
  display: inline-block;
  overflow: hidden
}

.pagination li.active span {
  color: #000;
  background-color: var(--accent)
}

.pagination li span {
  margin: 0;
  text-decoration: none;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 5px;
  display: block;
  position: relative
}

.pagination li a {
  color: var(--link);
  margin: 0;
  text-decoration: none;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 5px;
  display: block;
  position: relative
}

.pagination li a:hover {
  background-color: var(--accent-dark)
}

.modal-content {
  background: var(--bg) !important;
}

.mw-subcategories {
  flex-wrap: wrap;
}

@media (min-width:768px) and (max-width:1199.98px) {
  .mw-subcategories {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
}

.mw-subcategories-item {
  flex: 1 0 50%;
  max-width: 50%;
}

@media (max-width:767.98px) {
  .mw-subcategories-item .content-block {
    flex-direction: row !important;
  }
  .mw-subcategories-item img {
    width: 40px;
    height: 40px;
  }
}

@media (min-width:768px) {
  .mw-subcategories-item {
    flex: 1 0 15.1515%;
    max-width: 15.1515%;
    text-align: center;
  }
}

.mw-subcategories-item img {
  display: block;
  margin-right: .5rem;
  border-radius: .125rem;
}

@media (min-width:768px) {
  .mw-subcategories-item img {
    margin: 0 auto .25rem;
  }
}

.mw-subcategories-item:hover span {
  text-decoration: underline;
  color: var(--mw-links-color);
}

.mw-subcategories-title {
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (min-width:992px) {
  .mw-subcategories-item {
    flex: 1 0 11.3636%;
    max-width: 11.3636%;
  }
}

@media (min-width:1200px) {
  .mw-subcategories-item {
    flex: 1 0 12.5%;
    max-width: 12.5%;
  }
}


/* === 2. Reset & базові системні стилі === */
*, *:before, *:after {
  box-sizing: border-box;
}

/* === 3. Сітка та контейнери === */
.mw-container {
  width: 100%;
  max-width: 100vw;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 1400px)   { .mw-container { max-width: 1680px; } }
@media (min-width: 1920px)   { .mw-container { max-width: 1920px; } }
@media (min-width: 2400px)   { .mw-container { max-width: 2300px; } }
@media (min-width: 1400px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl, .mw-container {
    max-width: 1680px;
  }
}
@media (min-width: 1920px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl, .mw-container {
    max-width: 1920px;
  }
}
@media (min-width: 2400px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl, .mw-container {
    max-width: 2300px;
  }
}

/* === 4. Системний скролбар === */
::-webkit-scrollbar {
  width: 9px;
  background: var(--block2);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* === 5. Ютиліти, тіні, радіус, spacing === */
.mw-shadow { box-shadow: var(--shadow-main); }
.mw-shadow-small { box-shadow: var(--shadow-small); }
.mw-radius { border-radius: var(--radius); }
.mw-radius-lg { border-radius: var(--radius-lg); }
.mw-mb-0 { margin-bottom: 0 !important; }
.mw-mb-1 { margin-bottom: .5rem !important; }
.mw-mt-1 { margin-top: .5rem !important; }
.mw-px-2 { padding-left: 1rem !important; padding-right: 1rem !important; }

/* === 6. Типографіка === */
body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: "Open Sans", Arial, sans-serif;
  transition: background 0.3s, color 0.3s;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  font-weight: 700;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: .7em;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.44rem; }
h4 { font-size: 1.22rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p, ul, ol {
  font-size: 1em;
  margin-bottom: 1.1em;
  color: var(--text);
  max-width: var(--max-content-width);
}

/* === 7. Table-стилі === */
[data-theme="dark"] .table {
  color: var(--text);
}
.table th, .table td {
  border-color: #e3e6eb !important;
}
.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: var(--block2);
}
.table-hover > tbody > tr:hover {
  background-color: var(--accent, #fffde7);
}

/* === 8. Links & focus === */
a {
  transition: color 0.18s;
  text-decoration: none;
}
a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.mw-link, .navbar-light .navbar-nav .nav-link, .navbar .navbar-nav .nav-link, .nav-link {
  color: var(--link) !important;
  transition: color 0.3s;
}
.mw-link:hover, .navbar-light .navbar-nav .nav-link:hover, .navbar .navbar-nav .nav-link:hover, .nav-link:hover {
  color: var(--accent-dark) !important;
}
.navbar-light .navbar-nav .nav-link.active,
.navbar .navbar-nav .nav-link.active,
.nav-link.active {
  color: var(--accent-dark) !important;
  font-weight: 600;
}

/* === 9. Layout-базові (header, input, fade) === */
header, .mw-header, .mw-topbar, .mw-navbar, .bg-body, .bg-white {
  background: var(--block) !important;
  color: var(--text) !important;
  transition: background 0.3s, color 0.3s;
}
input, .form-control, select, textarea {
  background: var(--block2);
  color: var(--text);
  border-radius: var(--radius);
  border: 1px solid #d3d7de;
  box-shadow: none;
  transition: var(--transition-main);
}
input:focus, .form-control:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 2px var(--accent, #ffc10733);
}
input[disabled], .form-control[disabled], select[disabled], textarea[disabled] {
  opacity: 0.6;
  background: #e8eaee;
}
.mw-fade-in {
  animation: mw-fadein .25s cubic-bezier(.19,1,.22,1) both;
}
@keyframes mw-fadein {
  0% { opacity: 0; transform: translateY(10px);}
  100% { opacity: 1; transform: translateY(0);}
}

/* ==== GLOBAL SELECT FIX (light + dark theme) ==== */

/* Світла тема — нічого не ламаємо */
select,
select.form-control {
  background-color: var(--block2);
  color: var(--text);
  border-color: var(--border);
}

/* Темна тема */
[data-theme="dark"] select,
[data-theme="dark"] select.form-control {
  background-color: #1f1f1f !important;
  color: #f0f0f0 !important;
  border-color: #3a3f46 !important;
}

/* Select2 wrapper */
[data-theme="dark"] .select2-container--default .select2-selection--single {
  background-color: #1f1f1f !important;
  border-color: #3a3f46 !important;
  color: #f0f0f0 !important;
}

/* Select2 text */
[data-theme="dark"] .select2-selection__rendered {
  color: #f0f0f0 !important;
}

/* Select2 dropdown */
[data-theme="dark"] .select2-dropdown {
  background-color: #1f1f1f !important;
  border-color: #3a3f46 !important;
  color: #f0f0f0 !important;
}

/* Hover */
[data-theme="dark"] .select2-results__option--highlighted {
  background-color: #333 !important;
  color: #fff !important;
}

/* === 10. Кастомні кнопки === */
.mw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 1rem;
  border: none;
  border-radius: 0.4rem;
  padding: 0.45rem 1.1rem;
  transition: background 0.18s, color 0.18s, border 0.18s;
  cursor: pointer;
  background: var(--block);
  color: var(--text);
  min-height: 38px;
  height: auto;
}
.mw-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-main);
}
.mw-btn:focus, .mw-btn:active { outline: none; }

.mw-btn-primary {
  background: var(--accent);
  color: var(--text2);
  border: 1px solid var(--accent-dark);
}
.mw-btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}
.mw-btn[disabled],
.mw-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(60%);
  background: var(--block2);
  color: #999 !important;
  border-color: #ccc !important;
  box-shadow: none;
  pointer-events: none;
  transition: var(--transition-main);
}

.mw-btn-primary[disabled],
.mw-btn-primary:disabled {
  background: #e0e0e0 !important;
  color: #777 !important;
  border: 1px solid #ccc !important;
}

[data-theme="dark"] .mw-btn-primary[disabled],
[data-theme="dark"] .mw-btn-primary:disabled {
  background: #2c2c2c !important;
  color: #777 !important;
  border-color: #444 !important;
}
.mw-btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.mw-btn-outline:hover {
  background: var(--accent);
  color: var(--text2);
}
.mw-btn-warning {
  background: #ffe082;
  color: var(--text2);
  border: 1px solid #ffd54f;
}
.mw-btn-warning:hover {
  background: #ffd600;
  color: var(--text2);
}
.mw-btn-icon {
  background: transparent;
  border: none;
  color: var(--icon);
  padding: 0.45rem;
  font-size: 1.5rem;
}
.mw-btn:focus-visible, .mw-link:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
}
.mw-copy-btn {
  margin-left: 4px;
  font-size: 1em;
  color: var(--accent-dark);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  vertical-align: middle;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.mw-copy-btn:hover {
  color: var(--accent);
}
.mw-copy-target {
  cursor: pointer;
}
.mw-copy-target.copied {
  color: var(--accent-dark);
  transition: color 0.3s;
}
.mw-copy-btn .ph {
  font-size: 1em!important;
  vertical-align: middle;
  line-height: 1;
  position: relative;
  top: -1px;
}

/* === Toast Notification (MW) === */
.mw-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: var(--accent-dark, #333);
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  font-size: 0.95rem;
  line-height: 1.35;
  transition:
      opacity 0.32s cubic-bezier(0.19,1,0.22,1),
      transform 0.32s cubic-bezier(0.19,1,0.22,1);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 90%;
  text-align: center;
}

.mw-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.mw-toast a {
  color: #fff;
  text-decoration: underline;
}
.mw-toast a:hover {
  color: var(--accent, #ffcd00);
}

/* Модифікація під типи */
.mw-toast-success {
  background: #28a745;
}
.mw-toast-danger {
  background: #dc3545;
}
.mw-toast-warning {
  background: #ffc107;
  color: #000;
}
.mw-toast-info {
  background: #17a2b8;
}

/* Іконки (phosphor) */
.mw-toast i {
  font-size: 1.2rem;
}

/* === Cart Icon Pulse Animation === */
.ph-shopping-cart.pulse {
  animation: cartPulse 0.6s ease;
}
@keyframes cartPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* === 11. Navbar/Menu/Dropdown === */
.mw-navbar, .bg-body-tertiary {
  background: var(--block2) !important;
}
.dropdown-menu {
  background: var(--block);
  color: var(--text);
  border-radius: 0.5rem;
  min-width: 180px;
  box-shadow: 0 6px 24px rgba(50,50,60,0.08);
}
.dropdown-item {
  color: var(--text);
  transition: background 0.2s;
}
.dropdown-item:hover, .dropdown-item:focus {
  background: var(--accent);
  color: var(--text2);
}
.navbar-toggler, .mw-btn-outline {
  border: none;
  background: var(--block2);
  color: var(--icon);
}

/* === 12. Badge styles === */
.badge.bg-danger { background: var(--badge-wishlist) !important; }
.badge.bg-success { background: var(--badge-cart) !important; }
.badge.bg-danger, .badge.bg-success {
  font-size: 0.55em;
  padding: 0.3em 0.3em;
  width: 20px;
  height: 20px;
  transform: translate(-100%, 0%) !important;
}

/* === 13. Theme Switcher === */
#theme-toggle { cursor: pointer; transition: background 0.18s; }
#theme-toggle:hover { background: var(--block2); }

/* === 14. SVG та іконки === */
.ph, .icon {
  font-size: var(--icon-size);
  transition: color 0.16s;
  vertical-align: middle;
}
.mw-btn-icon .ph { font-size: 1.5em; }

/* === 15. Footer === */
.mw-footer {
  background: var(--block2);
  color: var(--text);
  font-size: 1rem;
  margin-top: 3rem;
  transition: background 0.3s, color 0.3s;
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
}
.mw-footer .mw-footer-logo img {
  max-width: 150px;
  height: auto;
}
.mw-footer h6,
.mw-footer .fw-bold {
  color: var(--text);
  font-size: 1.08rem;
  margin-bottom: 1.1rem;
  letter-spacing: .01em;
}
.mw-footer ul,
.mw-footer .list-unstyled {
  margin-bottom: 0.7rem;
}
.mw-footer .mw-footer-link,
.mw-footer a.footer-link {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 400;
}
.mw-footer .mw-footer-link:hover,
.mw-footer a.footer-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}
.mw-footer .mw-footer-contacts i.ph {
  color: var(--accent-dark);
  font-size: 1.16rem;
  vertical-align: middle;
  margin-right: .45em;
}
.mw-footer .mw-footer-social a {
  color: var(--icon);
  margin-right: 0.25rem;
  opacity: 0.85;
  transition: color 0.18s, opacity 0.2s;
}
.mw-footer .mw-footer-social a:hover {
  color: var(--accent-dark);
  opacity: 1;
}
.mw-footer .mw-footer-payinfo {
  margin-top: 1rem;
  font-size: .95em;
  color: #8b949e;
}
.mw-footer .mw-footer-payinfo i.ph {
  font-size: 1.13em;
  color: var(--accent-dark);
}
.mw-footer .mw-footer-newsletter input.form-control {
  border-radius: 0.4rem 0 0 0.4rem;
  border: 1px solid #d3d7de;
  background: var(--block);
  color: var(--text);
  font-size: .98rem;
}
.mw-footer .mw-footer-newsletter .input-group .btn {
  border-radius: 0 0.4rem 0.4rem 0;
  background: var(--accent);
  color: var(--text2);
  border: 1px solid var(--accent-dark);
  font-size: 1.08em;
}
.mw-footer .mw-footer-newsletter .input-group .btn:hover {
  background: var(--accent-dark);
  color: #fff;
}
.mw-footer .mw-footer-newsletter .small {
  color: #8b949e;
}
.mw-footer hr {
  border-top: 1px solid #e3e6eb;
  opacity: .7;
  margin: 1.5rem 0 1.2rem 0;
}
.mw-footer .mw-footer-bottom {
  font-size: .94em;
  color: #8b949e;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.mw-footer .mw-footer-bottom a.footer-link {
  color: var(--link);
  font-weight: 500;
}
.mw-footer .mw-footer-bottom a.footer-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* === 16. Адаптив для футера === */
@media (max-width: 991px) {
  .mw-footer .text-end {
    text-align: left !important;
    margin-top: 1rem;
  }
  .mw-footer {
    padding-top: 1.2rem;
    padding-bottom: 1rem;
  }
}
@media (max-width: 575px) {
  .mw-footer .row {
    gap: 1.2rem 0;
  }
  .mw-footer {
    font-size: .97rem;
    padding-top: 1.1rem;
    padding-bottom: .7rem;
  }
}

/* ===== 17. Каталог Меню (Rozetka Style) ===== */
.menu-row {
  display: none;
  height: 50px;
  background-color: #464646;
  color: #eef2f5;
  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  -o-box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  box-shadow: 0 10px 15px rgba(0, 0, 0, .2);
}

#menu-box {
  display: none;
  position: relative;
  z-index: 9;
}

.menu-box-heading {
  background-color: var(--accent);
  color: var(--text2);
  height: 50px;
  line-height: 50px;
  font-size: 17px;
  padding: 0 10px;
  -webkit-transition: all 100ms linear;
  -moz-transition: all 100ms linear;
  -ms-transition: all 100ms linear;
  -o-transition: all 100ms linear;
  transition: all 100ms linear;
  z-index: 3;
  position: relative;
  display: block;
}

.menu-box-content.am {
  position: absolute;
  width: 100%;
  padding: 0;
  z-index: 10;
  -webkit-transition: all 100ms linear;
  -moz-transition: all 100ms linear;
  -ms-transition: all 100ms linear;
  -o-transition: all 100ms linear;
  transition: all 100ms linear;
}

.icorightmenu {
  float: right;
  font-size: 9px;
}

.icorightmenu .ph {
  margin-top: 21px;
  display: block;
  font-size: 9px;
  padding-right: 0 !important;
}

#menu {
  display: none;
  cursor: default;
  background: #fff;
  padding: 12px 0;
}

#menu:before {
  border-color: transparent transparent #fff;
  border-style: solid;
  border-width: 0 6px 7px;
  top: -7px;
  content: "";
  height: 0;
  left: 9px;
  position: absolute;
  width: 0;
  z-index: 4;
}

[class^=ul_block] {
  padding: 0;
  width: 100%;
  float: left;
}

[class^=ul_block] ul {
  margin: 0;
  padding: 0;
  width: 100%;
  float: left;
  list-style: none;
}

#menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-table;
  z-index: 2;
}

#menu ul li {
  z-index: 20;
  text-align: left;
}

#menu li.glavli {
  width: initial;
  list-style: none;
  margin: 2px 10px 10px 10px;
  padding-top: 2px;
}

#menu li.glavli:last-child {
  border-bottom: none;
}

#menu li.glavli a {
  font-size: 15px;
  color: #333;
  display: inline-block;
  line-height: 16px;
  height: 16px;
  padding: 0px 0px 0px 5px;
  margin: 1px 0px 1px 0px;
  text-decoration: none;
}

.child-box {
  display: flex;
  position: relative;
  background-color: #fff;
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
  box-shadow: 1px 1px 10px -1px rgba(0, 0, 0, 0.2);
  padding: 15px 14px;
  overflow: hidden;
}

.catalog_list .mw-category-level_1>.title a {
  font-size: 15px;
  color: #333;
  text-decoration: none;
  display: block;
  height: initial;
  line-height: 18px;
  padding: 6px 10px 6px 10px;
  z-index: 6;
  position: relative;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}

.catalog_list .mw-category-level_1>.title a span.arrow-btn {
  font-size: 14px;
  position: absolute;
  right: 10px;
}

.catalog_list .mw-category-level_1.open>.title a:hover {
  color: #dd4b39;
}

.catalog_list .mw-category-level_1.open>.title a {
  background: #f6f7f9;
  z-index: 11;
  border-bottom: 1px solid #f6f7f9;
  border-top: 1px solid #f6f7f9;
}

.catalog_list .mw-category-level_1.open>.title.with-child a {
  background: linear-gradient(to right, #f6f7f9 75%, #fff 100%);
  border-bottom: 1px solid #eeeeee;
  border-top: 1px solid #eeeeee;
}

.catalog_list .mw-category-level_1.open>.title a span.arrow-btn {
  display: none;
}

.catalog_list_popup {
  height: 100%;
}

.catalog_list_popup .mw-category-level_1>.title {
  line-height: 16px;
  position: relative;
}

.catalog_list_popup .mw-category-level_1 .childrenList {
  position: absolute;
  left: 100%;
  margin-left: -1px;
  width: 100px;
  top: 0;
  z-index: 10;
}

.childrenList {
  display: block;
}

.closed .childrenList {
  border-bottom: 0 none;
  display: block;
  visibility: hidden;
  position: absolute;
}

#menu li.glavli a:hover {
  background: none;
  color: #dd4b39;
  text-decoration: underline;
}

#menu li.glavli a:hover>.am_category_image {
  opacity: 0.9;
}

#menu a:hover {
  color: #dd4b39;
}

#menu li.glavli ul .ph {
  font-size: 5px;
  vertical-align: middle;
  position: relative;
  padding-right: 5px;
}

#menu li.glavli .am_category_icon.ph {
  margin-right: 3px;
  margin-top: 0px;
  width: initial;
  text-align: center;
}

#menu i.ph.none {
  display: none;
}

#menu>ul>li>a.active {
  background: #000;
}

#menu>ul>li ul>li ul {
  background: #fff;
}

#menu>ul>li ul>li ul>li>a {
  color: #333;
  height: 20px;
  font-size: 17px;
  line-height: 20px;
}

#menu>ul>li ul>li ul>li>a:hover {
  text-decoration: underline;
  background: none;
  color: #333;
}

#menu-box:hover #menu {
  display: block;
}

#menu-box:hover {
  cursor: pointer;
}

#menu-box:hover .menu-box-heading,
#menu-box .menu-box-heading:hover {
  box-shadow: inset 0px 0px 50px rgba(255, 255, 255, 0.25);
  -webkit-transition: all 100ms linear;
  -moz-transition: all 100ms linear;
  -ms-transition: all 100ms linear;
  -o-transition: all 100ms linear;
  transition: all 100ms linear;
}

@media (min-width: 992px) {
  .menu-row {
    display: block;
  }

  #menu-box {
    display: block;
  }

  .box-col-1 {
    width: 239%;
  }

  .box-col-2 {
    width: 449%;
  }

  .box-col-3 {
    width: 659.1%;
  }

  .box-col-4 {
    width: 725%;
  }
}

@media (min-width: 1200px) {
  .box-col-1 {
    width: 312%;
  }

  .box-col-2 {
    width: 595%;
  }

  .box-col-3 {
    width: 879%;
  }

  .box-col-4 {
    width: 879%;
  }
}

@media (max-width: 767px) {
  #menu {
    border-radius: 4px;
  }
}

/* ===== 18. Каталог товарів ===== */
.product-thumb .image {
  position: relative;
  min-height: 220px;
  background: var(--block2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-thumb .image .mw-btn-outline {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--block2);
  border: 1px solid var(--accent);
}
.product-thumb .image .mw-btn-outline:hover {
  background: var(--accent);
  color: var(--text2);
}
.product-thumb .price-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.6rem;
}
.product-thumb .price {
  margin: 0;
  font-weight: 600;
  font-size: 1.45rem;
}
.product-thumb .price-old {
  text-decoration: line-through;
  color: #999;
  margin-left: 0.4rem;
  font-size: 0.95rem;
}
.caption {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.caption .price {
  margin-top: auto;
}
@media (max-width: 1024px) {
  .product-thumb .price {
	font-size: 1.05rem;
  }
}

/* ===== 18.1 Product List View ===== */
.product-list {
  margin-bottom: 10px;
}
.product-list .product-thumb {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1rem;
  transition: background 0.2s, box-shadow 0.2s;
}
.product-list .product-thumb:hover {
  background: var(--block2);
  box-shadow: var(--shadow-main);
  transform: none;
}
.product-list .product-thumb .image {
  flex: 0 0 220px;
  position: relative;
}
.product-list .product-thumb .image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: contain;
}
@media (max-width: 767.98px) {
  .product-list .product-thumb {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .product-list .product-thumb .image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 280px;
  }
}
.product-list .caption {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 0.5rem;
}
.product-list .caption h4 a {
  font-size: 1.15rem;
  color: var(--text);
}
.product-list .caption p {
  color: #555;
  margin-bottom: 0.8rem;
  max-width: 100%;
}
.product-list .price-buy {
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
}
.product-list .price {
  font-size: 1.3rem;
  margin: 0;
}
.product-list .price-old {
  margin-left: 0.4rem;
  text-decoration: line-through;
  color: #999;
}
.product-list .mw-btn-primary {
  flex-shrink: 0;
}
.product-list .image .mw-btn-outline {
  top: 0.5rem;
  right: 0.5rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
}
@media (max-width: 992px) {
  .product-list .price-buy {
    flex-direction: column;
    align-items: flex-start;
  }
  .product-list .mw-btn-primary {
    width: 100%;
  }
}

/* === 18.2 Product Toolbar === */
.mw-toolbar {
  background: var(--block);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.mw-toolbar-btn {
  flex: 1;
  border: 1px solid var(--accent);
  color: var(--accent-dark);
  background: var(--block2);
  transition: all 0.18s ease;
}
.mw-toolbar-btn.active,
.mw-toolbar-btn:hover {
  background: var(--accent);
  color: var(--text2);
}

.mw-toolbar-label {
  background: var(--block2);
  color: var(--text);
  border-color: var(--border, #d3d7de);
  font-weight: 600;
}

.mw-toolbar-select {
  background: var(--block);
  border: 1px solid var(--border, #d3d7de);
  color: var(--text);
  font-weight: 500;
  transition: var(--transition-main);
}
.mw-toolbar-select:hover,
.mw-toolbar-select:focus {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 2px var(--accent, #ffc10733);
}
#grid-view.active i,
#list-view.active i {
  color: #23272c !important;
}
@media (max-width: 767.98px) {
  .mw-toolbar {
    border-radius: var(--radius);
    flex-direction: column;
    gap: 0.75rem;
  }
  .mw-toolbar .input-group {
    width: 100%;
  }
  .mw-toolbar-btn {
    width: 50%;
  }
}

/* ===== 19. Товар ===== */
.product-gallery-block {
  margin-bottom: 2rem;
}
.main-image {
  width: 100%;
  border-radius: var(--radius-lg, 1rem);
  overflow: hidden;
  background: var(--block2, #f6f7fb);
  text-align: center;
  margin-bottom: 1rem;
}
.main-image img {
  width: 100%;
  object-fit: contain;
  background: var(--block2, #f6f7fb);
  display: block;
}
.thumbs-row {
  display: flex;
  flex-direction: row;
  gap: .5rem;
  padding-bottom: 0.5rem;
  overflow-x: auto;
}
.thumb-item {
  border-radius: var(--radius, 0.5rem);
  border: 2px solid transparent;
  display: inline-block;
  transition: border-color .18s;
  background: var(--block2, #f6f7fb);
}
.thumb-item.active,
.thumb-item:hover {
  border-color: var(--accent, #ffc107);
}
.thumb-item img {
  display: block;
  max-width: 64px;
  max-height: 64px;
  object-fit: cover;
  border-radius: var(--radius, 0.5rem);
}
.product-thumb {
  position: relative;
  background: var(--block);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
  padding: 0.8rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-thumb:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-main);
}

/* === Topbar Icons / Wishlist / Cart / Account === */
.mw-topbar-actions a {
  text-decoration: none !important;
}
.mw-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.4rem;
  border-radius: 0.4rem;
  background: var(--block2);
  color: var(--icon);
  border: 1px solid var(--border);
  transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
}
.mw-icon-btn:hover {
  background: var(--accent);
  color: var(--text2);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}
.mw-icon-btn:active {
  transform: scale(0.97);
}
.mw-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  font-size: 0.68em;
  line-height: 18px;
  font-weight: 600;
  text-align: center;
  border-radius: 0.4rem;
  background: var(--accent-dark);
  color: var(--text2);
  box-shadow: 0 0 0 2px var(--block);
}
.mw-request-btn {
  border-radius: 0.4rem;
  border: 1px solid var(--accent-dark);
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}
.mw-request-btn:hover {
  background: var(--accent-dark);
  color: #fff !important;
}
[data-theme="dark"] .mw-icon-btn {
  background: var(--block);
  border-color: var(--border);
}
[data-theme="dark"] .mw-icon-btn:hover {
  background: var(--accent-dark);
  color: var(--text2);
}
[data-theme="dark"] .mw-badge {
  background: var(--accent);
  color: var(--text2);
  box-shadow: 0 0 0 2px var(--block);
}
@media (max-width: 767.98px) {
  .mw-icon-btn {
    width: 2.6rem;
    height: 2.2rem;
  }
  .mw-request-btn {
    display: none !important;
  }
}

/* === Magnific Popup Fade Animation === */
.mfp-fade.mfp-bg {
  opacity: 0;
  transition: all 0.25s ease-out;
}
.mfp-fade.mfp-bg.mfp-ready {
  opacity: 0.8;
}
.mfp-fade.mfp-bg.mfp-removing {
  opacity: 0;
}

.mfp-fade.mfp-wrap .mfp-content {
  opacity: 0;
  transform: translateY(-12px);
  transition: all 0.25s ease-out;
}
.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
  opacity: 1;
  transform: translateY(0);
}
.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
  opacity: 0;
  transform: translateY(-12px);
}

/* === Popup Base === */
.mw-popup {
  background: var(--block);
  color: var(--text);
  width: 100%;
  max-width: 520px;
  padding: 25px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-main);
  position: relative;
  margin: 0 auto;
  transition: var(--transition-main);
}

.mw-popup-inner {
  width: 100%;
}

.mw-popup-title {
  font-size: 22px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 700;
  color: var(--text);
}

/* === Form === */
.mw-popup .form-group {
  margin-bottom: 16px;
}

.mw-popup .form-control {
  font-size: 15px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
  background: var(--block2);
  color: var(--text);
  transition: var(--transition-main);
}

.mw-popup .form-control:focus {
  border-color: var(--accent-dark);
  background: var(--block);
  box-shadow: 0 0 0 2px var(--accent, #ffc10733);
}

/* === Submit Button === */
.mw-popup .mw-btn-primary {
  font-size: 16px;
  padding: 12px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  width: 100%;
  display: block;
  background: var(--accent);
  color: var(--text2);
  border: 1px solid var(--accent-dark);
  transition: var(--transition-main);
}

.mw-popup .mw-btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

/* === Close button override === */
.mfp-close {
  color: var(--text) !important;
  transition: opacity 0.2s ease;
}

.mfp-close:hover {
  opacity: 1 !important;
}

/* === Tiny Slider — universal === */
.mw-slider-wrapper .tns-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mw-slider-wrapper .tns-controls [data-controls] {
    width: 42px;
    height: 42px;
    border-radius: 0.5rem;
    background: var(--block2);
    border: 1px solid var(--border);
    color: var(--icon);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}

.mw-slider-wrapper .tns-controls [data-controls]:hover,
.mw-slider-wrapper .tns-controls [data-controls]:focus-visible {
    background: var(--accent);
    border-color: var(--accent-dark);
    color: var(--text2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-small);
}

.mw-slider-wrapper .tns-controls [data-controls]:active {
    transform: scale(.92);
}

[data-theme="dark"] .mw-slider-wrapper .tns-controls [data-controls] {
    background: var(--block);
    border-color: var(--border);
    color: var(--icon);
}

[data-theme="dark"] .mw-slider-wrapper .tns-controls [data-controls]:hover {
    background: var(--accent-dark);
    color: var(--text2);
    border-color: var(--accent);
}

/* === Hero Slideshow ONLY === */
.mw-hero-slider {
    position: relative;
}

.tns-outer {
    position: relative;
}

.mw-hero-slider + .tns-controls,
.tns-outer:has(.mw-hero-slider) .tns-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    pointer-events: none;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 5;
}

.tns-outer:has(.mw-hero-slider) .tns-controls [data-controls] {
    pointer-events: auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0,0,0,0.35);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    backdrop-filter: blur(4px);
    transition: background .2s, transform .2s;
}

.tns-outer:has(.mw-hero-slider) .tns-controls [data-controls]:hover {
    background: rgba(0,0,0,0.55);
    transform: scale(1.05);
}

.tns-outer:has(.mw-hero-slider) .tns-liveregion,
.tns-outer:has(.mw-hero-slider) .tns-nav {
    margin-top: 10px;
    text-align: center;
}

.mw-account-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
    margin: 6px 0 16px;
    max-width: var(--max-content-width);
  }
  .mw-account-title h2{
    margin:0;
  }
  .mw-account-sub{
    margin-top:6px;
    font-size:.95rem;
    opacity:.75;
    color: var(--text);
  }

  .mw-account-logout{
    display:inline-flex;
    align-items:center;
    gap:10px;
    white-space:nowrap;
    border-radius: var(--radius);
    padding: .5rem .95rem;
  }

  .mw-account-grid{
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: var(--max-content-width);
  }

  .mw-account-card{
    display:flex;
    align-items:center;
    gap:12px;
    padding: 14px 14px;
    background: var(--block);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-small);
    transition: var(--transition-main), transform .18s ease;
    text-decoration:none !important;
    color: var(--text) !important;
    min-height: 86px;
  }
  .mw-account-card:hover{
    background: var(--block2);
    border-color: var(--accent-dark);
    box-shadow: var(--shadow-main);
    transform: translateY(-2px);
    text-decoration:none !important;
  }
  .mw-account-card:active{
    transform: translateY(0);
  }

  .mw-account-card-ico{
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius: 12px;
    background: var(--block2);
    border: 1px solid var(--border);
    color: var(--icon);
  }
  .mw-account-card-ico .ph{
    font-size: 1.6rem;
  }

  .mw-account-card-body{
    min-width: 0;
    flex: 1;
  }
  .mw-account-card-title{
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 4px;
  }
  .mw-account-card-desc{
    font-size: .92rem;
    opacity: .78;
    line-height: 1.25;
  }

  .mw-account-card-arrow{
    flex: 0 0 auto;
    opacity: .55;
    color: var(--icon);
  }
  .mw-account-card:hover .mw-account-card-arrow{
    opacity: 1;
    color: var(--accent-dark);
  }

  @media (max-width: 991px){
    .mw-account-grid{
      grid-template-columns: 1fr;
    }
    .mw-account-header{
      flex-direction:column;
      align-items:stretch;
    }
    .mw-account-logout{
      width:100%;
      justify-content:center;
    }
  }