/*
@font-face {
    font-family: 'Despair Display';
    src: url('./fonts/DespairDisplay-Bold.woff2') format('woff2'),
         url('./fonts/DespairDisplay-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}*/
html, body {
    overflow-x: hidden;
}
/* Для всех кнопок */
button {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Для кастомных кнопок */
  .add-to-cart,
  .read-more {
    transition: transform 0.1s ease;
  }
  
  /* Убираем ховер на тач-устройствах */
  @media (hover: none) and (pointer: coarse) {
    .add-to-cart:hover,
    .read-more:hover {
      transform: none !important;
      background-color: initial !important;
    }
  }
  
  /* Стили для активного состояния */
  button:active {
    transform: scale(0.98);
    box-shadow: none !important;
  }
  
  /* Для Safari */
  button::-moz-focus-inner {
    border: 0;
  }
/* Основные стили */
.product-page {
    display: flex;
    gap: 1.042vw;
    width: 89.583vw;
    margin-top: 7.708vw;
    margin-left: auto;
    margin-right: auto;
}

.product-gallery {
    display: flex;
    gap: 1.042vw;
    width: 44.271vw;
}

.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 1.042vw;
    width: 6.51vw;
}

.thumbnail {
    width: 6.51vw;
    height: 8.698vw;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    border: 0.052vw solid #ddd;
}

.thumbnail.active {
    opacity: 1;
    border-color: #000;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-image {
    width: 36.719vw;
    height: 48.958vw;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    width: 44.271vw;
    display: flex;
    flex-direction: column;
    gap: 2.083vw;
}

.product-title {
    font-family: 'Despair Display', sans-serif;
    font-size: 2.5vw;
    line-height: 1;
    text-transform: uppercase;
    margin: 0;
}

.price-section {
    display: flex;
    gap: 0.781vw;
    align-items: baseline;
}

.current-price {
    font-family: 'Despair Display', sans-serif;
    font-size: 2.083vw;
    font-weight: 700;
}

.old-price {
    font-size: 1.25vw;
    text-decoration: line-through;
    color: #666;
}

.product-description {
    max-width: 32.969vw;
    font-family: 'Inter', sans-serif;
    font-size: 0.938vw;
    line-height: 110%;
    color: #0A0A0A;
    margin: 1.042vw 0;
    letter-spacing: -0.02em;
}

.cart-button {
    background: #0000E9;
    color: white;
    padding: 1.302vw;
    border-radius: 2.08vw;
    font-size: 0.938vw;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    width: 100%;
}

.cart-button:hover {
    background: #FFFFFF;
    color: #0000E9;
    border: 0.052vw solid #0000E9;
}

.detail-item {
    border-bottom: 1px solid #CCCCCC;
    padding: 0.781vw 0;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1.0416vw;
}

.detail-content {
    display: none;
    padding-top: 0.521vw;
    font-family: 'Inter', sans-serif;
    font-size: 0.938vw;
    line-height: 1.2;
}

.detail-content.active {
    display: block;
}

.arrow {
    width: 1.25vw;
    height: 1.25vw;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.arrow-icon {
    width: 1.146vw;
    height: 0.708vw;
    transition: transform 0.3s ease;
}

.arrow.active .arrow-icon {
    transform: rotate(180deg);
}
.product-gallery-tablet {
    display: none;
}

.read-more {
    display: none;
}
/* Планшетная версия */
@media (max-width: 1024px) {
    .product-page {
        flex-direction: column;
        display: flex;
        gap: 1.4648vw;
        width: 96.0938vw;
        margin-top: 9.5703vw;
    }
    .product-gallery {
        display: none;
    }
    
    .product-gallery-tablet {
        display: block;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 1.9531vw;
        margin-left: -1.9531vw;
        margin-right: -1.9531vw;
        width: calc(100% + 3.9062vw);
    }
    
    .horizontal-scroll {
        padding-left: 1.9531vw;
        display: flex;
        gap: 1.4648vw;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        cursor: grab;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
    }
    
    .horizontal-scroll::-webkit-scrollbar {
        display: none;
    }
    
    .scroll-item {
        position: relative;
        flex: 0 0 76.5625vw;
        height: 82.0313vw;
        user-select: none;
        flex-shrink: 0;
        transform: translateZ(0);
    }
    
    .scroll-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        pointer-events: none;
    }
    
    .horizontal-scroll.active {
        cursor: grabbing;
    }
    
    .product-info {
        width: 100%;
    }
    
    .product-title {
        font-size: 3.125vw;
    }
    
    .current-price {
        font-size: 2.3438vw;
    }
    
    .old-price {
        font-size: 1.7578vw;
    }
    
    .product-description {
        max-width: 57.0313vw;
        font-size: 1.3672vw;
        line-height: 1.4;
    }
    
    .cart-button {
        padding: 1.9531vw;
        font-size: 1.3672vw;
        max-width: 57.0313vw;
        border-radius: 3.9vw;
    }
    
    .detail-item {
        width: 96.0938vw;
        margin: 0 auto;
        padding: 1.4648vw 0;
        border-bottom: 0.0977vw solid #CCCCCC;
    }
    
    .detail-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 1.9531vw;
        font-size: 1.3671875vw;
    }

    
    .detail-header span {
        font-family: 'Inter', sans-serif;
        font-size: 1.3672vw;
        font-weight: 500;
        line-height: 110%;
        letter-spacing: -0.02em;
        text-transform: uppercase;
        color: #0A0A0A;
    }
    
    .detail-content {
        display: none;
        padding: 1.4648vw 1.9531vw;
        font-family: 'Inter', sans-serif;
        font-size: 1.3672vw;
        font-weight: 400;
        line-height: 120%;
        letter-spacing: -0.02em;
        color: #0A0A0A;
    }
    
    .detail-content.active {
        display: block;
    }
    .read-more {
        display: none;
      }
}

/* мобильная версия */
@media (max-width: 375px) {
    .product-page {
        gap: 5.3333vw;
        width: 94.6667vw;
        margin-top: 20.8vw;
    }

    .product-gallery-tablet {
        padding-bottom: 5.3333vw;
        margin-left: -2.6667vw;
        margin-right: -2.6667vw;
        width: calc(100% + 5.3333vw);
    }
    
    .horizontal-scroll {
        padding-left: 2.6667vw;
        gap: 2.6667vw;
    }
    
    .scroll-item {
        flex: 0 0 78.4vw;
        height: 109.3333vw;
    }
    
    .product-title {
        font-size: 6.4vw;
    }
    
    .current-price {
        font-size: 5.3333vw;
    }
    
    .old-price {
        font-size: 3.7333vw;
    }
    
    .product-description {
        max-width: 94.6667vw;
        font-size: 3.7333vw;
        line-height: 1.2;
        overflow: hidden;
        display: -webkit-box;
        /*-webkit-line-clamp: 3;*/
        -webkit-box-orient: vertical;
        line-height: 1.2;
        max-height: calc(3 * 1.2em);
        transition: 0.3s ease;
    }
    
    .product-description[data-expanded="true"] {
        /*-webkit-line-clamp: unset;*/
        max-height: none;
    }

    .read-more {
        font-family: 'Inter', sans-serif;
        font-size: 3.7333vw;
        color: #999999;
        background: none;
        border: none;
        padding: 1vw 0;
        text-transform: uppercase;
        display: none; /* По умолчанию скрыта */
        cursor: pointer;
    }

    /* Показываем кнопку только если текст обрезан */
    .product-description:not([data-expanded="true"]) + .read-more {
        display: block;
    }

    .cart-button {
        padding: 4.9vw;
        font-size: 3.7333vw;
        max-width: 94.6667vw;
        margin-top: 5.333vw;
        margin-bottom: 8vw;
        border-radius: 10.6vw;
    }
    
    .detail-item {
        border-bottom: 0.2667vw solid #CCCCCC;
        padding: 4vw 0;
        width: 100%;
      }
    
      .detail-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 2.6667vw;
        font-size: 3.733vw;
      }
    
      .detail-header span {
        font-family: 'Inter', sans-serif;
        font-size: 3.7333vw;
        font-weight: 500;
        line-height: 110%;
        letter-spacing: -0.02em;
        text-transform: uppercase;
        color: #0A0A0A;
      }
    
      .detail-content {
        display: none;
        padding: 2.6667vw;
        font-family: 'Inter', sans-serif;
        font-size: 3.7333vw;
        font-weight: 400;
        line-height: 120%;
        letter-spacing: -0.02em;
        color: #0A0A0A;
      }
    
      .detail-content.active {
        display: block;
      }

    .arrow {
        width: 6.4vw;
        height: 6.4vw;
    }
    
    .arrow-icon {
        width: 3.2vw;
        height: 1.976vw;
    }
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
  
/* Основные размеры */
.banner {
    position: relative;
    width: 100%;
    /*background: #FFFFFF;*/
    margin-top: 9.375vw;
    flex-direction: column;
    display: flex;
}
  
.banner-inner {
    position: relative;
    height: 4.4270vw; /* 330px */
    overflow: hidden;
    display: flex;
    padding-left: 5.2083vw;
    padding-right: 5.2083vw;
}
  
/* Общие стили для лент */
.banner-strip {
    position: relative;
    left: 50%;
    width: 101%; /* 1963px */
    height: 4.427vw; /* 85px */ 
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 1.302vw 0; /* 25px */
}
  
  
/* Нижняя лента */
.banner-strip-top {
    position: absolute;
    transform: translateX(-50%);
    background: #01FF00;
}
  
/* Бегущая строка */
.banner-content {
    display: flex;
    align-items: center;
    gap: 0.78125vw; /* 15px */
    width: max-content;
    animation: scroll var(--line-animation-speed, 20s) linear infinite;
    padding-right: 2.604vw; /* 50px */
}
  
/* Текст */
.discount-text {
    color: #0A0A0A;
    font-family: "Inter", sans-serif;
    font-size: 1.667vw; /* 32px */
    font-weight: 400;
    line-height: 110%;
    letter-spacing: -0.033vw; /* -0.64px */
    text-transform: uppercase;
    white-space: nowrap;
    margin: 0;
}
  
/* Звезда */
.star-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25vw; /* 24px */
    height: 1.25vw; /* 24px */
}
  
.star-icon {
    width: 100%;
    height: 100%;
}

@media (max-width: 1024px) {
    .banner {
      margin-top: 9.765625vw; /* 60px */
    }
  
    .banner-inner {
      height: 5.47vw; /* 117px (149px - 32px отступов) */
      padding-left: 1.95vw;
      padding-right: 1.95vw;
      
    }
  
    .banner-strip {
      height: 5.47vw; /* 56px */
      padding: 1.465vw 0; /* 15px */
    }
  
    .banner-content {
      gap: 1.465vw; /* 15px */
      padding-right: 4.88vw; /* 50px */
    }
  
    .discount-text {
      font-size: 2.34vw; /* 24px */
      letter-spacing: -0.047vw; /* -0.48px */
    }
  
    .star-wrapper {
      width: 2.34vw; /* 24px */
      height: 2.34vw; /* 24px */
    }
  
    /* Оптимизация анимации 
    .banner-content {
      animation-duration: 30s;
    }*/
  }
  
  @media (max-width: 375px) {
    .banner {
      padding-top: 16vw; /* ~20px */
    }
  
    .banner-inner {
      height: 14.4vw; /* 54px */
      padding: 0 2.67vw; /* 10px */
    }
  
    .banner-strip {
      width: 100vw;
      height: 14.4vw; /* 54px */
      padding: 3.2vw 0; /* 12px */
      left: 50%;
      transform: translateX(-50%);
    }
  
    .banner-content {
      gap: 2.67vw; /* 10px */
      padding-right: 5.33vw; /* 20px */
      animation-duration: 20s;
    }
  
    .discount-text {
      font-size: 3.73vw; /* 14px */
      letter-spacing: -0.053vw; /* -0.2px */
      transform: none;
    }
  
    .star-wrapper {
      width: 6.4vw; /* 24px */
      height: 6.4vw; /* 24px */
      transform: none;
    }
  }





/* Контейнер для кнопок объёмов */
.volume-variants {
    display: flex;
    gap: 0.78125vw; /* 15px/1920 */
    flex-wrap: wrap;
    max-width: 32.44792vw; /* 623px/1920 */
}

/* Базовый стиль для кнопок объёмов */
.volume-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0.78125vw 1.30208vw; /* 15px/1920 и 25px/1920 */
    /*gap: 0.52083vw; /* 10px/1920 */
    width: 10.26042vw; /* 197px/1920 */
    height: 2.23958vw; /* 43px/1920 */
    border: 0.05208vw solid #0A0A0A; /* 1px/1920 */
    border-radius: 2.08333vw; /* 40px/1920 */
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 0.9375vw; /* 18px/1920 */
    line-height: 110%;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: #0A0A0A;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}
/* Стиль для кнопки, если она активна */
.volume-button.active {
    background: #0A0A0A;
    color: #FFFFFF;
}

/* Убираем стили при наведении на кнопки */
.volume-button:hover {
    text-decoration: none; /* Убираем подчеркивание */
    color: inherit; /* Убираем изменение цвета */
}

/* Убираем стили при наведении на кнопки */
.volume-button.active:hover {
    text-decoration: none; /* Убираем подчеркивание */
    color: white; /* Убираем изменение цвета */
}


@media (max-width: 1024px) {
    /* Контейнер для кнопок объёмов */
    .volume-variants {
        gap: 1.46484vw; /* 15px/1024 */
        max-width: 57.03125vw; /* 584px/1024 */
    }

    /* Базовый стиль для кнопок объёмов */
    .volume-button {
        padding: 1.46484vw 2.44141vw; /* 15px/1024 и 25px/1024 */
        width: 17.87109vw; /* 183px/1024 */
        height: 3.90625vw; /* 40px/1024 */
        border: 0.09766vw solid #0A0A0A; /* 1px/1024 */
        border-radius: 3.90625vw; /* 40px/1024 */
        font-size: 1.36719vw; /* 14px/1024 */
    }
}

@media (max-width: 375px) {
    /* Контейнер для кнопок объёмов */
    .volume-variants {
        gap: 2.66667vw; /* 10px/375 */
        max-width: 94.93333vw; /* 356px/375 */
    }

    /* Базовый стиль для кнопок объёмов */
    .volume-button {
        padding: 4vw 6.66667vw; /* 15px/375 и 25px/375 */
        width: 28.86667vw; /* 112px/375 */
        height: 10.66667vw; /* 40px/375 */
        border: 0.26667vw solid #0A0A0A; /* 1px/375 */
        border-radius: 10.66667vw; /* 40px/375 */
        font-size: 3.73333vw; /* 14px/375 */
    }
}


  /* Основной контейнер */
.related-products {
    position: relative;
    width: 100%;
    padding-top: 2.0833vw; /* 180/1920 */
  }
  
  /* Контейнер с карточками */
  .products-container {
    display: flex;
    gap: 1.042vw; /* 20/1920 */
    padding-left: 1.042vw; /* 100/1920 */
    padding-right: 1.042vw;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  
  .products-container::-webkit-scrollbar {
    display: none;
  }


 