/* Product Category Section Styling */
.product-category-section {
    background: linear-gradient(135deg, var(--White) 0%, var(--Bg-8) 100%);
    position: relative;
    overflow: hidden;
}

.product-category-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23f8c32c" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
    z-index: 1;
}

.product-category-section .tf-container {
    position: relative;
    z-index: 2;
}

/* Section Header Styling */
.category-tag {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: var(--Secondary);
    font-family: "Work Sans", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.category-tag::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--Secondary);
    border-radius: 2px;
}

.category-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--Primary);
    font-family: "Work Sans", sans-serif;
    line-height: 1.2;
    margin-bottom: 20px;
}

.category-subtitle {
    font-size: 16px;
    line-height: 1.7;
    color: var(--Text);
    font-family: "Nunito Sans", sans-serif;
    max-width: 700px;
    margin: 0 auto;
}

/* Product Category Swiper */
.product-category-swiper {
    width: 100%;
    padding: 20px 0 60px 0;
    overflow: visible;
}

.product-category-swiper .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

/* Product Category Card */
.product-category-card {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(13, 64, 28, 0.1);
    border: 2px solid transparent;
}

.product-category-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(13, 64, 28, 0.2);
    border-color: var(--Secondary);
}

/* Product Image */
.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.4s ease;
}

.product-category-card:hover .product-image img {
    transform: scale(1.1);
}

/* Product Overlay */
.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(13, 64, 28, 0.95) 0%,
        rgba(13, 64, 28, 0.8) 50%,
        transparent 100%
    );
    padding: 30px 25px;
    transform: translateY(100%);
    transition: all 0.4s ease;
    z-index: 2;
}

.product-category-card:hover .product-overlay {
    transform: translateY(0);
}

/* Product Content */
.product-content {
    color: var(--White);
    text-align: center;
}

.product-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--White);
    font-family: "Work Sans", sans-serif;
    margin-bottom: 15px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.product-category-card:hover .product-title {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.product-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--Text-3);
    font-family: "Nunito Sans", sans-serif;
    margin: 0;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.product-category-card:hover .product-description {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.2s;
}

/* Navigation Buttons */
.product-category-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 10;
    pointer-events: none;
}

.product-category-button-prev,
.product-category-button-next {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: var(--Secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(248, 195, 44, 0.3);
}

.product-category-button-prev:hover,
.product-category-button-next:hover {
    background-color: var(--Primary);
    border-color: var(--Secondary);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(248, 195, 44, 0.4);
}

.product-category-button-prev i,
.product-category-button-next i {
    font-size: 18px;
    color: var(--Primary);
    transition: all 0.3s ease;
}

.product-category-button-prev:hover i,
.product-category-button-next:hover i {
    color: var(--Secondary);
}

.product-category-button-prev {
    left: 0px;
}

.product-category-button-next {
    right: 0px;
}

/* Pagination */
.product-category-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.product-category-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: rgba(13, 64, 28, 0.3);
    border-radius: 50%;
    opacity: 1;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-category-pagination .swiper-pagination-bullet-active {
    background-color: var(--Secondary);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(248, 195, 44, 0.5);
}

/* Add floating elements for visual appeal */
.product-category-card::before {
    content: "";
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--Secondary);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-category-card:hover::before {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.3s;
}

/* Add category badge */
.product-category-card::after {
    content: "Premium";
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--Primary);
    color: var(--White);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    font-family: "Nunito Sans", sans-serif;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    z-index: 3;
}

.product-category-card:hover::after {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-category-button-prev {
        left: -15px;
    }

    .product-category-button-next {
        right: -15px;
    }
}

@media (max-width: 992px) {
    .category-title {
        font-size: 2.2rem;
    }

    .product-category-card {
        height: 350px;
    }

    .product-category-button-prev,
    .product-category-button-next {
        width: 45px;
        height: 45px;
    }

    .product-category-button-prev i,
    .product-category-button-next i {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .category-title {
        font-size: 1.8rem;
    }

    .product-category-card {
        height: 320px;
    }

    .product-title {
        font-size: 20px;
    }

    .product-description {
        font-size: 13px;
    }

    .product-category-button-prev,
    .product-category-button-next {
        width: 40px;
        height: 40px;
    }

    .product-category-button-prev i,
    .product-category-button-next i {
        font-size: 14px;
    }

    .product-category-button-prev {
        left: 10px;
    }

    .product-category-button-next {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .category-title {
        font-size: 1.5rem;
    }

    .product-category-card {
        height: 280px;
    }

    .product-title {
        font-size: 18px;
    }

    .product-overlay {
        padding: 20px 15px;
    }
}

/* Animation Classes */
.slide-fade-in {
    animation: slideInUp 0.6s ease-out forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth transitions for all elements */
.product-category-card * {
    transition: all 0.3s ease;
}

/* Loading state */
.product-category-swiper.swiper-initialized .swiper-slide {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease-out forwards;
}

.product-category-swiper.swiper-initialized .swiper-slide:nth-child(1) {
    animation-delay: 0.1s;
}

.product-category-swiper.swiper-initialized .swiper-slide:nth-child(2) {
    animation-delay: 0.2s;
}

.product-category-swiper.swiper-initialized .swiper-slide:nth-child(3) {
    animation-delay: 0.3s;
}

.product-category-swiper.swiper-initialized .swiper-slide:nth-child(4) {
    animation-delay: 0.4s;
}
