/**
 * Product Category Page Styles
 * Clean, dedicated styling for product category taxonomy pages
 *
 * @package Tanisi_Insurge
 */

/* Header Section Wrapper - Clean, no background */
.product-category-header-section {
    padding: 2rem 0 3rem 0;
    margin-bottom: 3rem;
}

/* Header Content Wrapper - Flex Column for Centering */
.header-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Breadcrumbs - Minimal Modern Design */
.product-category-breadcrumbs {
    align-self: flex-start;
}

@media (max-width: 768px) {
    .product-category-breadcrumbs {
        align-self: center;
    }

    .header-content-wrapper {
        gap: 0;
    }
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    color: #0e3e26;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.breadcrumb-link:hover {
    color: #0a2e1f;
    background-color: rgba(14, 62, 38, 0.05);
}

.breadcrumb-separator {
    color: #ccc;
    margin: 0 0.25rem;
    font-weight: 300;
}

.breadcrumb-current span {
    color: #333;
    font-weight: 600;
}

/* Product Category Header - Perfectly Centered */
.product-category-header {
    text-align: center;
    width: 100%;
}

.product-category-title {
    font-size: 3rem;
    font-weight: 700;
    color: #0e3e26;
    margin: 0;
    line-height: 1.2;
    text-align: center;
}

.product-category-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
}

/* Product Category Content */
.product-category-content {
    margin: 1rem 0;
}

/* Products Overview Grid */
.products-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 100%;
    position: relative;
    clear: both;
}

/* Grid column variations */
.products-overview-grid.grid-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Product Cards */
.product-overview-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Animation Classes */
.product-overview-card-link.will-animate {
    opacity: 0;
    transform: translateY(60px);
}

.product-overview-card-link.animate-in {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.product-overview-card {
    background: transparent;
    overflow: visible;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    user-select: none;
    display: flex;
    flex-direction: column;
}

/* Product Card Image */
.product-card-image {
    position: relative;
    height: 350px;
    background-color: #f8f8f8;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.product-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

/* Hover Effects */
.product-overview-card-link:hover .product-overview-card {
    transform: translateY(-4px);
}

.product-overview-card-link:hover .product-card-image {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.product-overview-card-link:hover .product-card-image::before {
    transform: scale(1.05);
}

.product-overview-card-link:active .product-overview-card {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-overview-card-link:hover .category-name {
    transform: translateX(5px);
}

/* Product Card Placeholder */
.product-card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    font-size: 0.9rem;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.7;
}


/* Product Bottom Text */
.product-bottom-text {
    padding: 15px 20px 5px 5px;
}

.category-name {
    display: inline-block;
    background: linear-gradient(
        90deg,
        #FFD700 0%,
        #FFA500 25%,
        #FFF8DC 50%,
        #FFA500 75%,
        #FFD700 100%
    );
    background-size: 200% auto;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* No Products Message */
.no-products-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    /* 4-column grid becomes 3 columns */
    .products-overview-grid.grid-columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .products-overview-grid {
        gap: 25px;
    }
}

@media (max-width: 992px) {
    /* 4-column grid becomes 3 columns */
    .products-overview-grid.grid-columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* Reduce excessive spacing between header and products */
    .product-category-header-section {
        padding: 1.5rem 0 1.5rem 0;
        margin-bottom: 1.5rem;
    }

    .product-category-title {
        font-size: 2.5rem;
    }

    .product-category-header {
        margin: 1rem 0 0 0;
    }

    .product-category-description {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    /* Responsive breadcrumbs for tablet */
    .breadcrumb-list {
        font-size: 0.8rem;
        gap: 0.25rem;
        flex-wrap: wrap;
    }

    .breadcrumb-link {
        padding: 0.15rem 0.35rem;
        font-size: 0.8rem;
    }

    .breadcrumb-separator {
        margin: 0 0.15rem;
        font-size: 0.7rem;
    }

    .breadcrumb-current span {
        padding: 0.15rem 0.35rem;
        font-weight: 600;
    }

    /* All grids become 2 columns on tablets */
    .products-overview-grid.grid-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-overview-grid {
        gap: 20px;
    }

    .product-card-image {
        height: 320px;
    }

    .product-bottom-text {
        padding: 12px 15px;
    }

    .category-name {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    /* Further reduce spacing for smaller mobile screens */
    .product-category-header-section {
        padding: 1rem 0 1rem 0;
        margin-bottom: 1rem;
    }

    /* Two columns on larger phones */
    .products-overview-grid.grid-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-overview-grid {
        gap: 15px;
    }

    /* Responsive breadcrumbs for mobile */
    .breadcrumb-list {
        font-size: 0.75rem;
        gap: 0.2rem;
    }

    .breadcrumb-current span {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
        vertical-align: top;
        padding: 0.15rem 0.35rem;
    }
}

@media (max-width: 480px) {
    .products-overview-grid {
        gap: 12px;
    }

    .product-card-image {
        height: 280px;
    }

    .product-bottom-text {
        padding: 10px 12px;
    }

    .category-name {
        font-size: 0.85rem;
    }

    /* Responsive breadcrumbs for smallest screens */
    .breadcrumb-current span {
        max-width: 120px;
        padding: 0.15rem 0.35rem;
    }
}

/* =Animations
-------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}