/* Layout 3 / 1.3.2: compact catalogue cards; product-detail pages keep their layout. */
.layout3-store .product-grid,
.layout3-store .product-grid--shop {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    align-items: stretch;
}

.layout3-store .product-card--compact {
    border: 1px solid #e1e7ef;
    border-radius: 7px;
    box-shadow: 0 1px 3px #10263d06;
    min-width: 0;
}
.layout3-store .product-card--compact:hover {
    transform: none;
    border-color: #b9cfee;
    box-shadow: 0 3px 12px #10263d0a;
}
.product-card--compact .product-media { flex: none; }
.layout3-store .product-card--compact .product-thumb {
    height: 156px;
    aspect-ratio: auto;
    background: #fff;
    border-bottom: 1px solid #f0f3f7;
}
.layout3-store .product-card--compact .product-thumb img {
    width: 100%;
    height: 100%;
    padding: 9px;
    object-fit: contain;
}
.layout3-store .product-card--compact .product-thumb .no-photo {
    height: 100%;
    min-height: 0;
    gap: 5px;
    padding: 8px;
}
.product-card--compact .product-thumb .no-photo .ui-icon { width: 30px; height: 30px; }
.layout3-store .product-card--compact .product-thumb .no-photo span { font-size: 14px; }
.layout3-store .product-card--compact .product-thumb .no-photo small { font-size: 10px; }
.product-card--compact .deal-badge { top: 8px; left: 8px; padding: 3px 6px; font-size: 10px; border-radius: 4px; }
.layout3-store .product-card--compact .product-wishlist { top: 7px; right: 7px; }
.layout3-store .product-card--compact .product-wishlist button { width: 30px; height: 30px; padding: 6px; }
.layout3-store .product-card--compact .product-body {
    min-width: 0;
    padding: 10px 11px 8px;
    gap: 0;
}
.layout3-store .product-card--compact .l3-product-meta {
    flex-wrap: nowrap;
    gap: 5px;
    margin-bottom: 5px;
    font-size: 11px;
    line-height: 1.35;
}
.product-card--compact .l3-product-meta > span:first-child { flex: 1; min-width: 0; }
.layout3-store .product-card--compact .l3-stock { flex: none; font-size: 10px; }
.layout3-store .product-card--compact .product-title {
    height: auto;
    min-height: 40px;
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 650;
}
.layout3-store .product-card--compact .l3-feature-list {
    min-height: 33px;
    margin: 0 0 7px;
}
.layout3-store .product-card--compact .l3-feature-list li {
    padding-left: 10px;
    font-size: 11.5px;
    line-height: 1.45;
}
.product-card--compact .product-rating { margin: 0 0 5px; font-size: 11px; }
.layout3-store .product-card--compact .product-price {
    min-height: 24px;
    margin: auto 0 8px;
    padding-top: 4px;
    font-size: 17px;
    line-height: 1.35;
    color: #0064fa;
}
.layout3-store .product-card--compact .product-price del { margin-left: 4px; margin-right: 0; font-size: 11px; }
.layout3-store .product-card--compact .product-price.is-unpriced { font-size: 13px; }
.layout3-store .product-card--compact .product-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
    margin: 0;
}
.layout3-store .product-card--compact .btn-cart,
.layout3-store .product-card--compact .btn-order,
.layout3-store .product-card--compact .l3-watch-card button,
.layout3-store .product-card--compact .availability-link {
    min-width: 0;
    min-height: 40px;
    padding: 7px 5px;
    gap: 4px;
    border-radius: 5px;
    font-size: 12px;
    line-height: 1.3;
}
.product-card--compact .product-actions .ui-icon { width: 16px; height: 16px; }
.layout3-store .product-card--compact .card-cart-label { display: inline; white-space: nowrap; }
.layout3-store .product-card--compact .btn-order { white-space: nowrap; }
.layout3-store .product-card--compact .l3-watch-card { margin: 0; }
.layout3-store .product-card--compact .l3-watch-card button { width: 100%; }
.layout3-store .product-card--compact .card-compare { margin: 0 11px 7px; }
.layout3-store .product-card--compact .card-compare button {
    width: 100%;
    min-height: 28px;
    padding: 4px 7px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #617087;
    font-size: 11px;
    line-height: 1.3;
}
.layout3-store .product-card--compact .card-compare button:hover { background: #f0f5fc; color: #0064fa; }

@media (max-width: 760px) {
    .layout3-store .product-grid,
    .layout3-store .product-grid--shop,
    .layout3-store .l3-account-content .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }
    .layout3-store .product-card--compact .product-thumb { height: 130px; }
    .layout3-store .product-card--compact .product-body { padding: 9px 9px 7px; }
    .layout3-store .product-card--compact .product-title { font-size: 13px; min-height: 37px; }
    .layout3-store .product-card--compact .product-price { font-size: 16px; }
    .layout3-store .product-card--compact .card-compare { margin: 0 9px 6px; }
}
@media (max-width: 480px) {
    .layout3-store .product-card--compact .product-thumb { height: 120px; }
    .layout3-store .product-card--compact .l3-product-meta { font-size: 10px; }
    .layout3-store .product-card--compact .l3-stock { font-size: 9px; }
    .layout3-store .product-card--compact .l3-feature-list li { font-size: 11px; }
    .layout3-store .product-card--compact .product-actions { grid-template-columns: 38px minmax(0, 1fr); }
    .layout3-store .product-card--compact .card-cart-label { display: none; }
    .layout3-store .product-card--compact .product-price.is-unpriced { font-size: 12px; }
}
