/* Shared styles extracted from index.html and catalog.html */

/* Home page styles */

:root {
      --bg: #f6f9fc;
      --card: #ffffff;
      --text: #172033;
      --muted: #68758a;
      --primary: #0ea5e9;
      --primary-dark: #0284c7;
      --accent: #e0f7ff;
      --border: #e6edf5;
      --shadow: 0 12px 30px rgba(15, 23, 42, .08);
      --radius: 16px;
    }

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

    html {
      scroll-behavior: smooth;
    }

    html,
    body {
      min-height: 100%;
    }

    body {
      font-family: "Inter", system-ui, sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.5;
    }

    @media (min-width: 1025px) {
      body {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
      }

      body > main {
        flex: 1 0 auto;
      }

      body > .footer {
        margin-top: auto;
      }
    }

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

    img {
      max-width: 100%;
      display: block;
    }

    .container,
    .container-fluid,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
      --bs-gutter-x: 1.5rem;
      --bs-gutter-y: 0;
      width: 100%;
      padding-right: 0;
      padding-left: 0;
      margin-right: auto;
      margin-left: auto;
    }

    .container {
      width: min(1180px, calc(100% - 32px));
      margin: 0 auto;
    }

    .header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(255,255,255,.9);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border);
    }

    .header__inner {
      min-height: 76px;
      display: flex;
      align-items: center;
      gap: 18px;
      position: relative;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 800;
      font-size: 18px;
      white-space: nowrap;
    }

    .logo img {
      width: 42px;
      height: 42px;
      border-radius: 12px;
      object-fit: cover;
      background: var(--accent);
    }

    .catalog-btn,
    .cta,
    .cart-btn {
      border: 0;
      cursor: pointer;
      border-radius: 14px;
      font-weight: 700;
      transition: .25s ease;
    }

    .catalog-btn {
      padding: 13px 18px;
      background: var(--primary);
      color: #fff;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .catalog-btn:hover,
    .cta:hover,
    .cart-btn:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
    }

    .catalog-nav {
      position: relative;
    }

    .catalog-dropdown {
      position: absolute;
      top: calc(100% - 2px);
      left: 0;
      min-width: 540px;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
      padding: 16px;
      border-radius: 20px;
      border: 1px solid rgba(203, 213, 225, 0.9);
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.98));
      box-shadow:
        0 20px 44px rgba(15, 23, 42, 0.16),
        0 2px 10px rgba(14, 165, 233, 0.14);
      backdrop-filter: blur(8px);
      opacity: 0;
      visibility: hidden;
      transform: translateY(8px);
      pointer-events: none;
      transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
      z-index: 120;
    }

    .catalog-nav:hover .catalog-dropdown,
    .catalog-nav:focus-within .catalog-dropdown,
    .catalog-nav.is-open .catalog-dropdown {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      pointer-events: auto;
    }

    .catalog-dropdown__col {
      display: grid;
      gap: 8px;
      align-content: start;
      padding: 8px 10px;
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.72);
      border: 1px solid rgba(226, 232, 240, 0.9);
    }

    .catalog-dropdown__col + .catalog-dropdown__col {
      border-left: 2px solid rgba(148, 163, 184, 0.18);
    }

    .catalog-dropdown__title {
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .12em;
      color: var(--muted);
      margin-bottom: 4px;
    }

    .catalog-dropdown a {
      display: block;
      padding: 10px 12px;
      border-radius: 10px;
      font-weight: 600;
      color: var(--text);
      border: 1px solid transparent;
      transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
    }

    .catalog-dropdown a:hover {
      background: linear-gradient(180deg, #e8f7ff, #ddf2ff);
      color: var(--primary-dark);
      border-color: rgba(14, 165, 233, 0.28);
      transform: translateX(2px);
    }

    .search {
      flex: 1;
      position: relative;
    }

    .search i {
      position: absolute;
      top: 50%;
      left: 16px;
      transform: translateY(-50%);
      color: var(--muted);
    }

    .search input {
      width: 100%;
      height: 48px;
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 0 16px 0 46px;
      outline: none;
      font-size: 15px;
      background: #fff;
    }

    .search input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 4px rgba(14,165,233,.12);
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .icon-btn {
      width: 46px;
      height: 46px;
      border-radius: 14px;
      border: 1px solid var(--border);
      background: #fff;
      cursor: pointer;
      display: grid;
      place-items: center;
      position: relative;
      color: var(--text);
      transition: .25s;
    }

    .icon-btn:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow);
      color: var(--primary);
    }

    .badge {
      position: absolute;
      top: -6px;
      right: -5px;
      min-width: 20px;
      height: 20px;
      padding: 0 6px;
      border-radius: 999px;
      background: #ef4444;
      color: #fff;
      font-size: 12px;
      display: grid;
      place-items: center;
      font-weight: 700;
    }

    .mobile-toggle {
      display: none;
      border: 0;
      background: #fff;
      color: var(--text);
      border: 1px solid var(--border);
      cursor: pointer;
      width: 46px;
      height: 46px;
      border-radius: 14px;
      font-size: 20px;
      transition: .25s;
    }

    .mobile-toggle:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow);
      color: var(--primary);
    }

    .tablet-search-toggle {
      display: none;
    }

    .mobile-menu {
      display: none;
      border-top: 1px solid var(--border);
      background: #fff;
      padding: 16px;
      max-height: calc(100vh - 76px);
      max-height: calc(100dvh - 76px);
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
    }

    .mobile-menu.active {
      display: block;
      animation: slideDown .25s ease;
    }

    .mobile-menu a {
      display: block;
      padding: 14px;
      border-radius: 12px;
      font-weight: 600;
    }

    .mobile-menu a:hover {
      background: var(--accent);
    }

    .mobile-menu__title {
      margin: 12px 14px 6px;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .mobile-menu__section {
      margin: 10px 0;
      padding: 10px;
      border-radius: 12px;
      border: 1px solid rgba(203, 213, 225, 0.85);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 255, 0.96));
    }

    .hero {
      padding: 52px 0 36px;
    }

    .hero__box {
      overflow: hidden;
      position: relative;
      border-radius: 28px;
      padding: 28px;
      background:
        radial-gradient(circle at top right, rgba(255,255,255,.95), transparent 28%),
        radial-gradient(circle at 18% 18%, rgba(14,165,233,.12), transparent 22%),
        linear-gradient(135deg, #f8fdff 0%, #eef8ff 48%, #f5fbff 100%);
      border: 1px solid rgba(14,165,233,.12);
      box-shadow: 0 18px 44px rgba(15, 23, 42, .09);
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
      gap: 24px;
    }

    .hero__content {
      position: relative;
      z-index: 2;
      padding: 8px 0;
    }

    .hero__eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 10px 16px;
      border-radius: 999px;
      background: rgba(255,255,255,.78);
      border: 1px solid rgba(14,165,233,.14);
      color: #0369a1;
      font-size: 14px;
      font-weight: 700;
      margin-bottom: 16px;
      backdrop-filter: blur(14px);
    }

    .hero__eyebrow::before {
      content: "";
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #67e8f9;
      box-shadow: 0 0 0 8px rgba(103,232,249,.16);
    }

    .hero h1 {
      font-size: clamp(30px, 5vw, 54px);
      line-height: 1;
      letter-spacing: -0.05em;
      margin-bottom: 14px;
      color: #0f172a;
      max-width: 10ch;
    }

    .hero p {
      font-size: clamp(15px, 1.8vw, 18px);
      color: #5b6b80;
      max-width: 560px;
      margin-bottom: 22px;
    }

    .hero__actions {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 18px;
    }

    .cta {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 16px 24px;
      background: var(--primary);
      color: #fff;
      box-shadow: 0 18px 40px rgba(14,165,233,.24);
    }

    .cta:hover {
      background: var(--primary-dark);
    }

    .hero__link {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: #0369a1;
      font-weight: 700;
      padding: 16px 0;
    }

    .hero__visual {
      position: relative;
      min-height: 100%;
      z-index: 1;
      display: flex;
      align-items: stretch;
      justify-content: flex-start;
    }

    .hero__panel {
      width: min(100%, 390px);
      min-height: 100%;
      border-radius: 20px;
      background: rgba(255,255,255,.72);
      border: 1px solid rgba(14,165,233,.10);
      padding: 12px;
      box-shadow: 0 14px 30px rgba(15,23,42,.06);
      backdrop-filter: blur(20px);
      display: grid;
      gap: 0;
      position: relative;
    }

    .hero__panel::before,
    .hero__panel::after {
      content: "";
      position: absolute;
      border-radius: 50%;
      pointer-events: none;
    }

    .hero__panel::before {
      width: 132px;
      height: 132px;
      right: -28px;
      top: -34px;
      background: radial-gradient(circle, rgba(14,165,233,.10), transparent 70%);
    }

    .hero__panel::after {
      width: 180px;
      height: 180px;
      left: -50px;
      bottom: -70px;
      background: radial-gradient(circle, rgba(186,230,253,.25), transparent 68%);
    }

    .hero__card {
      border-radius: 16px;
      background: #ffffff;
      border: 1px solid rgba(14,165,233,.08);
      padding: 12px;
      color: #0f172a;
      position: relative;
      overflow: hidden;
      box-shadow: 0 8px 20px rgba(15,23,42,.05);
    }

    .hero__card--featured {
      min-height: 320px;
      display: block;
      background: #ffffff;
    }

    .hero__featured-media {
      width: 100%;
      height: 260px;
      border-radius: 14px;
      object-fit: cover;
      display: block;
      margin: 10px 0 0;
      box-shadow: 0 10px 24px rgba(15,23,42,.10);
    }

    .hero__card-label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      width: fit-content;
      padding: 8px 12px;
      border-radius: 999px;
      background: rgba(14,165,233,.10);
      font-size: 13px;
      font-weight: 700;
      color: #0369a1;
    }

    .hero__card-text {
      color: #5b6b80;
      max-width: 26ch;
      margin-top: 12px;
      padding: 0 4px 4px;
    }


    .section {
      padding: 20px 0;
    }

    .section-title {
      font-size: clamp(26px, 3vw, 36px);
      letter-spacing: -0.03em;
      margin-bottom: 22px;
      position: relative;
      display: inline-block;
    }

    .section-title::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -10px;
      width: 72px;
      height: 4px;
      border-radius: 999px;
      background: var(--primary);
    }

    .categories {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 18px;
    }

    .category-card {
      background: rgba(255,255,255,.86);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 12px;
      min-height: 150px;
      display: grid;
      place-items: center;
      text-align: center;
      gap: 12px;
      overflow: hidden;
      box-shadow: 0 8px 18px rgba(15,23,42,.04);
      transition: .25s ease;
    }

    .category-card:hover {
      transform: translateY(-7px);
      box-shadow: var(--shadow);
      border-color: rgba(14,165,233,.35);
    }

    .category-icon {
      width: 58px;
      height: 58px;
      border-radius: 18px;
      display: grid;
      place-items: center;
      background: var(--accent);
      color: var(--primary);
      font-size: 25px;
    }

    .category-card span {
      font-weight: 700;
    }

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

    .product-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 18px;
      overflow: hidden;
      box-shadow: 0 8px 22px rgba(15,23,42,.05);
      transition: .25s ease;
    }

    .product-card:hover {
      transform: scale(1.035);
      box-shadow: var(--shadow);
    }

    .product-img {
      aspect-ratio: 1 / 1;
      background: linear-gradient(180deg, #f7fbff, #edf7ff);
      display: flex;
      align-items: center;
      justify-content: flex-start;
      padding: 0;
      overflow: hidden;
    }

    .product-img img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: .3s;
    }

    .product-body {
      padding: 18px;
    }

    .product-title {
      font-weight: 700;
      min-height: 48px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      margin-bottom: 12px;
    }

    .price {
      font-size: 22px;
      font-weight: 800;
      margin-bottom: 16px;
    }

    .cart-btn {
      width: 100%;
      padding: 13px 16px;
      background: var(--primary);
      color: #fff;
    }

    .footer {
      margin-top: 36px;
      padding: 40px 0 20px;
      background: #101827;
      color: #dbeafe;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.4fr repeat(3, 1fr);
      gap: 32px;
      margin-bottom: 36px;
    }

    .footer h3,
    .footer h4 {
      color: #fff;
      margin-bottom: 16px;
    }

    .footer p,
    .footer a {
      color: #a8b5c8;
      font-size: 15px;
    }

    .footer a {
      display: block;
      margin-bottom: 10px;
      transition: .2s;
    }

    .footer-logout-form {
      margin: 0;
    }

    .footer-logout-form button {
      display: block;
      width: 100%;
      margin-bottom: 10px;
      padding: 0;
      border: 0;
      color: #a8b5c8;
      background: transparent;
      font: inherit;
      font-size: 15px;
      text-align: left;
      cursor: pointer;
      transition: .2s;
    }

    .footer a:hover {
      color: #fff;
      transform: translateX(3px);
    }

    .footer-logout-form button:hover {
      color: #fff;
      transform: translateX(3px);
    }

    .copyright {
      border-top: 1px solid rgba(255,255,255,.1);
      padding-top: 22px;
      color: #94a3b8;
      font-size: 14px;
    }

    .seo-block {
      background: rgba(255,255,255,.78);
      border: 1px solid var(--border);
      border-radius: 22px;
      padding: 24px;
      box-shadow: 0 10px 24px rgba(15,23,42,.04);
    }

    .seo-block h2 {
      font-size: clamp(24px, 3vw, 32px);
      letter-spacing: -0.03em;
      margin-bottom: 14px;
    }

    .seo-block p {
      color: var(--muted);
      margin-bottom: 12px;
    }

    .seo-block p:last-child {
      margin-bottom: 0;
    }

    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: .65s ease;
    }

    .reveal.visible {
      opacity: 1;
      transform: none;
    }

@keyframes slideDown {
      from {
        opacity: 0;
        transform: translateY(-8px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

/* Product page */
.page-product .product-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  margin-top: 12px;
}

.page-product .product-gallery,
.page-product .product-summary,
.page-product .product-block {
  background: #fff;
  border: 1px solid rgba(203, 213, 225, 0.88);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.page-product .product-gallery {
  padding: 16px;
}

.page-product .product-main {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(180deg, #ffffff, #f6fbff);
  min-height: 440px;
  display: grid;
  place-items: center;
  padding: 14px;
}

.page-product .product-main img {
  max-width: 100%;
  max-height: 410px;
  object-fit: contain;
  transition: opacity 0.22s ease;
  cursor: zoom-in;
}

.page-product .product-main img:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.55);
  outline-offset: 4px;
}

.page-product .product-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: 0.2s ease;
}

.page-product .product-slider-btn:hover {
  border-color: rgba(14, 165, 233, 0.55);
  color: #0369a1;
  box-shadow: 0 8px 16px rgba(14, 165, 233, 0.16);
}

.page-product .product-slider-btn--prev {
  left: 10px;
}

.page-product .product-slider-btn--next {
  right: 10px;
}

.page-product .product-slider-counter {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.page-product .product-slider-dots {
  margin-top: 10px;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
}

.page-product .product-slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(148, 163, 184, 0.55);
  cursor: pointer;
  transition: 0.2s ease;
}

.page-product .product-slider-dot.active {
  width: 22px;
  border-radius: 999px;
  background: #0ea5e9;
}

.page-product .product-thumbs {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.page-product .product-thumb {
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  cursor: pointer;
  transition: 0.2s ease;
  text-align: left;
}

.page-product .product-thumb:hover,
.page-product .product-thumb.active {
  border-color: rgba(14, 165, 233, 0.55);
  box-shadow: 0 8px 18px rgba(14, 165, 233, 0.14);
}

.page-product .product-thumb img {
  width: 100%;
  height: 86px;
  object-fit: contain;
  border-radius: 10px;
  background: #f8fbff;
}

.page-product .product-thumb span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.page-product .product-summary {
  padding: 22px;
}

.page-product .product-buybox {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 230px);
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
}

.page-product .product-price {
  border: 1px solid rgba(14, 165, 233, 0.22);
  background: linear-gradient(180deg, #ebf8ff, #ffffff);
  border-radius: 14px;
  padding: 10px 14px;
}

.page-product .product-price__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.page-product .product-price strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1;
  color: #0f172a;
}

.page-product .product-buy-btn {
  border-radius: 14px;
  font-size: 15px;
  min-height: 56px;
}

.page-product .product-brand {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-product .product-title {
  margin-top: 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.page-product .product-short {
  margin-top: 10px;
  color: #334155;
  font-size: 16px;
}

.page-product .product-meta {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.page-product .meta-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fbff;
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.page-product .meta-item strong {
  color: #0f172a;
}

.page-product .product-note {
  margin-top: 14px;
  color: #334155;
  line-height: 1.65;
}

.page-product .product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.page-product .product-lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page-product .product-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(3px);
}

.page-product .product-lightbox__content {
  position: relative;
  z-index: 1;
  width: min(96vw, 980px);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
  display: grid;
  place-items: center;
  min-height: min(86vh, 760px);
  padding: 30px 64px;
  overflow: hidden;
}

.page-product .product-lightbox__content img {
  max-width: 100%;
  max-height: min(72vh, 640px);
  object-fit: contain;
}

.page-product .product-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  color: #0f172a;
}

.page-product .product-lightbox__close:hover {
  color: #0284c7;
  border-color: rgba(14, 165, 233, 0.55);
}

.page-product .product-lightbox__counter {
  bottom: 12px;
}

body.gallery-open {
  overflow: hidden;
}

.page-product .product-grid {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.page-product .product-block {
  padding: 20px;
}

.page-product .product-block h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.page-product .feature-group + .feature-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.page-product .feature-group h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.page-product .feature-list {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  line-height: 1.6;
}

.page-product .downloads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.page-product .download-card {
  display: block;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(203, 213, 225, 0.95);
  background: linear-gradient(180deg, #fff, #f7fbff);
  transition: 0.2s ease;
}

.page-product .download-card:hover {
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.14);
  transform: translateY(-2px);
}

.page-product .download-card i {
  color: #0284c7;
  margin-bottom: 8px;
  display: inline-block;
}

.page-product .download-card strong {
  display: block;
  color: #0f172a;
}

.page-product .download-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1024px) {
  .page-product .product-wrap {
    grid-template-columns: 1fr;
  }

  .page-product .downloads {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-product .product-main {
    min-height: 320px;
  }

  .page-product .product-slider-btn {
    width: 36px;
    height: 36px;
  }

  .page-product .product-thumb img {
    height: 68px;
  }

  .page-product .meta-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .page-product .product-buybox {
    grid-template-columns: 1fr;
  }

  .page-product .product-lightbox__content {
    padding: 26px 44px;
    min-height: min(82vh, 680px);
  }

  .page-product .downloads {
    grid-template-columns: 1fr;
  }
}

.page-catalog .catalog-heading {
  margin-bottom: 22px;
}

.page-catalog .catalog-heading__eyebrow,
.page-catalog .catalog-filters__eyebrow,
.page-catalog .catalog-toolbar__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-catalog .catalog-filters__eyebrow {
  display: none;
}

.page-catalog .catalog-intro {
  max-width: 820px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.page-catalog .catalog-shell {
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.page-catalog .catalog-filters {
  position: sticky;
  top: 90px;
}

.page-catalog .catalog-filters__head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 14px;
}

.page-catalog .catalog-filters__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(14, 165, 233, 0.2);
  background: rgba(255, 255, 255, 0.92);
  color: #0369a1;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
  white-space: nowrap;
}

.page-catalog .catalog-filters__toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-catalog .catalog-filters__toggle-arrow {
  font-size: 11px;
  transition: transform .2s ease;
}

.page-catalog .catalog-filters.is-expanded .catalog-filters__toggle-arrow {
  transform: rotate(180deg);
}

.page-catalog .catalog-filters__toggle:hover {

  transform: translateY(-1px);
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 8px 16px rgba(14, 165, 233, 0.16);
}

.page-catalog .catalog-filters__reset {
  border: 1px solid rgba(14, 165, 233, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
  border-radius: 14px;
  padding: 11px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
  white-space: nowrap;
}

.page-catalog .catalog-filters__reset:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.12);
}

.page-catalog .filter-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.96)),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 42%);
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 26px;
  padding: 20px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.page-catalog .filter-card__actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.page-catalog .filter-card__actions .catalog-filters__reset {
  flex: 1;
  text-align: center;
}

.page-catalog .filter-card__actions .cart-btn {
  flex: 1;
}

.page-catalog .filter-card__group + .filter-card__group {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(203, 213, 225, 0.72);
}

.page-catalog .filter-card__title {
  display: block;
  margin-bottom: 12px;
  color: #0f172a;
  font-weight: 700;
  font-size: 15px;
}

.page-catalog .filter-card__hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.page-catalog .price-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.page-catalog .price-field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.page-catalog .price-field input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.94);
  font: inherit;
  color: #0f172a;
}

.page-catalog .price-field input:focus,
.page-catalog .filter-select--full:focus {
  outline: none;
  border-color: rgba(14, 165, 233, 0.7);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.page-catalog .price-range {
  position: relative;
  height: 30px;
  margin-top: 14px;
}

.page-catalog .price-range__track,
.page-catalog .price-range__fill {
  position: absolute;
  top: 50%;
  height: 6px;
  border-radius: 999px;
  transform: translateY(-50%);
}

.page-catalog .price-range__track {
  left: 0;
  right: 0;
  background: rgba(203, 213, 225, 0.9);
}

.page-catalog .price-range__fill {
  background: linear-gradient(90deg, #0ea5e9, #38bdf8);
  box-shadow: 0 8px 16px rgba(14, 165, 233, 0.2);
}

.page-catalog .price-range input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 30px;
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.page-catalog .price-range input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #0ea5e9;
  box-shadow: 0 6px 14px rgba(14, 165, 233, 0.24);
  cursor: pointer;
  pointer-events: auto;
  -webkit-appearance: none;
}

.page-catalog .price-range input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #0ea5e9;
  box-shadow: 0 6px 14px rgba(14, 165, 233, 0.24);
  cursor: pointer;
  pointer-events: auto;
}

.page-catalog .price-range input[type="range"]::-webkit-slider-runnable-track,
.page-catalog .price-range input[type="range"]::-moz-range-track {
  background: transparent;
}

.page-catalog .filter-select--full {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.2;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2368758a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 14px;
}

.page-catalog .filter-select--full::-ms-expand {
  display: none;
}

.page-catalog .tech-options {
  display: grid;
  gap: 10px;
}

.page-catalog .tech-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(203, 213, 225, 0.8);
  cursor: pointer;
  transition: 0.25s ease;
}

.page-catalog .tech-option:hover {
  border-color: rgba(14, 165, 233, 0.42);
  transform: translateY(-1px);
}

.page-catalog .tech-option input {
  margin-top: 2px;
  accent-color: #0ea5e9;
}

.page-catalog .catalog-content {
  min-width: 0;
}

.page-catalog .catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.page-catalog .catalog-toolbar__meta {
  display: grid;
  gap: 7px;
}

.page-catalog .catalog-toolbar__meta strong {
  font-size: 18px;
}

.page-catalog .catalog-toolbar__meta {
  display: none;
}

.page-catalog .catalog-toolbar {
  justify-content: flex-end;
}

.page-catalog .catalog-toolbar .sort-btn {
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13px;
  gap: 6px;
}

.page-catalog .catalog-toolbar .sort-btn.active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
}

.page-catalog .catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-catalog .product-img {
  aspect-ratio: 4 / 3;
  padding: 0;
}

.page-catalog .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-catalog .catalog-empty {
  grid-column: 1 / -1;
  padding: 42px 26px;
  border-radius: 24px;
  border: 1px solid rgba(203, 213, 225, 0.85);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 248, 255, 0.94));
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
}

.page-catalog .product-tech-inline {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.page-catalog .product-sku {
  margin-top: 2px;
  color: #475569;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
}

.page-catalog .stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
  white-space: nowrap;
}

.page-catalog .stock-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 6px;
}

.page-catalog .stock-badge--in {
  color: #166534;
  background: #ecfdf3;
  border-color: #86efac;
}

.page-catalog .stock-badge--in .stock-badge__dot {
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14);
}

.page-catalog .stock-badge--out {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fca5a5;
}

.page-catalog .stock-badge--out .stock-badge__dot {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
}

.page-catalog .product-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px;
}

.page-catalog .product-title {
  margin-bottom: 5px;
  min-height: 38px;
  font-size: 15px;
  line-height: 1.25;
}

.page-catalog .product-code {
  margin-bottom: 4px;
  line-height: 1.25;
}

.page-catalog .price {
  font-size: 20px;
  line-height: 1.15;
  margin-bottom: 0;
}

.page-catalog .product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.page-catalog .product-body .add-to-cart-form {
  margin-top: 7px;
}

.page-catalog .cart-btn {
  padding: 10px 12px;
  font-size: 14px;
}

.page-catalog .catalog-category-select,
.page-catalog .catalog-brand-select {
  cursor: pointer;
}

.page-catalog .filter-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
}

.page-catalog .filter-card__group + .filter-card__group {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.page-catalog .filter-card__title {
  margin-bottom: 7px;
  font-size: 13px;
  line-height: 1.2;
}

.page-catalog .filter-select--full {
  min-height: 44px;
  padding: 10px 40px 10px 12px;
  border-radius: 12px;
  background-color: #fff;
}

.page-catalog .characteristic-filter {
  min-width: 0;
  border: 0;
}

.page-catalog .characteristic-filter .filter-card__title {
  padding: 0;
}

.page-catalog .characteristic-filter__options {
  display: grid;
  gap: 8px;
}

.page-catalog .characteristic-filter__option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-catalog .characteristic-filter__option:hover {
  border-color: rgba(14, 165, 233, 0.42);
  background: #f0f9ff;
  color: #0369a1;
}

.page-catalog .characteristic-filter__option input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.page-catalog .characteristic-filter__option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.page-catalog .filter-card__actions {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.page-catalog .filter-card__actions .catalog-filters__reset {
  width: 100%;
  text-align: center;
  padding: 10px 12px;
  border-radius: 12px;
}

.page-catalog .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 28px 0 36px;
  flex-wrap: wrap;
}

.page-catalog .pagination a {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.page-catalog .pagination a:hover {
  color: #0369a1;
  border-color: rgba(14, 165, 233, 0.45);
  background: #f0f9ff;
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.12);
  transform: translateY(-1px);
}

.page-catalog .pagination a.active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.22);
}

.page-catalog .pagination a:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.28);
  outline-offset: 3px;
}

@media (min-width: 1025px) {
  .page-catalog .catalog-filters__head {
    display: none;
  }
}

@media (max-width: 1160px) {
  .page-catalog .catalog-shell {
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 1024px) {
  .page-catalog .catalog-shell {
    grid-template-columns: 1fr;
  }

  .page-catalog .catalog-filters {
    position: static;
  }

  .page-catalog .catalog-filters.is-collapsed .filter-card {
    display: none;
  }

  .page-catalog .catalog-filters__head {
    justify-content: stretch;
    margin-bottom: 12px;
  }

  .page-catalog .catalog-filters__toggle {
    width: 100%;
    min-height: 46px;
    border-radius: 16px;
    padding: 11px 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.12);
  }

  .page-catalog .filter-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .page-catalog .filter-card__group + .filter-card__group {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .page-catalog .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-catalog .catalog-heading {
    margin-bottom: 18px;
  }

  .page-catalog .catalog-intro {
    font-size: 15px;
  }

  .page-catalog .catalog-filters__head {
    justify-content: stretch;
  }

  .page-catalog .catalog-filters__toggle {
    width: 100%;
    min-height: 42px;
  }

  .page-catalog .filter-card {
    grid-template-columns: 1fr;
    padding: 14px;
    border-radius: 16px;
  }

  .page-catalog .price-inputs {
    grid-template-columns: 1fr;
  }

  .page-catalog .catalog-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0;
    overflow-x: auto;
  }

  .page-catalog .catalog-toolbar .sort-btn {
    flex: 1 1 0;
    min-width: 0;
    justify-content: flex-start;
    white-space: nowrap;
    font-size: 12px;
    padding: 8px 10px;
  }

  .page-catalog .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .page-catalog .product-card {
    border-radius: 14px;
  }

  .page-catalog .product-card:hover {
    transform: none;
  }

  .page-catalog .product-img {
    aspect-ratio: 1 / 1;
  }

  .page-catalog .product-body {
    padding: 9px;
  }

  .page-catalog .product-title {
    min-height: 34px;
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1.25;
  }

  .page-catalog .product-code,
  .page-catalog .product-sku {
    font-size: 11px;
    line-height: 1.2;
  }

  .page-catalog .product-meta-row {
    align-items: center;
    flex-direction: column;
    gap: 5px;
    margin-top: 6px;
  }

  .page-catalog .price {
    font-size: 16px;
  }

  .page-catalog .stock-badge {
    padding: 3px 6px;
    font-size: 10px;
  }

  .page-catalog .product-body .add-to-cart-form {
    margin-top: 6px;
  }

  .page-catalog .cart-btn {
    min-height: 34px;
    padding: 8px 9px;
    border-radius: 10px;
    font-size: 12px;
  }

  .page-catalog .favorite-btn {
    width: 32px;
    height: 32px;
    right: 8px;
    top: 8px;
    font-size: 13px;
  }
}

    @media (max-width: 1024px) {
      .page-home main {
        padding-left: 16px;
        padding-right: 16px;
      }

      .page-home main .container {
        width: 100%;
      }

      .header__inner {
        flex-wrap: wrap;
        padding: 8px 0;
        gap: 8px;
      }

      .search {
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        right: 0;
        display: none;
        z-index: 20;
      }

      .search.search--active {
        display: block;
        animation: slideDown .25s ease;
      }

      .tablet-search-toggle {
        display: grid;
        margin-left: auto;
      }

      .hero__box {
        grid-template-columns: 1fr;
        padding: 24px;
      }

      .hero h1 {
        max-width: 12ch;
      }

      .hero__visual {
        min-height: auto;
      }

      .hero__panel {
        width: 100%;
      }

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

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

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

    @media (max-width: 720px) {
      .page-home main {
        padding-left: 16px;
        padding-right: 16px;
      }

      .page-home main .container {
        width: 100%;
      }

      .catalog-btn,
      .catalog-nav,
      .header-actions {
        display: none;
      }

      .tablet-search-toggle {
        display: grid;
        order: 3;
        margin-left: auto;
      }

      .search {
        display: none;
      }

      .search.search--active {
        display: block;
      }

      .mobile-toggle {
        display: block;
        order: 4;
      }

      .logo span {
        font-size: 16px;
      }

      .hero {
        padding-top: 24px;
      }

      .hero__box {
        padding: 22px 16px;
        border-radius: 22px;
      }

      .hero__eyebrow {
        font-size: 12px;
        padding: 8px 12px;
      }

      .hero h1 {
        max-width: none;
      }

      .hero__actions {
        gap: 10px;
      }

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

      .products {
        grid-template-columns: 1fr;
      }

      .footer-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 420px) {
      .container {
        width: min(100% - 22px, 1180px);
      }

      .category-card {
        min-height: 132px;
        padding: 10px;
      }
    }



/* Catalog page styles */

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

    body {
      font-family: "Inter", system-ui, -apple-system, sans-serif;
      background: #f6f9fc;
      color: #172033;
      line-height: 1.5;
    }

    html {
      scroll-behavior: smooth;
    }

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

    img {
      max-width: 100%;
      display: block;
    }

    /* Базовые стили страницы */
    :root {
      --bg: #f6f9fc;
      --card: #ffffff;
      --text: #172033;
      --muted: #68758a;
      --primary: #0ea5e9;
      --primary-dark: #0284c7;
      --accent: #e0f7ff;
      --border: #e6edf5;
      --shadow: 0 12px 30px rgba(15, 23, 42, .08);
      --radius: 16px;
    }

    .container {
      width: min(1180px, calc(100% - 32px));
      margin: 0 auto;
    }

    /* header */
    .header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(255,255,255,.95);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border);
    }

    .header__inner {
      min-height: 76px;
      display: flex;
      align-items: center;
      gap: 18px;
      position: relative;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 800;
      font-size: 18px;
      white-space: nowrap;
      color: #172033;
    }

    .logo img {
      width: 42px;
      height: 42px;
      border-radius: 12px;
      background: var(--accent);
      object-fit: cover;
    }

    .catalog-btn {
      padding: 13px 18px;
      background: var(--primary);
      color: #fff;
      display: flex;
      align-items: center;
      gap: 10px;
      border: 0;
      border-radius: 14px;
      font-weight: 700;
      cursor: pointer;
      transition: .25s ease;
    }

    .catalog-btn:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
    }

    .catalog-nav {
      position: relative;
	  line-height: 0.5;
    }

    .catalog-dropdown {
      position: absolute;
      top: calc(100% - 2px);
      left: 0;
      min-width: 540px;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
      padding: 16px;
      border-radius: 20px;
      border: 1px solid rgba(203, 213, 225, 0.9);
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.98));
      box-shadow:
        0 20px 44px rgba(15, 23, 42, 0.16),
        0 2px 10px rgba(14, 165, 233, 0.14);
      backdrop-filter: blur(8px);
      opacity: 0;
      visibility: hidden;
      transform: translateY(8px);
      pointer-events: none;
      transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
      z-index: 120;
    }

    .catalog-nav:hover .catalog-dropdown,
    .catalog-nav:focus-within .catalog-dropdown {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      pointer-events: auto;
    }

    .catalog-dropdown__col {
      display: grid;
      gap: 8px;
      align-content: start;
      padding: 8px 10px;
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.72);
      border: 1px solid rgba(226, 232, 240, 0.9);
    }

    .catalog-dropdown__col + .catalog-dropdown__col {
      border-left: 2px solid rgba(148, 163, 184, 0.18);
    }

    .catalog-dropdown__title {
      font-size: 11px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .12em;
      color: var(--muted);
      margin-bottom: 4px;
    }

    .catalog-dropdown a {
      display: block;
      padding: 10px 12px;
      border-radius: 10px;
      font-weight: 600;
      color: var(--text);
      border: 1px solid transparent;
      transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
    }

    .catalog-dropdown a:hover {
      background: linear-gradient(180deg, #e8f7ff, #ddf2ff);
      color: var(--primary-dark);
      border-color: rgba(14, 165, 233, 0.28);
      transform: translateX(2px);
    }

    .search {
      flex: 1;
      position: relative;
    }

    .search i {
      position: absolute;
      top: 50%;
      left: 16px;
      transform: translateY(-50%);
      color: var(--muted);
    }

    .search input {
      width: 100%;
      height: 48px;
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 0 16px 0 46px;
      outline: none;
      font-size: 15px;
      background: #fff;
    }

    .search input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 4px rgba(14,165,233,.12);
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .icon-btn {
      width: 46px;
      height: 46px;
      border-radius: 14px;
      border: 1px solid var(--border);
      background: #fff;
      cursor: pointer;
      display: grid;
      place-items: center;
      position: relative;
      color: var(--text);
      transition: .25s;
    }

    .icon-btn:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow);
      color: var(--primary);
    }

    .badge {
      position: absolute;
      top: -6px;
      right: -5px;
      min-width: 20px;
      height: 20px;
      padding: 0 6px;
      border-radius: 999px;
      background: #ef4444;
      color: #fff;
      font-size: 12px;
      display: grid;
      place-items: center;
      font-weight: 700;
    }

    .mobile-toggle {
      display: none;
      border: 0;
      background: #fff;
      color: var(--text);
      border: 1px solid var(--border);
      width: 46px;
      height: 46px;
      border-radius: 14px;
      cursor: pointer;
      font-size: 20px;
      transition: .25s;
    }

    .mobile-toggle:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow);
      color: var(--primary);
    }

    .mobile-menu {
      display: none;
      border-top: 1px solid var(--border);
      background: #fff;
      padding: 16px;
      max-height: calc(100vh - 76px);
      max-height: calc(100dvh - 76px);
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
    }

    .mobile-menu.active {
      display: block;
    }

    .mobile-menu a {
      display: block;
      padding: 14px;
      border-radius: 12px;
      font-weight: 600;
      color: #172033;
      text-decoration: none;
    }

    .mobile-menu__title {
      margin: 12px 14px 6px;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .mobile-menu__section {
      margin: 10px 0;
      padding: 10px;
      border-radius: 12px;
      border: 1px solid rgba(203, 213, 225, 0.85);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 255, 0.96));
    }

    .tablet-search-toggle {
      display: none;
    }

    .catalog-heading {
      margin: 0 0 24px;
    }

    .catalog-heading > p {
      max-width: 760px;
    }

    .catalog-title {
      font-size: clamp(24px, 3.6vw, 36px);
      letter-spacing: -0.04em;
      margin-bottom: 10px;
      line-height: 1;
    }

    .catalog-breadcrumb {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      color: var(--muted);
      font-size: 14px;
      margin: 18px 0 10px;
    }

    .catalog-breadcrumb a {
      color: inherit;
      transition: .2s ease;
    }

    .catalog-breadcrumb a:hover {
      color: var(--primary);
    }

    .filter-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      align-items: center;
      justify-content: space-between;
      margin-top: 18px;
      padding: 18px;
      background: rgba(255,255,255,.88);
      border: 1px solid rgba(14,165,233,.12);
      border-radius: 18px;
      box-shadow: 0 10px 24px rgba(15,23,42,.05);
    }

    .filter-group {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .filter-select {
      padding: 12px 18px;
      border-radius: 14px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,.88);
      font-weight: 600;
      font-size: 14px;
      cursor: pointer;
      color: var(--text);
      box-shadow: 0 8px 18px rgba(15,23,42,.04);
    }

    .sort-btn {
      background: rgba(255,255,255,.88);
      border: 1px solid var(--border);
      padding: 12px 18px;
      border-radius: 14px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      transition: .25s;
      box-shadow: 0 8px 18px rgba(15,23,42,.04);
    }

    .sort-btn:hover,
    .filter-select:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow);
    }

    .catalog-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 22px;
      margin-bottom: 34px;
    }

    .product-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      transition: .25s ease;
      box-shadow: 0 8px 18px rgba(15,23,42,.04);
    }

    .product-card:hover {
      transform: translateY(-7px);
      box-shadow: var(--shadow);
      border-color: rgba(14,165,233,.35);
    }

    .product-img {
      aspect-ratio: 1 / 1;
      background: linear-gradient(180deg, #f7fbff, #edf7ff);
      display: flex;
      align-items: center;
      justify-content: flex-start;
      padding: 12px;
    }

    .product-img img {
      width: 92%;
      height: auto;
      object-fit: contain;
      transition: .3s;
    }

    .product-body {
      padding: 18px;
    }

    .product-title {
      font-weight: 700;
      font-size: 18px;
      margin-bottom: 10px;
      line-height: 1.4;
      min-height: 48px;
    }

    .product-code {
      font-size: 12px;
      color: var(--muted);
      margin-bottom: 12px;
    }

    .price {
      font-size: 26px;
      font-weight: 800;
      margin-bottom: 16px;
      color: #0f172a;
    }

    .cart-btn {
      width: 100%;
      display: block;
      box-sizing: border-box;
      text-align: center;
      padding: 14px;
      border: 0;
      background: var(--primary);
      color: #fff;
      font-weight: 700;
      border-radius: 14px;
      cursor: pointer;
      transition: .25s ease;
      font-size: 15px;
    }

    .cart-btn:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
    }

    .pagination {
      display: flex;
      justify-content: flex-start;
      gap: 10px;
      margin: 26px 0 40px;
      flex-wrap: wrap;
    }

    .page-btn {
      padding: 12px 16px;
      border-radius: 14px;
      border: 1px solid var(--border);
      background: #fff;
      font-weight: 600;
      cursor: pointer;
      transition: .25s;
    }

    .page-btn:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow);
    }

    .page-btn.active {
      background: var(--primary);
      border-color: var(--primary);
      color: #fff;
    }

    .footer {
      margin-top: 36px;
      padding: 40px 0 20px;
      background: #101827;
      color: #dbeafe;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.4fr repeat(3, 1fr);
      gap: 32px;
      margin-bottom: 36px;
    }

    .footer h3,
    .footer h4 {
      margin-bottom: 14px;
    }

    .footer a,
    .footer p {
      color: #a8b5c8;
      font-size: 15px;
    }

    .footer a {
      display: block;
      margin-bottom: 10px;
      transition: .2s;
    }

    .footer a:hover {
      color: #fff;
      transform: translateX(3px);
    }

    .copyright {
      border-top: 1px solid rgba(255,255,255,.1);
      padding-top: 22px;
      font-size: 14px;
    }

    @media (max-width: 1024px) {
      .footer {
        margin-top: 28px;
        padding: 34px 0 18px;
      }

      .footer-grid {
        grid-template-columns: 1.25fr 1fr;
        gap: 16px;
        margin-bottom: 28px;
      }

      .footer-grid > div {
        min-width: 0;
        padding: 18px;
        border: 1px solid rgba(255,255,255,.08);
        border-radius: 18px;
        background: rgba(255,255,255,.035);
      }

      .footer h3,
      .footer h4 {
        margin-bottom: 10px;
      }

      .footer a,
      .footer-logout-form button {
        min-height: 38px;
        display: flex;
        align-items: center;
        margin-bottom: 4px;
        padding: 7px 0;
      }

      .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .header__inner {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 0;
      }
      .search {
        order: 5;
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        right: 0;
        display: none;
        z-index: 20;
      }
      .search.search--active {
        display: block;
        animation: slideDown .25s ease;
      }
      .tablet-search-toggle {
        display: grid;
        margin-left: auto;
      }
      .catalog-btn,
      .catalog-nav {
        display: none;
      }

      .mobile-toggle {
        display: block;
      }

    }

    @media (max-width: 720px) {
      .footer {
        margin-top: 24px;
        padding: 28px 0 16px;
      }

      .footer-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 22px;
      }

      .footer-grid > div {
        padding: 16px;
        border-radius: 16px;
      }

      .footer h3 {
        font-size: 20px;
      }

      .footer h4 {
        font-size: 15px;
      }

      .footer p {
        font-size: 14px;
      }

      .footer a,
      .footer-logout-form button {
        min-height: 42px;
        margin-bottom: 2px;
        padding: 9px 0;
        font-size: 15px;
      }

      .footer a:hover,
      .footer-logout-form button:hover {
        transform: none;
      }

      .copyright {
        padding-top: 16px;
        text-align: center;
        font-size: 13px;
      }

      .filter-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
      }
      .filter-group {
        justify-content: stretch;
      }
      .header-actions {
        display: none;
      }
      .tablet-search-toggle {
        display: grid;
        order: 3;
        margin-left: auto;
      }
      .search {
        display: none;
      }
      .search.search--active {
        display: block;
      }
      .mobile-toggle {
        display: block;
        order: 4;
      }
    }

    @media (max-width: 520px) {
      .catalog-grid {
        grid-template-columns: 1fr;
      }
      .logo span {
        font-size: 16px;
      }
    }

    .reveal {
      opacity: 0;
      transform: translateY(20px);
      transition: 0.5s ease;
    }
    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    @keyframes slideDown {
      from {
        opacity: 0;
        transform: translateY(-8px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

.catalog-category-links{display:grid;gap:8px}.catalog-category-links a{display:block;padding:10px 12px;border:1px solid rgba(0,0,0,.08);border-radius:12px;color:inherit;text-decoration:none;background:#fff}.catalog-category-links a:hover,.catalog-category-links a.active{border-color:#0b5ed7;background:rgba(11,94,215,.08);color:#0b5ed7}

.category-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7fbff, #edf7ff);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.category-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
}

.cart-count--pulse {
  animation: cartBadgePulse .55s ease;
}

.product-card {
  position: relative;
}

.favorite-toggle-form {
  margin: 0;
}

.favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(203, 213, 225, .92);
  border-radius: 14px;
  color: #64748b;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
  cursor: pointer;
  transition: .2s ease;
}

.favorite-btn:hover,
.favorite-btn.is-active {
  color: #ef4444;
  border-color: rgba(239, 68, 68, .22);
  background: #fff1f2;
}

.favorite-btn:hover {
  transform: translateY(-2px);
}

.favorite-inline-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: #475569;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}

.favorite-inline-btn:hover,
.favorite-inline-btn.is-active {
  color: #ef4444;
  border-color: rgba(239, 68, 68, .24);
  background: #fff1f2;
}

.favorite-page {
  padding: 0 0 54px;
}

.favorite-empty {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.favorite-empty h2 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 24px;
  letter-spacing: -.03em;
}

.favorite-empty p {
  margin: 0 0 18px;
  color: var(--muted);
}

.favorite-empty a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  color: #fff;
  background: var(--primary);
  font-weight: 800;
  transition: .2s ease;
}

.favorite-empty a:hover {
  color: #fff;
  background: var(--primary-dark);
}

.favorite-sku {
  margin-bottom: 6px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.favorite-stock {
  margin-bottom: 10px;
}

.favorite-stock .stock-badge,
.home-stock .stock-badge,
.page-home #products .stock-badge,
.favorite-grid .stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
  white-space: nowrap;
}

.favorite-stock .stock-badge__dot,
.home-stock .stock-badge__dot,
.page-home #products .stock-badge__dot,
.favorite-grid .stock-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 6px;
}

.favorite-stock .stock-badge--in,
.home-stock .stock-badge--in,
.page-home #products .stock-badge--in,
.favorite-grid .stock-badge--in {
  color: #166534;
  background: #ecfdf3;
  border-color: #86efac;
}

.favorite-stock .stock-badge--in .stock-badge__dot,
.home-stock .stock-badge--in .stock-badge__dot,
.page-home #products .stock-badge--in .stock-badge__dot,
.favorite-grid .stock-badge--in .stock-badge__dot {
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14);
}

.favorite-stock .stock-badge--out,
.home-stock .stock-badge--out,
.page-home #products .stock-badge--out,
.favorite-grid .stock-badge--out {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fca5a5;
}

.favorite-stock .stock-badge--out .stock-badge__dot,
.home-stock .stock-badge--out .stock-badge__dot,
.page-home #products .stock-badge--out .stock-badge__dot,
.favorite-grid .stock-badge--out .stock-badge__dot {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
}

.favorite-grid .product-img {
  padding: 0;
  aspect-ratio: 4 / 3;
}

.favorite-grid .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home #products .product-card,
.favorite-grid .product-card {
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}

.page-home #products .product-card:hover,
.favorite-grid .product-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
  border-color: rgba(14, 165, 233, .35);
}

.page-home #products .product-img {
  aspect-ratio: 4 / 3;
  padding: 0;
}

.page-home #products .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home #products .product-body,
.favorite-grid .product-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px;
}

.page-home #products .product-title,
.favorite-grid .product-title {
  margin-bottom: 5px;
  min-height: 38px;
  font-size: 15px;
  line-height: 1.25;
}

.page-home #products .product-code,
.favorite-grid .product-code {
  margin-bottom: 4px;
  line-height: 1.25;
}

.page-home #products .price,
.favorite-grid .price {
  font-size: 20px;
  line-height: 1.15;
  margin-bottom: 0;
}

.page-home #products .product-body .add-to-cart-form,
.favorite-grid .product-body .add-to-cart-form {
  margin-top: 7px;
}

.page-home #products .cart-btn,
.favorite-grid .cart-btn {
  padding: 10px 12px;
  font-size: 14px;
}

.page-home #products .product-meta-row,
.favorite-grid .product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.page-home #products .product-tech-inline,
.favorite-grid .product-tech-inline {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.cart-btn.cart-btn--loading,
.cart-btn.cart-btn--success,
.cart-btn.cart-btn--error,
.product-buy-btn.product-buy-btn--loading,
.product-buy-btn.product-buy-btn--success,
.product-buy-btn.product-buy-btn--error {
  transform: none;
}

.cart-btn.cart-btn--loading,
.product-buy-btn.product-buy-btn--loading {
  cursor: wait;
  opacity: .78;
}

.cart-btn.cart-btn--success,
.product-buy-btn.product-buy-btn--success {
  background: #16a34a;
  box-shadow: 0 12px 24px rgba(22, 163, 74, .24);
}

.cart-btn.cart-btn--error,
.product-buy-btn.product-buy-btn--error {
  background: #ef4444;
  box-shadow: 0 12px 24px rgba(239, 68, 68, .22);
}

.cart-notice {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2000;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 16px;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(.98);
  transition: opacity .24s ease, transform .24s ease;
}

.cart-notice--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.cart-notice--success {
  background: linear-gradient(135deg, #16a34a, #0f9f8f);
}

.cart-notice--error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.cart-notice__link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-notice__link:hover,
.cart-notice__link:focus {
  color: #fff;
  text-decoration-thickness: 2px;
}

@keyframes cartBadgePulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.28);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 720px) {
  .cart-notice {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
    text-align: center;
  }
}

.cart-page {
  padding: 0 0 54px;
}

.cart-summary__label {
  display: inline-flex;
  margin-bottom: 10px;
  color: #0369a1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cart-continue,
.cart-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(14, 165, 233, .24);
  border-radius: 14px;
  color: #0369a1;
  background: rgba(255, 255, 255, .82);
  font-weight: 800;
  white-space: nowrap;
  transition: .25s ease;
}

.cart-continue:hover,
.cart-login-link:hover {
  transform: translateY(-2px);
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 14px 26px rgba(14, 165, 233, .22);
}

.cart-continue--primary {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.cart-empty {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.cart-empty__icon {
  flex: 0 0 74px;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #0369a1;
  background: #e0f7ff;
  font-size: 28px;
}

.cart-empty h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.cart-empty p {
  margin: 0 0 16px;
  color: var(--muted);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.cart-items {
  display: grid;
  gap: 14px;
}

.cart-product {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) minmax(230px, 270px) 104px 42px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.cart-product__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7fbff, #edf7ff);
}

.cart-product__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-product__title {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.cart-product__title:hover {
  color: var(--primary-dark);
}

.cart-product__sku {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.cart-product__status {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f7ff;
  font-size: 12px;
  font-weight: 800;
}

.cart-product__prices {
  display: grid;
  gap: 7px;
}

.cart-product__price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(92px, auto);
  gap: 8px;
  align-items: stretch;
}

.cart-product__price-cell {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.cart-product__price-cell small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-product__price-cell strong,
.cart-product__mobile-prices strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
}

.cart-product__price-cell--sum {
  background: #fff;
}

.cart-product__price-row--dealer .cart-product__price-cell--sum strong {
  color: #0369a1;
}

.cart-product__price-row--special .cart-product__price-cell--sum strong {
  color: #16a34a;
}

.cart-product__mobile-prices {
  display: none;
}

.cart-product__mobile-prices span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.cart-product__mobile-prices b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-product__mobile-prices em {
  grid-column: 1 / -1;
  color: #0f172a;
  font-style: normal;
  font-weight: 900;
}

.cart-product__qty label,
.cart-product__sum span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.cart-product__qty .cart-qty-wrap {
  display: grid;
  grid-template-columns: 30px minmax(34px, 1fr) 30px;
  width: 104px;
  max-width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, .35), 0 8px 16px rgba(15, 23, 42, .04);
}

.cart-product__qty .cart-qty-btn {
  min-height: 36px;
  border: 0;
  border-radius: 0;
  background: #f8fafc;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.cart-product__qty .cart-qty-btn:hover {
  background: #e0f2fe;
  color: var(--primary-dark);
}

.cart-product__qty input {
  width: 100%;
  height: 36px;
  border: 0;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  border-radius: 0;
  padding: 0 4px;
  color: #0f172a;
  background: #fff;
  font-weight: 800;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

.cart-product__qty input::-webkit-outer-spin-button,
.cart-product__qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-product__qty input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(14, 165, 233, .35);
}

.cart-product__sum strong {
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
}

.cart-product__remove {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #ef4444;
  background: #fff1f2;
  cursor: pointer;
  transition: .2s ease;
}

.cart-product__remove:hover {
  color: #fff;
  background: #ef4444;
  transform: translateY(-2px);
}

.cart-summary {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 1px solid rgba(14, 165, 233, .16);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, .12), transparent 36%),
    #fff;
  box-shadow: var(--shadow);
}

.cart-summary h2 {
  margin: 0 0 18px;
  font-size: 24px;
  letter-spacing: -.03em;
}

.cart-summary__line,
.cart-summary__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.cart-summary__line span {
  color: var(--muted);
  font-weight: 700;
}

.cart-summary__line strong {
  color: #0f172a;
}

.cart-summary__total span {
  color: #0f172a;
  font-weight: 800;
}

.cart-summary__total strong {
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
}

.cart-summary__total--dealer strong {
  color: #0369a1;
}

.cart-summary__total--special strong {
  color: #16a34a;
}

.cart-summary__hint {
  margin: 16px 0 12px;
  padding: 12px;
  border-radius: 14px;
  color: #475569;
  background: #f8fafc;
  font-size: 14px;
}

.cart-login-link {
  width: 100%;
}

@media (max-width: 1180px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 940px) {
  .cart-product {
    grid-template-columns: 96px minmax(0, 1fr) 104px 42px;
  }

  .cart-product__prices {
    display: none;
  }

  .cart-product__mobile-prices {
    display: grid;
    gap: 5px;
    margin-top: 10px;
  }
}

@media (max-width: 720px) {
  .cart-continue {
    width: 100%;
  }

  .cart-empty {
    align-items: center;
    flex-direction: column;
    padding: 22px;
  }

  .cart-product {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    position: relative;
    padding: 12px;
  }

  .cart-product__qty {
    grid-column: 1 / -1;
  }

  .cart-product__remove {
    position: absolute;
    right: 12px;
    top: 12px;
  }

  .cart-product__title {
    padding-right: 46px;
    font-size: 16px;
  }

  .cart-summary {
    padding: 18px;
  }
}

.login-page {
  padding: 0 0 54px;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 520px);
  gap: 24px;
  align-items: stretch;
  justify-content: center;
}

.login-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(14, 165, 233, .12), transparent 34%),
    rgba(255, 255, 255, .96);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

.login-card { padding: 28px; }

.login-card__head {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.login-card h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.login-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.login-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.login-field span {
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}

.login-field input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 0 16px;
  color: #0f172a;
  background: #fff;
  background-color: #fff;
  font-size: 15px;
  font-weight: 700;
  transition: .2s ease;
}

.login-card .login-field input,
.login-card .login-field input:-webkit-autofill,
.login-card .login-field input:-webkit-autofill:hover,
.login-card .login-field input:-webkit-autofill:focus {
  background: #fff;
  background-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: #0f172a;
}

.login-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .12);
}

.login-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 6px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: var(--primary);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: .25s ease;
}

.login-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(14, 165, 233, .22);
}

@media (max-width: 900px) {
  .login-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .login-card {
    padding: 20px;
    border-radius: 20px;
  }

  .login-card h2 {
    font-size: 23px;
  }
}

.account-page {
  padding: 0 0 54px;
}

.account-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.account-card,
.account-orders {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
}

.account-card {
  position: sticky;
  top: 96px;
  overflow: hidden;
}

.account-card::before {
  content: "";
  display: block;
  height: 86px;
  background:
    radial-gradient(circle at 88% 12%, rgba(14, 165, 233, .26), transparent 34%),
    linear-gradient(135deg, #e0f7ff, #f8fdff);
}

.account-card__avatar {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: -38px 22px 0;
  border: 5px solid #fff;
  border-radius: 24px;
  color: #0369a1;
  background: #e0f7ff;
  font-size: 30px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 14px 26px rgba(14, 165, 233, .16);
}

.account-card__body {
  padding: 18px 22px 22px;
}

.account-card__kicker,
.account-section-head span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #0369a1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.account-card h2 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 24px;
  letter-spacing: -.03em;
}

.account-card p {
  margin: 0 0 18px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.account-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.account-card__meta span {
  color: var(--muted);
  font-weight: 700;
}

.account-card__meta strong {
  color: #0f172a;
}

.account-admin-link {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 0;
  border: 1px solid rgba(14, 165, 233, .2);
  border-radius: 14px;
  color: #0369a1;
  background: #e0f7ff;
  font-weight: 900;
  transition: .25s ease;
}

.account-admin-link:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, .35);
  box-shadow: 0 14px 26px rgba(14, 165, 233, .16);
}

.account-logout-form {
  margin: 12px 0 0;
}

.account-logout-form button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--primary);
  font-weight: 900;
  cursor: pointer;
  transition: .25s ease;
}

.account-logout-form button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(14, 165, 233, .22);
}

.account-content {
  display: block;
}

.account-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.account-actions a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 14px 16px;
  border: 1px solid rgba(14, 165, 233, .16);
  border-radius: 18px;
  color: #0f172a;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  font-weight: 900;
  transition: .25s ease;
}

.account-actions a i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #0369a1;
  background: #e0f7ff;
}

.account-actions a:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, .32);
  box-shadow: 0 12px 24px rgba(14, 165, 233, .12);
}

.account-orders {
  padding: 20px;
}

.account-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.account-section-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 26px;
  letter-spacing: -.03em;
}

.account-section-head > strong {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #0369a1;
  background: #e0f7ff;
}

.account-empty {
  padding: 22px;
  border-radius: 18px;
  background: #f8fafc;
}

.account-empty h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 20px;
}

.account-empty p {
  margin: 0;
  color: var(--muted);
}

.account-order-list {
  display: grid;
  gap: 10px;
}

.account-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

.account-order__number {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  font-weight: 900;
}

.account-order p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.account-order__status {
  padding: 7px 10px;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f7ff;
  font-size: 12px;
  font-weight: 900;
}

.account-order > strong {
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .account-orders {
    padding: 14px;
    border-radius: 20px;
  }

  .account-actions {
    grid-template-columns: 1fr;
  }

  .account-order {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .account-order__status {
    width: fit-content;
  }
}

.error-page {
  padding: 0 0 54px;
}

.error-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  width: 100%;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.error-card__code {
  min-height: 116px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: #0f172a;
  background: #f8fafc;
  font-size: clamp(38px, 7vw, 56px);
  font-weight: 900;
  letter-spacing: -.05em;
}

.error-card__kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.error-card h1 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.error-card p {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.error-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.error-card__primary,
.error-card__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 800;
  transition: .25s ease;
}

.error-card__primary {
  color: #fff;
  background: var(--primary);
}

.error-card__secondary {
  color: #0369a1;
  border: 1px solid rgba(14, 165, 233, .24);
  background: rgba(255, 255, 255, .82);
}

.error-card__primary:hover,
.error-card__secondary:hover {
  transform: none;
}

.error-card__primary:hover {
  color: #fff;
  background: var(--primary-dark);
}

.error-card__secondary:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

@media (max-width: 820px) {
  .error-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .error-card__code {
    min-height: 94px;
  }
}

@media (max-width: 520px) {
  .error-card__actions {
    display: grid;
  }
}

@media (max-width: 360px) {
  .page-catalog .catalog-grid {
    gap: 8px;
  }

  .page-catalog .product-body {
    padding: 8px;
  }

  .page-catalog .product-title {
    font-size: 12px;
  }

  .page-catalog .price {
    font-size: 15px;
  }
}

/* Mobile catalog-card layout for home popular products and favorites */
@media (max-width: 720px) {
  .page-home #products .products,
  .favorite-grid.catalog-grid,
  .favorite-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .page-home #products .product-card,
  .favorite-grid .product-card {
    border-radius: 14px;
  }

  .page-home #products .product-card:hover,
  .favorite-grid .product-card:hover {
    transform: none;
  }

  .page-home #products .product-img,
  .favorite-grid .product-img {
    aspect-ratio: 1 / 1;
  }

  .page-home #products .product-body,
  .favorite-grid .product-body {
    padding: 9px;
  }

  .page-home #products .product-title,
  .favorite-grid .product-title {
    min-height: 34px;
    font-size: 13px;
    line-height: 1.25;
    margin-bottom: 4px;
  }

  .page-home #products .product-code,
  .favorite-grid .product-code,
  .page-home #products .favorite-sku,
  .favorite-grid .favorite-sku {
    font-size: 11px;
    line-height: 1.25;
    margin-bottom: 4px;
  }


  .page-home #products .product-sku-row,
  .favorite-grid .product-sku-row,
  .page-catalog .product-sku-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .page-home #products .favorite-toggle-form,
  .favorite-grid .favorite-toggle-form,
  .page-catalog .favorite-toggle-form {
    position: absolute;
    top: 8px;
    right: 8px;
  }

  .page-home #products .favorite-btn,
  .favorite-grid .favorite-btn,
  .page-catalog .favorite-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .page-home #products .product-sku-row .favorite-toggle-form,
  .favorite-grid .product-sku-row .favorite-toggle-form,
  .page-catalog .product-sku-row .favorite-toggle-form {
    position: static;
  }
  .page-home #products .product-meta-row,
  .favorite-grid .product-meta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    margin-top: 5px;
  }

  .page-home #products .price,
  .favorite-grid .price {
    font-size: 16px;
    line-height: 1.15;
  }

  .page-home #products .product-tech-inline,
  .favorite-grid .product-tech-inline {
    justify-content: flex-start;
    font-size: 10px;
  }

  .page-home #products .stock-badge,
  .favorite-grid .stock-badge {
    padding: 3px 6px;
    font-size: 10px;
  }

  .page-home #products .cart-btn,
  .favorite-grid .cart-btn {
    min-height: 36px;
    padding: 8px 9px;
    font-size: 12px;
    border-radius: 11px;
  }
}

@media (max-width: 360px) {
  .page-home #products .products,
  .favorite-grid.catalog-grid,
  .favorite-grid {
    gap: 8px;
  }

  .page-home #products .product-body,
  .favorite-grid .product-body {
    padding: 8px;
  }

  .page-home #products .product-title,
  .favorite-grid .product-title {
    font-size: 12px;
  }

  .page-home #products .price,
  .favorite-grid .price {
    font-size: 15px;
  }
}

/* Premium catalog mega menu */
.catalog-nav.is-open .catalog-dropdown,
.catalog-nav:hover .catalog-dropdown,
.catalog-nav:focus-within .catalog-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.catalog-mega {
  width: min(860px, calc(100vw - 48px));
  min-width: 720px;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 18px;
  overflow: hidden;
}

.catalog-mega::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0%, rgba(14,165,233,.18), transparent 32%),
    radial-gradient(circle at 100% 20%, rgba(59,130,246,.12), transparent 34%);
}

.catalog-mega__top,
.catalog-mega__grid {
  position: relative;
  z-index: 1;
}

.catalog-mega__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 4px 0;
}

.catalog-mega__top strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  line-height: 1.2;
  color: #0f172a;
}

.catalog-mega__all {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: #fff !important;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 12px 26px rgba(14,165,233,.24);
}

.catalog-mega__all:hover {
  color: #fff !important;
  transform: translateY(-1px) !important;
}

.catalog-mega__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, .8fr);
  gap: 14px;
}

.catalog-mega__panel {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(226,232,240,.92);
  background: rgba(255,255,255,.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.catalog-mega__categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.catalog-mega__category {
  display: grid !important;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px !important;
  min-height: 74px;
  background: #fff;
  border-color: rgba(226,232,240,.95) !important;
}

.catalog-mega__preview {
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #e0f2fe, #f8fafc);
  display: grid;
  place-items: center;
}

.catalog-mega__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-mega__category span:nth-child(2) {
  min-width: 0;
  font-size: 14px;
  line-height: 1.25;
}

.catalog-mega__category i {
  font-size: 12px;
  color: var(--primary);
}

.catalog-mega__brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.catalog-mega__brands a {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 12px !important;
  border-radius: 999px !important;
  background: #fff;
  border-color: rgba(226,232,240,.95) !important;
  font-size: 13px;
}

.mobile-menu__item,
.mobile-menu__dropdown summary {
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  font-weight: 800;
  color: #172033;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(226,232,240,.9);
  box-shadow: 0 8px 20px rgba(15,23,42,.04);
}

.mobile-menu__item i,
.mobile-menu__dropdown summary i:first-child {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  background: linear-gradient(135deg, #e0f2fe, #f8fafc);
}

.mobile-menu__item span:nth-child(2) { flex: 1; }
.mobile-menu__badge {
  margin-left: auto;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: #ef4444;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(239,68,68,.32);
}

.mobile-menu__dropdown {
  margin: 8px 0;
}

.mobile-menu__dropdown summary {
  cursor: pointer;
  justify-content: space-between;
  list-style: none;
}

.mobile-menu__dropdown summary::-webkit-details-marker { display: none; }
.mobile-menu__dropdown summary > span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.mobile-menu__dropdown summary > .fa-chevron-down {
  transition: transform .22s ease;
  color: var(--muted);
}
.mobile-menu__dropdown[open] summary > .fa-chevron-down { transform: rotate(180deg); }

.mobile-menu__section--cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-category-card {
  padding: 8px !important;
  border: 1px solid rgba(226,232,240,.9);
  background: #fff;
  min-height: 112px;
}

.mobile-category-card img {
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
  border-radius: 12px;
  background: #e0f2fe;
  margin-bottom: 8px;
}

.mobile-category-card span {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

.mobile-menu__section--brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-menu__section--brands a {
  width: auto;
  padding: 10px 12px !important;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(226,232,240,.9);
  font-size: 13px;
}

@media (max-width: 720px) {
  .mobile-menu {
    display: none;
    padding: 12px 16px 18px;
    background: linear-gradient(180deg, #fff, #f8fbff);
  }
  .mobile-menu.active {
    display: grid;
    gap: 8px;
  }
}

@media (max-width: 1024px) {
  .catalog-mega { display: none; }
}

/* Full-width, simplified catalog menu with slider */
.header__inner { position: relative; }
.header .catalog-nav { position: static; }
.header .catalog-dropdown.catalog-mega {
  left: 0;
  right: 0;
  top: calc(100% - 1px);
  width: 100%;
  min-width: 0;
  max-width: none;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}
.header .catalog-mega::before { display: none; }
.header .catalog-mega__top { padding: 0; }
.header .catalog-mega__top strong { font-size: 22px; font-weight: 800; color: #111827; }
.header .catalog-mega__all {
  background: #111827;
  box-shadow: none;
  border-radius: 14px !important;
}
.header .catalog-mega__all:hover { background: #0f172a; }
.header .catalog-mega__slider {
  position: relative;
  padding: 0 46px;
}
.header .catalog-mega__slides {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 2px 2px 10px;
  scrollbar-width: none;
}
.header .catalog-mega__slides::-webkit-scrollbar { display: none; }
.header .catalog-mega__slide {
  flex: 0 0 170px;
  scroll-snap-align: start;
  display: grid !important;
  grid-template-rows: 112px auto;
  gap: 10px;
  padding: 10px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(226,232,240,.95) !important;
  background: #fff;
  color: #111827 !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}
.header .catalog-mega__slide:hover {
  transform: translateY(-2px) !important;
  background: #f8fafc;
  border-color: rgba(148,163,184,.45) !important;
}
.header .catalog-mega__slide img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  border-radius: 14px;
  background: #f1f5f9;
}
.header .catalog-mega__slide span { font-size: 14px; line-height: 1.25; font-weight: 800; }
.header .catalog-mega__slider-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 999px;
  background: #fff;
  color: #111827;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  box-shadow: 0 10px 24px rgba(15,23,42,.10);
}
.header .catalog-mega__slider-btn--prev { left: 0; }
.header .catalog-mega__slider-btn--next { right: 0; }
.header .catalog-mega__slider-btn:hover { background: #f8fafc; color: var(--primary-dark); }
.header .catalog-mega__grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 16px;
}
.header .catalog-mega__panel {
  background: #f8fafc;
  border: 1px solid rgba(226,232,240,.95);
  box-shadow: none;
}
.header .catalog-mega__category {
  border-color: rgba(226,232,240,.95) !important;
  box-shadow: none;
}
.header .catalog-mega__preview { background: #f1f5f9; }
.header .catalog-mega__brands a {
  box-shadow: none;
  background: #fff;
  color: #111827;
}
.header .catalog-mega__brands a:hover {
  background: #eef2f7;
  color: #0f172a;
  transform: none !important;
}
@media (max-width: 1024px) {
  .header .catalog-dropdown.catalog-mega { display: none; }
}
@media (max-width: 720px) {
  .mobile-menu__section--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-category-card { background: #fff; }
}

/* Simplified catalog dropdown: slider + brands only */
.header .catalog-dropdown.catalog-mega { overflow: visible; gap: 16px; padding: 20px 22px 22px; }
.header .catalog-dropdown.catalog-mega .catalog-mega__top,
.header .catalog-dropdown.catalog-mega .catalog-mega__grid,
.header .catalog-dropdown.catalog-mega .catalog-mega__panel--categories { display: none !important; }
.header .catalog-mega__slider { width: 100%; max-width: 100%; min-width: 0; padding: 0 44px; overflow: visible; }
.header .catalog-mega__slides { max-width: 100%; overflow-x: auto; overflow-y: visible; padding: 3px 6px 12px; margin: 0; }
.header .catalog-mega__slide { flex-basis: clamp(142px, 15vw, 176px); }
.header .catalog-mega__slider-btn--prev { left: 0; }
.header .catalog-mega__slider-btn--next { right: 0; }
.header .catalog-mega__slider-btn:disabled { opacity: .35; cursor: default; }
.header .catalog-mega__panel--brands { display: block !important; padding: 16px; border-radius: 18px; background: #f8fafc; }
.header .catalog-mega__brands { display: flex; flex-wrap: wrap; gap: 9px; }
.header .catalog-mega__brands a { border-radius: 999px !important; padding: 10px 14px !important; }
.mobile-menu__section--slider { display: flex !important; grid-template-columns: none !important; overflow-x: auto; gap: 10px; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mobile-menu__section--slider::-webkit-scrollbar { display: none; }
.mobile-menu__section--slider .mobile-category-card { flex: 0 0 136px; scroll-snap-align: start; }

/* Final visibility: only slider and brands inside catalog dropdown */
.header .catalog-dropdown.catalog-mega .catalog-mega__top { display: none !important; }
.header .catalog-dropdown.catalog-mega .catalog-mega__grid { display: block !important; }
.header .catalog-dropdown.catalog-mega .catalog-mega__panel--categories { display: none !important; }
.header .catalog-dropdown.catalog-mega .catalog-mega__panel--brands { display: block !important; }

/* Catalog dropdown usability fixes: no hover gap + draggable slider */
.header .catalog-nav.is-open .catalog-dropdown.catalog-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.header .catalog-mega__slides {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.header .catalog-mega__slides.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.header .catalog-mega__slides.is-dragging a {
  pointer-events: none;
}

/* Brand slider inside catalog dropdown */
.header .catalog-mega__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.header .catalog-mega__panel--brands {
  overflow: visible;
}
.header .catalog-mega__slider--brands {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0 44px;
  overflow: visible;
}
.header .catalog-mega__slides--brands {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 3px 6px 12px;
  margin: 0;
  scrollbar-width: none;
}
.header .catalog-mega__slides--brands::-webkit-scrollbar { display: none; }
.header .catalog-mega__brand-slide {
  flex: 0 0 clamp(132px, 14vw, 168px);
  min-height: 74px;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  scroll-snap-align: start;
  padding: 16px 14px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(226,232,240,.95) !important;
  background: #fff;
  color: #111827 !important;
  font-weight: 850;
  line-height: 1.2;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  user-select: none;
}
.header .catalog-mega__brand-slide:hover {
  transform: translateY(-2px) !important;
  background: #f8fafc;
  border-color: rgba(148,163,184,.45) !important;
}
.header .catalog-mega__brand-slide span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header .catalog-mega__slides--brands.is-dragging,
.header .catalog-mega__slides--brands.is-dragging a {
  cursor: grabbing;
}

@media (max-width: 1024px) {
  .mobile-menu__section--brands {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 6px;
  }
  .mobile-menu__section--brands::-webkit-scrollbar { display: none; }
  .mobile-menu__section--brands a {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

/* Brand cards now use the same visual system as category slider cards */
.header .catalog-mega__brand-slide {
  flex: 0 0 170px !important;
  scroll-snap-align: start;
  display: grid !important;
  grid-template-rows: 112px auto;
  gap: 10px;
  min-height: 0 !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  text-align: left !important;
  padding: 10px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(226,232,240,.95) !important;
  background: #fff !important;
  color: #111827 !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06) !important;
}
.header .catalog-mega__brand-slide:hover {
  transform: translateY(-2px) !important;
  background: #f8fafc !important;
  border-color: rgba(148,163,184,.45) !important;
}
.header .catalog-mega__brand-slide img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  border-radius: 14px;
  background: #f1f5f9;
}
.header .catalog-mega__brand-slide span {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
@media (max-width: 1024px) {
  .mobile-menu__section--brands .mobile-category-card {
    flex: 0 0 136px;
    scroll-snap-align: start;
  }
}
/* Header catalog menu fixes: category label, brand card frames, reliable card clicks */
.header .catalog-mega__section-head--categories {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  margin: 0 44px -4px;
}
.header .catalog-mega__brand-slide,
.mobile-menu__section--brands .mobile-category-card {
  border: 1px solid rgba(226,232,240,.95) !important;
}
.header .catalog-mega__brand-slide:hover,
.mobile-menu__section--brands .mobile-category-card:hover {
  border-color: rgba(148,163,184,.45) !important;
}
.header .catalog-mega__slides.is-dragging a,
.header .catalog-mega__slides--brands.is-dragging a {
  pointer-events: auto;
}

/* Slider drag/click final fix */
.header .catalog-mega__slides,
.header .catalog-mega__slides--brands {
  cursor: grab;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.header .catalog-mega__slides a,
.header .catalog-mega__slides img,
.header .catalog-mega__slides--brands a,
.header .catalog-mega__slides--brands img {
  -webkit-user-drag: none;
  user-select: none;
}
.header .catalog-mega__slides.is-dragging,
.header .catalog-mega__slides--brands.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.header .catalog-mega__slides.is-dragging a,
.header .catalog-mega__slides--brands.is-dragging a {
  pointer-events: none !important;
}


/* Final slider fix: clicks remain active, dragging is handled by JS */
.header .catalog-mega__slides.is-dragging a,
.header .catalog-mega__slides--brands.is-dragging a {
  pointer-events: auto !important;
}

/* Smaller header slider cards */
.header .catalog-mega__slide,
.header .catalog-mega__brand-slide {
  flex: 0 0 136px !important;
  grid-template-rows: 86px auto !important;
  gap: 8px !important;
  padding: 8px !important;
  border-radius: 16px !important;
}
.header .catalog-mega__slide img,
.header .catalog-mega__brand-slide img {
  height: 86px !important;
  border-radius: 12px !important;
}
.header .catalog-mega__slide span,
.header .catalog-mega__brand-slide span {
  font-size: 13px !important;
  line-height: 1.2 !important;
}
.header .catalog-mega__slides,
.header .catalog-mega__slides--brands {
  gap: 10px !important;
  padding-bottom: 10px !important;
}
.header .catalog-mega__slider,
.header .catalog-mega__slider--brands {
  padding-left: 40px !important;
  padding-right: 40px !important;
}


/* Brand slider final: same layout as category slider, white background, framed cards */
.header .catalog-mega__panel--brands {
  display: block !important;
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  background: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.header .catalog-mega__panel--brands .catalog-mega__section-head {
  margin: 0 40px -4px !important;
}
.header .catalog-mega__slider--brands {
  width: 100% !important;
  padding-left: 40px !important;
  padding-right: 40px !important;
  background: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
}
.header .catalog-mega__slides--brands {
  background: #fff !important;
}
.header .catalog-mega__brand-slide {
  background: #fff !important;
  border: 1px solid rgba(226,232,240,.95) !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06) !important;
}
.header .catalog-mega__brand-slide:hover {
  background: #fff !important;
  border-color: rgba(148,163,184,.45) !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08) !important;
}

/* Fix brand slider visibility: show logos fully and prevent clipping */
.header .catalog-mega__panel--brands {
  overflow: visible !important;
}
.header .catalog-mega__panel--brands .catalog-mega__section-head {
  margin: 0 40px 8px !important;
}
.header .catalog-mega__slider--brands {
  overflow: visible !important;
}
.header .catalog-mega__slides--brands {
  overflow-x: auto !important;
  overflow-y: visible !important;
  padding-top: 4px !important;
  padding-bottom: 14px !important;
}
.header .catalog-mega__brand-slide {
  overflow: visible !important;
}
.header .catalog-mega__brand-slide img {
  object-fit: contain !important;
  background: #fff !important;
  padding: 8px !important;
  box-sizing: border-box !important;
}

/* Mobile menu simplification: cleaner list and unified brand/category cards */
@media (max-width: 1024px) {
  .mobile-menu.active {
    gap: 6px;
  }

  .mobile-menu__item,
  .mobile-menu__dropdown summary {
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 750;
    box-shadow: none;
    background: #fff;
  }

  .mobile-menu__item i,
  .mobile-menu__dropdown summary i:first-child {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: #f1f5f9;
  }

  .mobile-menu__dropdown {
    margin: 4px 0;
  }

  .mobile-menu__section--cards,
  .mobile-menu__section--brands {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible !important;
    flex-wrap: initial !important;
    scroll-snap-type: none !important;
    padding: 10px 0 0 !important;
  }

  .mobile-menu__section--brands a,
  .mobile-menu__section--brands .mobile-category-card,
  .mobile-category-card {
    width: auto !important;
    flex: initial !important;
    min-height: 108px;
    padding: 8px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(226,232,240,.95) !important;
    background: #fff !important;
    box-shadow: none !important;
    scroll-snap-align: none !important;
  }

  .mobile-menu__section--brands .mobile-category-card img,
  .mobile-category-card img {
    width: 100%;
    aspect-ratio: 1.6;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 8px;
    background: #f1f5f9;
  }

  .mobile-menu__section--brands .mobile-category-card span,
  .mobile-category-card span {
    display: block;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 750;
  }
}


/* Mobile menu: full-height panel and auto-hidden on desktop via JS */
@media (max-width: 1024px) {
  .mobile-menu.active {
    min-height: calc(100vh - 76px);
    min-height: calc(100dvh - 76px);
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
}

@media (min-width: 1025px) {
  .mobile-menu,
  .mobile-menu.active {
    display: none !important;
  }
}

/* Keep catalog filter action buttons in one row on all screen sizes. */
.page-catalog .filter-card__actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  gap: 8px;
}

.page-catalog .filter-card__actions .cart-btn,
.page-catalog .filter-card__actions .catalog-filters__reset {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0;
}

/* Final mobile menu layout fix: keep menu items grouped at the top, leave free space below */
@media (max-width: 1024px) {
  .header .mobile-menu.active {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-content: flex-start !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding-left: var(--bs-gutter-x, 16px) !important;
    padding-right: var(--bs-gutter-x, 16px) !important;
  }

  .header .mobile-menu > .mobile-menu__item,
  .header .mobile-menu > .mobile-menu__dropdown {
    flex: 0 0 auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .header .mobile-menu::after {
    content: "";
    display: block;
    flex: 1 1 auto;
    min-height: 24px;
  }
}

/* Catalog filters: show technology filters for selected brand and empty-state action */
.page-catalog .catalog-empty h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
}

.page-catalog .catalog-empty p {
  max-width: 560px;
  margin: 0 auto 22px;
}

.page-catalog .catalog-empty__reset {
  display: inline-flex;
  width: auto;
  min-width: 190px;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
}
/* Minimal home intro */
.home-intro {
  padding: 18px 0 10px;
}

.home-intro p {
  margin: 0;
  color: #64748b;
  font-size: 18px;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .home-intro {
    padding: 14px 0 8px;
  }

  .home-intro h1 {
    font-size: 22px;
    line-height: 1.28;
  }

  .home-intro p {
    font-size: 16px;
  }
}

/* Technology page products: same positioning as home block with 2 columns */
.products--technology {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 767px) {
  .products--technology {
    grid-template-columns: 1fr;
  }
}


/* Technology products grid enforce */
.page-catalog .products.products--technology {
  grid-template-columns: repeat(4, 1fr) !important;
}
@media (max-width: 767px) {
  .page-catalog .products.products--technology {
    grid-template-columns: 1fr !important;
  }
}


/* Technology page products: mirror home popular products layout */
.page-catalog #products-tech .product-card {
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}
.page-catalog #products-tech .product-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
  border-color: rgba(14, 165, 233, .35);
}
.page-catalog #products-tech .product-img {
  aspect-ratio: 4 / 3;
  padding: 0;
}
.page-catalog #products-tech .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-catalog #products-tech .product-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px;
}
.page-catalog #products-tech .product-title {
  margin-bottom: 5px;
  min-height: 38px;
  font-size: 15px;
  line-height: 1.25;
}
.page-catalog #products-tech .product-code {
  margin-bottom: 4px;
  line-height: 1.25;
}
.page-catalog #products-tech .price {
  font-size: 20px;
  line-height: 1.15;
  margin-bottom: 0;
}
.page-catalog #products-tech .product-body .add-to-cart-form {
  margin-top: 7px;
}
.page-catalog #products-tech .cart-btn {
  padding: 10px 12px;
  font-size: 14px;
}
.page-catalog #products-tech .product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.page-catalog #products-tech .product-tech-inline {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
@media (max-width: 720px) {
  .page-catalog #products-tech .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .page-catalog #products-tech .product-card:hover {
    transform: none;
  }
  .page-catalog #products-tech .product-img {
    aspect-ratio: 1 / 1;
  }
  .page-catalog #products-tech .product-body {
    padding: 9px;
  }
  .page-catalog #products-tech .product-title {
    min-height: 34px;
    font-size: 13px;
    line-height: 1.25;
    margin-bottom: 4px;
  }
  .page-catalog #products-tech .product-code,
  .page-catalog #products-tech .favorite-sku {
    font-size: 11px;
    line-height: 1.25;
    margin-bottom: 4px;
  }
  .page-catalog #products-tech .product-meta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    margin-top: 5px;
  }
  .page-catalog #products-tech .price {
    font-size: 16px;
    line-height: 1.15;
  }
}

@media (max-width: 767px) {
  .page-catalog #products-tech .products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }
}


/* Technology group links grid */
.technology-group-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.technology-group-media {
  background: #eef7ff;
  border: 1px solid #d9ebff;
  border-radius: 14px;
}
.technology-group-media--empty::after {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #d6eaff;
}
@media (max-width: 767px) {
  .technology-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }
}

/* Product page redesign */
.page-product .product-wrap {
  gap: 24px;
  align-items: start;
}

.page-product .product-gallery,
.page-product .product-summary {
  border-radius: 22px;
  border: 1px solid rgba(203, 213, 225, 0.8);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.page-product .product-summary {
  position: sticky;
  top: 92px;
  padding: 18px;
}

.page-product .product-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0e7490;
  font-weight: 700;
}

.page-product .product-title {
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 12px 0 12px;
}

.page-product .product-short {
  color: #475569;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.page-product .product-buybox {
  border-radius: 18px;
  border: 1px solid #dbeafe;
  background: #f8fbff;
  padding: 14px;
}

.page-product .product-price strong {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  color: #0f172a;
}

.page-product .product-buy-btn {
  min-height: 52px;
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 26px rgba(2, 132, 199, 0.28);
}

.page-product .product-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(241, 245, 249, 0.9);
  color: #334155;
}

.page-product .product-block {
  border-radius: 18px;
  border: 1px solid rgba(203, 213, 225, 0.85);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

@media (max-width: 1024px) {
  .page-product .product-summary {
    position: static;
    top: auto;
  }
}

/* Product page v2 */
.page-product .product-page-head {
  max-width: 980px;
  margin: 0 0 18px;
}

.page-product .product-page-head .product-title {
  margin: 10px 0 6px;
}

.page-product .product-v2 .product-gallery {
  padding: 14px;
}

.page-product .product-v2 .product-main {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.8);
}

.page-product .product-v2 .product-main img {
  min-height: 380px;
  object-fit: cover;
}

.page-product .product-v2 .product-thumbs {
  margin-top: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.page-product .product-v2 .product-thumb {
  border-radius: 12px;
}

.page-product .product-v2 .product-summary {
  padding: 20px;
}

.page-product .product-v2 .product-meta {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.page-product .product-v2 .product-meta span {
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.page-product .product-v2 .feature-group h3 a {
  color: #0369a1;
  text-decoration: none;
  border-bottom: 1px dashed rgba(3, 105, 161, 0.4);
}

.page-product .product-v2 .feature-group h3 a:hover {
  color: #0284c7;
  border-bottom-color: rgba(2, 132, 199, 0.65);
}

.page-product .product-card-ux .product-sku-line {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
}

.page-product .product-card-ux .product-dimensions {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f0f9ff;
  color: #0c4a6e;
  font-weight: 600;
  font-size: 13px;
}

.page-product .product-card-ux .product-stage {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f8fbff, #eef6ff);
}

.page-product .product-card-ux .product-stage-media {
  width: 100%;
  height: 100%;
  animation: productFadeIn .28s ease;
}

.page-product .product-card-ux .product-stage img,
.page-product .product-card-ux .product-stage video {
  width: 100%;
  height: 100%;
  max-height: 70vh;
  object-fit: cover;
  display: block;
}

.page-product .product-card-ux .product-thumb-video {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #eaf4ff, #dbeafe);
  color: #0369a1;
  font-size: 24px;
}

.page-product .product-card-ux .product-thumb-video i {
  filter: drop-shadow(0 4px 8px rgba(3, 105, 161, 0.28));
}

.page-product .product-card-ux .product-buy-form {
  display: grid;
  gap: 10px;
}

.page-product .product-card-ux .qty-wrap {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 8px;
}

.page-product .product-card-ux .qty-btn {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: #0f172a;
}

.page-product .product-card-ux .qty-btn:hover {
  background: #f8fafc;
}

.page-product .product-card-ux #productQtyInput {
  text-align: center;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  min-height: 44px;
  font-weight: 700;
}

.page-product .stock-badge--low {
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fdba74;
}

.page-product .stock-badge--low .stock-badge__dot {
  background: #ea580c;
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.16);
}

.page-product .product-card-ux .product-stock-exact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}

.product-stock-exact strong {
  color: #0f172a;
  font-weight: 700;
}

.page-product .spec-grid {
  display: grid;
  gap: 10px;
}

.page-product .spec-row {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.page-product .spec-name {
  color: #64748b;
  font-weight: 600;
}

.page-product .spec-value {
  color: #0f172a;
  font-weight: 700;
}

.page-product .tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-product .tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid #bae6fd;
  background: #f0f9ff;
  color: #075985;
  font-weight: 700;
}

.page-product .tech-pill a {
  color: inherit;
  text-decoration: none;
}

.page-product .product-thumbs--modal {
  margin-top: 12px;
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.page-product .product-lightbox .product-stage {
  width: min(92vw, 1120px);
  height: min(72vh, 760px);
  display: grid;
  place-items: center;
  border-radius: 18px;
  overflow: hidden;
  background: #020617;
}

.page-product .product-lightbox .product-stage-media,
.page-product .product-lightbox .product-stage img,
.page-product .product-lightbox .product-stage video {
  width: 100%;
  height: 100%;
}

.page-product .product-lightbox .product-stage img,
.page-product .product-lightbox .product-stage video {
  object-fit: contain;
}

.page-product .product-lightbox__content {
  width: min(96vw, 1180px);
  max-height: calc(100vh - 32px);
  min-height: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  overflow: hidden;
}

.page-product .product-lightbox .product-stage {
  width: min(100%, 1120px);
  height: min(72vh, 720px);
  flex: 0 1 auto;
}

.page-product .product-lightbox .product-stage-media {
  display: grid;
  place-items: center;
}

.page-product .product-lightbox .product-stage img,
.page-product .product-lightbox .product-stage video {
  max-width: 100%;
  max-height: 100%;
}

.page-product .product-lightbox .product-thumbs--modal {
  width: min(100%, 1120px);
  max-height: 96px;
  overflow-x: auto;
  overflow-y: hidden;
}

.page-product .product-lightbox__content > .product-slider-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
}

.page-product .product-lightbox__content > .product-slider-btn--prev {
  left: 18px;
}

.page-product .product-lightbox__content > .product-slider-btn--next {
  right: 18px;
}

.page-product .product-lightbox__close {
  z-index: 4;
}

.page-product .product-card-ux .product-buy-btn:active {
  transform: translateY(1px);
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.22);
}

@keyframes productFadeIn {
  from { opacity: .35; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 1024px) {
  .page-product .product-v2 .product-main img {
    min-height: 280px;
  }
  .page-product .product-card-ux .product-stage {
    min-height: 260px;
  }
}

@media (max-width: 720px) {
  .page-product .product-v2 .product-main img {
    min-height: 220px;
  }
  .page-product .product-v2 .product-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .page-product .product-card-ux .product-stage {
    min-height: 220px;
  }
  .page-product .spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .page-product .product-thumbs--modal {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .page-product .product-card-ux .product-buybox {
    position: sticky;
    bottom: 10px;
    z-index: 20;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
  }
  .page-product .product-lightbox .product-stage {
    width: 100%;
    height: min(62vh, 520px);
  }
  .page-product .product-lightbox__content {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    padding: 12px;
    border-radius: 16px;
  }
  .page-product .product-lightbox__content > .product-slider-btn {
    width: 38px;
    height: 38px;
  }
  .page-product .product-lightbox__content > .product-slider-btn--prev {
    left: 8px;
  }
  .page-product .product-lightbox__content > .product-slider-btn--next {
    right: 8px;
  }
}

/* Rich text video styling (technology/product descriptions) */
.seo-block video,
.product-short video {
  display: block;
  width: 100%;
  max-width: 860px;
  max-height: 70vh;
  margin: 14px auto;
  border-radius: 14px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: #0f172a;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  object-fit: contain;
}

@media (max-width: 767px) {
  .seo-block video,
  .product-short video {
    margin: 10px auto;
    border-radius: 10px;
    max-height: 48vh;
  }
}

/* Preserve editor media layout on public pages */
.seo-block [data-media-block],
.product-short [data-media-block] {
  margin: 12px 0;
}

.seo-block [data-media-block][data-media-align="left"],
.product-short [data-media-block][data-media-align="left"] {
  text-align: left;
}

.seo-block [data-media-block][data-media-align="center"],
.product-short [data-media-block][data-media-align="center"] {
  text-align: center;
}

.seo-block [data-media-block][data-media-align="right"],
.product-short [data-media-block][data-media-align="right"] {
  text-align: right;
}

.seo-block [data-resizable-media="video"],
.product-short [data-resizable-media="video"] {
  display: inline-block;
  max-width: min(100%, 980px);
  width: auto;
  min-width: 160px;
  vertical-align: top;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: #0f172a;
}

.seo-block [data-resizable-media="video"] video,
.product-short [data-resizable-media="video"] video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  object-fit: contain;
}


/* Premium product card inspired by reference mockup */
.page-product .product-pro-breadcrumb {
  margin-bottom: 16px;
}

.page-product .product-pro-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  gap: 34px;
  align-items: start;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.page-product .product-pro-gallery,
.page-product .product-pro-info,
.page-product .product-pro-panel,
.page-product .product-pro-mini-card {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(15,23,42,.07);
}

.page-product .product-pro-gallery {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.page-product .product-pro-main {
  min-height: 0;
  height: var(--product-pro-image-height, auto);
  border-radius: 22px;
  border: 0;
  padding: 0;
  background: #f4f6f9;
  box-shadow: 0 18px 45px rgba(15,23,42,.08);
}

.page-product .product-pro-main .product-stage {
  height: 100%;
  min-height: 0;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
}

.page-product .product-pro-main .product-stage-media,
.page-product .product-pro-main .product-stage img,
.page-product .product-pro-main .product-stage video {
  height: 100%;
  min-height: 0;
}

.page-product .product-pro-main .product-stage img,
.page-product .product-pro-main .product-stage video {
  object-fit: cover;
}

.page-product .product-pro-main .product-slider-counter {
  left: 18px;
  top: 18px;
  bottom: auto;
  transform: none;
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 13px;
  background: rgba(15,23,42,.78);
}

.page-product .product-pro-main .product-slider-btn {
  width: 50px;
  height: 50px;
  border: 0;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 24px rgba(15,23,42,.15);
}

.page-product .product-pro-main .product-slider-btn--prev { left: 18px; }
.page-product .product-pro-main .product-slider-btn--next { right: 18px; }

.page-product .product-pro-thumbs {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.page-product .product-pro-thumbs .product-thumb {
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1.18 / 1;
  border-radius: 12px;
  border: 2px solid transparent;
  box-shadow: 0 10px 24px rgba(15,23,42,.07);
}

.page-product .product-pro-thumbs .product-thumb.active,
.page-product .product-pro-thumbs .product-thumb:hover {
  border-color: #6d28d9;
  box-shadow: 0 12px 24px rgba(109,40,217,.18);
}

.page-product .product-pro-thumbs .product-thumb img {
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  background: #f8fafc;
}

.page-product .product-pro-info {
  padding: 4px 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.page-product .product-pro-topline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 12px;
}

.page-product .product-pro-title {
  margin: 0 0 8px;
  font-size: clamp(32px, 3.4vw, 48px);
  letter-spacing: -.045em;
  color: #020617;
}


.page-product .product-sku-mobile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-product .product-pro-actions--mobile {
  flex-shrink: 0;
}

.page-product .product-pro-actions {
  display: flex;
  gap: 10px;
}

.page-product .product-pro-icon-btn {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  font-size: 20px;
  box-shadow: 0 10px 22px rgba(15,23,42,.05);
  cursor: pointer;
}

.page-product .product-pro-icon-btn span { display: none; }
.page-product .product-pro-icon-btn.is-active { color: #6d28d9; border-color: #c4b5fd; }

.page-product .product-pro-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 14px 0 24px;
}

.page-product .product-pro-status-row .stock-badge {
  width: fit-content;
  padding: 8px 13px;
  border-radius: 10px;
  font-weight: 800;
}

.page-product .product-pro-price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 24px;
}

.page-product .product-pro-price {
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.page-product .product-pro-price strong {
  font-size: clamp(38px, 4.5vw, 52px);
  letter-spacing: -.05em;
  color: #020617;
}

.page-product .product-pro-oldprice {
  color: #94a3b8;
  font-size: 20px;
  font-weight: 700;
  text-decoration: line-through;
}

.page-product .product-pro-discount {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fee2e2;
  color: #ef4444;
  font-weight: 800;
  font-size: 13px;
}

.page-product .product-pro-price em {
  flex-basis: 100%;
  font-style: normal;
  color: #64748b;
  font-weight: 600;
}

.page-product .product-pro-tabs {
  display: inline-grid;
  grid-template-columns: auto auto;
  padding: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  font-weight: 800;
  white-space: nowrap;
}

.page-product .product-pro-tabs span {
  padding: 12px 20px;
  border-radius: 9px;
}

.page-product .product-pro-tabs .active {
  color: #6d28d9;
  background: #fff;
  box-shadow: inset 0 0 0 1px #c4b5fd, 0 8px 16px rgba(109,40,217,.08);
}

.page-product .product-pro-buy {
  display: grid;
  grid-template-columns: 150px minmax(240px, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.page-product .product-pro-buy .qty-wrap {
  grid-template-columns: 44px 1fr 44px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  gap: 0;
}

.page-product .product-pro-buy .qty-btn,
.page-product .product-pro-buy #productQtyInput {
  border: 0;
  border-radius: 0;
  min-height: 62px;
}

.page-product .product-pro-cart,
.page-product .product-pro-sticky-form .product-buy-btn {
  min-height: 62px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  box-shadow: 0 18px 30px rgba(79,70,229,.32);
}

.page-product .product-pro-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 26px;
}

.page-product .product-pro-benefits span {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f3e8ff;
  color: #5b21b6;
  font-weight: 800;
  font-size: 13px;
}

.page-product .product-pro-side-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.page-product .product-pro-mini-card {
  padding: 22px;
  min-height: 150px;
}

.page-product .product-pro-mini-card > i {
  color: #6d28d9;
  font-size: 24px;
  margin-bottom: 12px;
}

.page-product .product-pro-mini-card span {
  display: block;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 6px;
}

.page-product .product-pro-mini-card strong {
  color: #020617;
  font-size: 23px;
  line-height: 1.25;
}

.page-product .product-pro-downloads h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.page-product .product-pro-downloads a {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: center;
  color: #0f172a;
  text-decoration: none;
  padding: 9px 0;
  border-top: 1px solid #e2e8f0;
  font-weight: 700;
}

.page-product .product-pro-downloads a i { color: #ef4444; }
.page-product .product-pro-downloads a b { color: #6d28d9; font-size: 12px; }

.page-product .product-pro-details-grid {
  display: grid;
  grid-template-columns: .95fr .9fr 1.1fr;
  gap: 18px;
  margin-top: 26px;
}

.page-product .product-pro-panel {
  padding: 24px;
}

.page-product .product-pro-panel h2 {
  margin: 0 0 18px;
  font-size: 22px;
  letter-spacing: -.03em;
}

.page-product .product-pro-panel .spec-row {
  grid-template-columns: minmax(120px, 1fr) 1fr;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  padding: 7px 0;
}

.page-product .product-pro-panel .spec-row:last-child { border-bottom: 0; }

.page-product .product-pro-techs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.page-product .product-pro-techs .tech-pill {
  justify-content: flex-start;
  min-height: 70px;
  border-radius: 14px;
  border-color: #ddd6fe;
  background: #faf5ff;
  color: #5b21b6;
  text-align: center;
}

.page-product .product-pro-description p {
  color: #334155;
  line-height: 1.55;
  font-weight: 600;
}

.page-product .product-pro-description ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: #334155;
  font-weight: 700;
}

.page-product .product-pro-description li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.page-product .product-pro-description li i { color: #6d28d9; margin-top: 2px; }
.page-product .product-pro-full-description { margin-top: 26px; }

.page-product .product-pro-sticky-bar {
  position: sticky;
  bottom: 0;
  z-index: 40;
  margin-top: 24px;
  background: rgba(255,255,255,.92);
  border-top: 1px solid #e2e8f0;
  backdrop-filter: blur(14px);
  box-shadow: 0 -12px 28px rgba(15,23,42,.08);
}

.page-product .product-pro-sticky-inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto minmax(220px, 260px);
  gap: 24px;
  align-items: center;
}

.page-product .product-pro-sticky-product {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.page-product .product-pro-sticky-product img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.page-product .product-pro-sticky-product strong,
.page-product .product-pro-sticky-product span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-product .product-pro-sticky-product strong { font-size: 17px; }
.page-product .product-pro-sticky-product span { color: #64748b; font-size: 13px; margin-top: 4px; }
.page-product .product-pro-sticky-price { font-size: 28px; letter-spacing: -.04em; }
.page-product .product-pro-sticky-form .product-buy-btn { width: 100%; min-height: 52px; }

@media (max-width: 1180px) {
  .page-product .product-pro-shell { grid-template-columns: 1fr; }
  .page-product .product-pro-details-grid { grid-template-columns: 1fr 1fr; }
  .page-product .product-pro-description { grid-column: 1 / -1; }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .page-product .product-pro-main,
  .page-product .product-pro-main .product-stage,
  .page-product .product-pro-main .product-stage-media,
  .page-product .product-pro-main .product-stage img,
  .page-product .product-pro-main .product-stage video {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .page-product .product-pro-main,
  .page-product .product-pro-main .product-stage,
  .page-product .product-pro-main .product-stage-media,
  .page-product .product-pro-main .product-stage img,
  .page-product .product-pro-main .product-stage video { min-height: 320px; }
  .page-product .product-pro-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .page-product .product-pro-price-row,
  .page-product .product-pro-buy,
  .page-product .product-pro-side-grid,
  .page-product .product-pro-details-grid,
  .page-product .product-pro-sticky-inner { grid-template-columns: 1fr; }
  .page-product .product-pro-tabs { width: 100%; }
  .page-product .product-pro-tabs span { text-align: center; padding: 11px 8px; }
  .page-product .product-pro-benefits { grid-template-columns: 1fr; }
  .page-product .product-pro-techs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-product .product-pro-sticky-price { display: none; }
  .page-product .product-pro-sticky-product { display: none; }
  .page-product .product-pro-sticky-inner { min-height: 72px; padding-top: 10px; padding-bottom: 10px; }
}

/* Product card polish — 2026-05-07 fixes */
.page-product .product-pro-title {
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.page-product .product-sku-line,
.page-product .product-stock-exact,
.page-product .product-pro-price em,
.page-product .product-pro-mini-card span,
.page-product .product-pro-description p,
.page-product .product-pro-description ul,
.page-product .product-pro-panel .spec-row {
  font-size: 13px;
}

.page-product .product-pro-price strong {
  font-size: clamp(30px, 3.2vw, 40px);
}

.page-product .product-pro-oldprice {
  font-size: 16px;
}

.page-product .product-pro-tabs {
  font-size: 13px;
}

.page-product .product-pro-tabs span {
  padding: 10px 14px;
}

.page-product .product-pro-benefits span {
  min-height: 38px;
  padding: 7px 9px;
  font-size: 12px;
  line-height: 1.2;
}

.page-product .product-pro-mini-card {
  padding: 18px;
  min-height: 124px;
  overflow: hidden;
}

.page-product .product-pro-mini-card strong {
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.page-product .product-pro-downloads h3,
.page-product .product-pro-panel h2 {
  font-size: 18px;
}

.page-product .product-pro-downloads a {
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 8px 0;
  font-size: 12px;
  line-height: 1.25;
}

.page-product .product-pro-downloads a span {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-product .product-pro-downloads a b {
  padding: 6px 8px;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--primary);
  font-size: 11px;
}

.page-product .product-pro-panel {
  padding: 20px;
  overflow: hidden;
}

.page-product .product-pro-panel .spec-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: 10px;
  line-height: 1.25;
}

.page-product .product-pro-panel .spec-name,
.page-product .product-pro-panel .spec-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.page-product .product-pro-techs {
  gap: 10px;
}

.page-product .product-pro-techs .tech-pill {
  min-height: 58px;
  padding: 10px;
  font-size: 12px;
  line-height: 1.2;
}

.page-product .product-pro-buy {
  grid-template-columns: 132px minmax(220px, 1fr);
  align-items: stretch;
}

.page-product .product-pro-buy .qty-wrap {
  display: grid;
  grid-template-columns: 40px minmax(42px, 1fr) 40px;
  width: 132px;
  min-width: 132px;
  height: 56px;
  align-items: stretch;
}

.page-product .product-pro-buy .qty-btn,
.page-product .product-pro-buy #productQtyInput {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  height: 56px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
}

.page-product .product-pro-buy #productQtyInput {
  appearance: textfield;
  -moz-appearance: textfield;
  text-align: center;
  font-weight: 800;
  color: #0f172a;
  background: #fff;
}

.page-product .product-pro-buy #productQtyInput::-webkit-outer-spin-button,
.page-product .product-pro-buy #productQtyInput::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.page-product .product-pro-cart,
.page-product .product-pro-sticky-form .product-buy-btn {
  min-height: 56px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 26px rgba(14, 165, 233, .28);
}

.page-product .product-pro-cart:hover,
.page-product .product-pro-sticky-form .product-buy-btn:hover {
  background: var(--primary-dark);
  color: #fff;
}

.page-product .product-pro-cart i,
.page-product .product-pro-sticky-form .product-buy-btn i {
  color: #fff;
}

@media (max-width: 760px) {
  .page-product .product-pro-title { font-size: 25px; }
  .page-product .product-pro-buy { grid-template-columns: 1fr; }
  .page-product .product-pro-buy .qty-wrap { width: 100%; min-width: 0; grid-template-columns: 48px 1fr 48px; }
}

.page-product .product-pro-techs .tech-pill {
  display:flex;
  flex-direction:column;
  gap:8px;
}

.page-product .tech-pill-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Product page neutral refinement — remove violet/pink accents */
.page-product .product-pro-thumbs .product-thumb.active,
.page-product .product-pro-thumbs .product-thumb:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 24px rgba(14, 165, 233, .16);
}

.page-product .product-pro-icon-btn.is-active {
  color: var(--primary-dark);
  border-color: rgba(14, 165, 233, .35);
  background: #f0f9ff;
}

.page-product .product-pro-tabs .active {
  color: var(--primary-dark);
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, .28), 0 8px 16px rgba(14, 165, 233, .08);
}

.page-product .product-pro-oldprice,
.page-product .product-pro-discount { display: none !important; }

.page-product .product-pro-buy {
  grid-template-columns: 132px minmax(250px, 1fr);
  gap: 14px;
}

.page-product .product-pro-cart,
.page-product .product-pro-sticky-form .product-buy-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 56px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 900;
  letter-spacing: -.01em;
  box-shadow: 0 14px 28px rgba(14, 165, 233, .24), inset 0 1px 0 rgba(255,255,255,.22);
}

.page-product .product-pro-cart::after,
.page-product .product-pro-sticky-form .product-buy-btn::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0));
  pointer-events: none;
}

.page-product .product-pro-cart:hover,
.page-product .product-pro-sticky-form .product-buy-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--primary-dark), #0369a1);
  box-shadow: 0 18px 34px rgba(14, 165, 233, .30), inset 0 1px 0 rgba(255,255,255,.18);
}

.page-product .product-pro-cart:active,
.page-product .product-pro-sticky-form .product-buy-btn:active {
  transform: translateY(0);
}

.page-product .product-pro-buy .qty-wrap {
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px #e2e8f0, 0 10px 22px rgba(15,23,42,.05);
}

.page-product .product-pro-buy .qty-btn {
  color: #0f172a;
  background: #f8fafc;
  font-weight: 900;
}

.page-product .product-pro-buy .qty-btn:hover {
  background: #e0f2fe;
  color: var(--primary-dark);
}

.page-product .product-pro-status-row .stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: -.01em;
  border: 1px solid transparent;
  box-shadow: 0 8px 18px rgba(15,23,42,.05);
}

.page-product .product-pro-status-row .stock-badge--in {
  color: #047857;
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.page-product .product-pro-status-row .stock-badge--low {
  color: #b45309;
  background: #fffbeb;
  border-color: #fde68a;
}

.page-product .product-pro-status-row .stock-badge--out {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

.page-product .product-pro-benefits span {
  background: #f0f9ff;
  color: #075985;
}

.page-product .product-pro-benefits span i,
.page-product .product-pro-mini-card > i,
.page-product .product-pro-dimensions-head i,
.page-product .product-pro-description li i,
.page-product .product-pro-downloads a b {
  color: var(--primary-dark) !important;
}

.page-product .product-pro-techs .tech-pill {
  border-color: #dbeafe;
  background: #f8fafc;
  color: #0f172a;
}

.page-product .product-pro-dimensions {
  min-height: 150px;
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.page-product .product-pro-dimensions-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.page-product .product-pro-dimensions-head i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e0f2fe;
  font-size: 16px;
}

.page-product .product-pro-dimensions-head span {
  margin: 0;
  font-size: 13px;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.page-product .product-pro-dimensions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.page-product .product-pro-dimensions-grid div {
  min-width: 0;
  padding: 9px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.page-product .product-pro-dimensions-grid small,
.page-product .product-pro-dimensions-grid b {
  display: block;
}

.page-product .product-pro-dimensions-grid small {
  margin-bottom: 3px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.page-product .product-pro-dimensions-grid b {
  color: #020617;
  font-size: 16px;
  line-height: 1;
}

.page-product .product-pro-dimensions > strong {
  display: inline-flex;
  width: 100%;
  justify-content: flex-start;
  padding: 9px 10px;
  border-radius: 12px;
  background: #f1f5f9;
  font-size: 16px;
  line-height: 1.15;
}

@media (max-width: 760px) {
  .page-product .product-pro-buy { grid-template-columns: 1fr; }
  .page-product .product-pro-buy .qty-wrap { width: 100%; min-width: 0; }
}

/* Product page requested refinements — 2026-05-07 */
.page-product .product-pro-actions {
  justify-content: flex-end;
}

.page-product .product-pro-actions .favorite-inline-btn.product-pro-icon-btn:hover,
.page-product .product-pro-actions .favorite-inline-btn.product-pro-icon-btn.is-active {
  color: #ef4444;
  border-color: rgba(239, 68, 68, .22);
  background: #fff1f2;
  box-shadow: 0 12px 24px rgba(239, 68, 68, .10);
  transform: translateY(-1px);
}

.page-product .product-pro-actions .favorite-inline-btn.product-pro-icon-btn:hover i,
.page-product .product-pro-actions .favorite-inline-btn.product-pro-icon-btn.is-active i {
  color: #ef4444;
}

.page-product .product-pro-status-row .stock-badge {
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: none;
  white-space: nowrap;
}

.page-product .product-pro-status-row .stock-badge__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
}

.page-product .product-pro-status-row .stock-badge--in {
  color: #166534;
  background: #ecfdf3;
  border-color: #86efac;
}

.page-product .product-pro-status-row .stock-badge--in .stock-badge__dot {
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14);
}

.page-product .product-pro-status-row .stock-badge--out {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fca5a5;
}

.page-product .product-pro-status-row .stock-badge--out .stock-badge__dot {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
}

.page-product .product-pro-techs .tech-pill,
.page-product .product-pro-techs a.tech-pill {
  min-height: 82px;
  padding: 14px 12px;
  border-radius: 18px;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.page-product .product-pro-techs a.tech-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, .36);
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, .08);
}

.page-product .product-pro-techs .tech-pill-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.page-product .product-pro-techs .tech-pill span {
  color: inherit;
}

.page-product .product-pro-price {
  gap: 0;
}

.page-product .product-lightbox__content {
  width: min(98vw, 1280px);
  height: calc(100vh - 24px);
  max-height: none;
  padding: 16px 56px 108px;
  overflow: visible;
}

.page-product .product-lightbox .product-stage {
  width: 100%;
  height: calc(100vh - 168px);
  max-height: none;
  background: #020617;
}

.page-product .product-lightbox .product-stage-media,
.page-product .product-lightbox .product-stage img,
.page-product .product-lightbox .product-stage video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

.page-product .product-lightbox .product-stage img,
.page-product .product-lightbox .product-stage video {
  object-fit: contain !important;
}

.page-product .product-lightbox .product-thumbs--modal {
  position: absolute;
  left: 56px;
  right: 56px;
  bottom: 16px;
  width: auto;
  max-height: 78px;
}

.page-product .product-lightbox__counter {
  bottom: 94px;
}

@media (max-width: 760px) {
  .page-product .product-lightbox__content {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    padding: 54px 12px 96px;
  }
  .page-product .product-lightbox .product-stage {
    height: calc(100vh - 170px);
    border-radius: 14px;
  }
  .page-product .product-lightbox .product-thumbs--modal {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .page-product .product-lightbox__content > .product-slider-btn--prev { left: 16px; }
  .page-product .product-lightbox__content > .product-slider-btn--next { right: 16px; }
}


/* Stock badge improvements */
.page-product .product-pro-status-row {
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.page-product .product-stock-exact {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid #dbe4ee;
  box-shadow:0 6px 20px rgba(15,23,42,.06);
  font-size:13px;
  font-weight:600;
  color:#475569;
}

.page-product .product-stock-exact i {
  color:#2563eb;
  font-size:13px;
}

.page-product .product-stock-exact strong {
  color:#0f172a;
  font-size:14px;
  font-weight:800;
}

/* Product card updates — stock/status/video/role price */
.page-product .product-pro-status-row {
  gap: 12px;
  margin: 16px 0 24px;
}

.page-product .product-pro-status-row .stock-badge {
  min-height: 42px;
  padding: 10px 15px;
  gap: 8px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

.page-product .product-pro-status-row .stock-badge__dot {
  width: 8px;
  height: 8px;
  flex-basis: 8px;
}

.page-product .product-stock-exact {
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border-color: #dbeafe;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
  color: #334155;
  font-weight: 800;
}

.page-product .product-stock-exact i {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #e0f2fe;
  color: var(--primary-dark);
}

.page-product .product-stock-exact span {
  margin: 0;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.page-product .product-stock-exact strong {
  padding: 4px 8px;
  border-radius: 9px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

.page-product .product-thumb-video--preview {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #0f172a;
}

.page-product .product-thumb-video--preview video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: .82;
}

.page-product .product-thumb-video--preview i {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--primary-dark);
  box-shadow: 0 10px 22px rgba(2,6,23,.22);
}

.page-product .product-pro-tabs.product-price-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.page-product .product-pro-tabs.product-price-switch button {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 9px;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-weight: 900;
  white-space: nowrap;
}

.page-product .product-pro-tabs.product-price-switch button.active {
  color: var(--primary-dark);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, .28), 0 8px 16px rgba(14, 165, 233, .08);
}

.page-product .product-pro-tabs.product-price-switch button:not(.active):hover {
  color: #0f172a;
  background: #eef6ff;
}

@media (max-width: 760px) {
  .page-product .product-pro-status-row .stock-badge,
  .page-product .product-stock-exact {
    width: 100%;
    justify-content: flex-start;
  }
  .page-product .product-pro-tabs.product-price-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}


.product-card-prices {
  display: grid;
  gap: 6px;
  width: 100%;
  min-width: 160px;
}

.product-card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}

.product-card-price-row span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.product-card-price-row strong {
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.product-card .product-meta-row:has(.product-card-prices) {
  align-items: stretch;
}

@media (max-width: 640px) {
  .product-card-price-row {
    padding: 5px 7px;
  }
}

/* Mobile product cards refinement */
@media (max-width: 720px) {
  .product-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .055);
  }

  .product-card:hover {
    transform: none;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .055);
  }

  .product-card .favorite-btn {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 14px;
    background: rgba(255, 255, 255, .94);
  }

  .product-card .product-img {
    aspect-ratio: 1 / 1;
    background: #f8fafc;
  }

  .product-card .product-body {
    padding: 10px;
  }

  .product-card .product-title {
    min-height: 36px;
    margin-bottom: 5px;
    font-size: 13px;
    line-height: 1.25;
    letter-spacing: -.01em;
  }

  .product-card .product-code,
  .product-card .product-sku,
  .product-card .favorite-sku {
    margin-bottom: 4px;
    font-size: 11px;
    line-height: 1.25;
  }

  .product-card .product-meta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 6px;
  }

  .product-card .price {
    margin-bottom: 0;
    font-size: 17px;
    line-height: 1.15;
  }

  .product-card .product-tech-inline {
    justify-content: flex-start;
  }

  .product-card .stock-badge {
    padding: 4px 7px;
    font-size: 10px;
  }

  .product-card .cart-btn {
    min-height: 38px;
    margin-top: 1px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 12px;
  }

  .product-card-prices {
    gap: 4px;
    min-width: 0;
  }

  .product-card-price-row {
    gap: 6px;
    padding: 5px 6px;
    border-radius: 9px;
  }

  .product-card-price-row span {
    overflow: hidden;
    font-size: 10px;
    line-height: 1.1;
    text-overflow: ellipsis;
  }

  .product-card-price-row strong {
    font-size: 12px;
    line-height: 1.1;
  }
}

@media (max-width: 380px) {
  .page-catalog .catalog-grid,
  .page-home #products .products,
  .favorite-grid.catalog-grid,
  .favorite-grid,
  .page-catalog #products-tech .products {
    gap: 8px;
  }

  .product-card .product-body {
    padding: 8px;
  }

  .product-card .product-title {
    min-height: 32px;
    font-size: 12px;
  }

  .product-card-price-row {
    padding: 5px;
  }

  .product-card-price-row span {
    font-size: 9px;
  }

  .product-card-price-row strong {
    font-size: 11px;
  }
}

@media (max-width: 720px) {
  .product-sku-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
    width: 100%;
  }

  .product-sku-row .favorite-toggle-form {
    margin-left: auto;
  }

  .product-sku-row .favorite-btn {
    position: static;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    box-shadow: none;
  }
}

/* Product page refinements — mobile SKU, stock dot, dimensions and details layout */
.page-product .product-sku-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 14px rgba(15,23,42,.06);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
  color: #0f172a;
}

.page-product .product-pro-status-row .stock-badge__dot {
  border-radius: 50%;
}

.page-product .product-pro-dimensions {
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px 32px;
  min-width: 360px;
}

.page-product .product-pro-dimensions-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  color: #6d28d9;
  font-size: 22px;
  flex-shrink: 0;
  padding-top: 2px;
}

.page-product .product-pro-dimensions-single {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-product .product-pro-dimensions-single span {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.page-product .product-pro-dimensions-single strong {
  font-size: 18px;
  line-height: 1.1;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.page-product .product-pro-details-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-product .product-pro-description {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .page-product .product-sku-line {
    font-size: 16px;
  }

  .page-product .product-pro-details-grid {
    grid-template-columns: 1fr;
  }
}


/* AI edits */
.page-product .product-pro-sticky-bar { display:none !important; }


/* AI edits v2 */
.page-product .product-pro-description { margin-bottom: 28px; }
.page-product .product-pro-techs { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:12px; }
.page-product .product-pro-techs .tech-pill { width:100%; justify-content:center; }
@media (max-width:760px){ .page-product .product-pro-techs { grid-template-columns: repeat(2,minmax(0,1fr)); } }


/* Enhanced characteristics block */
.page-product .spec-grid {
  gap: 14px;
}

.page-product .product-pro-panel .spec-row {
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  box-shadow: 0 8px 18px rgba(15,23,42,.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.page-product .product-pro-panel .spec-row:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 14px 28px rgba(15,23,42,.08);
}

.page-product .product-pro-panel .spec-name {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748b;
  font-weight: 800;
}

.page-product .product-pro-panel .spec-value {
  font-size: 14px;
  color: #020617;
  font-weight: 800;
  text-align: right;
}

@media (max-width: 760px) {
  .page-product .product-pro-panel .spec-row {
    padding: 12px 14px;
  }

  .page-product .product-pro-panel .spec-value {
    text-align: left;
  }
}

/* AI edits v4: characteristics block like compact reference layout */
.page-product .product-pro-panel .spec-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.page-product .product-pro-panel .spec-row {
  display: grid;
  grid-template-columns: minmax(120px, auto) 1fr minmax(80px, auto);
  align-items: baseline;
  gap: 10px;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: none;
}

.page-product .product-pro-panel .spec-row::before {
  content: "";
  grid-column: 2;
  border-bottom: 1px solid #e5e7eb;
  transform: translateY(-4px);
}

.page-product .product-pro-panel .spec-row:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.page-product .product-pro-panel .spec-name {
  grid-column: 1;
  grid-row: 1;
  font-size: 14px;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
  color: #2f3542;
  font-weight: 500;
}

.page-product .product-pro-panel .spec-value {
  grid-column: 3;
  grid-row: 1;
  font-size: 14px;
  line-height: 1.35;
  color: #111827;
  font-weight: 600;
  text-align: left;
  white-space: normal;
}

@media (max-width: 760px) {
  .page-product .product-pro-panel .spec-row {
    grid-template-columns: minmax(105px, auto) 1fr minmax(70px, auto);
    gap: 8px;
    padding: 5px 0;
  }

  .page-product .product-pro-panel .spec-name,
  .page-product .product-pro-panel .spec-value {
    font-size: 13px;
  }
}

.page-product .product-pro-dimensions {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg,#ffffff 0%,#faf7ff 100%);
  border: 1px solid rgba(124,58,237,.14);
}

.page-product .product-pro-dimensions::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle,rgba(124,58,237,.12) 0%,rgba(124,58,237,0) 70%);
}

.page-product .product-pro-dimensions-values {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
}

.page-product .product-pro-dimensions-values div {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(124,58,237,.08);
  box-shadow: 0 4px 12px rgba(15,23,42,.05);
}

.page-product .product-pro-dimensions-values small {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.page-product .product-pro-dimensions-values b {
  font-size: 24px;
  color: #0f172a;
  font-weight: 900;
  line-height: 1;
}

.page-product .product-pro-dimensions-single strong {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: flex-start;
  margin-top: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(124,58,237,.08);
  color: #6d28d9;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width:760px){
  .page-product .product-pro-dimensions {
    flex-direction: column;
    align-items: center;
  }
  .page-product .product-pro-dimensions-values {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

/* AI edits v7: layout like reference image */
.page-product .product-pro-side-grid {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.55fr);
  align-items: stretch;
}

.page-product .product-pro-dimensions {
  min-height: 150px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 10px;
  align-items: center;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(15,23,42,.04);
  overflow: hidden;
}

.page-product .product-pro-dimensions::after { display: none; }

.page-product .product-pro-dimensions-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  background: rgba(124,58,237,.09);
  color: #6d28d9;
  font-size: 17px;
  transform: rotate(-18deg);
}

.page-product .product-pro-dimensions-single {
  display: contents;
}

.page-product .product-pro-dimensions-single span {
  grid-column: 2;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  padding-top: 2px;
}

.page-product .product-pro-dimensions-single strong {
  display: block;
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #020617;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: none;
}

.page-product .product-pro-details-grid {
  grid-template-columns: .95fr .9fr 1.1fr;
  align-items: stretch;
  margin-top: 22px;
}

.page-product .product-pro-description {
  grid-column: auto;
  margin-bottom: 0;
}

@media (max-width: 1180px) {
  .page-product .product-pro-details-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-product .product-pro-description {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .page-product .product-pro-side-grid,
  .page-product .product-pro-details-grid {
    grid-template-columns: 1fr;
  }
  .page-product .product-pro-dimensions {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 8px;
    padding: 18px;
  }
  .page-product .product-pro-dimensions-single strong {
    font-size: 18px;
  }
}

/* AI edits v11: improved layout for Dimensions and Downloads blocks */
.page-product .product-pro-side-grid {
  display: grid;
  grid-template-columns: minmax(380px, 1.05fr) minmax(0, 1.45fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}

.page-product .product-pro-side-grid .product-pro-mini-card {
  height: 100%;
  border-radius: 22px;
  border: 1px solid #ececf3;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .045);
}

.page-product .product-pro-dimensions {
  min-width: 0;
  min-height: 142px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 8px;
  align-items: start;
  padding: 24px 28px;
  overflow: visible;
}

.page-product .product-pro-dimensions::after { display: none !important; }

.page-product .product-pro-dimensions-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  color: #6d28d9;
  font-size: 18px;
  line-height: 1;
  transform: none !important;
  padding: 0;
  margin: 0;
}

.page-product .product-pro-dimensions-single {
  display: contents;
}

.page-product .product-pro-dimensions-single span {
  grid-column: 2;
  align-self: center;
  padding: 0;
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
}

.page-product .product-pro-dimensions-single strong {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  margin: 2px 0 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.015em;
  text-transform: none;
  white-space: nowrap;
}

.page-product .product-pro-downloads {
  padding: 22px;
}

.page-product .product-pro-downloads h3 {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 800;
  color: #111827;
}

.page-product .product-pro-downloads a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  color: #0f172a;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.page-product .product-pro-downloads a + a {
  margin-top: 10px;
}

.page-product .product-pro-downloads a:hover {
  background: #f3f4f6;
  border-color: #e2e8f0;
  transform: translateY(-1px);
}

.page-product .product-pro-downloads a i {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(109, 40, 217, .08);
  color: #6d28d9;
  font-size: 15px;
}

.page-product .product-pro-downloads a span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}

.page-product .product-pro-downloads a b {
  font-size: 12px;
  font-weight: 800;
  color: #6d28d9;
}

@media (max-width: 1180px) {
  .page-product .product-pro-side-grid {
    grid-template-columns: minmax(340px, .95fr) minmax(0, 1.2fr);
  }
}

@media (max-width: 760px) {
  .page-product .product-pro-side-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .page-product .product-pro-dimensions {
    min-height: 124px;
    padding: 20px;
  }

  .page-product .product-pro-dimensions-single strong {
    font-size: 16px;
    white-space: normal;
  }

  .page-product .product-pro-downloads {
    padding: 18px;
  }

  .page-product .product-pro-downloads a {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .page-product .product-pro-downloads a b {
    grid-column: 2;
    margin-top: -6px;
  }
}

/* AI edits v12: fix mobile layout for Dimensions and Downloads */
.page-product .product-pro-side-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr) !important;
  gap: 16px !important;
  align-items: stretch !important;
  width: 100% !important;
}

.page-product .product-pro-side-grid .product-pro-mini-card,
.page-product .product-pro-dimensions,
.page-product .product-pro-downloads {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.page-product .product-pro-dimensions {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  column-gap: 14px !important;
  row-gap: 18px !important;
  align-items: start !important;
  padding: 24px 28px !important;
  overflow: hidden !important;
}

.page-product .product-pro-dimensions-icon {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.page-product .product-pro-dimensions-single {
  display: contents !important;
}

.page-product .product-pro-dimensions-single span {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
}

.page-product .product-pro-dimensions-single strong {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}

.page-product .product-pro-downloads {
  padding: 22px !important;
  overflow: hidden !important;
}

.page-product .product-pro-downloads h3 {
  word-break: normal !important;
  overflow-wrap: normal !important;
}

.page-product .product-pro-downloads a {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 900px) {
  .page-product .product-pro-side-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .page-product .product-pro-dimensions,
  .page-product .product-pro-downloads {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    border-radius: 20px !important;
  }

  .page-product .product-pro-dimensions {
    min-height: 0 !important;
    padding: 20px !important;
    row-gap: 14px !important;
  }

  .page-product .product-pro-dimensions-single strong {
    font-size: 15px !important;
    white-space: normal !important;
  }

  .page-product .product-pro-downloads {
    padding: 18px !important;
  }

  .page-product .product-pro-downloads h3 {
    margin-bottom: 14px !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
  }

  .page-product .product-pro-downloads a {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) auto !important;
    gap: 10px !important;
    padding: 12px !important;
  }

  .page-product .product-pro-downloads a span {
    min-width: 0 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word !important;
    font-size: 13px !important;
  }

  .page-product .product-pro-downloads a b {
    grid-column: auto !important;
    margin-top: 0 !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 420px) {
  .page-product .product-pro-downloads a {
    grid-template-columns: 34px minmax(0, 1fr) !important;
  }

  .page-product .product-pro-downloads a b {
    grid-column: 2 !important;
    justify-self: start !important;
    margin-top: -4px !important;
  }
}

/* AI edits v13: corrected layout for Dimensions and Downloads cards */
.page-product .product-pro-info {
  container-type: inline-size;
}

.page-product .product-pro-side-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
  width: 100% !important;
}

.page-product .product-pro-side-grid .product-pro-mini-card {
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.page-product .product-pro-dimensions {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 12px 14px !important;
  align-content: start !important;
  align-items: start !important;
  min-height: 148px !important;
  padding: 24px 28px !important;
  overflow: hidden !important;
}

.page-product .product-pro-dimensions-icon {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.page-product .product-pro-dimensions-icon i {
  display: block !important;
  line-height: 1 !important;
}

.page-product .product-pro-dimensions-single {
  display: contents !important;
}

.page-product .product-pro-dimensions-single span {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
  max-width: 100% !important;
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  color: #334155 !important;
}

.page-product .product-pro-dimensions-single strong {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  display: block !important;
  max-width: 100% !important;
  margin: 8px 0 0 !important;
  font-size: clamp(14px, 2.2cqw, 16px) !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  letter-spacing: -0.02em !important;
}

.page-product .product-pro-downloads {
  min-height: 148px !important;
  padding: 24px !important;
  overflow: hidden !important;
}

.page-product .product-pro-downloads h3 {
  margin: 0 0 16px !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
  word-break: normal !important;
}

.page-product .product-pro-downloads a {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 12px 14px !important;
}

.page-product .product-pro-downloads a span {
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.page-product .product-pro-downloads a b {
  grid-column: auto !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

@container (max-width: 620px) {
  .page-product .product-pro-side-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .page-product .product-pro-side-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .page-product .product-pro-dimensions,
  .page-product .product-pro-downloads {
    min-height: 0 !important;
    padding: 20px !important;
    border-radius: 20px !important;
  }

  .page-product .product-pro-dimensions-single strong {
    font-size: 15px !important;
  }
}

/* AI edits v14: fix cart button and keep dimensions/downloads in one row */
.page-product .product-pro-buy {
  grid-template-columns: 132px minmax(0, 1fr) !important;
  gap: 12px !important;
  width: 100% !important;
}

.page-product .product-pro-cart,
.page-product .product-pro-sticky-form .product-buy-btn {
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  text-align: center !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

.page-product .product-pro-cart i,
.page-product .product-pro-sticky-form .product-buy-btn i,
.page-product .product-pro-cart span,
.page-product .product-pro-sticky-form .product-buy-btn span {
  position: relative !important;
  z-index: 1 !important;
}

.page-product .product-pro-side-grid {
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr) !important;
  gap: 16px !important;
  align-items: stretch !important;
}

.page-product .product-pro-dimensions,
.page-product .product-pro-downloads {
  min-width: 0 !important;
  width: 100% !important;
  min-height: 140px !important;
  padding: 22px 24px !important;
}

.page-product .product-pro-dimensions-single strong {
  font-size: clamp(13px, 1.7cqw, 15px) !important;
  line-height: 1.22 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.page-product .product-pro-downloads a {
  grid-template-columns: 40px minmax(0, 1fr) auto !important;
  padding: 11px 12px !important;
}

@container (max-width: 620px) {
  .page-product .product-pro-side-grid {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr) !important;
    gap: 14px !important;
  }

  .page-product .product-pro-dimensions,
  .page-product .product-pro-downloads {
    padding: 20px 18px !important;
    min-height: 138px !important;
  }

  .page-product .product-pro-dimensions-single strong {
    font-size: 13px !important;
  }

  .page-product .product-pro-downloads h3 {
    font-size: 15px !important;
  }

  .page-product .product-pro-downloads a b {
    font-size: 12px !important;
  }
}

@media (max-width: 520px) {
  .page-product .product-pro-buy {
    grid-template-columns: 132px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .page-product .product-pro-cart,
  .page-product .product-pro-sticky-form .product-buy-btn {
    padding: 0 14px !important;
    font-size: 14px !important;
  }

  .page-product .product-pro-side-grid {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr) !important;
    gap: 12px !important;
  }

  .page-product .product-pro-dimensions,
  .page-product .product-pro-downloads {
    padding: 18px 16px !important;
    border-radius: 20px !important;
  }

  .page-product .product-pro-dimensions-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    font-size: 16px !important;
  }

  .page-product .product-pro-dimensions-single span {
    font-size: 12px !important;
  }

  .page-product .product-pro-dimensions-single strong {
    grid-column: 1 / -1 !important;
    font-size: 12px !important;
    letter-spacing: -0.03em !important;
  }

  .page-product .product-pro-downloads a {
    grid-template-columns: 36px minmax(0, 1fr) auto !important;
    gap: 8px !important;
    padding: 10px !important;
  }
}

@media (max-width: 390px) {
  .page-product .product-pro-side-grid {
    grid-template-columns: 1fr !important;
  }
}

/* footer spacing */
.page-product .product-wrap{margin-bottom:48px;}
@media(max-width:768px){.page-product .product-wrap{margin-bottom:32px;}}

/* Fix footer overlap with the last content block on desktop pages */
@media (min-width: 1025px) {
  body > main {
    padding-bottom: 36px;
  }

  body > .footer {
    margin-top: 0;
  }
}

/* Extra breathing room for technology/category cards before the footer */
main > .container > .section:last-child {
  padding-bottom: 48px;
}


.product-pro-editorial{margin-top:40px}.product-editorial-layout{display:grid;grid-template-columns:1.4fr .8fr;gap:24px;align-items:start}.product-editorial-main,.product-editorial-side{display:grid;gap:24px}.product-pro-hero-description{min-height:320px;background:linear-gradient(180deg,#fff,#f8fbff)}.product-pro-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.product-pro-feature-item{display:flex;align-items:center;gap:12px;padding:14px;border-radius:18px;background:#f7faff;font-weight:600}.product-pro-feature-item img{width:36px;height:36px;object-fit:contain}.compact-panel strong{font-size:28px;line-height:1.2}.product-download-list{display:flex;flex-direction:column;gap:10px}.product-download-list a{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #eef2f7}.product-pro-trust-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}.product-pro-trust-row div{display:flex;align-items:center;gap:10px;background:#f8fbff;border:1px solid #e8eef8;border-radius:16px;padding:14px 16px;font-weight:600;color:#1f2937}.product-pro-panel{border:none;box-shadow:0 10px 30px rgba(15,23,42,.06);border-radius:28px}@media(max-width:980px){.product-editorial-layout,.product-pro-trust-row,.product-pro-feature-grid{grid-template-columns:1fr}}

/* Product card refinements */
.product-pro-dimensions-under-cart .product-pro-dimensions-title{
  display:flex;
  align-items:center;
  gap:10px;
}
.product-pro-dimensions-under-cart .product-pro-dimensions-title i{
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:#f7faff;
  color:#435ebe;
  font-size:18px;
  flex:0 0 38px;
}
.product-pro-dimensions-under-cart .product-pro-dimensions-value{
  font-size:20px;
  line-height:1.3;
}
.product-pro-feature-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.product-pro-feature-item{
  min-height:150px;
  flex-direction:column;
  justify-content:center;
  text-align:center;
  text-decoration:none;
  color:inherit;
  gap:14px;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.product-pro-feature-item:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(15,23,42,.08);
  background:#fff;
}
.product-pro-feature-item img{
  width:72px;
  height:72px;
}
.product-pro-feature-item i{
  font-size:42px;
  color:#435ebe;
}
.product-pro-feature-item span{
  display:block;
  line-height:1.25;
}
@media(max-width:980px){
  .product-pro-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:560px){
  .product-pro-feature-grid{grid-template-columns:1fr;}
  .product-pro-dimensions-under-cart .product-pro-dimensions-value{font-size:18px;}
}

/* Product page requested refinements v3 */
.page-product .product-pro-feature-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.page-product .product-pro-feature-item{
  min-height:170px;
  padding:20px 16px;
}
.page-product .product-pro-feature-item img,
.page-product .product-pro-feature-item .tech-pill-logo{
  width:82px;
  height:82px;
}
.page-product .product-pro-feature-item i{
  font-size:56px;
}
.page-product .product-pro-feature-item span{
  margin-top:2px;
  font-size:16px;
}
.page-product .product-pro-description p{
  font-size:17px;
  line-height:1.65;
}
.page-product .product-pro-dimensions-under-cart .product-pro-dimensions-value,
.page-product .compact-panel.product-pro-dimensions-under-cart strong{
  font-size:16px !important;
  line-height:1.25;
  font-weight:700;
}
.page-product .product-bundle-products .product-card{
  display:flex;
  flex-direction:column;
  border-radius:24px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 12px 30px rgba(15,23,42,.08);
  transition:transform .2s ease, box-shadow .2s ease;
}
.page-product .product-bundle-products .product-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 38px rgba(15,23,42,.12);
}
.page-product .product-bundle-products .product-img{
  min-height:220px;
  display:grid;
  place-items:center;
  background:#f8fbff;
  padding:18px;
}
.page-product .product-bundle-products .product-img img{
  width:100%;
  height:210px;
  object-fit:contain;
}
.page-product .product-bundle-products .product-body{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:18px;
  flex:1;
}
.page-product .product-bundle-products .product-title{
  min-height:48px;
  font-size:16px;
  line-height:1.35;
  font-weight:700;
  color:#0f172a;
  text-decoration:none;
}
.page-product .product-bundle-products .product-code,
.page-product .product-bundle-products .favorite-sku{
  color:#64748b;
  font-size:13px;
}
.page-product .product-bundle-products .product-sku-row,
.page-product .product-bundle-products .product-meta-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.page-product .product-bundle-products .product-meta-row{
  margin-top:auto;
}
.page-product .product-bundle-products .cart-btn{
  width:100%;
  min-height:44px;
}
.page-product .product-lightbox__content{
  height:calc(100dvh - 24px);
  padding-bottom:116px;
  overflow:hidden;
}
.page-product .product-lightbox .product-stage{
  height:calc(100dvh - 190px);
}
.page-product .product-lightbox .product-thumbs--modal{
  display:flex;
  grid-template-columns:none;
  gap:10px;
  align-items:center;
  max-height:none;
  height:86px;
  padding:4px 4px 8px;
  overflow-x:auto;
  overflow-y:hidden;
  bottom:18px;
}
.page-product .product-lightbox .product-thumbs--modal .product-thumb{
  flex:0 0 86px;
  width:86px;
  height:74px;
  padding:6px;
}
.page-product .product-lightbox .product-thumbs--modal .product-thumb img,
.page-product .product-lightbox .product-thumbs--modal .product-thumb video{
  width:100%;
  height:58px;
  object-fit:contain;
}
.page-product .product-lightbox__counter{
  bottom:108px;
}
@media(max-width:980px){
  .page-product .product-pro-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .page-product .product-pro-feature-item img,
  .page-product .product-pro-feature-item .tech-pill-logo{width:70px;height:70px;}
}
@media(max-width:560px){
  .page-product .product-pro-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .page-product .product-pro-feature-item{min-height:136px;padding:14px 10px;border-radius:16px;}
  .page-product .product-pro-feature-item img,
  .page-product .product-pro-feature-item .tech-pill-logo{width:54px;height:54px;}
  .page-product .product-pro-feature-item i{font-size:40px;}
  .page-product .product-pro-feature-item span{font-size:13px;}
  .page-product .product-pro-description p{font-size:15px;line-height:1.6;}
  .page-product .product-pro-dimensions-under-cart .product-pro-dimensions-value,
  .page-product .compact-panel.product-pro-dimensions-under-cart strong{font-size:14px !important;}
  .page-product .product-lightbox__content{padding:54px 10px 104px;}
  .page-product .product-lightbox .product-stage{height:calc(100dvh - 174px);}
  .page-product .product-lightbox .product-thumbs--modal{left:10px;right:10px;bottom:12px;height:78px;}
  .page-product .product-lightbox .product-thumbs--modal .product-thumb{flex-basis:76px;width:76px;height:66px;}
  .page-product .product-lightbox .product-thumbs--modal .product-thumb img,
  .page-product .product-lightbox .product-thumbs--modal .product-thumb video{height:50px;}
  .page-product .product-lightbox__counter{bottom:94px;}
}


/* Product bundle cards: match the home page "Популярные товары" design */
.page-product .product-bundle-products .product-card{
  border-radius:16px;
  overflow:hidden;
  background:var(--card);
  border:1px solid var(--border);
  box-shadow:0 8px 18px rgba(15,23,42,.04);
}
.page-product .product-bundle-products .product-card:hover{
  transform:translateY(-7px);
  box-shadow:var(--shadow);
  border-color:rgba(14,165,233,.35);
}
.page-product .product-bundle-products .product-img{
  aspect-ratio:4 / 3;
  min-height:0;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  background:linear-gradient(180deg,#f7fbff,#edf7ff);
}
.page-product .product-bundle-products .product-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.page-product .product-bundle-products .product-body{
  display:flex;
  flex-direction:column;
  gap:0;
  padding:12px;
  flex:1;
}
.page-product .product-bundle-products .product-title{
  margin-bottom:5px;
  min-height:38px;
  font-size:15px;
  line-height:1.25;
  font-weight:700;
  color:#0f172a;
  text-decoration:none;
}
.page-product .product-bundle-products .product-code{
  margin-bottom:4px;
  line-height:1.25;
}
.page-product .product-bundle-products .favorite-sku{
  margin-bottom:6px;
  color:#64748b;
  font-size:13px;
  font-weight:700;
}
.page-product .product-bundle-products .product-meta-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:8px;
}
.page-product .product-bundle-products .product-tech-inline{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.2;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:flex-end;
}
.page-product .product-bundle-products .product-body .add-to-cart-form{
  margin-top:7px;
}
.page-product .product-bundle-products .cart-btn{
  width:100%;
  padding:10px 12px;
  font-size:14px;
}
.page-product .product-bundle-products .price{
  font-size:20px;
  line-height:1.15;
  margin-bottom:0;
}
@media(max-width:720px){
  .page-product .product-bundle-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .page-product .product-bundle-products .product-card{border-radius:14px;}
  .page-product .product-bundle-products .product-card:hover{transform:none;}
  .page-product .product-bundle-products .product-img{aspect-ratio:1 / 1;}
  .page-product .product-bundle-products .product-body{padding:9px;}
  .page-product .product-bundle-products .product-title{min-height:34px;font-size:13px;line-height:1.25;margin-bottom:4px;}
  .page-product .product-bundle-products .product-code,
  .page-product .product-bundle-products .favorite-sku{font-size:11px;line-height:1.25;margin-bottom:4px;}
  .page-product .product-bundle-products .product-meta-row{display:grid;grid-template-columns:1fr;gap:5px;margin-top:5px;}
  .page-product .product-bundle-products .price{font-size:16px;line-height:1.15;}
  .page-product .product-bundle-products .product-tech-inline{justify-content:flex-start;font-size:10px;}
  .page-product .product-bundle-products .stock-badge{padding:3px 6px;font-size:10px;}
  .page-product .product-bundle-products .cart-btn{min-height:36px;padding:8px 9px;font-size:12px;border-radius:11px;}
}
@media(max-width:360px){
  .page-product .product-bundle-products{gap:8px;}
  .page-product .product-bundle-products .product-body{padding:8px;}
  .page-product .product-bundle-products .product-title{font-size:12px;}
  .page-product .product-bundle-products .price{font-size:15px;}
}

/* Smart header catalog search */
.header-search {
  z-index: 120;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: none;
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
}

.search-results.is-visible {
  display: block;
}

.search-results__item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}

.search-results__item:hover,
.search-results__item.is-active {
  background: linear-gradient(180deg, #e8f7ff, #f3fbff);
  transform: translateY(-1px);
}

.search-results__image {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.search-results__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.search-results__content {
  min-width: 0;
}

.search-results__title,
.search-results__meta,
.search-results__price,
.search-results__stock {
  display: block;
}

.search-results__title {
  overflow: hidden;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.search-results__meta,
.search-results__stock,
.search-results__empty {
  color: var(--muted);
  font-size: 13px;
}

.search-results__side {
  text-align: right;
  white-space: nowrap;
}


.search-results__price {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: end;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(14, 165, 233, .10);
  color: var(--primary-dark);
  font-weight: 900;
}

.search-results__price-label {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.search-results__price-value {
  line-height: 1;
}

.search-results__price--dealer {
  background: rgba(22, 163, 74, .12);
  color: #166534;
}

.search-results__price--special {
  background: rgba(217, 119, 6, .14);
  color: #92400e;
}

.search-results__price--retail {
  background: rgba(14, 165, 233, .10);
  color: var(--primary-dark);
}

.search-results__empty {
  display: grid;
  gap: 4px;
  padding: 14px 12px;
}

.search-results__empty strong {
  color: var(--text);
  font-size: 14px;
}

.search-results__empty span {
  color: var(--muted);
  line-height: 1.35;
}

.search-results__all {
  display: flex;
  justify-content: center;
  margin-top: 6px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.search-results__all:hover {
  background: #e8f7ff;
}

@media (max-width: 640px) {
  .search-results {
    position: fixed;
    top: 132px;
    left: 12px;
    right: 12px;
    max-height: calc(100dvh - 154px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    z-index: 1200;
  }

  .search-results__item {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .search-results__side {
    grid-column: 2;
    text-align: left;
  }

  .search-results__all {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin: 8px -2px 0;
    box-shadow: 0 -10px 18px rgba(255, 255, 255, .92);
  }
}


.catalog-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}

.page-catalog .catalog-empty__actions .cart-btn,
.page-catalog .catalog-empty .catalog-empty__reset {
  width: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.page-catalog .catalog-empty > .catalog-empty__reset {
  margin-left: auto;
  margin-right: auto;
}


/* Fix: mobile header search visibility after smart search integration */
@media (max-width: 1024px) {
  .header .header__inner {
    position: relative;
  }

  .header .header-search {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    display: none;
    z-index: 1000;
  }

  .header .header-search.search--active {
    display: flex !important;
  }
}

@media (max-width: 720px) {
  .header .tablet-search-toggle {
    display: grid !important;
  }

  .header .header-search.search--active {
    display: flex !important;
  }
}


/* Fix: mobile smart-search dropdown should not overlap search field */
@media (max-width: 640px) {
  .header .header-search.search--active {
    z-index: 1300;
  }

  .header .header-search.search--active .search-results.is-visible {
    margin-top: 6px;
  }
}

/* Technology page cards: match product card styling from product page bundle section */
.page-catalog .technology-group-grid .technology-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.page-catalog .technology-group-grid .technology-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
  border-color: rgba(14, 165, 233, .35);
}
.page-catalog .technology-group-grid .technology-card__media {
  aspect-ratio: 4 / 3;
  min-height: 0;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f7fbff, #edf7ff);
  text-decoration: none;
}
.page-catalog .technology-group-grid .technology-card__media img {
  width: 100%;
  height: 100%;
  max-width: 170px;
  max-height: 130px;
  object-fit: contain;
}
.page-catalog .technology-group-grid .technology-card__placeholder {
  width: 82px;
  height: 82px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: #0ea5e9;
  background: rgba(14, 165, 233, .10);
  border: 1px solid rgba(14, 165, 233, .20);
  font-size: 34px;
}
.page-catalog .technology-group-grid .technology-card__body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px;
  flex: 1;
}
.page-catalog .technology-group-grid .technology-card__title {
  margin-bottom: 10px;
  min-height: 38px;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}
.page-catalog .technology-group-grid .technology-card__title:hover {
  color: var(--primary);
}
.page-catalog .technology-group-grid .technology-card__link {
  width: 100%;
  margin-top: auto;
  padding: 10px 12px;
  font-size: 14px;
  text-decoration: none;
  text-align: center;
}
@media (max-width: 720px) {
  .page-catalog .technology-group-grid .technology-card {
    border-radius: 14px;
  }
  .page-catalog .technology-group-grid .technology-card:hover {
    transform: none;
  }
  .page-catalog .technology-group-grid .technology-card__media {
    aspect-ratio: 1 / 1;
    padding: 14px;
  }
  .page-catalog .technology-group-grid .technology-card__media img {
    max-width: 118px;
    max-height: 96px;
  }
  .page-catalog .technology-group-grid .technology-card__placeholder {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    font-size: 24px;
  }
  .page-catalog .technology-group-grid .technology-card__body {
    padding: 9px;
  }
  .page-catalog .technology-group-grid .technology-card__title {
    min-height: 34px;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.25;
  }
  .page-catalog .technology-group-grid .technology-card__link {
    min-height: 36px;
    padding: 8px 9px;
    border-radius: 11px;
    font-size: 12px;
  }
}

/* Technology page: related technology cards match product "Технологии и особенности" block */
.technology-feature-section {
  padding-top: 0;
}
.technology-feature-panel {
  padding: 24px;
  border: none;
  border-radius: 28px;
  background: var(--card, #fff);
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
}
.technology-feature-panel h2 {
  margin: 0 0 18px;
}
.technology-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.technology-feature-item {
  display: flex;
  min-height: 170px;
  padding: 20px 16px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 18px;
  background: #f7faff;
  color: inherit;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.technology-feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15,23,42,.08);
  background: #fff;
}
.technology-feature-item img,
.technology-feature-item .tech-pill-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
}
.technology-feature-item i {
  font-size: 56px;
  color: #435ebe;
}
.technology-feature-item span {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  line-height: 1.25;
}
@media (max-width: 980px) {
  .technology-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .technology-feature-item img,
  .technology-feature-item .tech-pill-logo { width: 70px; height: 70px; }
}
@media (max-width: 560px) {
  .technology-feature-panel { padding: 18px; border-radius: 22px; }
  .technology-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .technology-feature-item { min-height: 136px; padding: 14px 10px; border-radius: 16px; }
  .technology-feature-item img,
  .technology-feature-item .tech-pill-logo { width: 54px; height: 54px; }
  .technology-feature-item i { font-size: 40px; }
  .technology-feature-item span { font-size: 13px; }
}

/* Mobile product page spacing symmetry — 2026-05-07 */
@media (max-width: 760px) {
  .page-product main > .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .page-product .product-pro-breadcrumb {
    margin-bottom: 14px;
  }

  .page-product .product-pro-shell,
  .page-product .product-editorial-layout,
  .page-product .product-editorial-main,
  .page-product .product-editorial-side {
    gap: 18px;
  }

  .page-product .product-pro-shell {
    margin-bottom: 0;
  }

  .page-product .product-pro-gallery,
  .page-product .product-pro-info,
  .page-product .product-pro-panel,
  .page-product .product-pro-mini-card,
  .page-product .product-bundle-products .product-card {
    border-radius: 18px;
  }

  .page-product .product-pro-main,
  .page-product .product-pro-main .product-stage {
    border-radius: 18px;
  }

  .page-product .product-pro-main,
  .page-product .product-pro-main .product-stage,
  .page-product .product-pro-main .product-stage-media,
  .page-product .product-pro-main .product-stage img,
  .page-product .product-pro-main .product-stage video {
    min-height: 300px;
  }

  .page-product .product-pro-thumbs {
    margin-top: 10px;
    gap: 8px;
  }

  .page-product .product-pro-info {
    padding-top: 0;
  }

  .page-product .product-pro-topline,
  .page-product .product-pro-status-row,
  .page-product .product-pro-price-row,
  .page-product .product-pro-buy,
  .page-product .product-pro-benefits,
  .page-product .product-pro-dimensions-under-cart {
    margin-bottom: 16px;
  }

  .page-product .product-pro-title {
    margin-bottom: 10px;
    font-size: 24px;
    line-height: 1.14;
  }

  .page-product .product-sku-mobile-row {
    align-items: center;
  }

  .page-product .product-pro-status-row {
    margin-top: 0;
    gap: 10px;
  }

  .page-product .product-pro-status-row .stock-badge,
  .page-product .product-stock-exact {
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 13px;
  }

  .page-product .product-pro-price-row {
    gap: 12px;
    align-items: stretch;
  }

  .page-product .product-pro-price {
    min-height: auto;
    align-items: center;
  }

  .page-product .product-pro-price strong {
    font-size: 32px;
    line-height: 1.05;
  }

  .page-product .product-pro-tabs.product-price-switch {
    width: 100%;
    padding: 4px;
    gap: 4px;
  }

  .page-product .product-pro-tabs.product-price-switch button {
    min-height: 42px;
    padding: 9px 8px;
    text-align: center;
  }

  .page-product .product-pro-buy {
    gap: 10px;
  }

  .page-product .product-pro-buy .qty-wrap,
  .page-product .product-pro-cart {
    height: 52px;
    min-height: 52px;
  }

  .page-product .product-pro-buy .qty-btn,
  .page-product .product-pro-buy #productQtyInput {
    height: 52px;
    min-height: 52px;
  }

  .page-product .product-pro-cart {
    justify-content: center;
    width: 100%;
  }

  .page-product .product-pro-panel {
    padding: 18px;
  }

  .page-product .product-pro-panel h2 {
    margin-bottom: 14px;
    font-size: 18px;
    line-height: 1.2;
  }

  .page-product .product-pro-dimensions-under-cart {
    margin-top: 0;
  }

  .page-product .product-pro-dimensions-under-cart .product-pro-dimensions-title {
    margin-bottom: 12px;
  }

  .page-product .product-pro-editorial {
    margin-top: 18px;
  }

  .page-product .product-pro-hero-description {
    min-height: 0;
  }

  .page-product .product-pro-description p {
    margin: 0;
  }

  .page-product .product-pro-feature-grid,
  .page-product .product-bundle-products,
  .page-product .products.product-bundle-products {
    gap: 12px;
  }

  .page-product .product-pro-feature-item {
    min-height: 132px;
    padding: 14px 10px;
  }

  .page-product .product-editorial-side {
    margin-top: 0;
  }

  .page-product .product-download-list {
    gap: 0;
  }

  .page-product .product-download-list a:first-child {
    padding-top: 0;
  }

  .page-product .section:has(.product-bundle-products) {
    margin-top: 18px;
    padding-top: 0;
    padding-bottom: 32px;
  }

  .page-product .section:has(.product-bundle-products) .section-title {
    margin-bottom: 14px;
    font-size: 22px;
    line-height: 1.2;
  }

  .page-product .product-bundle-products .product-img {
    min-height: 0;
    padding: 12px;
  }

  .page-product .product-bundle-products .product-img img {
    height: 170px;
  }

  .page-product .product-bundle-products .product-body {
    padding: 14px;
    gap: 8px;
  }

  .page-product .product-pro-sticky-bar {
    margin-top: 0;
  }
}

@media (max-width: 420px) {
  .page-product main > .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .page-product .product-pro-main,
  .page-product .product-pro-main .product-stage,
  .page-product .product-pro-main .product-stage-media,
  .page-product .product-pro-main .product-stage img,
  .page-product .product-pro-main .product-stage video {
    min-height: 280px;
  }

  .page-product .product-pro-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* AI edits v6: product stock badge and longer characteristics connector */
.page-product .product-pro-status-row {
  align-items: stretch;
}

.page-product .product-stock-exact {
  position: relative;
  isolation: isolate;
  gap: 10px;
  min-height: 46px;
  padding: 9px 10px 9px 12px;
  border-radius: 16px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 54%, #f8fafc 100%);
  box-shadow: 0 12px 26px rgba(37, 99, 235, .10), inset 0 1px 0 rgba(255,255,255,.85);
  overflow: hidden;
}

.page-product .product-stock-exact::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  z-index: -1;
}

.page-product .product-stock-exact i {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #dbeafe;
  color: var(--primary-dark);
  box-shadow: inset 0 0 0 1px rgba(37,99,235,.14);
}

.page-product .product-stock-exact span {
  color: #64748b;
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.page-product .product-stock-exact strong {
  margin-left: 2px;
  padding: 5px 9px;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  font-size: 15px;
  box-shadow: inset 0 0 0 1px #dbeafe, 0 4px 12px rgba(15,23,42,.06);
}

.page-product .product-pro-panel .spec-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  padding: 5px 0;
}

.page-product .product-pro-panel .spec-row::before {
  order: 2;
  content: "";
  flex: 1 1 auto;
  min-width: 28px;
  border-bottom: 1px dotted #cbd5e1;
  transform: translateY(-3px);
}

.page-product .product-pro-panel .spec-name {
  order: 1;
  flex: 0 1 auto;
  max-width: 48%;
}

.page-product .product-pro-panel .spec-value {
  order: 3;
  flex: 0 1 auto;
  max-width: 42%;
  text-align: right;
}

@media (max-width: 760px) {
  .page-product .product-pro-status-row {
    align-items: stretch;
  }

  .page-product .product-pro-status-row .stock-badge,
  .page-product .product-stock-exact {
    min-height: 42px;
  }

  .page-product .product-stock-exact {
    flex: 1 1 auto;
    justify-content: flex-start;
    padding: 8px 10px 8px 12px;
  }

  .page-product .product-stock-exact span {
    font-size: 11px;
  }

  .page-product .product-stock-exact strong {
    margin-left: auto;
    font-size: 14px;
  }

  .page-product .product-pro-panel .spec-row {
    gap: 5px;
  }

  .page-product .product-pro-panel .spec-row::before {
    min-width: 18px;
  }

  .page-product .product-pro-panel .spec-name {
    max-width: 52%;
  }

  .page-product .product-pro-panel .spec-value {
    max-width: 40%;
  }
}


/* Premium product stock card — improved "На складе" block */
.page-product .product-pro-status-row .product-stock-exact {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 14px 22px 14px 16px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(34, 197, 94, .18), transparent 30%),
    linear-gradient(135deg, #f0fdf4 0%, #ffffff 52%, #ecfdf5 100%);
  border: 1px solid rgba(34, 197, 94, .26);
  box-shadow: 0 18px 40px rgba(22, 163, 74, .12), 0 8px 18px rgba(15, 23, 42, .06);
  color: #0f172a;
  line-height: 1;
}

.page-product .product-pro-status-row .product-stock-exact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .45;
  background-image:
    linear-gradient(135deg, rgba(34, 197, 94, .09) 1px, transparent 1px),
    linear-gradient(45deg, rgba(34, 197, 94, .06) 1px, transparent 1px);
  background-size: 22px 22px, 34px 34px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
}

.page-product .product-pro-status-row .product-stock-exact__icon {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #059669);
  color: #fff;
  font-size: 23px;
  box-shadow: 0 14px 28px rgba(5, 150, 105, .28), inset 0 1px 0 rgba(255,255,255,.28);
}

.page-product .product-pro-status-row .product-stock-exact__check {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #16a34a;
  border: 2px solid #dcfce7;
  font-size: 10px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, .14);
}

.page-product .product-pro-status-row .product-stock-exact__content {
  display: grid;
  gap: 7px;
}

.page-product .product-pro-status-row .product-stock-exact__label {
  color: #16a34a;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 900;
  letter-spacing: -.035em;
}

.page-product .product-pro-status-row .product-stock-exact strong {
  color: #0f172a;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 900;
  letter-spacing: -.04em;
}

@media (max-width: 560px) {
  .page-product .product-pro-status-row .product-stock-exact {
    width: 100%;
    min-height: 70px;
    padding: 12px 16px;
    border-radius: 18px;
  }

  .page-product .product-pro-status-row .product-stock-exact__icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    font-size: 20px;
  }
}

/* AI edits v7: compact "На складе" badge — lower height, smaller font, check only */
.page-product .product-pro-status-row .product-stock-exact {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border: 1px solid rgba(34, 197, 94, .24);
  box-shadow: 0 8px 20px rgba(22, 163, 74, .08), 0 2px 8px rgba(15, 23, 42, .04);
  color: #15803d;
  line-height: 1.15;
  isolation: isolate;
}

.page-product .product-pro-status-row .product-stock-exact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .28;
  background-image: linear-gradient(135deg, rgba(34, 197, 94, .08) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
}

.page-product .product-pro-status-row .product-stock-exact__icon,
.page-product .product-pro-status-row .product-stock-exact__content,
.page-product .product-pro-status-row .product-stock-exact__label {
  display: none;
}

.page-product .product-pro-status-row .product-stock-exact__check {
  position: static;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #ecfdf5;
  color: #16a34a;
  border: 2px solid #16a34a;
  font-size: 11px;
  box-shadow: none;
}

.page-product .product-pro-status-row .product-stock-exact__text {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: #15803d;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 700;
  letter-spacing: -.015em;
}

.page-product .product-pro-status-row .product-stock-exact strong {
  color: #15803d;
  font-size: inherit;
  font-weight: 800;
  letter-spacing: inherit;
}

@media (max-width: 560px) {
  .page-product .product-pro-status-row .product-stock-exact {
    width: auto;
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 12px;
  }

  .page-product .product-pro-status-row .product-stock-exact__check {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
    font-size: 10px;
  }

  .page-product .product-pro-status-row .product-stock-exact__text {
    font-size: 14px;
  }
}

/* Compact premium warehouse badge — refined per latest mockup */
.page-product .product-stock-exact {
  min-height: 32px;
  padding: 6px 10px;
  gap: 7px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.95), rgba(255,255,255,0) 36%),
    linear-gradient(135deg, #f7fff9 0%, #eefcf4 52%, #f8fffb 100%);
  border: 1px solid rgba(22, 163, 74, .18);
  box-shadow: 0 8px 22px rgba(22, 163, 74, .10), inset 0 1px 0 rgba(255,255,255,.9);
  color: #14813f;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.01em;
}

.page-product .product-stock-exact__check {
  width: 18px;
  height: 18px;
  min-width: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #16a34a, #0f8f3e);
  box-shadow: 0 5px 12px rgba(22, 163, 74, .22), inset 0 1px 0 rgba(255,255,255,.3);
}

.page-product .product-stock-exact__check i,
.page-product .product-stock-exact i {
  width: auto;
  height: auto;
  display: block;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #1e730f;
  font-size: 9px;
  line-height: 1;
}

.page-product .product-stock-exact__text,
.page-product .product-stock-exact span.product-stock-exact__text {
  color: #14813f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.page-product .product-stock-exact strong {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
}

/* AI edits v8: premium dimensions block */
.page-product .product-pro-dimensions-premium {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(67, 94, 190, .16);
  border-radius: 24px;
}

.page-product .product-pro-dimensions-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .34;
  background-image: linear-gradient(135deg, rgba(67,94,190,.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%, #000 100%);
}

.page-product .product-pro-dimensions-premium__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.page-product .product-pro-dimensions-premium__icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #253f9f;
}

.page-product .product-pro-dimensions-premium__icon i {
  font-size: 20px;
}

.page-product .product-pro-dimensions-premium .product-pro-dimensions-title {
  display: grid;
  gap: 2px;
  margin: 0 !important;
  color: #0f172a;
  line-height: 1.05;
}

.page-product .product-pro-dimensions-premium .product-pro-dimensions-title span {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.025em;
}

.page-product .product-pro-dimensions-premium .product-pro-dimensions-title small {
  color: #64748b;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-product .product-pro-dimensions-premium .product-pro-dimensions-value,
.page-product .compact-panel.product-pro-dimensions-premium strong.product-pro-dimensions-value {
  display: block;
  color: #0f172a;
  font-size: clamp(18px, 1.9vw, 20px) !important;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.page-product .product-pro-dimensions-premium .product-pro-dimensions-value span {
  color: #435ebe;
  font-size: .78em;
  letter-spacing: -.015em;
}

.page-product .product-pro-dimensions-premium__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.page-product .product-pro-dimensions-premium__grid div {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(67,94,190,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.page-product .product-pro-dimensions-premium__grid small,
.page-product .product-pro-dimensions-premium__grid b {
  display: block;
}

.page-product .product-pro-dimensions-premium__grid small {
  margin-bottom: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.page-product .product-pro-dimensions-premium__grid b {
  color: #1e293b;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .page-product .product-pro-dimensions-premium {
    padding: 16px;
    border-radius: 20px;
  }

  .page-product .product-pro-dimensions-premium__icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 14px;
  }

  .page-product .product-pro-dimensions-premium .product-pro-dimensions-value,
  .page-product .compact-panel.product-pro-dimensions-premium strong.product-pro-dimensions-value {
    font-size: 23px !important;
  }

  .page-product .product-pro-dimensions-premium__grid {
    grid-template-columns: 1fr;
  }

  .page-product .product-pro-dimensions-premium__grid div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .page-product .product-pro-dimensions-premium__grid small {
    margin-bottom: 0;
  }
}

/* Правка мобильной карточки товара: боковые отступы как в каталоге */
@media (max-width: 760px) {
  .page-product main > .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 420px) {
  .page-product main > .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Product gallery: mobile swipe and fullscreen polish */
.page-product .product-main,
.page-product .product-stage,
.page-product .product-stage-media{
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.page-product .product-main .product-stage-media,
.page-product .product-main img{
  cursor: zoom-in;
}
.page-product .product-lightbox,
.page-product .product-lightbox .product-stage,
.page-product .product-lightbox .product-stage-media{
  touch-action: none;
}
.page-product .product-lightbox:fullscreen,
.page-product .product-lightbox:-webkit-full-screen{
  width:100vw;
  height:100vh;
  background:rgba(2,6,23,.96);
}
@media(max-width:768px){
  .page-product .product-main .product-slider-btn{display:none;}
  .page-product .product-lightbox__content{width:100vw;height:100dvh;border-radius:0;border:0;}
}

/* Product gallery UX: desktop, tablet and mobile */
.page-product .product-pro-gallery {
  min-width: 0;
}

.page-product .product-pro-main {
  isolation: isolate;
  background: linear-gradient(180deg, #f8fafc, #eef6ff);
}

.page-product .product-pro-main .product-stage {
  background: transparent;
}

.page-product .product-pro-main .product-stage-media {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.page-product .product-pro-main .product-stage img,
.page-product .product-pro-main .product-stage video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #f8fafc;
}

.page-product .product-pro-main .product-slider-btn {
  opacity: .92;
}

.page-product .product-pro-main .product-slider-btn:hover,
.page-product .product-pro-main .product-slider-btn:focus-visible {
  opacity: 1;
  transform: translateY(-50%) scale(1.03);
}

.page-product .product-pro-main .product-slider-counter {
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 10px 24px rgba(15,23,42,.18);
}

.page-product .product-pro-thumbs {
  display: flex;
  grid-template-columns: none;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.page-product .product-pro-thumbs .product-thumb {
  flex: 0 0 clamp(76px, 9vw, 104px);
  width: clamp(76px, 9vw, 104px);
  height: clamp(68px, 7.8vw, 88px);
  aspect-ratio: auto;
  scroll-snap-align: start;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.page-product .product-pro-thumbs .product-thumb:hover,
.page-product .product-pro-thumbs .product-thumb:focus-visible {
  transform: translateY(-1px);
}

.page-product .product-pro-thumbs .product-thumb.active,
.page-product .product-pro-thumbs .product-thumb[aria-current="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14,165,233,.14), 0 12px 24px rgba(14,165,233,.14);
}

.page-product .product-pro-thumbs .product-thumb img,
.page-product .product-pro-thumbs .product-thumb video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f8fafc;
}

.page-product .product-lightbox.active {
  display: grid;
  place-items: center;
}

.page-product .product-lightbox__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  width: min(100vw - 24px, 1280px);
  height: min(100dvh - 24px, 900px);
  padding: 16px 56px 104px;
  overflow: hidden;
}

.page-product .product-lightbox .product-stage {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  border-radius: 16px;
  background: #020617;
}

.page-product .product-lightbox .product-stage-media,
.page-product .product-lightbox .product-stage img,
.page-product .product-lightbox .product-stage video {
  min-height: 0;
}

.page-product .product-lightbox .product-stage img,
.page-product .product-lightbox .product-stage video {
  object-fit: contain !important;
  background: #020617;
}

.page-product .product-lightbox .product-thumbs--modal {
  position: absolute;
  left: 56px;
  right: 56px;
  bottom: 16px;
  display: flex;
  grid-template-columns: none;
  gap: 10px;
  max-height: none;
  height: 76px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px;
  scroll-snap-type: x proximity;
}

.page-product .product-lightbox .product-thumbs--modal .product-thumb {
  flex: 0 0 86px;
  width: 86px;
  height: 70px;
  padding: 5px;
  scroll-snap-align: start;
}

.page-product .product-lightbox .product-thumbs--modal .product-thumb img,
.page-product .product-lightbox .product-thumbs--modal .product-thumb video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-product .product-lightbox__counter {
  left: 50%;
  right: auto;
  bottom: 98px;
  transform: translateX(-50%);
}

@media (min-width: 1181px) {
  .page-product .product-pro-main .product-stage img,
  .page-product .product-pro-main .product-stage video {
    padding: 0;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .page-product .product-pro-main {
    height: auto;
  }

  .page-product .product-pro-main,
  .page-product .product-pro-main .product-stage,
  .page-product .product-pro-main .product-stage-media,
  .page-product .product-pro-main .product-stage img,
  .page-product .product-pro-main .product-stage video {
    min-height: 460px;
  }

  .page-product .product-pro-thumbs .product-thumb {
    flex-basis: 92px;
    width: 92px;
    height: 76px;
  }

  .page-product .product-lightbox__content {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    padding: 58px 22px 104px;
  }

  .page-product .product-lightbox .product-thumbs--modal {
    left: 22px;
    right: 22px;
  }
}

@media (max-width: 760px) {
  .page-product .product-pro-breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 8px;
    margin-left: 0;
    margin-right: 0;
    white-space: nowrap;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .page-product .product-pro-breadcrumb::-webkit-scrollbar {
    display: none;
  }

  .page-product .product-pro-breadcrumb a,
  .page-product .product-pro-breadcrumb span {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .page-product .product-pro-main {
    height: auto;
    border-radius: 18px;
  }

  .page-product .product-pro-main,
  .page-product .product-pro-main .product-stage,
  .page-product .product-pro-main .product-stage-media,
  .page-product .product-pro-main .product-stage img,
  .page-product .product-pro-main .product-stage video {
    min-height: 320px;
  }

  .page-product .product-pro-main .product-slider-btn {
    display: none;
  }

  .page-product .product-pro-main .product-slider-counter {
    left: 12px;
    top: 12px;
    padding: 7px 10px;
  }

  .page-product .product-pro-thumbs {
    margin-top: 8px;
    gap: 8px;
    padding-bottom: 6px;
  }

  .page-product .product-pro-thumbs .product-thumb {
    flex-basis: 72px;
    width: 72px;
    height: 62px;
    border-radius: 10px;
  }

  .page-product .product-lightbox__content {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    border: 0;
    padding: 56px 10px 92px;
  }

  .page-product .product-lightbox .product-stage {
    border-radius: 14px;
  }

  .page-product .product-lightbox__content > .product-slider-btn {
    width: 40px;
    height: 40px;
  }

  .page-product .product-lightbox__content > .product-slider-btn--prev {
    left: 14px;
  }

  .page-product .product-lightbox__content > .product-slider-btn--next {
    right: 14px;
  }

  .page-product .product-lightbox .product-thumbs--modal {
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 68px;
    gap: 8px;
  }

  .page-product .product-lightbox .product-thumbs--modal .product-thumb {
    flex-basis: 70px;
    width: 70px;
    height: 60px;
  }

  .page-product .product-lightbox__counter {
    bottom: 82px;
  }
}

@media (min-width: 1181px) {
  .page-product .product-pro-hero-description {
    min-height: 0;
    padding-bottom: 24px;
  }

  .page-product .product-pro-description p:last-child {
    margin-bottom: 0;
  }
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 240;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(760px, calc(100% - 32px));
  padding: 16px;
  border: 1px solid rgba(203, 213, 225, .95);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 20px 50px rgba(15, 23, 42, .18);
  color: #0f172a;
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity .22s ease, transform .22s ease;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cookie-banner__content {
  min-width: 0;
}

.cookie-banner__content strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  line-height: 1.25;
}

.cookie-banner__content p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cookie-banner__btn {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--primary);
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-banner__btn--ghost {
  border-color: #cbd5e1;
  background: #fff;
  color: #334155;
}

.cookie-banner__btn:hover,
.cookie-banner__btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(14, 165, 233, .18);
}

@media (max-width: 640px) {
  .cookie-banner {
    bottom: 12px;
    grid-template-columns: 1fr;
    gap: 12px;
    width: calc(100% - 24px);
    padding: 14px;
    border-radius: 16px;
  }

  .cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .cookie-banner__btn {
    min-width: 0;
    padding: 10px 12px;
    font-size: 13px;
  }
}
