
:root {
  --bg: #ffffff;
  --sec-bg: #f5f5f7;
  --card-bg: #ffffff;
  --text: #1d1d1f;
  --text-sec: #86868b;
  --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: #666; 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 h4 { color: #86868b; 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: #ff3b30; }
    .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; }
}
