
/* ==========================================
   AI COMMERCE — DESIGN SYSTEM
========================================== */


:root {
    --bg: #f7f8fa;
    --surface: #ffffff;
    --surface-light: #f0f2f5;
    --border: rgba(20, 25, 35, 0.10);
    --text: #17191e;
    --muted: #737985;
    --accent: #c9d8ff;
    --accent-dark: #a9c0ff;
    --radius: 20px;
    --transition: 0.25s ease;
  }
  
  
  * {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Manrope", sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  
  body.cart-open {
    overflow: hidden;
  }
  
  button,
  input {
    font: inherit;
  }
  
  button,
  a {
    -webkit-tap-highlight-color: transparent;
  }
  
  button {
    cursor: pointer;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  .container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
  }
  
  .section {
    padding: 110px 0;
  }
  
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  
  /* HEADER */
  
  .header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(9, 12, 11, 0.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
  }
  
  .header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  
  .logo {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -1.5px;
    white-space: nowrap;
  }
  
  .logo span {
    color: var(--accent);
    margin-left: 5px;
  }
  
  .nav {
    display: flex;
    gap: 34px;
  }
  
  .nav a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    transition: color var(--transition);
  }
  
  .nav a:hover {
    color: var(--accent);
  }
  
  .cart-button {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 12px;
    padding: 13px 18px;
    font-weight: 700;
  }
  
  .cart-button span {
    display: inline-grid;
    place-items: center;
    background: var(--accent);
    color: #07120d;
    min-width: 23px;
    height: 23px;
    padding: 0 5px;
    border-radius: 50%;
    margin-left: 8px;
    font-size: 12px;
  }
  
  /* HERO */
  
  .hero {
    position: relative;
    overflow: hidden;
    min-height: 690px;
    display: flex;
    align-items: center;
    background:
      radial-gradient(
        ellipse at 85% 35%,
        rgba(67, 201, 149, 0.22),
        transparent 45%
      ),
      linear-gradient(145deg, #101a15, #090c0b 65%);
  }
  
  .hero::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -140px;
    top: 40px;
    border: 1px solid rgba(139, 240, 196, 0.18);
    border-radius: 50%;
    box-shadow:
      0 0 100px rgba(67, 201, 149, 0.08),
      inset 0 0 100px rgba(67, 201, 149, 0.05);
    pointer-events: none;
  }
  
  .hero-content {
    position: relative;
    z-index: 1;
    padding-top: 100px;
    padding-bottom: 100px;
  }
  
  .eyebrow {
    display: inline-block;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
  }
  
  .hero h1 {
    max-width: 820px;
    margin: 25px 0;
    font-size: clamp(48px, 7vw, 94px);
    line-height: 1.08;
    letter-spacing: -5px;
    font-weight: 800;
  }
  
  .hero h1 span {
    display: block;
    color: var(--accent);
  }
  
  .hero p {
    max-width: 520px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 35px;
  }
  
  .primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 12px;
    padding: 18px 27px;
    background: var(--accent);
    color: #07120d;
    font-size: 13px;
    font-weight: 800;
    transition:
      transform var(--transition),
      background var(--transition);
  }
  
  .primary-button:hover {
    transform: translateY(-3px);
    background: #a8ffda;
  }
  
  .hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 55px;
    margin-top: 85px;
  }
  
  .hero-stats div {
    display: flex;
    flex-direction: column;
    gap: 9px;
  }
  
  .hero-stats strong {
    font-size: 27px;
    font-weight: 700;
  }
  
  .hero-stats span {
    color: var(--muted);
    font-size: 12px;
  }
  
  /* CATALOG */
  
  .section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 45px;
  }
  
  .section h2 {
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.15;
    letter-spacing: -2px;
    margin: 17px 0 0;
  }
  
  .section-heading p {
    max-width: 330px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
  }
  
  .catalog-controls {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 35px;
  }
  
  .search-field input {
    width: 100%;
    padding: 19px 22px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
    color: var(--text);
    outline: none;
  }
  
  .search-field input:focus {
    border-color: var(--accent);
  }
  
  .filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .filter {
    padding: 12px 19px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    transition: all var(--transition);
  }
  
  .filter:hover,
  .filter.active {
    background: var(--accent);
    color: #07120d;
    border-color: var(--accent);
  }
  
  /* PRODUCT CARDS */
  
  .product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
  
  .product-card {
    min-width: 0;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition:
      transform var(--transition),
      border-color var(--transition);
  }
  
  .product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 240, 196, 0.45);
  }
  
  .product-image {
    aspect-ratio: 1 / 0.85;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #1b2420;
  }
  
  .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
  }
  
  .product-card:hover .product-image img {
    transform: scale(1.05);
  }
  
  .product-info {
    padding: 25px;
  }
  
  .product-category {
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
  }
  
  .product-info h3 {
    margin: 12px 0;
    font-size: 20px;
    letter-spacing: -0.5px;
  }
  
  .product-description {
    min-height: 44px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
  }
  
  .product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
  }
  
  .product-price {
    font-size: 21px;
    font-weight: 800;
    white-space: nowrap;
  }
  
  .add-to-cart {
    padding: 12px 16px;
    background: var(--accent);
    border: 0;
    border-radius: 10px;
    color: #07120d;
    font-size: 12px;
    font-weight: 800;
  }
  
  .add-to-cart:hover {
    background: #a8ffda;
  }
  
  .empty-state {
    color: var(--muted);
    padding: 35px 0;
  }
  
  .empty-state[hidden] {
    display: none;
  }
  
  /* ADVANTAGES */
  
  .advantages {
    background: var(--surface);
  }
  
  .advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 50px;
  }
  
  .advantage-card {
    padding: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-light);
  }
  
  .advantage-number {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
  }
  
  .advantage-card h3 {
    font-size: 24px;
    margin: 35px 0 12px;
  }
  
  .advantage-card p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 13px;
  }
  
  /* ABOUT */
  
  .about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }
  
  .about-inner p {
    color: var(--muted);
    line-height: 2;
    font-size: 15px;
  }
  
  /* CART */
  
  .cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 90;
  }
  
  .cart-overlay[hidden],
  .cart-panel[hidden] {
    display: none;
  }
  
  .cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(440px, 100%);
    height: 100dvh;
    z-index: 100;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-left: 1px solid var(--border);
  }
  
  .cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid var(--border);
  }
  
  .cart-header h2 {
    margin: 0;
    font-size: 22px;
  }
  
  #cart-close {
    background: transparent;
    border: 0;
    color: var(--text);
    font-size: 24px;
  }
  
  .cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
  }
  
  .cart-item {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
  }
  
  .cart-item h3 {
    margin: 0 0 8px;
    font-size: 14px;
  }
  
  .cart-item p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
  }
  
  .cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .cart-item-controls button {
    border: 1px solid var(--border);
    background: var(--surface-light);
    color: var(--text);
    border-radius: 7px;
    width: 28px;
    height: 28px;
  }
  
  .cart-footer {
    padding: 25px;
    border-top: 1px solid var(--border);
  }
  
  .cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 18px;
  }
  
  .checkout-button {
    width: 100%;
  }
  
  .cart-note {
    text-align: center;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
  }
  
  /* FOOTER */
  
  .footer {
    border-top: 1px solid var(--border);
    padding: 35px 0;
  }
  
  .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }
  
  .footer p {
    color: var(--muted);
    font-size: 12px;
  }
  
  /* MOBILE */
  
  @media (max-width: 900px) {
    .nav {
      display: none;
    }
  
    .product-grid,
    .advantages-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  
    .about-inner {
      gap: 35px;
    }
  }
  
  @media (max-width: 600px) {
    .container {
      width: min(100% - 32px, 1200px);
    }
  
    .header-inner {
      min-height: 70px;
    }
  
    .logo {
      font-size: 19px;
    }
  
    .cart-button {
      padding: 10px 12px;
      font-size: 12px;
    }
  
    .hero {
      min-height: 600px;
    }
  
    .hero-content {
      padding-top: 75px;
      padding-bottom: 75px;
    }
  
    .hero h1 {
      font-size: clamp(42px, 11vw, 64px);
      letter-spacing: -2.5px;
    }
  
    .hero p {
      font-size: 14px;
    }
  
    .hero-stats {
      gap: 24px;
      margin-top: 65px;
    }
  
    .hero-stats strong {
      font-size: 22px;
    }
  
    .hero-stats span {
      font-size: 10px;
    }
  
    .section {
      padding: 75px 0;
    }
  
    .section-heading {
      display: block;
    }
  
    .product-grid,
    .advantages-grid,
    .about-inner {
      grid-template-columns: 1fr;
    }
  
    .product-info {
      padding: 22px;
    }
  
    .advantage-card {
      padding: 28px;
    }
  
    .footer-inner {
      flex-direction: column;
      text-align: center;
    }
  }
  
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
  
    *,
    *::before,
    *::after {
      transition-duration: 0.01ms !important;
      animation-duration: 0.01ms !important;
    }
  }
  
/* ==========================================
   AI COMMERCE — HERO PRODUCT VISUAL
========================================== */

.hero-content {
    isolation: isolate;
  }
  
  .hero-visual {
    position: absolute;
    z-index: -1;
    top: 50%;
    right: -110px;
    width: min(59vw, 740px);
    transform: translateY(-50%);
    pointer-events: none;
  }
  
  .hero-visual::before {
    content: "";
    position: absolute;
    inset: 15%;
    border-radius: 50%;
    background: rgba(67, 201, 149, 0.2);
    filter: blur(90px);
    z-index: -1;
  }
  
  .hero-devices {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 35px 45px rgba(0, 0, 0, 0.45));
  }
  
  .hero h1,
  .hero p,
  .hero .eyebrow,
  .hero .primary-button,
  .hero-stats {
    position: relative;
    z-index: 2;
  }
  
  @media (max-width: 900px) {
    .hero-visual {
      right: -130px;
      width: 68vw;
      opacity: 0.45;
    }
  }
  
  @media (max-width: 600px) {
    .hero-content {
      padding-top: 65px;
      padding-bottom: 250px;
    }
  
    .hero-visual {
      top: auto;
      bottom: 5px;
      right: 50%;
      width: min(95vw, 480px);
      transform: translateX(50%);
      opacity: 0.85;
    }
  
    .hero h1 {
      font-size: clamp(40px, 10vw, 56px);
    }
  
    .hero-stats {
      margin-top: 45px;
    }
  }
  
/* ==========================================
   AI COMMERCE — LIGHT PREMIUM HERO
========================================== */

.header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border);
  }
  
  .hero {
    background:
      radial-gradient(
        ellipse at 85% 40%,
        rgba(190, 205, 235, 0.28),
        transparent 50%
      ),
      linear-gradient(135deg, #ffffff 0%, #f1f3f7 100%);
  }
  
  .hero::after {
    border-color: rgba(90, 110, 145, 0.10);
    box-shadow: none;
  }
  
  .hero .eyebrow {
    color: #65748d;
  }
  
  .hero h1 span {
    color: #536b94;
  }
  
  .hero-visual::before {
    background: rgba(180, 195, 225, 0.18);
  }
  
  .primary-button,
  .filter.active,
  .filter:hover,
  .add-to-cart {
    background: #202631;
    color: #ffffff;
  }
  
  .primary-button:hover,
  .add-to-cart:hover {
    background: #3b4659;
  }
  
  .cart-button span {
    background: #202631;
    color: #ffffff;
  }
  
  .product-image {
    background: #f0f2f5;
  }
  
  .advantages {
    background: #f0f2f5;
  }
  
  .advantage-number,
  .product-category {
    color: #536b94;
  }
/* AI COMMERCE — CLEAN LIGHT HERO */

.hero::after {
    display: none;
  }
  
  .hero-visual::before {
    display: none;
  }
  
  .hero-visual {
    z-index: 0;
  }
  
  .hero-devices {
    filter: drop-shadow(0 25px 35px rgba(30, 40, 60, 0.12));
  }
  
  .hero-content > .eyebrow,
  .hero-content > h1,
  .hero-content > p,
  .hero-content > .primary-button,
  .hero-content > .hero-stats {
    position: relative;
    z-index: 2;
  }  

/* ======================================
   AI COMMERCE — PREMIUM LIGHT BACKGROUND
====================================== */


.hero {
    position: relative;
    overflow: hidden;
  
    background:
      radial-gradient(
        ellipse at 78% 45%,
        rgba(147, 180, 235, 0.55) 0%,
        transparent 55%
      ),
      linear-gradient(
        120deg,
        #ffffff 0%,
        #f0f5ff 45%,
        #dce8fa 100%
      );
  }
  
  
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
  
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.55) 0%,
      transparent 65%
    );
  }
  
  .hero-content {
    position: relative;
    z-index: 1;
  }
  
/* AI COMMERCE — PREMIUM PRODUCT CARDS */

.product-card {
    background: #ffffff;
    border: 1px solid #e8ebf0;
    border-radius: 22px;
    box-shadow: 0 8px 30px rgba(25, 40, 70, 0.035);
    transition: transform 0.3s ease,
                box-shadow 0.3s ease,
                border-color 0.3s ease;
  }
  
  .product-card:hover {
    transform: translateY(-7px);
    border-color: #d6dfed;
    box-shadow: 0 22px 55px rgba(25, 40, 70, 0.10);
  }
  
  .product-image {
    background: #f2f4f7;
    overflow: hidden;
  }
  
  .product-image img {
    transition: transform 0.5s ease;
  }
  
  .product-card:hover .product-image img {
    transform: scale(1.06);
  }
  
  .product-info {
    padding: 28px;
  }
  
  .product-info h3 {
    color: #17191e;
    font-weight: 800;
  }
  
  .product-price {
    color: #17191e;
  }
  
  .add-to-cart {
    background: #202631;
    color: #ffffff;
    transition: background 0.25s ease,
                transform 0.25s ease;
  }
  
  .add-to-cart:hover {
    background: #445a7c;
    transform: translateY(-2px);
  }

/* ==========================================
   AI COMMERCE — PRODUCT DETAILS MODAL
========================================== */

.product-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(20, 28, 42, 0.58);
    backdrop-filter: blur(8px);
  }
  
  .product-overlay[hidden],
  .product-modal[hidden] {
    display: none;
  }
  
  .product-modal {
    position: fixed;
    z-index: 120;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  
    width: min(920px, calc(100% - 32px));
    max-height: min(90vh, 850px);
    overflow-y: auto;
  
    background: #ffffff;
    border: 1px solid #e8ebf0;
    border-radius: 26px;
    box-shadow: 0 35px 100px rgba(15, 25, 45, 0.22);
    color: #17191e;
  }
  
  .product-modal-close {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 18px;
  
    width: 42px;
    height: 42px;
  
    display: grid;
    place-items: center;
  
    background: #ffffff;
    border: 1px solid #e8ebf0;
    border-radius: 50%;
  
    color: #202631;
    font-size: 26px;
    line-height: 1;
  }
  
  .product-modal-close:hover {
    background: #f0f2f5;
  }
  
  .product-modal-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 450px;
  }
  
  .product-modal-image {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f2f5fa;
  }
  
  .product-modal-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 550px;
    object-fit: contain;
  }
  
  .product-modal-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 22px;
    padding: 55px 45px;
  }
  
  .product-modal-info h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -2px;
  }
  
  .product-modal-info p {
    margin: 0;
    color: #737985;
    font-size: 15px;
    line-height: 1.8;
  }
  
  .product-modal-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    margin-top: 20px;
  }
  
  #modal-product-price {
    font-size: 30px;
    font-weight: 800;
  }
  
  #modal-add-to-cart {
    padding: 17px 24px;
    font-size: 13px;
  }
  
  /* Мобильная версия */
  
  @media (max-width: 650px) {
    .product-modal {
      width: calc(100% - 20px);
      max-height: 90dvh;
      border-radius: 20px;
    }
  
    .product-modal-layout {
      grid-template-columns: 1fr;
      min-height: 0;
    }
  
    .product-modal-image {
      min-height: 220px;
      max-height: 300px;
    }
  
    .product-modal-image img {
      max-height: 300px;
    }
  
    .product-modal-info {
      padding: 28px 24px 35px;
      gap: 15px;
    }
  
    .product-modal-info h2 {
      font-size: 30px;
      letter-spacing: -1px;
    }
  
    .product-modal-bottom {
      gap: 18px;
      margin-top: 10px;
    }
  
    #modal-product-price {
      font-size: 26px;
    }
  }
 
/* AI COMMERCE — PRODUCT MODAL FIX */

.product-overlay:not([hidden]) {
    display: block !important;
    position: fixed !important;
    inset: 0;
    z-index: 9998;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
  }
  
  .product-modal[hidden],
  .product-overlay[hidden] {
    display: none !important;
  }
  
  .product-modal:not([hidden]) {
    display: block !important;
    position: fixed !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
  
    width: min(900px, calc(100% - 32px));
    max-height: 90vh;
    overflow-y: auto;
  
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.25);
  }
  
  .product-modal-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  
  .product-modal-image {
    min-width: 0;
    background: #f2f5fa;
    overflow: hidden;
  }
  
  .product-modal-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: contain;
  }
  
  .product-modal-info {
    padding: 50px 35px;
  }
  
  @media (max-width: 650px) {
    .product-modal-layout {
      grid-template-columns: 1fr;
    }
  
    .product-modal-image img {
      max-height: 260px;
    }
  
    .product-modal-info {
      padding: 25px;
    }
  }
 
/* ==========================================
   AI COMMERCE — MOBILE CATALOG
   Две карточки в ряд
========================================== */

@media (max-width: 600px) {

    .catalog .container {
      width: 100%;
    }
  
    .catalog .section-heading,
    .catalog .catalog-controls {
      margin-left: 14px;
      margin-right: 14px;
    }
  
    .product-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 4px;
    }
  
    .product-card {
      border: none;
      border-radius: 0;
      background: #ffffff;
      overflow: hidden;
    }
  
    .product-image {
      aspect-ratio: 3 / 4;
      background: #f1f3f7;
    }
  
    .product-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  
    .product-info {
      padding: 12px 10px 18px;
    }
  
    .product-info h3 {
      font-size: 13px;
      line-height: 1.4;
      margin: 6px 0;
    }
  
    .product-description,
    .product-category {
      display: none;
    }
  
    .product-bottom {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      margin-top: 10px;
    }
  
    .product-price {
      font-size: 16px;
    }
  
    .product-bottom .add-to-cart {
      width: 100%;
      padding: 10px 6px;
      font-size: 11px;
    }
  
  }

/* AI COMMERCE — компактные мобильные карточки */

@media (max-width: 600px) {

    .catalog .container {
      width: calc(100% - 24px);
    }
  
    .catalog .section-heading,
    .catalog .catalog-controls {
      margin-left: 0;
      margin-right: 0;
    }
  
    .product-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }
  
    .product-card {
      border-radius: 14px;
      overflow: hidden;
      border: 1px solid #e7e9ee;
    }
  
    .product-image {
      aspect-ratio: 1 / 1.05;
    }
  
    .product-info {
      padding: 12px;
    }
  
    .product-info h3 {
      font-size: 12px;
    }
  
    .product-price {
      font-size: 15px;
    }
  
    .product-bottom .add-to-cart {
      border-radius: 8px;
    }
  
  }
 
/* ==========================================
   AI COMMERCE — MOBILE BOTTOM NAVIGATION
========================================== */

/* На компьютере нижнее меню скрыто */
.mobile-bottom-nav {
    display: none;
  }
  
  @media (max-width: 600px) {
  
    .mobile-bottom-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 100;
  
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      align-items: center;
  
      padding: 12px 8px calc(12px + env(safe-area-inset-bottom));
      background: #171717;
      border-top: 1px solid #303030;
      box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
    }
  
    .mobile-nav-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 5px;
  
      min-height: 48px;
      padding: 4px;
  
      color: #bcbcbc;
      background: transparent;
      border: none;
      text-decoration: none;
      font-family: inherit;
      font-size: 11px;
      cursor: pointer;
    }
  
    .mobile-nav-icon {
      font-size: 25px;
      line-height: 1;
    }
  
    .mobile-nav-item:hover,
    .mobile-nav-item:focus-visible {
      color: #ffffff;
    }
  
    .mobile-nav-item:focus-visible {
      outline: 2px solid #ffffff;
      outline-offset: 2px;
    }
  
    /* Контент не прячется под меню */
    body {
      padding-bottom: calc(85px + env(safe-area-inset-bottom));
    }
  
    /* Корзина и окно товара поверх меню */
    .cart-overlay,
    .product-overlay {
      z-index: 110;
    }
  
    .cart-panel,
    .product-modal {
      z-index: 120;
    }
  }
 
/* ==========================================
   AI COMMERCE — PREMIUM CART PAGE
========================================== */

.cart-page {
    min-height: calc(100vh - 180px);
    padding: 75px 0 110px;
    background: #f7f8fb;
  }
  
  .cart-page-heading {
    margin-bottom: 42px;
  }
  
  .cart-page-heading .eyebrow {
    display: block;
    margin-bottom: 18px;
  }
  
  .cart-page-heading h1 {
    margin: 0 0 14px;
    color: #191d27;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.1;
  }
  
  .cart-page-heading p {
    color: #87909e;
    font-size: 15px;
  }
  
  .cart-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: 26px;
  }
  
  .cart-page-products,
  .cart-page-summary {
    background: #ffffff;
    border: 1px solid #e7eaf0;
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(20, 30, 50, 0.035);
  }
  
  .cart-page-products {
    min-height: 280px;
    padding: 28px;
  }
  
  .cart-page-summary {
    position: sticky;
    top: 110px;
    padding: 30px;
  }
  
  .cart-page-summary h2 {
    margin: 0 0 30px;
    color: #191d27;
    font-size: 24px;
    letter-spacing: -0.04em;
  }
  
  .cart-page-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    color: #7b8492;
    font-size: 14px;
  }
  
  .cart-page-summary-line strong {
    color: #191d27;
    font-size: 16px;
  }
  
  .cart-page-total {
    padding-top: 24px;
    border-top: 1px solid #e7eaf0;
    margin-top: 24px;
    color: #191d27;
    font-size: 17px;
    font-weight: 700;
  }
  
  .cart-page-total strong {
    font-size: 27px;
    letter-spacing: -0.04em;
  }
  
  .cart-page-summary .primary-button {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
  }
  
  .cart-page-summary .cart-note {
    margin-top: 18px;
    color: #9ba3af;
    font-size: 11px;
    line-height: 1.7;
    text-align: center;
  }
  
  #page-cart-empty {
    padding: 50px 15px;
    text-align: center;
  }
  
  #page-cart-empty[hidden] {
    display: none;
  }
  
  #page-cart-empty h2 {
    margin-bottom: 12px;
    font-size: 26px;
    letter-spacing: -0.04em;
  }
  
  #page-cart-empty p {
    margin-bottom: 25px;
    color: #87909e;
  }
  
  #page-cart-empty .primary-button {
    display: inline-flex;
  }
  
  /* Планшеты */
  @media (max-width: 900px) {
    .cart-page-layout {
      grid-template-columns: 1fr;
    }
  
    .cart-page-summary {
      position: static;
    }
  }
  
  /* Телефоны */
  @media (max-width: 600px) {
    .cart-page {
      padding: 36px 0 115px;
    }
  
    .cart-page-heading {
      margin-bottom: 26px;
    }
  
    .cart-page-heading h1 {
      font-size: 36px;
    }
  
    .cart-page-layout {
      gap: 16px;
    }
  
    .cart-page-products {
      min-height: 200px;
      padding: 16px;
      border-radius: 16px;
    }
  
    .cart-page-summary {
      padding: 22px;
      border-radius: 16px;
    }
  
    .cart-page-summary h2 {
      font-size: 22px;
    }
  }
 
/* ==========================================
   AI COMMERCE — CART PRODUCT CARDS
========================================== */

#page-cart-items {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
  }
  
  .cart-page-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    min-width: 0;
    border-bottom: 1px solid #e9ecf1;
  }
  
  .cart-page-item:first-child {
    padding-top: 0;
  }
  
  .cart-page-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }
  
  .cart-page-item-image {
    display: block;
    width: 140px;
    height: 140px;
    flex: 0 0 140px;
    object-fit: cover;
    border-radius: 14px;
    background: #f2f4f8;
  }
  
  .cart-page-item-details {
    flex: 1;
    min-width: 0;
  }
  
  .cart-page-item-details h3 {
    margin: 0 0 12px;
    color: #191d27;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
  }
  
  .cart-page-item-details > strong {
    display: block;
    margin-bottom: 20px;
    color: #191d27;
    font-size: 20px;
  }
  
  .cart-page-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .cart-page-item-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #e2e6ec;
    border-radius: 9px;
    background: #f7f8fb;
    color: #191d27;
    font: inherit;
    font-size: 18px;
    cursor: pointer;
  }
  
  .cart-page-item-actions .cart-remove {
    width: auto;
    height: 34px;
    margin-left: 8px;
    padding: 0 12px;
    background: transparent;
    color: #8b94a3;
    font-size: 12px;
  }
  
  .cart-page-item-actions button:hover {
    background: #e9edf4;
  }
  
  @media (max-width: 600px) {
    .cart-page-item {
      gap: 12px;
      padding: 16px 0;
    }
  
    .cart-page-item-image {
      width: 100px;
      height: 110px;
      flex-basis: 100px;
      border-radius: 10px;
    }
  
    .cart-page-item-details h3 {
      margin-bottom: 8px;
      font-size: 14px;
    }
  
    .cart-page-item-details > strong {
      margin-bottom: 12px;
      font-size: 16px;
    }
  
    .cart-page-item-actions {
      gap: 7px;
    }
  
    .cart-page-item-actions button {
      width: 28px;
      height: 28px;
      font-size: 15px;
    }
  
    .cart-page-item-actions .cart-remove {
      height: 28px;
      margin-left: 0;
      padding: 0 5px;
      font-size: 11px;
    }
  }
           