/* Стили для Hero Section */
.hero-video-section {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-section .absolute.inset-0 {
    z-index: 10;
}

.hero-video-section .relative.z-20 {
    z-index: 20;
}

.hero-video-section h1,
.hero-video-section p,
.hero-video-section a {
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .hero-video-section {
        height: 400px;
    }
    .hero-video-section h1 {
        font-size: 2.5rem;
    }
    .hero-video-section p {
        font-size: 1.25rem;
    }
    .hero-video-section a {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .hero-video-section {
        height: 300px;
    }
    .hero-video-section h1 {
        font-size: 1.5rem;
    }
    .hero-video-section p {
        font-size: 1rem;
    }
}

/* Стили для карусели на главной */
.carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.75);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* Стили для карусели в категориях */
.category-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.category-carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.category-carousel-slide {
    flex: 0 0 33.33%;
    position: relative;
    padding: 0 10px;
}

.category-carousel-slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.category-prev, .category-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
}

.category-prev:hover, .category-next:hover {
    background: rgba(0, 0, 0, 0.75);
}

.category-prev {
    left: 10px;
}

.category-next {
    right: 10px;
}

/* Адаптивность для каруселей */
@media (max-width: 768px) {
    .carousel-slide img {
        height: 400px;
    }
    .category-carousel-slide {
        flex: 0 0 50%;
    }
    .category-carousel-slide img {
        height: 200px;
    }
}

@media (max-width: 640px) {
    .carousel-slide img {
        height: 300px;
    }
    .category-carousel-slide {
        flex: 0 0 100%;
    }
    .category-carousel-slide img {
        height: 150px;
    }
}

/* Стили для карточек */
.category-card img,
.product-card img,
.bg-white img {
    width: 100%;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 0.5rem;
}

.category-card,
.product-card,
.bg-white {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3) !important;
}

.category-card a,
.product-card a {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-card img,
.product-card img {
    flex-shrink: 0;
}

/* Стили для фильтров */
.filters {
    background-color: #fff;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filters h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.filters select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e5e5e5;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.filters button {
    width: 100%;
    background-color: #ef4444;
    color: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
}

.filters button:hover {
    background-color: #dc2626;
}

/* Кастомные стили для кнопок */
.bg-red-600 {
    background-color: #dc2626;
}

.bg-red-600:hover {
    background-color: #b91c1c;
}

/* Стили для exit-intent поп-апа */
.exit-intent-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.exit-intent-popup.show {
    display: flex;
}

/* Trends Section */
.trends {
    max-width: 1200px;
    margin: 0 auto;
}

.trends .grid {
    display: grid;
    gap: 1.5rem;
}

.trends .relative {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.trends img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    display: block;
}

.trends .absolute {
    transition: background-color 0.3s ease;
}

.trends .text-white {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.trends .relative:hover .text-white {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .trends img {
        height: 12rem;
    }
    .trends h3 {
        font-size: 1rem;
    }
    .trends p, .trends a {
        font-size: 0.875rem;
    }
}

@media (max-width: 640px) {
    .trends .grid {
        grid-template-columns: 1fr;
    }
    .trends img {
        height: 10rem;
    }
}