@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("user/fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("user/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --bg: #ffffff;
  --sec-bg: #f5f5f7;
  --card-bg: #ffffff;
  --text: #1d1d1f;
  --text-sec: #5f6368;
  --accent-black: #000000;
  --accent-gray: #8e8e93; 
  --border: #e8e8ed;
  --card-base-height: 460px;

  /* Glassmorphism Variables */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  --blur-amount: 20px;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body { 
  font-family: 'Montserrat', sans-serif; 
  background: var(--bg); 
  color: var(--text); 
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* Predictable vector arrows: text glyphs render differently across desktop/mobile fonts. */
.ui-arrow-icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  vertical-align: middle;
  overflow: visible;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1400px; 
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* =========================================
   2. ШАПКА ТА НАВІГАЦІЯ
   ========================================= */
.utility-bar {
  height: 44px; background: #000; color: #fff; display: flex; align-items: center;
  font-size: 11px; font-weight: 500; letter-spacing: 0.05em; position: relative; z-index: 1001;
}
.utility-bar .container { display: flex; justify-content: space-between; align-items: center; }
.util-left, .util-right { display: flex; gap: 20px; align-items: center; }
.util-link { color: #ccc; text-transform: uppercase; transition: color 0.2s; }
.util-link:hover { color: #fff; }
.lang-switcher span { color: #fff; font-weight: 700; }
.lang-switcher { color: #aaa; cursor: pointer; }
.util-divider { opacity: 0.3; }
.util-phone { color: #fff; font-weight: 700; }

.main-nav {
  height: 80px; position: sticky; top: 0; z-index: 1000; display: flex; align-items: center;
  background: var(--glass-bg); backdrop-filter: saturate(180%) blur(var(--blur-amount));
  -webkit-backdrop-filter: saturate(180%) blur(var(--blur-amount));
  border-bottom: 1px solid rgba(0,0,0,0.05); box-shadow: var(--glass-shadow); transition: height 0.3s ease;
}
.main-nav .container { display: flex; align-items: center; justify-content: space-between; }
.logo-img { height: 42px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
.logo-text-fallback { font-size: 20px; font-weight: 900; }

  .nav-center { flex: 1; 
    max-width: 650px; /* Трохи розширюємо, щоб влізла кнопка */
    margin: 0 15px; 
    display: flex; 
    align-items: center; 
    gap: 16px; 
}

  .nav-catalog-btn {  
    background: #000;
    color: #fff;
    padding: 0 24px;
    height: 44px; /* Робимо висоту такою ж, як і в рядка пошуку */
    border-radius: 10px; /* Закруглені краї */
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Плавна анімація */
    text-decoration: none;
    flex-shrink: 0; /* Щоб кнопка не сплющувалась на вузьких екранах */
}
  .nav-catalog-btn svg {
      width: 16px;
      height: 16px;
      stroke: #fff;
      stroke-width: 2.5;
      fill: none;
    }

  .nav-catalog-btn:hover {
      transform: scale(1.02);
      background: #222; 
      box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* Додає красиву тінь */
      color: #fff;
    }
  /* =========================================
   ВИПАДАЮЧЕ ПРЕМІУМ МЕНЮ (ОНОВЛЕНО)
   ========================================= */
/* 1. ДОЗВОЛЯЄМО МЕНЮ СТАТИ ВЕЛИКИМ */
.main-nav .container { position: relative; }
.nav-catalog-wrapper { position: static; }

/* САМЕ ВІКНО МЕНЮ (Розтягнуте на всю ширину) */
.mega-menu-dropdown {
  position: absolute;
  top: calc(100% + 20px); /* Відступ вниз від кнопки */
  left: 0;
  width: 100%; /* Розтягуємо на 100% ширини контейнера сайту! */
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0,0,0,0.05);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 2000;
}

/* 2. МАГІЯ ВІД ЗНИКАННЯ: Невидимий міст між кнопкою і меню */
.mega-menu-dropdown::after {
  content: '';
  position: absolute;
  top: -30px; /* Перекриває ту саму "мертву зону" */
  left: 0;
  width: 100%;
  height: 30px;
  background: transparent;
}

/* Стрілочка (хвостик), що вказує на кнопку */
.mega-menu-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 280px; /* Приблизно під кнопкою Каталог */
  width: 16px;
  height: 16px;
  background: #ffffff;
  transform: rotate(45deg);
  border-top: 1px solid rgba(0,0,0,0.05);
  border-left: 1px solid rgba(0,0,0,0.05);
  z-index: 1;
}

/* Логіка появи: показуємо меню при наведенні */
.nav-catalog-wrapper:hover .mega-menu-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
}

.mega-menu-inner {
  display: flex;
  padding: 30px;
  gap: 30px;
  min-height: 480px; /* Робимо його високим і солідним */
}

/* --- 1. ЛІВИЙ САЙДБАР --- */
.mega-sidebar {
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid #f0f0f0;
  padding-right: 20px;
}
.mega-cat-link {
  display: flex; align-items: center; padding: 14px 18px; border-radius: 12px;
  color: #1d1d1f; font-size: 14px; font-weight: 700; text-decoration: none; transition: 0.2s ease;
}
.mega-cat-link svg { width: 20px; height: 20px; margin-right: 14px; stroke: #86868b; transition: 0.2s; }
.mega-cat-link .arrow { margin-left: auto; color: #86868b; font-size: 18px; font-weight: 400; transition: 0.2s; }
/* І при наведенні (:hover), і для активного (.active) робимо чорний фон та білий текст */
.mega-cat-link:hover, 
.mega-cat-link.active { background: #1d1d1f; color: #fff; }

.mega-cat-link:hover svg, 
.mega-cat-link.active svg { stroke: #fff; }

.mega-cat-link:hover .arrow, 
.mega-cat-link.active .arrow { color: #fff; }

/* --- 2. ЦЕНТРАЛЬНИЙ КОНТЕНТ --- */
.mega-content { flex: 1; display: flex; flex-direction: column; gap: 30px; }

.mega-banners-top { display: flex; gap: 20px; }
.mega-banner-small {
  flex: 1; height: 250px; border-radius: 12px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; padding: 24px;
  background-color: #f5f5f7; background-size: cover; background-position: center; transition: 0.3s ease;
}
.mega-banner-small:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.mega-banner-text h4 { font-size: 18px; font-weight: 800; color: #111; margin-bottom: 6px; }
.mega-banner-text p { font-size: 12px; color: #666; font-weight: 500; }
.mega-btn {
  width: max-content; background: #fff; border: 1px solid #e5e5ea; border-radius: 8px;
  padding: 10px 20px; font-size: 12px; font-weight: 700; color: #111; cursor: pointer; transition: 0.2s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.mega-banner-small:hover .mega-btn { border-color: #111; }

/* --- ЛОГІКА ВКЛАДОК --- */
.mega-tabs-container { flex: 1; }

.mega-tab-pane { 
  display: none; /* За замовчуванням всі вкладки сховані */
  width: 100%; 
  height: 100%; 
  gap: 30px; 
}

.mega-tab-pane.active { 
  display: flex; /* Показуємо тільки активну вкладку */
  animation: fadeInMega 0.3s ease forwards; /* Плавна поява */
}

@keyframes fadeInMega {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.mega-subcats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 20px; }
.mega-sub-link {
  display: flex; align-items: center; font-size: 13px; font-weight: 600; color: #111;
  text-decoration: none; padding: 12px; border-radius: 10px; transition: 0.2s;
}
.mega-sub-link svg { width: 18px; height: 18px; margin-right: 12px; stroke: #86868b; }
.mega-sub-link .arrow { margin-left: auto; opacity: 0; transform: translateX(-5px); transition: 0.2s; color: #86868b; }
.mega-sub-link:hover { background: #f5f5f7; color: #000; }
.mega-sub-link:hover .arrow { opacity: 1; transform: translateX(0); }

/* --- 3. ВЕЛИКИЙ БАНЕР СПРАВА --- */
.mega-promo-banner {
  width: 280px; border-radius: 16px; padding: 40px 30px; display: flex; flex-direction: column; justify-content: space-between;
  background-color: #1d1d1f; background-size: cover; background-position: center;
}
.mega-btn-promo {
  background: #fff; border: none; border-radius: 10px; padding: 14px 20px; font-size: 13px; font-weight: 700;
  color: #111; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: space-between;
}
.mega-btn-promo span { font-size: 18px; }
.mega-btn-promo:hover { background: #f5f5f7; transform: scale(1.03); }


.search-wrapper { position: relative; width: 100%; }
.search-input {
  width: 100%; padding: 12px 20px 12px 48px; border-radius: 10px; border: 1px solid transparent;
  background: rgba(0, 0, 0, 0.04); font-family: inherit; font-size: 13px; font-weight: 300;
  color: var(--text); transition: all 0.3s var(--transition-smooth);
}
.search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; opacity: 0.4; transition: all 0.3s ease; pointer-events: none;
}
.search-input:focus {
  background: #fff; border-color: rgba(0,0,0,0.1); box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  transform: scale(1.02); outline: none;
}
.search-input:focus + .search-icon { opacity: 1; transform: translateY(-50%) scale(1.1); }

.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-link-item { 
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; position: relative; padding: 8px 0; color: var(--text);
}
.nav-link-item::before {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--accent-black);
  transition: width 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); border-radius: 2px;
}
.nav-link-item:hover::before { width: 100%; }

.nav-link-coming-soon {
  cursor: pointer;
  user-select: none;
}

.nav-link-coming-soon::after {
    content: "Скоро";
    position: absolute;
    top: -7px;
    right: -17px;
    padding: 3px 5px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(145deg, #050505, #202020);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.1;
    white-space: nowrap;
    transform-origin: center;
    transition: transform 0.2s ease;
    -webkit-font-smoothing: antialiased;
    backface-visibility: hidden;
    text-rendering: optimizeLegibility;
}

.nav-link-coming-soon:hover::after {
  transform: rotate(4deg) translateY(-1px) translateZ(0);
}

.review-badge {
  position: absolute; top: -8px; right: -18px; background: var(--accent-black);
  color: #fff; font-size: 9px; font-weight: 600; height: 16px; width: 16px; box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  display: flex; align-items: center; justify-content: center; border-radius: 4px; 
}

.nav-icons { display: flex; gap: 12px; padding-left: 17px; border-left: 1px solid rgba(0,0,0,0.06); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; cursor: pointer; position: relative; padding: 0; border: 0;
  background: transparent; color: inherit; font: inherit; transition: all 0.2s ease;
}
.icon-btn:hover { background: rgba(0,0,0,0.04); }
.nav-icon-img { width: 22px; height: 22px; object-fit: contain; transition: transform 0.3s var(--transition-smooth); }
.icon-btn:hover .nav-icon-img { transform: scale(1.15); }
.cart-count,
.likes-count { 
  position: absolute; top: -4px; right: -6px; background: #1b1b1b; color: #fff; 
  font-size: 9px; width: 16px; height: 16px; border-radius: 4px; 
  display: flex; align-items: center; justify-content: center; font-weight: 700; box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
}

/* =========================================
   3. ПІДВАЛ (FOOTER)
   ========================================= */
.main-footer { background-color: #000000; color: #ffffff; padding: 80px 0 30px 0; font-size: 13px; border-top: 1px solid #333; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 60px; }
.brand-col { display: flex; flex-direction: column; gap: 20px; padding-right: 20px; }
.footer-logo { width: fit-content; display: inline-flex; align-items: center; margin-bottom: 10px; }
.footer-logo img { width: 214px; max-width: 100%; height: auto; display: block; filter: invert(1); }
.footer-desc { color: #86868b; line-height: 1.6; font-size: 13px; max-width: 300px; }
.social-links { display: flex; gap: 12px; margin-top: 10px; }
.social-icon-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; transition: 0.3s ease; }
.social-icon-btn img { width: 18px; height: 18px; filter: invert(1); opacity: 0.7; transition: 0.3s; }
.social-icon-btn:hover { background: #fff; transform: translateY(-3px); }
.social-icon-btn:hover img { filter: invert(0); opacity: 1; }
.footer-col :is(h2, h4) { color: #a8a8ad; font-size: 12px; font-weight: 600; text-transform: uppercase; margin-bottom: 25px; letter-spacing: 0.05em; }
.footer-links-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer-link { color: #f5f5f7; text-decoration: none; font-weight: 500; transition: all 0.3s ease; display: inline-flex; align-items: center; }
.footer-link:hover { color: #fff; transform: translateX(5px); text-shadow: 0 0 10px rgba(255,255,255,0.3); }
.contact-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; color: #f5f5f7; }
.contact-row svg { width: 18px; height: 18px; fill: #86868b; margin-top: 2px; }
.contact-text span { display: block; color: #86868b; font-size: 11px; margin-bottom: 4px; }
.contact-val { font-weight: 600; font-size: 14px; }
.footer-bottom { border-top: 1px solid #333; padding-top: 30px; display: flex; justify-content: space-between; align-items: center; color: #86868b; font-size: 11px; }
.copyright { font-weight: 500; }
.legal-links { display: flex; gap: 20px; }
.legal-links a:hover { text-decoration: underline; color: #fff; }


@media (max-width: 992px) {
  :where(body:not(.home-page):not(.catalog-body):not(.configurator-body):not(.reviews-body)) .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 50px; } 
}
@media (max-width: 600px) {
  :where(body:not(.home-page):not(.catalog-body):not(.configurator-body):not(.reviews-body)) .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  :where(body:not(.home-page):not(.catalog-body):not(.configurator-body):not(.reviews-body)) .brand-col { align-items: center; text-align: center; padding: 0; }
  :where(body:not(.home-page):not(.catalog-body):not(.configurator-body):not(.reviews-body)) .footer-col { text-align: center; }
  :where(body:not(.home-page):not(.catalog-body):not(.configurator-body):not(.reviews-body)) .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
  :where(body:not(.home-page):not(.catalog-body):not(.configurator-body):not(.reviews-body)) .footer-link:hover { transform: translateX(0) scale(1.05); } 
}

.epc-chat-widget { position: fixed; bottom: 30px; right: 30px; z-index: 1000; font-family: 'Montserrat', sans-serif; }
.epc-chat-toggle { width: 60px; height: 60px; border-radius: 50%; background: #000; color: #fff; border: none; cursor: pointer; box-shadow: 0 10px 24px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.epc-chat-toggle:hover { transform: scale(1.05); background: #1d1d1f; }

.epc-chat-window { position: absolute; bottom: 80px; right: 0; width: 340px; background: #fff; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.15); display: flex; flex-direction: column; overflow: hidden; transform: translateY(20px); opacity: 0; pointer-events: none; transition: 0.3s ease; border: 1px solid rgba(0,0,0,0.06); }
.epc-chat-window.active { transform: translateY(0); opacity: 1; pointer-events: all; }

.epc-chat-header { background: #000; color: #fff; padding: 20px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.epc-chat-close { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; opacity: 0.7; }
.epc-chat-close:hover { opacity: 1; }

.epc-chat-body { padding: 20px; height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; background: #f5f5f7; }
.epc-msg { padding: 12px 16px; border-radius: 16px; font-size: 13px; line-height: 1.4; max-width: 85%; }
.epc-msg.bot { background: #fff; color: #000; align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.epc-msg.user { background: #ff3b30; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }

.epc-chat-footer { padding: 16px; background: #fff; border-top: 1px solid rgba(0,0,0,0.06); display: flex; flex-direction: column; gap: 10px; }
.epc-input-row { display: flex; gap: 8px; }
.epc-chat-input { flex: 1; border: 1px solid rgba(0,0,0,0.1); border-radius: 20px; padding: 12px 16px; font-size: 13px; font-family: inherit; outline: none; transition: 0.2s; }
.epc-chat-input:focus { border-color: #000; }
.epc-chat-send { width: 44px; height: 44px; border-radius: 50%; background: #000; color: #fff; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; }
.epc-chat-send:hover { background: #ff3b30; }

@media (max-width: 480px) {
  :where(body:not(.home-page):not(.catalog-body):not(.configurator-body):not(.reviews-body)) .epc-chat-window { width: calc(100vw - 40px); right: -10px; bottom: 75px; }
}

/* =========================================
   МІНІ-КОШИК (Преміум Дизайн 2.0)
   ========================================= */
.nav-icons { position: relative; }

.mini-cart-dropdown {
  position: absolute; top: 100%; right: 0; width: 440px;
  background: #fff; border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.05);
  display: flex; flex-direction: column; z-index: 3000;
  opacity: 0; visibility: hidden; transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.mini-cart-dropdown.active {
  opacity: 1; 
  visibility: visible; 
  transform: translateY(0);
}
/* Шапка */
.mc-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 30px 20px 30px; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.mc-title-main { font-size: 16px; font-weight: 700; color: #000; display: flex; align-items: center; gap: 4px; }

/* Скролл та товари */
.mc-items-scroll { max-height: 420px; overflow-y: auto; padding: 0 30px; }
.mc-items-scroll::-webkit-scrollbar { width: 4px; }
.mc-items-scroll::-webkit-scrollbar-thumb { background: #d1d1d6; border-radius: 4px; }

.mc-item { display: flex; gap: 16px; padding: 24px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.mc-item:last-child { border-bottom: none; }

.mc-img-wrap { width: 70px; height: 70px; background: #f5f5f7; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mc-img-wrap img { max-width: 85%; max-height: 85%; object-fit: contain; }

.mc-info { flex: 1; display: flex; flex-direction: column; }
.mc-item-title { font-size: 14px; font-weight: 700; color: #000; margin-bottom: 4px; line-height: 1.3; }
.mc-specs { font-size: 11px; color: #86868b; line-height: 1.4; margin-bottom: 10px; }

/* Додаткові послуги (Нове) */
.mc-addons-title { font-size: 11px; font-weight: 700; color: #111; margin-bottom: 6px; }
.mc-addon-row { display: flex; 
  justify-content: space-between; 
  align-items: flex-start;
  gap: 12px; 
  margin-bottom: 8px; }
.mc-addon-name { display: flex; 
  align-items: flex-start; 
  gap: 6px; 
  font-size: 11px; 
  color: #444; 
  font-weight: 500; 
  flex: 1;
  line-height: 1.4; }
.mc-addon-name svg { width: 14px; 
  height: 14px; 
  color: #111; 
  flex-shrink: 0;
  margin-top: 1px; }
.mc-addon-row > div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap; 
}
.mc-addon-price { 
  font-size: 11px; 
  font-weight: 600; 
  color: #000; 
}

 .product-name { font-size: 14px; font-weight: 700; margin-bottom: 5px; line-height: 1.4; height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .product-name-link { color: inherit; text-decoration: none; }
    .compact-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: -12px 0 0; }
    .spec-item { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; color: var(--text-sec); font-size: 10px; font-weight: 400; white-space: nowrap; text-overflow: ellipsis; }
    .spec-item span { overflow: hidden; text-overflow: ellipsis; }
    .spec-icon { width: 14px; height: 14px; flex-shrink: 0; color: var(--text-sec); }
    .reviews-link { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-sec); font-weight: 300; width: fit-content; transition: 0.3s; margin-top: auto; }
    .reviews-link svg { width: 14px; height: 14px; fill: var(--text-sec); }
    .reviews-link:hover { color: var(--text); }
    .reviews-link:hover svg { fill: var(--text); }
    .service-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; margin-bottom: 5px; }
    .rating-box { display: flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 400; }
    .product-card-rating-link { display: inline-flex; width: fit-content; color: inherit; text-decoration: none; border-radius: 5px; cursor: pointer; }
    .product-card-rating-link .rating-box { transition: opacity .2s ease; }
    .product-card-rating-link:hover .rating-box { opacity: .68; }
    .product-card-rating-link:focus-visible { outline: 2px solid #111; outline-offset: 4px; }
    .star-icon { width: 12px; height: 12px; fill: #ffcc00; }
    .reviews-count { color: var(--text-sec); font-weight: 200; }
    .service-icons { display: flex; gap: 12px; }
    .srv-icon-wrap { position: relative; cursor: pointer; display: flex; align-items: center; }
    .srv-icon { width: 24px; height: 24px; fill: var(--text-sec); transition: 0.3s; }
    .srv-icon-wrap:hover .srv-icon { fill: var(--accent-black); }
    .card-footer { height: 50px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 15px; flex-shrink: 0; margin-top: 10px; }
    .price-block { display: flex; flex-direction: column; }
    .old-price-row, .discount-price-row { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
    .discount-price-row { justify-content: flex-end; }
    .old-price, .discount-old-price { font-size: 11px; text-decoration: line-through; color: var(--text-sec); font-weight: 500; }
    .discount-percent { font-size: 10px; font-weight: 700; color: #d70015; }
    .current-price { font-size: 18px; font-weight: 600; color: var(--text); line-height: 1; }
    .buy-btn { 
      appearance: none;
      -webkit-appearance: none;
      border: 0;
      font-family: inherit;
      height: 40px; 
      padding: 0 10px; 
      background: var(--accent-black); 
      border-radius: 8px; 
      display: flex; 
      align-items: center; 
      justify-content: center; 
      gap: 8px; 
      color: #fff; 
      font-size: 12px; 
      font-weight: 700; 
      transition: 0.3s; 
      cursor: pointer;
    }

    
    /* --- USER DROPDOWN СТИЛІ --- */
    .user-profile-wrapper {
      display: none;
      position: relative;
    }
    .user-profile-wrapper .user-dropdown-trigger {
      width: auto;
      padding: 0 12px;
      gap: 6px;
    }
    .user-profile-wrapper .user-dropdown-trigger span {
      color: #000;
      font-size: 14px;
      font-weight: 600;
    }
    .user-profile-wrapper .user-dropdown-trigger > svg {
      width: 14px;
      height: 14px;
    }
    .user-dropdown-wrapper {
      position: relative;
      display: flex; /* Змінили з inline-block на flex */
      align-items: center; /* Примусово центруємо по вертикалі */
      margin-left: 8px;
    }
    .user-dropdown-trigger {
      display: flex;
      align-items: center;
      gap: 10px;
      cursor: pointer;
      padding: 4px 12px 4px 4px;
      border-radius: 30px;
      transition: background 0.2s;
    }
    .user-dropdown-trigger:hover { background: #f5f5f7; }
    
    .user-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      object-fit: cover;
    }
    .user-name-text {
      font-size: 14px;
      font-weight: 600;
      color: #000;
    }
    .chevron-icon {
      width: 14px;
      height: 14px;
      color: #000;
      transition: transform 0.3s;
    }
    .user-dropdown-wrapper.active .chevron-icon {
      transform: rotate(180deg);
    }

    /* Випадаюче меню */
    .user-dropdown-menu {
      position: absolute;
      top: calc(100% + 15px);
      right: 0;
      width: 260px;
      background: rgba(255, 255, 255);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-radius: 16px;
      box-shadow: 0 10px 40px rgba(0,0,0,0.08);
      border: 1px solid rgba(0,0,0,0.05);
      padding: 12px 0;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 100;
    }
    #userProfileWrapper.active .user-dropdown-menu {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .ud-header { padding: 8px 20px 16px; }
    .ud-name { font-size: 15px; font-weight: 700; color: #000; margin-bottom: 2px; }
    .ud-email { font-size: 12px; color: #86868b; font-weight: 500; }
    
    .ud-divider { height: 1px; background: #f0f0f0; margin: 4px 20px; }
    
    .ud-links { display: flex; flex-direction: column; padding: 4px 10px; }
    .ud-link {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 10px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 500;
      color: #444;
      text-decoration: none;
      transition: 0.2s;
    }
    .ud-link svg { width: 16px; height: 16px; color: #86868b; transition: 0.2s; }
    .ud-link:hover { background: #f5f5f7; color: #000; }
    .ud-link:hover svg { color: #000; }

    .ud-logout-btn {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 10px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 600;
      color: #ff3b30;
      background: transparent;
      border: none;
      cursor: pointer;
      width: 100%;
      text-align: left;
      transition: 0.2s;
      font-family: inherit;
    }
    .ud-logout-btn svg { width: 16px; height: 16px; color: #ff3b30; }
    .ud-logout-btn:hover { background: #fff0f0; }
    
    
    .like-btn .heart-icon {
      color: #1d1d1f;
      fill: none;
      transition: 0.3s;
    }
    .like-btn.liked {
      background: #e5e5ea;
      transform: scale(1.1);
    }
    .like-btn.liked:hover { background: #dedee3; }

    .buy-btn svg { width: 20px; height: 20px; fill: #fff; }
    .buy-btn:hover { transform: scale(1.1); background: #333; }
    .full-specs-list { margin-bottom: 10px; }
    .full-spec-row { display: flex; justify-content: space-between; font-size: 10px; padding: 4px 0; border-bottom: 1px solid #eee; }
    .fs-label { color: var(--text-sec); }
    .fs-value { font-weight: 600; text-align: right; max-width: 60%; }
    .details-btn { width: 100%; padding: 10px; background: var(--sec-bg); color: var(--text); font-size: 10px; font-weight: 700; text-transform: uppercase; border-radius: 8px; text-align: center; display: block; }
    .details-btn:hover { background: #e0e0e0; }
    .badges { position: absolute; top: 12px; left: 12px; z-index: 5; display: flex; gap: 4px; }
    .badge { font-size: 9px; font-weight: 600; text-transform: uppercase; padding: 3px 8px; border-radius: 8px; color: #fff; }
    .badge.new { background: #007aff; }
    .badge.hit { background: #ff9500; }
    .badge.sale { background: #ff3b30; }
    .card-actions { position: absolute; top: 12px; right: 12px; z-index: 20; display: flex; flex-direction: column; gap: 8px; }
    .action-btn { width: 28px; height: 28px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(4px); border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid transparent; transition: 0.3s; }
    .action-btn img { width: 14px; height: 14px; object-fit: contain; transition: 0.3s; }
    .action-btn:hover { border-color: var(--border); transform: scale(1.1); }
    .compare-btn.is-compared:not(.cp-card-remove) {
      background: #e5e5ea;
      transform: scale(1.1);
    }
    .compare-btn.is-compared:not(.cp-card-remove):hover { background: #dedee3; }
    .tooltip-box { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%) translateY(5px); background: #1d1d1f; color: #fff; padding: 6px 10px; border-radius: 6px; font-size: 10px; font-weight: 600; white-space: nowrap; opacity: 0; visibility: hidden; transition: all 0.2s ease; pointer-events: none; z-index: 100; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
    .tooltip-box::after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -3px; border-width: 3px; border-style: solid; border-color: #1d1d1f transparent transparent transparent; }
    .srv-icon-wrap:hover .tooltip-box { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
    .srv-icon-wrap:last-child .tooltip-box { left: auto; right: -5px; transform: translateY(5px); }
    .srv-icon-wrap:last-child .tooltip-box::after { left: auto; right: 12px; }
    .srv-icon-wrap:last-child:hover .tooltip-box { transform: translateY(0); }

/* =========================================
       СТИЛІ КАРТКИ ПК (КОПІЯ З INDEX.HTML)
       ========================================= */
   .card-wrapper { height: var(--card-base-height); position: relative; z-index: 1; }
    .product-card {
      background: var(--card-bg); border-radius: 16px; position: absolute; top: 0; left: 0; width: 100%; height: var(--card-base-height);
      overflow: hidden; transition: height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease; border: 1px solid transparent; display: flex; flex-direction: column; z-index: 10;
    }
    .card-wrapper:hover { z-index: 100; }
    .product-card:hover { height: auto; box-shadow: 0 20px 40px rgba(0,0,0,0.15); border-color: var(--border); overflow: visible; }
    .card-visible-part { height: var(--card-base-height); padding: 15px; display: flex; flex-direction: column; flex-shrink: 0; }
    .top-block { position: relative; }
    .image-area { height: 220px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
    .product-img { max-width: 95%; max-height: 100%; object-fit: contain; transition: 0.3s; }
    .product-card:hover .product-img { transform: scale(1.05); }
    .middle-block { display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }

/* Нижня лінія товару (Кількість + Ціна + Видалити) */
.mc-bottom-row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.mc-qty { display: flex; align-items: center; border: 1px solid #e5e5ea; border-radius: 6px; }
.qty-btn { width: 26px; height: 26px; background: transparent; border: none; font-size: 14px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: #f5f5f7; }
.qty-val { width: 26px; text-align: center; font-size: 12px; font-weight: 600; }

.mc-price-wrap { display: flex; align-items: center; gap: 16px; }
.mc-price { font-size: 14px; font-weight: 600; color: #000; }
.mc-remove-btn { background: none; border: none; font-size: 14px; color: #a1a1a6; cursor: pointer; transition: 0.2s; padding: 0; }
.mc-remove-btn:hover { color: #ff3b30; }

/* Підвал (Всього + Кнопки) */
.mc-footer { padding: 20px 30px; border-top: 1px solid rgba(0,0,0,0.06); background: #fff; }
.mc-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mc-total-label { font-size: 15px; font-weight: 700; color: #000; }
.mc-total-sum { font-size: 20px; font-weight: 800; color: #000; }

.mc-footer-btns { display: flex; flex-direction: column; gap: 10px; }
.mc-btn-primary { width: 100%; padding: 14px; background: #000; color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; transition: 0.3s; }
.mc-btn-primary:hover { background: #333; transform: translateY(-2px); }
.mc-btn-cart-page { width: 100%; padding: 12px 14px; border: 1px solid #d9d9dc; border-radius: 8px; background: #fff; color: #111; font-size: 12px; font-weight: 700; text-align: center; transition: .2s ease; }
.mc-btn-cart-page:hover { border-color: #111; background: #f8f8f8; }

@media (max-width: 500px) {
  :where(body:not(.home-page):not(.catalog-body):not(.configurator-body):not(.reviews-body)) .mini-cart-dropdown { position: fixed; top: 0; right: 0; width: 100%; height: 100%; border-radius: 0; }
  :where(body:not(.home-page):not(.catalog-body):not(.configurator-body):not(.reviews-body)) .mc-items-scroll { max-height: calc(100vh - 280px); }
  :where(body:not(.home-page):not(.catalog-body):not(.configurator-body):not(.reviews-body)) .mc-footer, 
  :where(body:not(.home-page):not(.catalog-body):not(.configurator-body):not(.reviews-body)) .mc-trust-badge { border-radius: 0; }
}

/* Доповнення до загальних стилів (для меню Вподобань) */
.mc-clear-btn { background: none; border: none; font-size: 13px; color: #86868b; font-weight: 500; cursor: pointer; transition: 0.2s; padding: 0; }
.mc-clear-btn:hover { color: #ff3b30; }

#miniLikes {
  max-height: min(650px, calc(100vh - 96px));
  overflow: hidden;
}

#miniLikes .mc-items-scroll {
  max-height: 300px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ml-product-item { cursor: pointer; }
.ml-product-item:focus-visible { outline: 2px solid #111; outline-offset: -2px; }

.mc-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.mc-title-row .mc-item-title {
  min-width: 0;
  margin-bottom: 4px;
  text-decoration: none;
}

.ml-product-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.ml-product-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ml-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ml-price-row .mc-price { font-size: 16px; font-weight: 700; }

.ml-old-price {
  color: #86868b;
  font-size: 12px;
  font-weight: 500;
  text-decoration: line-through;
}

.ml-product-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  margin-left: auto;
}

.ml-compare-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  border: 1px solid #d1d1d6;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.ml-compare-btn:hover { border-color: #111; }
.ml-compare-btn img { width: 16px; height: 16px; opacity: 0.8; }

.ml-cart-btn {
  width: auto;
  height: 36px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 20px;
  font-size: 12px;
}

.ml-empty {
  padding: 38px 24px;
  color: #86868b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.ml-footer {
  flex: 0 0 auto;
  padding: 16px 30px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}

.ml-view-all-btn {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.ml-view-all-btn:hover {
  background: #2c2c2e;
  transform: translateY(-1px);
}

@media (max-width: 500px) {
  :where(body:not(.home-page):not(.catalog-body):not(.configurator-body):not(.reviews-body)) #miniLikes { max-height: none; }
  :where(body:not(.home-page):not(.catalog-body):not(.configurator-body):not(.reviews-body)) #miniLikes .mc-items-scroll { max-height: none; flex: 1 1 auto; }
  :where(body:not(.home-page):not(.catalog-body):not(.configurator-body):not(.reviews-body)) .ml-footer { padding: 14px 18px 18px; }
}

.mc-btn-secondary { width: 100%; padding: 14px; background: #fff; color: #000; border: 1px solid #e5e5ea; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; transition: 0.3s; }
.mc-btn-secondary:hover { border-color: #000; }

.ml-rating-stars { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 11px; color: #86868b; font-weight: 500;}
.ml-rating-stars svg { width: 12px; height: 12px; fill: #111; }

/* Спільні компоненти карток і форм особистого кабінету */
.info-card {
  padding: 19px 19px 21px;
  background: #fff;
  border: 1px solid var(--cabinet-border, #e7e7e9);
  border-radius: 11px;
  box-shadow: none;
}

.info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 19px;
}

.info-title {
  color: #111;
  font-size: 14px;
  font-weight: 800;
}

.info-edit {
  padding: 0;
  background: transparent;
  color: #6a6a6e;
  font-size: 10px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.cabinet-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.cabinet-field-label {
  color: #343438;
  font-size: 10px;
  font-weight: 500;
}

.cabinet-control {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #dedee1;
  border-radius: 7px;
  background: #fff;
  color: #171718;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.cabinet-control:focus {
  border-color: #111;
}

.cabinet-control:read-only,
.cabinet-control:disabled {
  background: #fff;
  color: #171718;
  opacity: 1;
}

.cabinet-control::placeholder {
  color: #9a9a9f;
}

.cabinet-primary-btn {
  width: 100%;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 7px;
  background: #050505;
  color: #fff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  transition: background-color 0.18s ease;
}

.cabinet-primary-btn:hover {
  background: #252525;
}

.cabinet-danger-btn {
  min-height: 38px;
  padding: 0 17px;
  border: 1px solid #ff3b30;
  border-radius: 7px;
  background: #fff;
  color: #ef2f2f;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  transition: background-color 0.18s ease;
}

.cabinet-danger-btn:hover {
  background: #fff3f3;
}

/* =========================================
   BLOG MATERIAL CARD
   Shared by the blog page and homepage feed.
   ========================================= */
.blog-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e5e5e8;
  border-radius: 7px; 
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.blog-card:hover {
  border-color: #d2d2d6;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .08);
  transform: translateY(-4px);
}

.blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-media {
  position: relative;
  aspect-ratio: 1.9 / 1;
  overflow: hidden;
  background: #f2f2f3;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.035);
}

.blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 190px;
  padding: 18px 18px 15px;
}

.blog-card-category {
  align-self: flex-start;
  margin-bottom: 9px;
  padding: 4px 7px;
  border-radius: 4px;
  color: #64646a;
  background: #f2f2f3;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  text-transform: uppercase;
}

.blog-card-title {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 10px;
  color: #111;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.blog-card-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 18px;
  color: #73737a;
  font-size: 11px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: auto;
  color: #85858b;
  font-size: 9px;
  font-weight: 500;
}

.blog-read-time {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  white-space: nowrap;
}

.blog-read-time svg {
  width: 12px;
  height: 12px;
}

.blog-skeleton {
  min-height: 390px;
  overflow: hidden;
  border-radius: 9px;
  background: linear-gradient(100deg, #f4f4f5 35%, #fafafa 50%, #f4f4f5 65%);
  background-size: 300% 100%;
  animation: blog-loading 1.4s ease infinite;
}

@keyframes blog-loading {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

/* Shared storefront navigation, mobile cards and shop panels. */
.mobile-search-toggle, .mobile-menu-toggle, .mobile-panel-close, .mobile-service-icons { display: none; }
.mc-header-actions { display: flex; align-items: center; gap: 10px; }
.mobile-menu { border: 0; }
@keyframes mobile-menu-enter {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}
@keyframes mobile-search-enter {
  from { opacity: 0; transform: translateX(-5px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (max-width: 1200px) {
  .shop-page .utility-bar { display: none; }
  .shop-page .main-nav { height: 72px; }
  .shop-page .main-nav > .container { gap: 12px; }
  .shop-page .nav-left { display: flex; min-width: 0; margin-right: auto; }
  .shop-page .logo-img { width: 190px; height: auto; filter: none; }
  .shop-page .nav-right { gap: 0; flex-shrink: 0; }
  .shop-page .nav-links, .shop-page .nav-icons > a, .shop-page #userProfileWrapper { display: none !important; }
  .shop-page .nav-icons { gap: 2px; padding: 0; border: 0; position: static; align-items: center; }
  .shop-page .nav-icons > .icon-btn { width: 44px; height: 44px; flex-shrink: 0; }
  .shop-page .mobile-search-toggle, .shop-page .mobile-menu-toggle { display: flex; }
  .shop-page .mobile-search-toggle { order: -3; }
  .shop-page .likes-toggle-btn { order: -2; }
  .shop-page .cart-toggle-btn { order: -1; }
  .mobile-menu-toggle svg { width: 24px; height: 24px; }
  .shop-page .cart-count, .shop-page .likes-count { top: 0; right: 0; border-radius: 25%; font-size: 9px; }
  .shop-page .nav-center { display: none; position: relative; grid-column: 1; grid-row: 1; z-index: 2; min-width: 0; width: 100%; margin: 0; max-width: none; padding: 0; background: #fff; border: 0; border-radius: 0; box-shadow: none; }
  .shop-page .nav-center.is-open { display: flex; animation: mobile-search-enter .2s ease-out; }
  .shop-page .main-nav:has(.nav-center.is-open) { background: #fff; }
  .shop-page .main-nav:has(.nav-center.is-open)::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, #e9e9ec, #d4d4d9 50%, #e9e9ec); }
  .shop-page .main-nav:has(.nav-center.is-open) > .container { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; }
  .shop-page .main-nav:has(.nav-center.is-open) .nav-left { grid-column: 1; grid-row: 1; visibility: hidden; }
  .shop-page .main-nav:has(.nav-center.is-open) .nav-right { grid-column: 2; grid-row: 1; }
  .shop-page .mobile-search-toggle[aria-expanded="true"] { background: #f5f5f6; border-radius: 50%; box-shadow: inset 0 0 0 1px #ededf0; }
  .shop-page .nav-center.is-open .search-input {
    appearance: none;
    -webkit-appearance: none;
    min-width: 0;
    min-height: 38px;
    height: 38px;
    padding: 8px 12px;
    border: 1px solid #e2e2e7;
    background: linear-gradient(180deg, #fafafb, #f4f4f6);
    border-radius: 12px;
    color: #26262b;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    box-shadow: inset 0 1px 0 #fff, 0 2px 5px #14142005;
    transform: none;
    text-overflow: ellipsis;
    transition: border-color .18s ease, box-shadow .18s ease;
  }
  .shop-page .nav-center.is-open .search-input::placeholder { color: #93939c; font-size: 12px; font-weight: 400; opacity: 1; }
  .shop-page .nav-center.is-open .search-input:focus { outline: none; border-color: #bdbdc6; box-shadow: 0 0 0 2px #23233306, inset 0 1px 0 #fff; }
  .shop-page .nav-center.is-open .search-icon { display: none; }
  .shop-page .search-input { font-size: 16px; min-height: 46px; }
  .shop-page .mini-cart-dropdown, .shop-page #miniLikes { top: calc(100% + 12px); right: 16px; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 100px); border-radius: 18px; overflow: auto; }
  .shop-page .mc-items-scroll { max-height: 45dvh; }
  .shop-page .mc-header, .shop-page .mc-footer { padding: 18px; }
  .mobile-menu { width: min(380px, 84vw); max-width: calc(100% - 32px); height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0 16px max(24px, env(safe-area-inset-bottom)); background: #fff; color: #171719; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #e4e4e7 transparent; box-shadow: -12px 0 40px #0002; }
  .mobile-menu[open] { animation: mobile-menu-enter .24s ease-out; }
  .mobile-menu::backdrop { background: #101114a3; }
  .mobile-menu-heading { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 82px; padding-top: env(safe-area-inset-top); margin-bottom: 8px; background: #fffffff5; }
  .mobile-menu-heading a { display: flex; min-width: 0; }
  .mobile-menu-heading img { width: min(170px, 100%); height: auto; }
  .mobile-menu-heading .icon-btn { flex-shrink: 0; width: 44px; height: 44px; background: transparent; border-radius: 50%; }
  .mobile-menu svg { width: 23px; height: 23px; flex-shrink: 0; }
  .mobile-account-card { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 14px 12px; border-radius: 16px; background: #f4f4f5; color: #171719; text-decoration: none; }
  .mobile-account-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; color: #161618; font-size: 13px; font-weight: 600; }
  .mobile-account-avatar svg { width: 27px; height: 27px; }
  .mobile-account-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 5px; }
  #mobileAccountName { font-size: 13px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
  #mobileAccountLinkText { color: #67676d; font-size: 11px; line-height: 1.4; }
  .mobile-menu .mobile-account-chevron { width: 13px; height: 13px; }
  .mobile-menu > nav { margin-top: 10px; padding-top: 10px; border-top: 1px solid #ebebee; }
  .mobile-menu-group { margin: 0; }
  .mobile-menu-group + .mobile-menu-group { border: 0; padding: 0; margin: 0; }
  .mobile-menu-group-title { display: none; }
  .mobile-menu-link { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 10px; margin: 0; border-radius: 12px; color: #252529; font-size: 12px; font-weight: 400; line-height: 1.45; transition: background .18s ease; }
  .mobile-menu-link:hover, .mobile-menu-link.is-current { background: #f6f6f7; color: #111; }
  .mobile-menu-link.is-current { font-weight: 500; }
  .mobile-menu-link-icon { display: grid; place-items: center; width: 28px; height: 30px; flex-shrink: 0; color: #161618; }
  .mobile-menu-link:hover .mobile-menu-link-icon, .mobile-menu-link.is-current .mobile-menu-link-icon { color: #111; }
  .mobile-menu .mobile-menu-chevron { width: 12px; height: 12px; margin-left: auto; color: #a0a0a8; }
  .mobile-menu-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 16px; margin-top: 12px; border-top: 1px solid #ededf0; }
  .mobile-menu-shortcuts a { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; border-radius: 12px; background: #f7f7f8; font-size: 11px; }
  .mobile-menu-shortcuts a:hover { background: #f5f5f7; }
  .mobile-menu-contacts { display: flex; flex-direction: column; gap: 0; margin: 16px 0; padding-top: 12px; border-top: 1px solid #ededf0; }
  .mobile-menu-contacts a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 10px; font-size: 11px; font-weight: 400; }
  .mobile-menu-review-count { display: inline-flex; align-items: center; justify-content: center; min-width: 23px; height: 21px; padding: 0 6px; border-radius: 7px; background: #eeeef1; color: #64646c; font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .mobile-menu-contacts svg { color: #161618; width: 23px; height: 23px; }
  .mobile-menu-contacts small { display: none; }
  .mobile-menu-socials { padding: 0 10px 18px; }
  .mobile-menu-socials a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: #229ed9; font-size: 11px; }
  .mobile-menu-socials a:hover { color: #1686bb; }
  .mobile-menu-socials img { width: 20px; height: 20px; object-fit: contain; }
  .mobile-menu-logout { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 46px; margin: 0 0 18px; border-radius: 14px; background: #f9eded; color: #b4474e; font-size: 12px; }
  .mobile-menu-logout:hover { background: #f3dfe0; color: #a33840; }
  .mobile-menu [hidden] { display: none; }
  .mobile-menu-signature { padding-top: 14px; border-top: 1px solid #ededf0; color: #9b9ba1; font-size: 9px; text-align: center; }
  .shop-page:has(.mobile-menu[open]) { overflow: hidden; }
}
@media (max-width: 767px) {
  .shop-page { --mobile-gutter: 16px; --text-sec: #74747c; background: #fff; }
  .shop-page .container { padding-inline: var(--mobile-gutter); }
  .shop-page .main-nav { height: 68px; background: rgba(255,255,255,.96); border-bottom: 0; box-shadow: none; }
  .shop-page .main-nav > .container { gap: 0; }
  .shop-page .logo-img { width: clamp(134px, 39vw, 185px); }
  .shop-page .nav-icons { gap: 0; }
  .shop-page .nav-icons > .icon-btn { width: 40px; height: 44px; }
  .shop-page .nav-icon-img { width: 21px; height: 21px; }
  .shop-page:has(> #miniLikes.active) .likes-toggle-btn,
  .shop-page:has(> #miniCart.active) .cart-toggle-btn { border-radius: 12px; background: #f1f1f3; }

}
@media (max-width: 767px) {
  :is(.shop-page, .compare-page) .card-wrapper { height: auto; min-width: 0; flex: 0 0 calc((100% - 12px) / 2); scroll-snap-align: start; z-index: 1; }
  :is(.shop-page, .compare-page) .card-wrapper:hover, :is(.shop-page, .compare-page) .card-wrapper:focus-within { z-index: 300; }
  :is(.shop-page, .compare-page) .products-error { flex: 0 0 100%; padding: 24px 12px; font-size: 13px; line-height: 1.5; }
  :is(.shop-page, .compare-page) .product-card, :is(.shop-page, .compare-page) .product-card:hover { position: relative; height: 100%; border: 1px solid #eeeef1; border-radius: 13px; box-shadow: none; overflow: visible; }
  :is(.shop-page, .compare-page) .card-visible-part { height: 100%; padding: 10px; gap: 8px; }
  :is(.shop-page, .compare-page) .image-area { height: clamp(120px, 33vw, 225px); margin: 0; }
  :is(.shop-page, .compare-page) .product-card:hover .product-img { transform: none; }
  :is(.shop-page, .compare-page) .product-img { width: 100%; max-width: 100%; }
  :is(.shop-page, .compare-page) .badges { top: 0; left: 0; max-width: 70%; flex-wrap: wrap; }
  :is(.shop-page, .compare-page) .badge { font-size: 7px; padding: 3px 5px; }
  :is(.shop-page, .compare-page) .card-actions { top: 0; right: 0; gap: 5px; }
  :is(.shop-page, .compare-page) .action-btn { width: 30px; height: 30px; border-color: #ededf0; background: #ffffffea; }
  :is(.shop-page, .compare-page) .action-btn,
  :is(.shop-page, .compare-page) .action-btn:hover { transform: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  :is(.shop-page, .compare-page) .like-btn .heart-icon {
    width: 16px;
    height: 16px;
    color: #202024;
    fill: transparent;
    transition: color .18s ease, fill .18s ease;
  }
  :is(.shop-page, .compare-page) .like-btn.liked,
  :is(.shop-page, .compare-page) .like-btn.liked:hover {
    border-color: #d4d4d8;
    background: #e2e2e6;
    transform: none;
  }
  :is(.shop-page, .compare-page) .like-btn.liked .heart-icon { color: #202024; fill: transparent; }
  :is(.shop-page, .compare-page) .like-btn:active { background: #d8d8dc; }
  :is(.shop-page, .compare-page) .compare-btn.is-compared:not(.cp-card-remove),
  :is(.shop-page, .compare-page) .compare-btn.is-compared:not(.cp-card-remove):hover { transform: none; }
  :is(.shop-page, .compare-page) .middle-block { justify-content: flex-start; gap: 9px; }
  :is(.shop-page, .compare-page) .product-name { font-size: 11px; line-height: 1.35; height: auto; min-height: 30px; margin: 0; -webkit-line-clamp: 3; overflow-wrap: anywhere; }
  :is(.shop-page, .compare-page) .compact-specs { margin: 0; gap: 7px 6px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  :is(.shop-page, .compare-page) .spec-item { font-size: 8px; gap: 4px; }
  :is(.shop-page, .compare-page) .spec-icon { width: 10px; height: 10px; }
  :is(.shop-page, .compare-page) .service-row { justify-content: flex-start; margin: auto 0 0; padding-top: 2px; }
  :is(.shop-page, .compare-page) .service-row > .service-icons { display: none; }
  :is(.shop-page, .compare-page) .service-icons { display: flex; gap: 6px; }
  :is(.shop-page, .compare-page) .srv-icon-wrap { cursor: default; }
  :is(.shop-page, .compare-page) .srv-icon { width: 17px; height: 17px; fill: #85858b; }
  :is(.shop-page, .compare-page) .srv-icon-wrap:focus-visible { outline: 2px solid #777; outline-offset: 3px; border-radius: 3px; }
  :is(.shop-page, .compare-page) .tooltip-box { bottom: 29px; z-index: 1000; max-width: 150px; padding: 6px 8px; white-space: normal; text-align: center; line-height: 1.35; }
  :is(.shop-page, .compare-page) .srv-icon-wrap:focus .tooltip-box { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
  :is(.shop-page, .compare-page) .srv-icon-wrap:last-child:focus .tooltip-box { transform: translateY(0); }
  :is(.shop-page, .compare-page) .rating-box { font-size: 10px; }
  :is(.shop-page, .compare-page) .card-footer { height: auto; margin: 0; padding: 0; border: 0; flex-direction: column; align-items: stretch; gap: 8px; }
  :is(.shop-page, .compare-page) .price-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 3px 7px;
    min-height: 31px;
  }
  :is(.shop-page, .compare-page) .price-block .old-price-row { grid-column: 1 / -1; margin: 0; }
  :is(.shop-page, .compare-page) .mobile-service-icons { display: flex; grid-column: 2; align-self: center; }
  :is(.shop-page, .compare-page) .mobile-service-icons .srv-icon { width: 19px; height: 19px; }
  :is(.shop-page, .compare-page) .current-price { font-size: 16px; font-weight: 700; }
  :is(.shop-page, .compare-page) .old-price { font-size: 10px; }
  :is(.shop-page, .compare-page) .buy-btn { width: 100%; min-height: 38px; padding: 0 5px; gap: 6px; border-radius: 9px; font-size: 10px; }
  :is(.shop-page, .compare-page) .buy-btn:hover { transform: none; }
  :is(.shop-page, .compare-page) .buy-btn svg { width: 17px; height: 17px; }

}
@media (max-width: 767px) {
  .shop-page .main-footer { padding: 32px 0 24px; border: 0; }
  .shop-page .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; margin-bottom: 28px; }
  .shop-page .brand-col { grid-column: 1 / -1; padding: 0; gap: 12px; align-items: flex-start; text-align: left; }
  .shop-page .footer-logo { margin: 0; }
  .shop-page .footer-logo img { width: 170px; }
  .shop-page .footer-desc { max-width: 360px; font-size: 12px; }
  .shop-page .social-links { margin: 0; }
  .shop-page .footer-col { text-align: left; min-width: 0; }
  .shop-page .footer-col:last-child { grid-column: 1 / -1; }
  .shop-page .footer-col :is(h2, h4) { margin-bottom: 12px; }
  .shop-page .footer-links-list { gap: 0; }
  .shop-page .footer-link { min-height: 36px; font-size: 12px; line-height: 1.5; }
  .shop-page .contact-val { font-size: 13px; overflow-wrap: anywhere; }
  .shop-page .contact-row svg { flex-shrink: 0; }
  .shop-page .footer-bottom { padding-top: 20px; align-items: flex-start; flex-direction: column; gap: 14px; font-size: 10px; }
  .shop-page .legal-links { flex-wrap: wrap; gap: 12px; padding-right: 35px; }

  .shop-page:has(> .mini-cart-dropdown.active) { overflow: hidden; }
  .shop-page:has(> .mini-cart-dropdown.active)::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 2990;
    background: rgba(8, 8, 10, .46);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  .shop-page > .mini-cart-dropdown,
  .shop-page > #miniLikes {
    position: fixed;
    inset: auto 0 0;
    z-index: 3000;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: min(82dvh, 720px);
    margin: 0;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    box-shadow: 0 -18px 50px rgba(0, 0, 0, .2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(100% + 24px));
    transition: transform .28s cubic-bezier(.22, 1, .36, 1), opacity .18s ease, visibility .28s;
  }
  .shop-page > .mini-cart-dropdown.active,
  .shop-page > #miniLikes.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .shop-page > .mini-cart-dropdown::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    z-index: 4;
    width: 36px;
    height: 4px;
    border-radius: 5px;
    background: #d7d7dc;
    transform: translateX(-50%);
  }
  .shop-page > .mini-cart-dropdown .mc-header {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    min-height: 68px;
    padding: 20px 16px 12px;
    border-bottom: 1px solid #ededf0;
    background: #fff;
  }
  .shop-page .mc-title-main { font-size: 18px; letter-spacing: -.03em; }
  .shop-page .mc-header-actions { gap: 8px; }
  .shop-page .mobile-panel-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #f2f2f4;
    color: #333336;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
  }
  .shop-page .mc-clear-btn {
    min-height: 34px;
    padding: 0 10px;
    font-size: 10px;
  }
  .shop-page > .mini-cart-dropdown .mc-items-scroll,
  .shop-page > #miniLikes .mc-items-scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    padding: 0 16px 8px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .shop-page .mc-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0;
  }
  .shop-page .mc-img-wrap { width: 76px; height: 76px; border-radius: 14px; }
  .shop-page .mc-info { min-width: 0; }
  .shop-page .mc-item-title { margin-bottom: 4px; font-size: 12px; line-height: 1.35; }
  .shop-page .mc-specs {
    display: -webkit-box;
    margin-bottom: 8px;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .shop-page .mc-bottom-row { gap: 10px; margin-top: 9px; }
  .shop-page .mc-qty { border-radius: 9px; }
  .shop-page .qty-btn { width: 30px; height: 30px; font-size: 16px; }
  .shop-page .qty-val { width: 26px; font-size: 11px; }
  .shop-page .mc-price-wrap { gap: 8px; }
  .shop-page .mc-price { font-size: 14px; }
  .shop-page .mc-remove-btn {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 9px;
    background: #f3f3f5;
    color: #77777d;
    font-size: 14px;
  }
  .shop-page .ml-product-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 10px;
  }
  .shop-page .ml-product-meta { gap: 5px; }
  .shop-page .ml-product-actions { width: 100%; margin: 0; gap: 8px; }
  .shop-page .ml-compare-btn { width: 40px; height: 40px; flex-basis: 40px; border-radius: 10px; }
  .shop-page .ml-cart-btn { width: auto; height: 40px; flex: 1 1 auto; border-radius: 10px; font-size: 11px; }
  .shop-page > .mini-cart-dropdown .mc-footer,
  .shop-page > #miniLikes .ml-footer {
    position: relative;
    flex: 0 0 auto;
    padding: 14px 16px max(16px, env(safe-area-inset-bottom));
    border-top: 1px solid #ededf0;
    background: #fff;
  }
  .shop-page .mc-total-row { margin-bottom: 12px; }
  .shop-page .mc-total-label { font-size: 13px; }
  .shop-page .mc-total-sum { font-size: 19px; }
  .shop-page .mc-footer-btns { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; }
  .shop-page .mc-btn-cart-page,
  .shop-page .mc-btn-primary,
  .shop-page .ml-view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 11px;
    font-size: 11px;
    font-family: inherit;
    line-height: 1.15;
    text-align: center;
    transform: none;
  }
  .shop-page #miniLikes .ml-footer { padding-top: 12px; }
  .shop-page #miniLikes .ml-view-all-btn { width: 100%; }
  .shop-page .ml-empty { padding: 46px 18px; font-size: 12px; }

  .shop-page .epc-chat-widget { bottom: max(14px, env(safe-area-inset-bottom)); right: 14px; }
  .shop-page .epc-chat-toggle { width: 46px; height: 46px; }
  .shop-page .epc-chat-window { width: min(360px, calc(100vw - 28px)); right: 0; bottom: 60px; max-height: calc(100dvh - 105px); }
  .shop-page .epc-chat-tooltip { right: 0; bottom: 60px; max-width: calc(100vw - 28px); font-size: 12px; white-space: normal; }
  .shop-page .epc-chat-input { min-width: 0; font-size: 16px; }
}



/* Homepage phone navigation: four destinations, with the cart in the header. */
.mobile-bottom-nav, .mobile-tab-label { display: none; }
@media (max-width: 1200px) {
  .shop-page .main-nav > .container > .mobile-menu-toggle { flex: 0 0 44px; }
  .shop-page .main-nav:has(.nav-center.is-open) > .container { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .shop-page .main-nav:has(.nav-center.is-open) .mobile-menu-toggle { grid-column: 1; grid-row: 1; }
  .shop-page .main-nav:has(.nav-center.is-open) .nav-left,
  .shop-page .main-nav:has(.nav-center.is-open) .nav-center { grid-column: 2; grid-row: 1; }
  .shop-page .main-nav:has(.nav-center.is-open) .nav-right { grid-column: 3; grid-row: 1; }
  .shop-page .mobile-menu { margin: 0 auto 0 0; box-shadow: 12px 0 40px #0002; }
}
@media (max-width: 767px) {
  .shop-page { --bottom-nav-height: calc(64px + env(safe-area-inset-bottom, 0px)); padding-bottom: var(--bottom-nav-height); }
  .shop-page .main-nav > .container { display: grid; grid-template-columns: 80px minmax(0, 1fr) 80px; }
  .shop-page .main-nav > .container > .mobile-menu-toggle { width: 40px; height: 44px; grid-column: 1; grid-row: 1; }
  .shop-page .nav-left { grid-column: 2; grid-row: 1; justify-content: center; margin: 0; }
  .shop-page .logo-img { width: min(100%, 156px); }
  .shop-page .nav-right { grid-column: 3; grid-row: 1; justify-self: end; }
  .shop-page .nav-icons > .icon-btn { width: 40px; }
  .shop-page .cart-count { border-radius: 25%; }
  .shop-page .mobile-bottom-nav {
    position: fixed; inset: auto 0 0; z-index: 1100;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: var(--bottom-nav-height);
    padding: 0 max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom, 0px) max(8px, env(safe-area-inset-left));
    background: #fff; border-top: 1px solid #ededf0; box-shadow: 0 -3px 16px #00000004;
  }
  .shop-page .mobile-bottom-nav > * {
    display: flex; position: relative; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; width: 100%; min-width: 0; height: 64px; padding: 8px 0;
    order: 0; border: 0; border-radius: 0; background: transparent; color: #74747c;
    font-family: inherit; font-size: 10px; font-weight: 400; line-height: 1.2; text-decoration: none;
  }
  .shop-page .mobile-bottom-nav svg, .shop-page .mobile-bottom-nav img { width: 22px; height: 22px; }
  .shop-page .mobile-bottom-nav img { opacity: .65; }
  .shop-page .mobile-bottom-nav [aria-current="page"] { color: #111; font-weight: 600; }
  .shop-page .mobile-bottom-nav .mobile-tab-label { display: block; }
  .shop-page .mobile-bottom-nav .likes-count { top: 5px; right: calc(50% - 22px); }
  .shop-page .mobile-bottom-nav > *:focus-visible { outline: 2px solid #111; outline-offset: -4px; }
  .shop-page .epc-chat-widget { bottom: calc(var(--bottom-nav-height) + 14px); }
  .shop-page .epc-chat-window { max-height: calc(100dvh - var(--bottom-nav-height) - 105px); }
}

@media (prefers-reduced-motion: reduce) { .shop-page *, .shop-page *::before, .shop-page *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media (max-width: 359px) {
  .shop-page { --mobile-gutter: 12px; }
}

.catalog-page { padding-bottom: 0; }

.purchase-benefits-wrapper {
  position: sticky;
  bottom: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.03);
  z-index: 900;
}

.purchase-benefits-wrapper .container {
  max-width: 1800px;
  padding: 0 40px;
}

.breadcrumbs { padding: 30px 0; font-size: 13px; color: #5f6368; }
.breadcrumbs a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; transition: 0.2s; }
.breadcrumbs a:hover { color: #000; }
.breadcrumbs .breadcrumb-separator { margin: 0 8px; color: #8a8a8f; }
.breadcrumbs .breadcrumb-current { color: #5f6368; }

.catalog-header-text { margin-bottom: 15px; }
.catalog-title { font-size: 32px; font-weight: 800; text-transform: uppercase; margin-bottom: 12px; letter-spacing: 0.5px; }
.catalog-layout { display: flex; gap: 40px; align-items: flex-start; margin-bottom: 60px; }

.catalog-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 15px;
}

.catalog-sidebar::-webkit-scrollbar { width: 6px; }
.catalog-sidebar::-webkit-scrollbar-track { background: transparent; }
.catalog-sidebar::-webkit-scrollbar-thumb { background: #e5e5ea; border-radius: 10px; }
.catalog-sidebar::-webkit-scrollbar-thumb:hover { background: #d1d1d6; }

.sidebar-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.btn-filter-title { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; border: 1px solid #e5e5ea; padding: 8px 16px; border-radius: 30px; }
.btn-filter-title svg { width: 16px; height: 16px; stroke-width: 2.5; }
.btn-reset { font-size: 12px; color: var(--text-sec); transition: 0.2s; font-weight: 600; }
.btn-reset:hover { color: #ff3b30; }

.filter-group { border-top: 1px solid #f0f0f0; padding: 12px 0; }
.filter-group:first-of-type { border-top: none; padding-top: 0; }
.filter-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  color: inherit;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.filter-header svg { width: 16px; height: 16px; transition: transform 0.3s; stroke: #86868b; }
.filter-header.closed svg { transform: rotate(180deg); }
.filter-content { display: flex; flex-direction: column; gap: 14px; overflow: hidden; transition: 0.3s ease; }
.filter-content.closed { display: none; }

.custom-checkbox { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 13px; font-weight: 500; color: #111; user-select: none; }
.custom-checkbox.is-unavailable { opacity: .48; cursor: not-allowed; }
.custom-checkbox input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark { height: 18px; width: 18px; background-color: #fff; border: 2px solid #d1d1d6; border-radius: 4px; transition: 0.2s; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.custom-checkbox:hover input ~ .checkmark { border-color: #86868b; }
.custom-checkbox input:checked ~ .checkmark { background-color: #111; border-color: #111; }
.checkmark::after { content: ""; display: none; width: 4px; height: 8px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-1px); }
.custom-checkbox input:checked ~ .checkmark::after { display: block; }

.price-range-wrapper { padding: 10px 0; }
.price-labels { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: #5f6368; margin-bottom: 10px; }
.range-slider {
  position: relative;
  width: calc(100% - 18px);
  margin: 15px 9px 10px;
  height: 24px;
  background: none;
}
.range-slider::before { content: ""; position: absolute; top: 10px; left: 0; right: 0; height: 4px; background: #e5e5ea; border-radius: 2px; }
.range-track { position: absolute; top: 10px; height: 4px; background: #111; border-radius: 2px; z-index: 1; left: 0%; right: 0%; }
.range-slider input[type="range"] {
  position: absolute;
  width: 100%;
  height: 24px;
  top: 0;
  left: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  z-index: 2;
  margin: 0;
  padding: 0;
  outline: none;
}
.range-slider input[type="range"]::-webkit-slider-thumb { height: 22px; width: 22px; border-radius: 50%; background: #fff; border: 2px solid #111; pointer-events: auto; -webkit-appearance: none; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); cursor: pointer; transition: transform 0.1s; }
.range-slider input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }

.catalog-content { flex: 1; min-width: 0; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 15px; }
.catalog-found { font-size: 13px; color: #5f6368; font-weight: 400; }
.catalog-found span { color: #111; font-weight: 700; }
.toolbar-right { display: flex; align-items: center; gap: 15px; }

.custom-select-wrapper {
  position: relative;
  border: 1px solid #e5e5ea;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 400;
  user-select: none;
  transition: 0.2s;
  background: #fff;
}
.custom-select-wrapper:hover { border-color: #d1d1d6; }
.custom-select-button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; color: #111; font-size: 12px; font-weight: 400; }
.sort-caption { color: #5f6368; }
.custom-select-trigger { display: flex; align-items: center; gap: 6px; font-weight: 500; color: #111; }
.cs-arrow { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s ease; }
.custom-select-wrapper.open .cs-arrow { transform: rotate(180deg); }
.custom-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: max-content;
  min-width: 220px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 100;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.custom-select-wrapper.open .custom-options { opacity: 1; pointer-events: auto; transform: translateY(0); }
.custom-option { display: block; width: 100%; padding: 12px 20px; color: #111; text-align: left; font-size: 13px; font-weight: 500; cursor: pointer; transition: background 0.2s; }
.custom-option:hover { background: #f5f5f7; }
.custom-option.selected { color: #ff3b30; background: #fffaf9; }

.catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.catalog-message { grid-column: 1 / -1; margin: 0; padding: 50px; text-align: center; color: #86868b; }
.catalog-message.error { color: #ff3b30; }

.purchase-benefits { margin-top: 40px; border-top: 1px solid rgba(0, 0, 0, 0.06); background: #fff; display: grid; grid-template-columns: repeat(4, 1fr); }
.benefit-item { min-height: 70px; padding: 14px 10px; display: flex; justify-content: center; align-items: center; gap: 16px; position: relative; }
.benefit-item:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 30px; bottom: 30px; width: 1px; background: rgba(0, 0, 0, 0.06); }
.benefit-icon { width: 32px; height: 32px; color: #1d1d1f; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.benefit-icon svg { width: 100%; height: 100%; fill: currentColor; }
.benefit-title { font-size: 13px; font-weight: 700; color: #000; margin-bottom: 4px; }
.benefit-text { font-size: 12px; line-height: 1.4; color: #5f6368; font-weight: 500; }

/* Catalog responsive layout replaces the previous stacked sidebar and single-column cards. */
.catalog-filter-toggle { display: none; }
.catalog-dialog { border: 0; padding: 0; color: #171719; }
.custom-checkbox input:focus-visible ~ .checkmark { outline: 2px solid #777; outline-offset: 3px; }
@media (min-width: 768px) and (max-width: 1200px) {
  .catalog-layout { gap: 24px; }
  .catalog-sidebar { width: 220px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .purchase-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit-item:nth-child(2)::after { display: none; }
}
@media (max-width: 767px) {
  .catalog-body .breadcrumbs { padding: 16px 0 20px; font-size: 10px; line-height: 1.5; }
  .catalog-body .breadcrumbs a { font-weight: 400; }
  .catalog-body .breadcrumbs span { margin: 0 4px; }
  .catalog-header-text { margin-bottom: 12px; }
  .catalog-title { font-size: 22px; line-height: 1.15; letter-spacing: -.035em; margin: 0; }
  .catalog-layout { display: block; margin-bottom: 32px; }
  .catalog-layout > .catalog-sidebar { display: none; }
  .catalog-toolbar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 12px; margin-bottom: 18px; }
  .catalog-found { grid-column: 1 / -1; font-size: 12px; font-weight: 400; }
  .catalog-found span { font-weight: 500; }
  .catalog-filter-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid #e1e1e5; border-radius: 8px; background: #fff; font: 600 11px 'Montserrat', sans-serif; }
  .catalog-filter-toggle svg { width: 17px; height: 17px; }
  #activeFilterCount { font-size: 10px; }
  .toolbar-right { min-width: 0; justify-self: end; }
  .custom-select-wrapper { border-radius: 8px; max-width: 100%; }
  .custom-select-button { min-height: 40px; padding: 8px 10px; font-size: 10px; text-align: left; }
  .custom-select-trigger { min-width: 0; gap: 8px; }
  .cs-arrow { flex: 0 0 14px; }
  .sort-caption { display: none; }
  .catalog-body .catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
  .catalog-body .catalog-grid .card-wrapper { min-width: 0; }
  .catalog-message { padding: 36px 12px; font-size: 13px; line-height: 1.5; }
  .catalog-body { --catalog-benefits-height: 74px; padding-bottom: calc(var(--bottom-nav-height) + var(--catalog-benefits-height)); }
  .catalog-body .mobile-bottom-nav { border: 0; box-shadow: none; }
  .purchase-benefits-wrapper {
    position: fixed; inset: auto 0 var(--bottom-nav-height); z-index: 1090;
    background: #f1f1f3; border: 0;
    backdrop-filter: none; box-shadow: none;
  }
  .purchase-benefits-wrapper .container { padding-inline: var(--mobile-gutter); }
  .purchase-benefits { margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 64px; padding: 12px 0; gap: 12px; border: 0; background: transparent; }
  .benefit-item:nth-child(n + 3) { display: none; }
  .benefit-item { justify-content: flex-start; align-items: flex-start; padding: 0; min-height: 0; gap: 8px; }
  .benefit-item::after { display: none; }
  .benefit-icon { width: 23px; height: 23px; }
  .benefit-title { font-size: 10px; line-height: 1.4; }
  .benefit-text { font-size: 10px; }
  .catalog-body .epc-chat-widget { bottom: calc(var(--bottom-nav-height) + var(--catalog-benefits-height) + 14px); }
  .catalog-body .epc-chat-window { max-height: calc(100dvh - var(--bottom-nav-height) - var(--catalog-benefits-height) - 105px); }
  .catalog-body .catalog-grid .card-wrapper { scroll-margin-bottom: calc(var(--bottom-nav-height) + var(--catalog-benefits-height) + 16px); }
  .catalog-body:has(.catalog-dialog[open]) { overflow: hidden; }
  .catalog-dialog {
    position: fixed; inset: auto 0 0; margin: 0; width: 100%; max-width: none;
    height: min(90dvh, 960px); max-height: 100dvh;
    border-radius: 20px 20px 0 0; background: #fff;
    overflow: hidden; box-shadow: 0 -12px 40px #0002;
  }
  .catalog-dialog[open] { display: flex; flex-direction: column; }
  .catalog-dialog::backdrop { background: #10111499; }
  .catalog-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 20px; min-height: 64px; flex-shrink: 0; border-bottom: 1px solid #ededf0; }
  .catalog-dialog-heading h2 { font-size: 18px; font-weight: 700; margin: 0; }
  .catalog-dialog-heading button { width: 44px; height: 44px; margin-right: -10px; font-size: 27px; font-weight: 300; color: #444; }
  .catalog-dialog-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; flex: 1; padding: 0 20px 20px; }
  .catalog-dialog .catalog-sidebar { width: 100%; max-height: none; position: static; padding: 0; overflow: visible; }
  .catalog-dialog .sidebar-top { display: none; }
  .catalog-dialog .filter-group { padding: 18px 0; border-top: 1px solid #ededf0; }
  .catalog-dialog .filter-group:first-of-type { border-top: 0; }
  .catalog-dialog .filter-header { min-height: 28px; text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
  .catalog-dialog .filter-header.closed { margin-bottom: 0; }
  .catalog-dialog .filter-content { gap: 6px; }
  .catalog-dialog .custom-checkbox { min-height: 34px; font-size: 12px; font-weight: 400; gap: 10px; }
  .catalog-dialog .checkmark { border-width: 1px; width: 19px; height: 19px; }
  .catalog-dialog .price-labels { justify-content: flex-start; gap: 16px; font-size: 12px; font-weight: 400; }
  .catalog-dialog .price-labels span + span::before { content: '—'; margin-right: 16px; }
  .catalog-dialog .range-slider { margin-block: 18px; }
  .catalog-dialog .range-slider input[type=range]::-webkit-slider-thumb { width: 22px; height: 22px; box-shadow: none; }
  .range-slider input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid #111; pointer-events: auto; }
  .range-slider input:focus-visible::-webkit-slider-thumb { outline: 2px solid #777; outline-offset: 3px; }
  .catalog-filter-footer { flex-shrink: 0; display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; padding: 12px 16px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid #ededf0; background: #fff; }
  .catalog-filter-footer button { min-height: 46px; border-radius: 8px; padding: 10px 8px; background: #f2f2f4; color: #111; font-family: inherit; font-size: 11px; }
  .catalog-filter-footer #applyMobileFilters { background: #080808; color: #fff; font-weight: 600; }
  .catalog-filter-footer #applyMobileFilters:disabled { opacity: .5; }
  .catalog-sort-dialog { height: auto; max-height: 85dvh; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .catalog-sort-dialog .custom-options { position: static; transform: none; opacity: 1; pointer-events: auto; width: 100%; min-width: 0; border: 0; border-radius: 0; box-shadow: none; }
  .catalog-sort-dialog .custom-option { display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 12px 0; font-size: 12px; font-weight: 400; background: #fff; color: #222; }
  .catalog-sort-dialog .custom-option::before { content: ''; width: 22px; height: 22px; flex: 0 0 22px; border: 1px solid #d1d1d6; border-radius: 50%; }
  .catalog-sort-dialog .custom-option.selected::before { background: #111; border-color: #111; box-shadow: inset 0 0 0 4px #fff; }
}

@keyframes catalog-reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes catalog-panel-enter {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes catalog-backdrop-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .catalog-header-text, .catalog-toolbar { animation: catalog-reveal .35s ease-out both; }
  .catalog-toolbar { animation-delay: .05s; }
  .catalog-grid .card-wrapper { animation: catalog-reveal .4s ease-out backwards; }
  .catalog-grid .card-wrapper:nth-child(even) { animation-delay: .06s; }
  .catalog-dialog[open] { animation: catalog-panel-enter .28s cubic-bezier(.22, 1, .36, 1); }
  .catalog-dialog[open]::backdrop { animation: catalog-backdrop-enter .2s ease-out; }
  .catalog-dialog .filter-content:not(.closed) { animation: catalog-reveal .2s ease-out; }
  .catalog-filter-toggle, .custom-select-button, .catalog-filter-footer button { transition: background .18s ease, transform .18s ease; }
  .catalog-filter-toggle:active, .custom-select-button:active, .catalog-filter-footer button:active { transform: scale(.97); }
}
