
  /* ===== CSS VARIABLES ===== */
  :root {
    --black: #1a1a1a;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-mid: #e0e0e0;
    --gray-text: #888888;
    --accent: #2b2b2b;
    --price-old: #eb0000;
    --price-new: #1a1a1a;
    --green: #4a7c59;
    --border: #e5e5e5;
    --radius: 4px;
    --font: 'TildaSans', 'Helvetica Neue', Arial, sans-serif;
      --swiper-navigation-size: 30px; /* Размер стрелок */
  --swiper-theme-color: #444343;
  }

  /* ===== RESET ===== *
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { font-size: 16px; }
  body {
    font-family: var(--font);
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
  }

  a { text-decoration: none; color: inherit; }
  ul { list-style: none; }
  img { display: block; max-width: 100%; }

  /* ===== LAYOUT ===== */
  .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
  }

  .product-wrapper {
    padding: 40px 0 60px;
  }

  .product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
  }

  /* ===== GALLERY ===== */
.gallery-col {
  position: sticky;
  top: 24px;
}

.main-swiper {
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  /*background: var(--gray-light);*/
  margin-bottom: 12px;
}

.main-swiper .swiper-wrapper {
  height: 100% !important;
}

.swiper-wrapper.no-gap {
    gap: 0!important;
}
.main-swiper .swiper-slide {
  width: 100% !important;
  height: 100% !important;
  display: flex;
  align-items: center;
  justify-content: center;
 /* background: var(--gray-light); */
}

.main-swiper .swiper-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  padding: 20px;
  max-width: 100%;
  max-height: 100%;
}
.main-slider-wrapper {
    position: relative;
    padding: 0 50px; 
    display: block;
}

.swiper-button-prev {
    left: 0; /* Теперь кнопка встанет в зону паддинга слева */
}

.swiper-button-next {
    right: 0; /* А эта — справа */
}

/* Гарантируем, что стрелки выше всего и кликабельны */
.swiper-button-prev,
.swiper-button-next {
    z-index: 10;
    pointer-events: auto; 
}
/* Thumbs */
.thumb-swiper .swiper-slide {
  width: 70px !important;
  height: 70px !important;
  flex-shrink: 0 !important;
}

  .thumb-swiper .swiper-slide {
    width: 70px !important;
    height: 70px;
    border-radius: var(--radius);
    overflow: hidden;
  /*  background: var(--gray-light); */
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s;
  }

  .thumb-swiper .swiper-slide-thumb-active {
    border-color: var(--gray-light);
    opacity: 1;
  }

  .thumb-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
  }

  /* ===== LIGHTBOX ===== */
  .lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
  }
  .lightbox.active { display: flex; }
  .lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    pointer-events: none;
  }
  .lightbox-close {
    position: absolute;
    top: 20px; right: 24px;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
  }

  /* ===== PRODUCT INFO ===== */
  .product-col {
     font-family: 'TildaSans', Arial, sans-serif;
  }

  .product-subtitle {
     font-family: 'TildaSans', Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 0.08em;
   
    color: var(--gray-text);
    margin-bottom: 8px;
  }

  .product-title {
    font-family: 'TildaSans', Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
  }

  .price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
  }

  .price-new {
    font-size: 24px;
    font-weight: 700;
    color: var(--price-new);
  }

  .price-old {
    font-size: 18px;
    color: var(--price-old);
    text-decoration: line-through;
  }

  /* ===== QUANTITY OPTIONS ===== */
  .options-label {
    font-family: 'TildaSans', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;

    margin-bottom: 12px;

  }

  .options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
  }

  .option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
  }

  .option-item input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    /*border: 2px solid var(--gray-mid);*/
    border: 2px solid black;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s;
    position: relative;
  }

  .option-item input[type="radio"]:checked {
    border-color: var(--black);
  }

  .option-item input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--black);
  }
  .option-item input[type="radio"]:checked + .option-label {
  color: black;
  font-weight: 500; 
}
  .option-label {
    font-size: 14px;
    line-height: 1.4;
        color: #999; 
    transition: color 0.2s ease; 
  }
  .option-item:hover .option-label {
  color: #555;
}

  /* ===== BUY BUTTON ===== */
  .btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
   /* width: 100%; */
    padding: 16px 32px;
    background: var(--black);
    color: var(--white);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-bottom: 20px;
  }

  .btn-buy:hover { background: #333; }
  .btn-buy:active { transform: scale(0.99); }

  /* ===== META INFO ===== */
  .meta-block {
 /*   border-top: 1px solid var(--border); */
    padding-top: 16px;
    margin-bottom: 16px;
     font-family: 'TildaSans', Arial, sans-serif;
  }
  .product-bonus {
    color: #eb0000;
    font-weight: 600;
  }
  .product-shipping {
    font-weight: 700;
  }
  .meta-row {
    font-size: 12px;
    color: black;
    margin-bottom: 6px;
    gap: 6px;
     font-weight: 300;
  }
  
  .meta-row strong {
    color: var(--black);
    font-weight: 600;
  }

  .delivery-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--black);
    margin-bottom: 6px;
    font-weight: 600;
  }

  .payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
  }

  .payment-icon {
    background: var(--gray-light);
    border: 1px solid var(--gray-mid);
    border-radius: 3px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--black);
  }

  /* ===== TABS ===== */
  .tabs-section {
   
    margin-top: 60px;
  }

  .tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--border);
  }

  .tab-btn {
     font-family: 'TildaSans', Arial, sans-serif;
    flex: 1;
    padding: 18px 12px;

    font-size: 16px;
    font-weight: 500;
    
    text-align: center;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    color: var(--gray-text);
    transition: color 0.2s, border-color 0.2s;
  }

  .tab-btn.active {
    color: var(--black);
    border-bottom-color: var(--black);
  }

  .tab-btn:hover { color: var(--black); }

  .tab-content {
    display: none;
    padding: 36px 0 48px;
  }
  .tab-content.active { display: block; }

  /* ===== TAB 1: DESCRIPTION ===== */
  .desc-section { margin-bottom: 28px; }

  .desc-section h3 {
    font-size: 14px;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 12px;
     margin-top: 15px;
    letter-spacing: 0.01em;
  }

  .desc-section p {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 10px;
  }

  .ingredients-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 24px;
  }

  .ingredients-list li {
    font-size: 13px;
    line-height: 1.5;
    color: #444;
    padding-left: 12px;
    position: relative;
  }

  .ingredients-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gray-text);
  }

  /* ===== TAB 2: PAYMENT ===== */
  .payment-content h3 {
     font-family: 'TildaSans', Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
   
  }

  .payment-content p {
     font-family: 'TildaSans', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 16px;
    font-weight: 300;
  }

  .payment-methods-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
  }

  .pm-badge {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
  }

  /* ===== TAB 3: REVIEWS ===== */
  .reviews-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
        height: 50vh;
  }

  .review-item {
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
  }

  .review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
  }

  .review-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gray-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--black);
    flex-shrink: 0;
  }

  .review-author { font-size: 14px; font-weight: 600; }
  .review-date { font-size: 12px; color: var(--gray-text); }

  .review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
  }

  .star { color: #f0c040; font-size: 14px; }

  .review-text {
    font-size: 14px;
    line-height: 1.65;
    color: #333;
  }

  /* ===== SEE ALSO ===== */
  .see-also {
    padding: 48px 0;
    border-top: 1px solid var(--border);
  }

  .see-also h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 28px;
    letter-spacing: -0.01em;
  }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 768px) {
    .product-grid {
      grid-template-columns: 1fr;
      gap: 32px;
    }

    .gallery-col { position: static; }

    .product-title { font-size: 22px; }

    .tabs-nav { overflow-x: auto; font-size: 12px; overflow-y: hidden; }
    .tab-btn { font-size: 12px; white-space: nowrap; padding: 14px 5px; }

    .ingredients-list { grid-template-columns: 1fr; }
    nav {gap: 10px}
  }

  @media (max-width: 480px) {
    .container { padding: 0 16px; }
    .product-wrapper { padding: 24px 0 40px; }
    .btn-buy { padding: 14px 24px; }
  }