/* ==========================================================================
   Product Catalog Pro — Frontend Styles
   Card-grid layout with large images
   ========================================================================== */

.pcp-catalog-wrapper {
/*     max-width: 1100px; */
    font-family: inherit;
    box-sizing: border-box;
}

.pcp-catalog-wrapper *,
.pcp-catalog-wrapper *::before,
.pcp-catalog-wrapper *::after {
    box-sizing: border-box;
}

/* Section title */
.pcp-catalog-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e2432;
    margin: 0 0 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid #e8e8e8;
    letter-spacing: -0.3px;
}

/* Product grid */
.pcp-product-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Single product card */
.pcp-product-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    background: #fff;
    border: 1px solid #e4e8ee;
    border-radius: 10px;
    overflow: hidden;
    padding: 0 !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    width: 100%;
}
.pcp-product-item:first-child { border-top: 1px solid #e4e8ee; }
/* .pcp-product-item:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    transform: translateY(-4px);
    background: #fff;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    border-radius: 10px;
    border-color: #e4e8ee;
} */

/* Product image — large and prominent */
.pcp-product-image {
    width: 100% !important;
    height: 220px !important;
    min-height: 220px;
    overflow: hidden;
    background: #f3f4f6;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
    display: block;
    position: relative;
}
.pcp-product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.35s ease;
}
.pcp-product-item:hover .pcp-product-image img {
    transform: scale(1.06);
}

/* No image placeholder */
.pcp-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #c5ccd6;
    gap: 8px;
    font-size: 13px;
}
.pcp-no-image svg {
    width: 48px;
    height: 48px;
}

/* Product details */
.pcp-product-details {
    flex: 1;
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.pcp-product-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a2030;
    margin: 0;
    letter-spacing: -0.2px;
    line-height: 1.35;
}

/* Size tags */
.pcp-size-list {
    display: flex !important;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pcp-size-tag {
    display: inline-flex;
    align-items: center;
    background: #f0f4f8;
    color: #3d5166;
    border: 1px solid #dde8f0;
    border-radius: 4px;
    padding: 3px 9px;
    font-size: 11.5px;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.5;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}
.pcp-size-tag:hover {
    background: #e0ecf8;
    border-color: #b5cfe8;
}

/* Description */
.pcp-product-desc {
    font-size: 13px;
    color: #778899;
    margin: 0;
    line-height: 1.55;
}
.pcp-product-desc p { margin: 0 0 6px; }
.pcp-product-desc p:last-child { margin-bottom: 0; }

/* Empty state */
.pcp-empty {
    color: #999;
    font-size: 14px;
    padding: 48px 0;
    text-align: center;
    grid-column: 1 / -1;
}

/* ---------------------------------------------------------------
   Responsive
   ------------------------------------------------------------- */
@media (max-width: 900px) {
    .pcp-product-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 540px) {
    .pcp-product-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .pcp-product-image {
        height: 160px !important;
        min-height: 160px;
    }
    .pcp-product-details {
        padding: 12px 13px 14px;
        gap: 7px;
    }
    .pcp-product-name {
        font-size: 13px;
    }
    .pcp-size-tag {
        font-size: 10.5px;
        padding: 2px 7px;
    }
}

@media (max-width: 360px) {
    .pcp-product-list {
        grid-template-columns: 1fr;
    }
    .pcp-product-image {
        height: 200px !important;
        min-height: 200px;
    }
}
