/**
 * Category Showcase Widget Styles
 */

.cat-showcase {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    flex-direction: row;
}

.cat-showcase__image-wrapper {
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.cat-showcase__image-wrapper::before,
.cat-showcase__image-wrapper::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 40px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cat-showcase__image-wrapper::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), transparent);
}

.cat-showcase__image-wrapper::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
}

.cat-showcase__image-wrapper:hover::before,
.cat-showcase__image-wrapper:hover::after {
    opacity: 1;
}

.cat-showcase__image {
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.cat-showcase__image-wrapper:hover .cat-showcase__image {
    transform: scale(1.08);
}

.cat-showcase__content {
    display: flex;
    flex-direction: column;
}

.cat-showcase__title {
    margin: 0;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.cat-showcase__desc {
    margin: 0;
    line-height: 1.6;
}

.cat-showcase__products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.cat-showcase__products[data-columns="1"] {
    grid-template-columns: 1fr;
}

.cat-showcase__products[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.cat-showcase__product-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    background-color: #f8f8f8;
    transition: all 0.3s ease;
}

.cat-showcase__product-item:hover {
    background-color: #f0f0f0;
}

.cat-showcase__product-icon {
    flex-shrink: 0;
    border-radius: 50%;
}

.cat-showcase__product-name {
    transition: color 0.3s ease;
}

.cat-showcase__button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cat-showcase__title-link {
    text-decoration: none;
    display: block;
}

.cat-showcase__title {
    cursor: pointer;
    transition: color 0.3s ease;
}

.cat-showcase__button-icon {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
    --icon-hover-offset: 5px;
}

.cat-showcase__button:hover .cat-showcase__button-icon {
    transform: translateX(var(--icon-hover-offset));
}

.cat-showcase__button-icon svg,
.cat-showcase__button-icon svg path {
    fill: currentColor;
}

.cat-showcase__button-icon i {
    color: inherit;
}

.cat-showcase__divider {
    width: 100%;
}

/* Responsive */
@media (max-width: 767px) {
    .cat-showcase {
        flex-direction: column;
    }
    
    .cat-showcase__image-wrapper,
    .cat-showcase__content {
        width: 100% !important;
    }
    
    .cat-showcase__products {
        grid-template-columns: 1fr;
    }
}
