/**
 * Pimberly Category Landing Page — Card Grid Styles
 * Matches the layout in the reference screenshot.
 */

/* Card grid — 3 columns matching the reference */
.pim-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    margin: 0 0 40px;
}

/* Each card */
.pim-cat-card {
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
}

.pim-cat-card-inner {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Title bar */
.pim-cat-card-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    padding: 14px 16px;
    line-height: 1.3;
    /* background set inline from plugin settings */
}

/* Image area */
.pim-cat-card-img {
    flex: 1;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    min-height: 200px;
    position: relative;
}

.pim-cat-card-img img {
    max-width: 100%;
    max-height: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Footer with Shop Now button */
.pim-cat-card-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0 16px 16px;
}

.pim-cat-card-btn {
    display: inline-block;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 10px 20px;
    border-radius: 2px;
    text-transform: uppercase;
    transition: opacity 0.15s;
    /* background set inline from plugin settings */
}

.pim-cat-card-inner:hover .pim-cat-card-btn {
    opacity: 0.85;
}

.pim-cat-card-inner:hover .pim-cat-card-img img {
    transform: scale(1.03);
    transition: transform 0.2s ease;
}

/* Responsive — 2 columns on tablet */
@media (max-width: 900px) {
    .pim-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive — 1 column on mobile */
@media (max-width: 540px) {
    .pim-cat-grid {
        grid-template-columns: 1fr;
    }
}
