/**
 * Product Category Display Styles
 * Two-column card layout with red brushed metal hover effect
 */

/* ===================================
   Main Container
   =================================== */
.product-category-display {
    max-width: 1920px;
    margin: 0 auto 50px auto;
    padding: 40px 20px;
}

/* ===================================
   Category Header
   =================================== */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
}

.category-title {
    font-size: 55px;
}

.category-header .btn-text .btn__label {
    min-width: max-content;
}

/* ===================================
   Products Grid
   =================================== */
.category-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ===================================
   Product Card
   =================================== */
.category-product-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #CCCCCC;
    border-radius: 0;
    text-decoration: none;
    color: #000000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-position: 50% 50%;
    position: relative;
    overflow: hidden;
}

/* Card Hover Effect - Red Brushed Metal Background */
.category-product-card:hover {
    background:
        url('../product-lines-display/img/random_noise_texture.avif') 50% / cover no-repeat,
        url('../product-lines-display/img/brushed-metal-horizontal.avif') 50%/cover no-repeat,
        linear-gradient(180deg,#ed1c24 0,#af0f0c 40%,#ed1c24 100%);
    background-blend-mode: overlay, soft-light, darken;
    box-shadow: 27.558px 73.488px 146.977px 0 rgba(0, 0, 0, 0.40);
    transform: scale(1.02);
    border-color: transparent;
}

/* Card Image */
.card-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.placeholder-icon {
    font-size: 36px;
    opacity: 0.3;
}

/* Card Name */
.category-product-card .card-name {
    flex: 1;
    margin: 0;
    color: #000000;
    transition: color 0.4s ease;
}

.category-product-card:hover .card-name {
    color: #ffffff;
}

/* Card Icon */
.card-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.card-icon.arrow-icon {
    border: 1px solid #ED1C24;
}

.category-product-card:hover .card-icon {
    border-color: #ffffff;
}

.icon-svg {
    transition: all 0.4s ease;
}

/* Icon SVG Styles */
.arrow-icon .icon-svg {
    width: 34px;
    height: 34px;
}

.pdf-icon .icon-svg {
    width: 50px;
    height: 50px;
}

/* Arrow Icon - Change stroke color on hover */
.arrow-icon path {
    stroke: #ED1C24;
    transition: stroke 0.4s ease;
}

.category-product-card:hover .arrow-icon path {
    stroke: #ffffff;
}

/* PDF Icon - Change fill color on hover */
.pdf-icon path {
    fill: #ED1C24;
    transition: fill 0.4s ease;
}

.category-product-card:hover .pdf-icon path {
    fill: #ffffff;
}

/* ===================================
   Responsive Adjustments
   =================================== */

/* Tablet */
@media (max-width: 1024px) {
    .category-products-grid {
        gap: 15px;
    }

    .category-product-card {
        padding: 15px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .product-category-display {
        padding: 20px 10px;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .category-view-all {
        font-size: 16px;
    }

    /* Single column on mobile */
    .category-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card-image {
        width: 80px;
        height: 80px;
    }

    .card-name {
        font-size: 16px;
        line-height: 1.45em;
    }

    .card-icon {
        width: 40px;
        height: 40px;
    }

    .icon-svg {
        width: 28px;
        height: 28px;
    }
}

