/* Public catalogue/cart recovery styles - isolated from admin CSS */
.public-catalogue-compact {
    background: #f4f5f1;
    padding: 2.2rem 0 3rem;
}
.compact-catalogue-hero {
    background: #fff;
    border: 1px solid rgba(79,89,42,.14);
    border-radius: 18px;
    padding: 1.25rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 12px 28px rgba(31,41,20,.06);
}
.badge-brand {
    background: #7a8138 !important;
    color: #fff !important;
}
.btn-brand-primary {
    background: #4f592a !important;
    border-color: #4f592a !important;
    color: #fff !important;
    font-weight: 800;
}
.btn-brand-primary:hover {
    background: #6f7d3a !important;
    border-color: #6f7d3a !important;
    color: #fff !important;
}
.btn-outline-brand {
    color: #4f592a !important;
    border-color: #4f592a !important;
    font-weight: 800;
}
.btn-outline-brand:hover {
    background: #4f592a !important;
    color: #fff !important;
}
.compact-category-card {
    border-radius: 14px !important;
    overflow: hidden;
    border: 1px solid rgba(79,89,42,.14) !important;
}
.compact-category-card .list-group-item {
    font-size: .9rem;
    border-color: rgba(79,89,42,.13);
}
.compact-category-card .list-group-item.active {
    background: #4f592a !important;
    border-color: #4f592a !important;
}
.compact-search-card {
    border: 1px solid rgba(79,89,42,.14) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 22px rgba(31,41,20,.05);
}
.public-product-grid.compact-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.compact-product-card {
    background: #fff;
    border: 1px solid rgba(79,89,42,.14);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(31,41,20,.06);
    transition: transform .16s ease, box-shadow .16s ease;
}
.compact-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(31,41,20,.10);
}
.compact-product-image {
    height: 190px;
    background: #fbfcf7;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-bottom: 1px solid rgba(79,89,42,.10);
}
.compact-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: .55rem;
}
.product-image-placeholder {
    color: #98a17d;
    font-size: 2.2rem;
}
.compact-product-body {
    padding: .9rem;
}
.compact-product-category {
    color: #647242;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-bottom: .35rem;
    min-height: 1.05rem;
}
.compact-product-body h2 {
    font-size: .98rem;
    line-height: 1.28;
    min-height: 2.45rem;
    margin: 0 0 .35rem;
    font-weight: 900;
}
.compact-product-body h2 a {
    color: #16220f;
    text-decoration: none;
}
.compact-product-body h2 a:hover {
    color: #4f592a;
}
.compact-product-sku,
.compact-variant-note,
.compact-price-note {
    font-size: .82rem;
    color: #4b5563;
    margin-bottom: .4rem;
}
.compact-variant-note {
    color: #4f592a;
    font-weight: 800;
}
.compact-price-note {
    background: #f3f5ec;
    border: 1px solid #d8dec5;
    color: #4f592a;
    border-radius: 999px;
    padding: .38rem .6rem;
    font-weight: 800;
    text-align: center;
}
@media (max-width: 1199px) {
    .public-product-grid.compact-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .compact-catalogue-hero { display: block; }
    .compact-catalogue-hero .btn { width: 100%; margin-top: 1rem; }
    .public-product-grid.compact-product-grid { grid-template-columns: 1fr; }
    .compact-product-image { height: 210px; }
}

/* Public catalogue parameter-fix compact card safeguards */
.public-catalogue-compact .compact-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1rem;
}
.public-catalogue-compact .compact-product-card {
    max-width: 260px;
    width: 100%;
}
.public-catalogue-compact .compact-product-image {
    height: 170px;
}
.public-catalogue-compact .compact-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.public-catalogue-compact .compact-product-body h2 {
    font-size: .98rem;
    line-height: 1.25;
}
@media (max-width: 767px) {
    .public-catalogue-compact .compact-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .public-catalogue-compact .compact-product-card {
        max-width: none;
    }
}
