/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.valentine-pairs {
    width: 100%;
    margin: 0 auto;
    padding: 30px 20px;
    /* background: linear-gradient(to bottom, #fff1f1, #ffe6e6); */
    background: #e3e3e3;
    border-radius: 10px;
    overflow: hidden; /* Убираем границы */
}

.pairs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.first-row {
    justify-content: space-between;
}

.video-container {
    width: calc(33.333% - 20px);
    min-width: 300px;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 15px;
    position: relative;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Убираем черные полосы */
}

/* Для пары часов */
.pair-wrapper {
    position: relative;
    width: calc(33.333% - 20px);
    min-width: 300px;
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pair-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.pair-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column; /* Добавляем вертикальное направление */
}

.pair-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.watch-item {
    flex: 1;
    text-align: center;
    padding: 15px;
    min-height: 34rem;
    transition: all 0.3s ease; /* Анимация при наведении */
}

.watch-item:hover {
    transform: scale(1.05);
    z-index: 2;
}

/* Убираем нижнюю бордер у последнего элемента */
.watch-item:last-child {
    border-right: none;
}

.watch-item:last-child {
    border-bottom: none;
}

.watch-item h3 {
    color: #3c3c3c;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
}

.watch-item img {
    max-height: 170px;
    height: auto;
    margin-bottom: 15px;
    justify-self: center;
}

.watch-info {
    padding: 15px 0;
}

.watch-info h4 {
    color: #3c3c3c;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 17px;
}

.watch-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.price {
    font-size: 15px;
    color: #3c3c3c;
    font-weight: 400;
}

/* Анимация сердечек */
.heart {
    position: absolute;
    width: 15px;
    height: 15px;
    background: #f61f8c;
    transform: rotate(45deg);
    animation: heartFloat 4s linear infinite;
    bottom: 0;
    left: 50%;
    opacity: 0;
    transition: all 0.3s;
}

.heart:before,
.heart:after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: #f61f8c;
    border-radius: 50%;
}

.heart:before {
    left: -7px;
}

.heart:after {
    top: -7px;
}

/* Анимация сердечек */
@keyframes heartFloat {
    0% {
        transform: rotate(45deg) translateY(0) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: rotate(45deg) translateY(-100%) scale(1);
        opacity: 0;
    }
}

/* Медиа-запросы */
@media screen and (max-width: 1024px) {
    .pair-wrapper {
        width: calc(50% - 15px);
    }

    .video-container {
        width: calc(50% - 15px);
    }
}

@media screen and (max-width: 768px) {
    .valentine-pairs {
        padding: 20px 10px;
    }

    .pair-wrapper {
        width: 100%;
    }

    .video-container {
        width: 100%;
        margin-bottom: 20px;
    }

    .pairs-row {
        gap: 20px;
    }
    .price:before {
        top: 25px!important;
        margin-left: 0!important;
    }
    .watch-items-container {
        gap: 0!important;
    }
}
.pair-basket-button {
    text-align: center;
    margin-top: 15px;
    padding: 0 15px 15px; /* Добавляем отступы */
}

/* Обновляем стили для содержимого pair-container */
.watch-items-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}


.add-pair-to-cart.in-cart {
    background: #4CAF50;
}
@media screen and (max-width: 768px) {
    .watch-items-container {
        flex-direction: row;
    }

    .watch-item {
        border-right: none;
        border-bottom: none;
    }

    .watch-item:last-child {
        border-bottom: none;
    }

    .pair-basket-button {
        margin-top: 10px;
    }
    .description-page h2 {
        font-size: 17px;
    }
}
.description-page {
    background: white;
    border-radius: 15px;
    padding: 18px;
    font-size: 16px;
}
.description-page h2 {
    font-size: 24px;
}
.description-page p {
    margin-top: 1rem;
}
/* Стили для пагинации */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 10px;
}

.pagination a,
.pagination-current {
    padding: 8px 15px;
    border: 1px solid #ffe6e6;
    border-radius: 5px;
    text-decoration: none;
    color: #3c3c3c;
    background: white;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #ffe6e6;
}

.pagination-current {
    background: #ffe6e6;
    font-weight: bold;
}

.pagination-prev,
.pagination-next {
    padding: 8px 20px;
}

/* Стили для отображения скидки */
.price {
    position: relative;
}

.price:before {
    content: attr(data-original-price);
    position: absolute;
    top: 20px;
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
    white-space: pre;
    justify-self: anchor-center;
}
.watch-item a {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
/* Стили для мобильной версии пагинации */
@media screen and (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
    }

    .pagination a,
    .pagination-current {
        padding: 6px 12px;
        font-size: 14px;
    }
    .watch-info h4 {
        font-size: 15px;
    }
}
.discount-badge {
    position: absolute;
    top: 40%;  /* Располагаем по центру по вертикали */
    left: 50%; /* Располагаем по центру по горизонтали */
    transform: translate(-50%, -50%); /* Центрируем элемент */
    background: #e5f508;
    color: #444;
    width: 100px;
    height: 100px;
    border-radius: 50px; /* Скругляем углы */
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    white-space: nowrap; /* Предотвращаем перенос текста */
    z-index: 99;
}

/* Обновляем анимацию */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Адаптивность */
@media screen and (max-width: 768px) {
    .discount-badge {
        font-size: 14px;
        padding: 10px 15px;
        width: 80px;
        height: 80px;
    }

    .watch-item img {
        max-height: 140px;
    }
}
.description-page h3 {
    font-size: 20px;
    margin-top: 1rem;
}
@media screen and (max-width: 350px) {
  .pair-wrapper {
    min-width: auto;
  }
  .watch-item h3 {
    font-size: 16px;
  }
}
