/* ================================
   CATEGORY PAGE
   ================================ */

.category-page {
    background: #ffffff;
    margin: 0;
    padding: 0;
}

/* ================================
   CATEGORY HERO
   ================================ */
.category-hero {
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;
    height: 40vh;
    min-height: 300px;
    max-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 500;
    margin: 0 0 15px 0;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* ================================
   SUBCATEGORIES SLIDER
   ================================ */
.subcategories-slider {
    padding: 40px 20px;
}

.subcategories-slider .container {
    max-width: 1400px;
    margin: 0 auto;
}

.subcategories-slider .section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 50px;
}

/* Subcategories Slider Container */
.subcategories-slider-container {
    position: relative;
    padding: 0 50px;
}

.subcategoriesSwiper {
    overflow: hidden;
}

.subcategoriesSwiper .swiper-slide {
    width: 280px;
    height: auto;
}

.subcategory-item {
    text-align: center;
}

.subcategory-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.subcategory-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1 / 1;
}

.subcategory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.subcategory-item a:hover .subcategory-image img {
    transform: scale(1.1);
}

.subcategory-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    padding: 20px;
    color: white;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    text-align: center;
    z-index: 2;
}

/* Subcategories Navigation Arrows */
.subcategories-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.subcategories-prev,
.subcategories-next {
    width: 44px;
    height: 44px;
    background: #333333;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    pointer-events: auto;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.subcategories-prev:hover,
.subcategories-next:hover {
    background: #000000;
    transform: scale(1.1);
}

.subcategories-prev.swiper-button-disabled,
.subcategories-next.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.subcategories-prev.swiper-button-disabled:hover,
.subcategories-next.swiper-button-disabled:hover {
    transform: none;
}

@media (max-width: 992px) {
    .subcategories-slider {
        padding: 30px 20px;
    }

    .subcategories-slider .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .subcategories-slider-container {
        padding: 0 40px;
    }

    .subcategoriesSwiper .swiper-slide {
        width: 240px;
    }

    .subcategories-prev,
    .subcategories-next {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 768px) {
    .subcategories-slider-container {
        padding: 0 35px;
    }

    .subcategoriesSwiper .swiper-slide {
        width: 200px;
    }

    .subcategories-prev,
    .subcategories-next {
        width: 34px;
        height: 34px;
    }

    .subcategories-prev svg,
    .subcategories-next svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .subcategories-slider-container {
        padding: 0 30px;
    }

    .subcategoriesSwiper .swiper-slide {
        width: 180px;
    }

    .subcategory-name {
        font-size: 16px;
        padding: 15px;
    }
}

/* ================================
   SEO SECTION
   ================================ */
.category-seo-section {
    padding: 40px 20px;
    background: white;
}

.seo-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.seo-content h2 {
    font-size: 36px;
    font-weight: 500;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.seo-description {
    font-size: 16px;
    line-height: 1.8;
    font-weight: 400;
}

.seo-description p {
    margin: 0;
}

/* ================================
   PRODUCTS SECTION
   ================================ */
.category-products {
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.products-header * {
    margin: 0;
}

.woocommerce .woocommerce-ordering {
    margin: 0;
}

.products-ordering {
    display: flex;
    align-items: center;
    gap: 15px;
}

.products-ordering select {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 400;
}

/* WooCommerce products grid */
.products-grid ul.products {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    overflow: hidden;
}

.products-grid ul.products li.product {
    border-radius: 10px;
    overflow: hidden;
    margin: 0;
    width: 100%;
}

.products-grid ul.products li.product a {
    text-decoration: none;
    color: inherit;
}

.products-grid ul.products li.product a.add_to_cart_button {
    display: none;
}

.products-grid ul.products li.product img {
    transition: filter 0.3s ease;
}

.product-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.products-grid ul.products li.product:hover img {
    filter: brightness(1.08);
}

.products-grid ul.products li.product .woocommerce-loop-product__title {
    font-size: 18px;
    font-weight: 500;
    margin: 10px 0;
}

.products-grid ul.products li.product .price {
    font-size: 18px;
    font-weight: 400;
    margin: 0;
    display: block;
    text-align: start;
    color: #000;
}

.products-grid ul.products li.product .button {
    display: block;
    margin: 0 15px 15px;
    padding: 12px;
    background: #000;
    color: white;
    text-align: center;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
}

.products-grid ul.products li.product .button:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.no-products {
    text-align: center;
    font-size: 18px;
    color: #666;
    padding: 60px 20px;
}

.woocommerce ul.products li.product .woocommerce-loop-category__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h3 {
    font-size: 18px;
    font-weight: 500;
}

.products-grid ul.products::before,
.products-grid ul.products::after {
    content: none !important;
    display: none !important;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1200px) {
    .products-grid ul.products {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .category-hero {
        height: 35vh;
        min-height: 250px;
    }

    .category-hero .hero-content {
        padding: 60px 20px;
    }

    .category-hero .hero-content h1 {
        font-size: 36px;
    }

    .products-grid ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .category-hero .hero-content h1 {
        font-size: 32px;
    }

    .products-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .category-hero {
        height: 30vh;
        min-height: 200px;
    }

    .category-hero .hero-content h1 {
        font-size: 28px;
    }

    .products-grid ul.products {
        grid-template-columns: 1fr;
    }

    .products-grid ul.products li.product .woocommerce-loop-product__title {
        min-height: auto;
    }
}