/* ============================================================
   Дизайн-система витрины (перенос из design/, на CSS-токенах).
   Базовый файл: токены, шапка, подвал, кнопки, секции + главная.
   ============================================================ */
  :root {
    --bg: #f5f5f5;
    --surface: #ffffff;
    --fg: #111111;
    --muted: #6b6b6b;
    --border: #e0e0e0;
    --accent: #0058a3;
    --accent-hover: #004080;
    --accent-light: #e6f0fa;
    --warning: #f5a623;
    --success: #00843d;
    --radius: 8px;
    --radius-sm: 4px;
    --font: -apple-system, BlinkMacSystemFont, 'Noto Sans', 'Segoe UI', system-ui, sans-serif;
  }

  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--fg);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  /* Контент растягивается — подвал прижат к низу даже на коротких страницах.
     width:100% важен: без него флекс-элемент с margin:0 auto (.main) схлопывается до контента. */
  body > main,
  body > .co-main {
    flex: 1 0 auto;
    width: 100%;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  button {
    font-family: var(--font);
    cursor: pointer;
    border: none;
    background: none;
  }

  /* ── HEADER ── */
  .header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }

  .header-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 24px;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .logo-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--accent);
    line-height: 1.15;
    white-space: nowrap;
  }

  /* Крыша над словом «дому» */
  .logo-home {
    position: relative;
    display: inline-block;
  }
  .logo-roof {
    position: absolute;
    left: -1px;
    right: -1px;
    top: -0.46em;
    height: 0.4em;
    display: block;
    pointer-events: none;
  }

  .search-wrap {
    flex: 1;
    max-width: 560px;
    margin: 0 auto;
    position: relative;
  }

  .search-input {
    width: 100%;
    height: 42px;
    padding: 0 42px 0 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: var(--font);
    background: var(--bg);
    color: var(--fg);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
  }

  .search-input::placeholder {
    color: var(--muted);
  }

  .search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 88, 163, 0.12);
    background: var(--surface);
  }

  .search-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 42px;
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: color 0.15s;
  }

  .search-btn:hover {
    color: var(--accent);
  }

  .header-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }

  .icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    color: var(--fg);
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
  }

  .icon-btn:hover {
    background: var(--bg);
    color: var(--accent);
  }

  .cart-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 17px;
    height: 17px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  .hamburger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    color: var(--fg);
    transition: background 0.15s;
  }

  .hamburger-btn:hover {
    background: var(--bg);
  }

  /* ── CATEGORY NAV ── */
  .category-nav {
    border-top: 1px solid var(--border);
    background: var(--surface);
  }

  .category-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 44px;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .category-nav-inner::-webkit-scrollbar {
    display: none;
  }

  .cat-nav-link {
    flex-shrink: 0;
    padding: 0 14px;
    height: 44px;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--fg);
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
    text-decoration: none;
  }

  .cat-nav-link:hover,
  .cat-nav-link.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
  }

  /* Mobile nav dropdown */
  .mobile-nav-dropdown {
    display: none;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }

  .mobile-nav-dropdown.open {
    display: block;
  }

  .mobile-search-bar {
    display: none;
    padding: 10px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }

  .mobile-search-bar .search-wrap {
    max-width: 100%;
    margin: 0;
  }

  .mobile-nav-link {
    display: block;
    padding: 11px 20px;
    font-size: 15px;
    color: var(--fg);
    transition: background 0.1s;
    text-decoration: none;
  }

  .mobile-nav-link:hover {
    background: var(--bg);
    color: var(--accent);
  }

  /* ── MAIN ── */
  .main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
  }

  /* ── HERO ── */
  .hero {
    background: var(--accent-light);
    border-radius: 12px;
    margin: 24px 24px 0;
    max-width: calc(1280px - 48px);
    margin-left: auto;
    margin-right: auto;
    margin-top: 24px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 48px 64px;
    overflow: hidden;
    position: relative;
  }

  .hero-content {
    max-width: 500px;
    flex-shrink: 0;
    z-index: 1;
  }

  .hero-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
  }

  .hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--fg);
    margin-bottom: 16px;
  }

  .hero-sub {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 400px;
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: background 0.15s, transform 0.1s;
    text-decoration: none;
    border: none;
    cursor: pointer;
  }

  .btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
  }

  .btn-primary:active {
    transform: translateY(0);
  }

  .hero-illustration {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
  }

  .hero-illustration svg {
    width: 100%;
    height: auto;
    max-width: 520px;
    max-height: 360px;
  }

  /* ── SECTION COMMON ── */
  .section {
    padding: 56px 0 0;
  }

  .section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
  }

  .section-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--fg);
  }

  .section-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
  }

  .section-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
  }

  /* ── CATEGORY GRID ── */
  .category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .cat-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--border);
    transition: transform 0.18s, box-shadow 0.18s;
    cursor: pointer;
    text-decoration: none;
    color: var(--fg);
  }

  .cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  }

  .cat-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cat-name {
    font-size: 16px;
    font-weight: 600;
    margin-top: 4px;
  }

  .cat-count {
    font-size: 13px;
    color: var(--muted);
  }

  /* Category card bg colors */
  .cat-bg-1 { background: #d9eaf7; }
  .cat-bg-2 { background: #fdecd5; }
  .cat-bg-3 { background: #d6f2e5; }
  .cat-bg-4 { background: #f0e6f6; }
  .cat-bg-5 { background: #fde8e8; }
  .cat-bg-6 { background: #e6f4ee; }

  .cat-ic-bg-1 { background: #b3d4ef; }
  .cat-ic-bg-2 { background: #fad4a0; }
  .cat-ic-bg-3 { background: #a3dfc0; }
  .cat-ic-bg-4 { background: #d9c0ed; }
  .cat-ic-bg-5 { background: #f5bcbc; }
  .cat-ic-bg-6 { background: #b3dcc8; }

  /* ── PRODUCT CARDS ── */
  .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .products-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s, box-shadow 0.18s;
    text-decoration: none;
    color: var(--fg);
  }

  .product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  }

  .product-img {
    background: #e8e8e8;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }

  .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    line-height: 1.4;
  }

  .badge-sale {
    background: var(--warning);
    color: #fff;
  }

  .badge-new {
    background: var(--success);
    color: #fff;
  }

  .product-info {
    padding: 14px 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .product-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--fg);
  }

  .product-desc {
    font-size: 12px;
    color: var(--muted);
    margin-top: -2px;
  }

  .product-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
    flex-wrap: wrap;
  }

  .product-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--fg);
  }

  .product-price-old {
    font-size: 13px;
    color: var(--muted);
    text-decoration: line-through;
  }

  .product-footer {
    padding: 0 14px 14px;
  }

  .btn-cart {
    width: 100%;
    padding: 9px 16px;
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background: transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-family: var(--font);
  }

  .btn-cart:hover {
    background: var(--accent);
    color: #fff;
  }

  .btn-cart.added {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
  }

  /* ── PROMO BANNER ── */
  .promo-banner {
    margin-top: 56px;
    background: var(--accent);
    border-radius: 12px;
    padding: 40px 64px;
    display: flex;
    align-items: center;
    gap: 32px;
  }

  .promo-icon {
    flex-shrink: 0;
    opacity: 0.9;
  }

  .promo-text {
    color: #fff;
  }

  .promo-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
  }

  .promo-sub {
    font-size: 15px;
    opacity: 0.82;
    line-height: 1.5;
  }

  /* ── FOOTER ── */
  .footer {
    margin-top: 64px;
    background: var(--fg);
    color: #fff;
  }

  .footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }

  .footer-col-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 16px;
  }

  .footer-logo-name {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
    margin-bottom: 10px;
    line-height: 1.2;
  }

  .footer-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .footer-links li a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.15s;
  }

  .footer-links li a:hover {
    color: #fff;
  }

  .footer-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
  }

  .footer-contact-row a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.15s;
  }

  .footer-contact-row a:hover {
    color: #fff;
  }

  .social-icons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
  }

  .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
  }

  .social-icon:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
  }

  .footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer-copy {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
  }

  .footer-bottom-links {
    display: flex;
    gap: 20px;
  }

  .footer-bottom-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.15s;
  }

  .footer-bottom-links a:hover {
    color: rgba(255,255,255,0.75);
  }

  /* ── RESPONSIVE ── */

  /* Tablet */
  @media (max-width: 1023px) {
    .hero {
      padding: 40px 40px;
      min-height: 380px;
    }

    .hero-title {
      font-size: 32px;
    }

    .hero-sub {
      font-size: 15px;
    }

    .hero-illustration svg {
      max-width: 340px;
      max-height: 280px;
    }

    .category-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
      grid-template-columns: repeat(3, 1fr);
    }

    .products-grid-4 {
      grid-template-columns: repeat(3, 1fr);
    }

    .footer-inner {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* Mobile */
  @media (max-width: 599px) {
    .header-main {
      padding: 0 16px;
      height: 56px;
      gap: 0;
    }

    .search-wrap {
      display: none;
    }

    .category-nav {
      display: none;
    }

    .hamburger-btn {
      display: flex;
    }

    .mobile-search-bar {
      display: block;
    }

    .header-icons .icon-btn:not(.cart-icon-btn):not(.hamburger-btn) {
      display: none;
    }

    .logo-name {
      font-size: 14px;
    }

    .logo-icon {
      width: 28px;
      height: 28px;
    }

    .logo {
      gap: 6px;
      margin-right: auto;
    }

    .hero {
      flex-direction: column;
      align-items: flex-start;
      min-height: auto;
      padding: 32px 24px;
      margin: 16px 16px 0;
      gap: 24px;
    }

    .hero-title {
      font-size: 26px;
      letter-spacing: -0.5px;
    }

    .hero-sub {
      font-size: 14px;
      margin-bottom: 20px;
    }

    .hero-illustration {
      flex: none;
      align-self: center;
      width: 100%;
    }

    .hero-illustration svg {
      max-width: 280px;
    }

    .main {
      padding: 0 16px;
    }

    .section {
      padding: 40px 0 0;
    }

    .section-title {
      font-size: 20px;
    }

    .category-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }

    .cat-card {
      padding: 20px 16px;
    }

    .cat-name {
      font-size: 14px;
    }

    /* Horizontal scroll for products on mobile */
    .products-scroll-wrap {
      overflow-x: auto;
      scrollbar-width: none;
      margin: 0 -16px;
      padding: 0 16px;
    }

    .products-scroll-wrap::-webkit-scrollbar {
      display: none;
    }

    .products-grid {
      grid-template-columns: unset;
      display: flex;
      gap: 12px;
      width: max-content;
    }

    .products-grid .product-card {
      width: 180px;
      flex-shrink: 0;
    }

    .products-grid-4 {
      grid-template-columns: repeat(2, 1fr);
      display: grid;
      width: auto;
    }

    .products-grid-4 .product-card {
      width: auto;
    }

    .btn-cart {
      font-size: 12px;
      padding: 8px 10px;
    }

    .promo-banner {
      padding: 24px 20px;
      border-radius: var(--radius);
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
      margin-top: 40px;
    }

    .promo-title {
      font-size: 18px;
    }

    .promo-sub {
      font-size: 13px;
    }

    .footer-inner {
      grid-template-columns: 1fr;
      gap: 32px;
      padding: 40px 16px 32px;
    }

    .footer-bottom {
      padding: 16px;
      flex-direction: column;
      align-items: flex-start;
    }

    font-size: 14px;
  }

  @media (min-width: 600px) {
    .products-scroll-wrap {
      overflow: visible;
    }
  }

/* ── Наши дополнения (сохранены из прежнего app.css) ── */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Контент описания (HTML из WB) */
.prose p  { margin-bottom: 1em; }
.prose ul { list-style-type: disc;    padding-left: 1.5em; margin-bottom: 1em; }
.prose ol { list-style-type: decimal; padding-left: 1.5em; margin-bottom: 1em; }

/* Toast-уведомления */
.ikea-toast { opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.ikea-toast--show { opacity: 1; transform: translateY(0); }

/* ============================================================
   Общая обвязка (адаптировано под дизайн-токены):
   выпадашка поиска, тосты, cookie-баннер, бейдж избранного.
   ============================================================ */

/* Бейдж избранного — как корзинный, но можно отдельно */
.fav-badge { position:absolute; top:6px; right:6px; min-width:17px; height:17px; padding:0 4px; background:var(--accent); color:#fff; font-size:10px; font-weight:700; border-radius:9px; display:flex; align-items:center; justify-content:center; line-height:1; }
.cart-badge.is-empty, .fav-badge.is-empty { display:none; }

/* Сердечко «в избранное» (активное состояние) */
.icon-btn.is-active svg path { fill: var(--accent); stroke: var(--accent); }

/* Живой поиск — выпадашка */
.search-dropdown { position:absolute; top:48px; left:0; right:0; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:0 8px 32px rgba(0,0,0,.12); overflow:hidden; z-index:200; max-height:70vh; overflow-y:auto; }
.search-dropdown.hidden { display:none; }
.search-row { display:flex; align-items:center; gap:12px; padding:9px 14px; color:var(--fg); transition:background .12s; }
.search-row:hover { background:var(--bg); }
.search-row img { width:40px; height:48px; object-fit:cover; border-radius:var(--radius-sm); flex-shrink:0; background:var(--bg); }
.search-row-title { font-size:13px; line-height:1.3; }
.search-row-price { font-size:14px; font-weight:700; margin-top:2px; }
.search-empty { padding:22px 14px; text-align:center; color:var(--muted); font-size:14px; }
.search-all { display:block; padding:11px 14px; text-align:center; font-size:13px; font-weight:600; color:var(--accent); border-top:1px solid var(--border); }
.search-all:hover { background:var(--bg); }

/* Toast-уведомления */
#toast-container { position:fixed; right:16px; bottom:16px; z-index:200; display:flex; flex-direction:column; gap:8px; pointer-events:none; }
.ikea-toast { display:flex; align-items:center; gap:10px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:0 8px 24px rgba(0,0,0,.14); padding:12px 16px; font-size:14px; color:var(--fg); max-width:320px; pointer-events:auto; }
.ikea-toast svg { flex-shrink:0; }

/* Cookie-баннер */
.cookie-banner { position:fixed; left:0; right:0; bottom:0; z-index:150; background:var(--surface); border-top:1px solid var(--border); box-shadow:0 -4px 24px rgba(0,0,0,.08); padding:16px; }
.cookie-banner.hidden { display:none; }
.cookie-inner { max-width:1280px; margin:0 auto; display:flex; flex-wrap:wrap; align-items:center; gap:14px; }
.cookie-text { flex:1; min-width:240px; font-size:13px; color:var(--muted); line-height:1.5; }
.cookie-text b { color:var(--fg); }
.cookie-text a { color:var(--accent); text-decoration:underline; }

/* Кнопки общего назначения */
.btn-outline { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:12px 24px; background:var(--surface); color:var(--fg); border:1px solid var(--border); border-radius:var(--radius); font-size:14px; font-weight:600; cursor:pointer; transition:border-color .15s, color .15s; text-decoration:none; }
.btn-outline:hover { border-color:var(--accent); color:var(--accent); }

/* Хлебные крошки (в layout) */
.breadcrumbs-bar { background:var(--surface); border-bottom:1px solid var(--border); }
.breadcrumbs { padding:12px 0; font-size:13px; color:var(--muted); display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.breadcrumbs a { color:var(--muted); transition:color .15s; }
.breadcrumbs a:hover { color:var(--accent); }
.breadcrumbs .sep { color:var(--border); }
.breadcrumbs .current { color:var(--fg); }

/* Скрытие десктоп/мобайл элементов шапки */
@media (max-width:860px){
  .header .search-wrap:not(.mobile-search-bar .search-wrap){ display:none; }
  .header-main > .search-wrap { display:none; }
  .mobile-search-bar { display:block; }
  .hamburger-btn { display:flex; }
  .category-nav { display:none; }
}

/* Утилиты для JS-тогглов (переживут удаление Tailwind) */
.hidden { display: none !important; }

/* ── Кнопка покупки на карточке (buy-control) ── */
.bc { margin-top:auto; width:100%; }
.bc-add { width:100%; height:40px; background:var(--accent); color:#fff; border-radius:var(--radius); font-size:14px; font-weight:600; display:flex; align-items:center; justify-content:center; transition:background .15s; }
.bc-add:hover { background:var(--accent-hover); }
.bc-step { width:100%; height:40px; display:flex; align-items:center; justify-content:space-between; background:var(--accent-light); border-radius:var(--radius); }
.bc-step .bc-btn { width:42px; height:40px; display:flex; align-items:center; justify-content:center; color:var(--accent); }
.bc-step .bc-btn:hover:not(:disabled) { color:var(--accent-hover); }
.bc-step .bc-btn:disabled { opacity:.35; cursor:default; }
.bc-btn svg { width:16px; height:16px; }
.bc-qty { font-size:14px; font-weight:700; color:var(--fg); min-width:24px; text-align:center; }

/* ── Статичные страницы (page.blade) ── */
.static-page { max-width:760px; margin:0 auto; padding:20px 0 40px; }
.static-page-title { font-size:28px; font-weight:800; letter-spacing:-.5px; margin-bottom:18px; }
.static-page-lead { font-size:16px; color:var(--muted); line-height:1.6; margin-bottom:20px; }

/* ── Скидки: старая цена + бейдж процента ── */
.price-old { font-size:.82em; color:var(--muted); text-decoration:line-through; margin-left:7px; font-weight:500; white-space:nowrap; }
.price-badge { display:inline-block; background:#e21a1a; color:#fff; font-size:11px; font-weight:700; line-height:1; padding:3px 6px; border-radius:4px; margin-left:7px; vertical-align:middle; white-space:nowrap; }
.product-card-price.has-discount .price-current { color:#e21a1a; }
.price-block .price-old { font-size:18px; margin-left:10px; }
.price-block .price-badge { font-size:13px; padding:4px 8px; margin-left:10px; }

/* ── Мобильная нижняя нав-панель ── */
.bottom-nav { display:none; }
@media (max-width:768px) {
  .bottom-nav { position:fixed; left:0; right:0; bottom:0; z-index:90; display:flex; background:var(--surface); border-top:1px solid var(--border); box-shadow:0 -2px 12px rgba(0,0,0,.06); padding-bottom:env(safe-area-inset-bottom); }
  .bottom-nav-item { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; height:56px; font-size:10px; color:var(--muted); }
  .bottom-nav-item svg { width:23px; height:23px; }
  .bottom-nav-item:active { color:var(--accent); }
  .bottom-nav-ico { position:relative; display:flex; }
  .bottom-nav-badge { position:absolute; top:-5px; right:-9px; min-width:16px; height:16px; padding:0 4px; background:var(--accent); color:#fff; font-size:10px; font-weight:700; line-height:1; border-radius:8px; display:flex; align-items:center; justify-content:center; }
  body { padding-bottom:56px; }
}

/* ── Верхняя панель контактов (десктоп) ── */
.top-bar { background:#fff; border-bottom:1px solid var(--border); font-size:13px; }
.top-bar-inner { max-width:1280px; margin:0 auto; padding:7px 24px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.top-bar-links { display:flex; gap:18px; }
.top-bar-links a { color:var(--muted); transition:color .15s; }
.top-bar-links a:hover { color:var(--accent); }
.top-bar-contacts { display:flex; align-items:center; gap:12px; }
.top-phone { font-weight:700; color:var(--fg); letter-spacing:.01em; }
.top-phone:hover { color:var(--accent); }
.msg-ico { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; transition:transform .12s; }
.msg-ico:hover { transform:translateY(-1px); }
.msg-ico svg { width:22px; height:22px; }
.msg-ico.wa { color:#25d366; }
.msg-ico.tg { color:#2aabee; }
.top-callback { color:var(--accent); font-weight:600; border-bottom:1px dashed currentColor; line-height:1.1; }
.top-callback:hover { color:var(--accent-hover); }
@media (max-width:768px) { .top-bar { display:none; } }

/* ── Плавающий виджет связи ── */
.contact-fab { position:fixed; right:24px; bottom:24px; z-index:95; display:flex; flex-direction:column; align-items:flex-end; gap:10px; }
.contact-fab-btn { position:relative; width:56px; height:56px; border-radius:50%; background:var(--accent); color:#fff; box-shadow:0 6px 20px rgba(0,88,163,.4); display:flex; align-items:center; justify-content:center; transition:background .2s, transform .2s; }
.contact-fab-btn:hover { background:var(--accent-hover); }
.contact-fab-btn .cfb-close { display:none; }
.contact-fab.open .contact-fab-btn .cfb-chat { display:none; }
.contact-fab.open .contact-fab-btn .cfb-close { display:block; }
.contact-fab-menu { display:flex; flex-direction:column; gap:8px; opacity:0; transform:translateY(10px); pointer-events:none; transition:opacity .2s, transform .2s; }
.contact-fab.open .contact-fab-menu { opacity:1; transform:translateY(0); pointer-events:auto; }
.cfm-item { display:block; padding:9px 16px; border-radius:22px; background:#fff; color:var(--fg); font-size:14px; font-weight:600; box-shadow:0 3px 12px rgba(0,0,0,.14); white-space:nowrap; text-align:center; }
.cfm-item.wa { background:#25d366; color:#fff; }
.cfm-item.tg { background:#2aabee; color:#fff; }
.cfm-item.ph { background:var(--accent); color:#fff; }
.cfm-item.vk { background:#0077ff; color:#fff; }
.cfm-item.mx { background:#7b5cff; color:#fff; }
.cfm-item:hover { filter:brightness(.96); }
@media (max-width:768px) { .contact-fab { right:16px; bottom:70px; } .contact-fab-btn { width:50px; height:50px; } }

/* ── Модалка «Заказать звонок» ── */
.cb-modal { position:fixed; inset:0; z-index:200; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.5); padding:16px; }
.cb-modal-card { position:relative; background:#fff; border-radius:var(--radius); padding:28px 26px; width:100%; max-width:380px; }
.cb-close { position:absolute; top:12px; right:12px; color:var(--muted); }
.cb-close:hover { color:var(--fg); }
.cb-modal-card h3 { font-size:20px; font-weight:700; margin-bottom:6px; }
.cb-modal-card > p { color:var(--muted); font-size:14px; margin-bottom:18px; }
.cb-input { display:block; width:100%; border:1.5px solid var(--border); border-radius:var(--radius-sm); padding:11px 14px; font-size:15px; outline:none; margin-bottom:12px; transition:border-color .15s; }
.cb-input:focus { border-color:var(--accent); }
.cb-submit { width:100%; background:var(--accent); color:#fff; font-size:15px; font-weight:700; padding:12px; border-radius:var(--radius-sm); transition:background .15s; }
.cb-submit:hover { background:var(--accent-hover); }
.cb-submit:disabled { opacity:.6; cursor:default; }
.cb-error { color:#c0392b; font-size:13px; margin-bottom:10px; }
.cb-done { color:var(--success); font-size:15px; font-weight:500; text-align:center; }

/* ── Карточка товара (глобально: товар-«похожие», корзина-кросс-сейл, и как фолбэк) ── */
.product-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.product-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; transition:box-shadow .2s, border-color .2s; }
.product-card:hover { border-color:transparent; box-shadow:0 4px 20px rgba(0,0,0,.08); }
.product-card.oos { opacity:.65; }
.product-card-img { position:relative; aspect-ratio:3/4; background:var(--bg); overflow:hidden; }
.product-card-img img { width:100%; height:100%; object-fit:cover; display:block; }
.product-card-img .placeholder-icon { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:var(--border); }
.card-img-link { display:block; width:100%; height:100%; }
.product-card-badge { position:absolute; top:8px; left:8px; display:flex; gap:4px; z-index:2; }
.badge { padding:3px 8px; border-radius:3px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.3px; }
.badge-oos { background:#6b6b6b; color:#fff; }
.product-card-wishlist { position:absolute; top:8px; right:8px; width:32px; height:32px; background:var(--surface); border:1px solid var(--border); border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--muted); transition:color .15s; z-index:2; }
.product-card-wishlist:hover, .product-card-wishlist.is-active { color:#e44; }
.product-card-body { padding:12px 14px 14px; }
.product-card-name { display:-webkit-box; font-size:13px; font-weight:600; color:var(--fg); margin-bottom:4px; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.product-card-name:hover { color:var(--accent); }
.product-card-price { display:flex; align-items:baseline; flex-wrap:wrap; gap:6px; }
.product-card-price .price-current { font-size:16px; font-weight:700; }
.product-card-price.muted .price-current { color:var(--muted); font-weight:500; font-size:14px; }
.product-card-actions { margin-top:10px; }
@media (max-width:900px) { .product-grid { grid-template-columns:repeat(3,1fr); } }
@media (max-width:640px) { .product-grid { grid-template-columns:repeat(2,1fr); gap:10px; } .product-card-body { padding:8px 10px 10px; } }

/* ── Выравнивание: первый пункт меню к левому краю контента (как лого/крошки) ── */
.cat-nav-link:first-child { padding-left: 0; }

/* ── Активное избранное: заливаем сердце целиком ── */
.wishlist-heart.is-active svg,
.product-card-wishlist.is-active svg,
.favorite-link.active svg { fill: currentColor; stroke: currentColor; }

/* ── Иконки шапки: иконка + подпись + бейдж-счётчик ── */
.header-act { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 12px; color: var(--fg); border-radius: var(--radius-sm); transition: color .15s, background .15s; text-decoration: none; }
.header-act:hover { color: var(--accent); background: var(--bg); }
.header-act-ico { position: relative; display: flex; }
.header-act-label { font-size: 11px; line-height: 1; }
.header-badge { position: absolute; top: -7px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; border-radius: 7px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 599px) { .header-act { display: none; } }

/* ── FAQ (Вопрос-Ответ) ── */
.faq-page { max-width: 760px; margin: 0 auto; padding: 8px 0 24px; }
.faq-title { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; text-align: center; }
.faq-lead { text-align: center; color: var(--muted); font-size: 16px; margin: 8px 0 28px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-ico { flex-shrink: 0; color: var(--accent); transition: transform .2s; }
.faq-item[open] summary { color: var(--accent); }
.faq-item[open] .faq-ico { transform: rotate(45deg); }
.faq-answer { padding: 0 20px 18px; color: var(--muted); line-height: 1.65; font-size: 15px; }
.faq-cta { margin-top: 32px; text-align: center; background: var(--accent-light); border-radius: var(--radius); padding: 32px 24px; }
.faq-cta h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.faq-cta p { color: var(--muted); margin-bottom: 18px; }
.faq-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 560px) { .faq-title { font-size: 24px; } }

/* ── Страница «Контакты» ── */
.contacts-page { max-width: 980px; margin: 0 auto; padding: 8px 0 30px; }
.contacts-title { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 8px; }
.contacts-lead { color: var(--muted); font-size: 16px; margin-bottom: 28px; max-width: 640px; }
.contacts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 26px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.contact-card-ico { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-light); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.contact-card-label { font-size: 13px; color: var(--muted); margin-bottom: 3px; }
.contact-card-value { font-size: 16px; font-weight: 600; color: var(--fg); line-height: 1.4; word-break: break-word; }
.contact-card-value a:hover { color: var(--accent); }
.contacts-socials { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.contacts-social { display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 24px; color: #fff; font-weight: 600; font-size: 14px; transition: filter .15s; }
.contacts-social:hover { filter: brightness(.95); }
.contacts-social.wa { background: #25d366; }
.contacts-social.tg { background: #2aabee; }
.contacts-social.vk { background: #0077ff; }
.contacts-social.mx { background: #7b5cff; }
.contacts-cta { background: var(--accent-light); border-radius: var(--radius); padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.contacts-cta-title { font-size: 18px; font-weight: 700; }
.contacts-cta-sub { font-size: 14px; color: var(--muted); margin-top: 2px; }
@media (max-width: 560px) { .contacts-title { font-size: 24px; } }
