/* Home catalog professional styles */

.catalog-wrapper {
    background: #f7f7f8;
    padding: 32px 0;
}

.catalog-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.catalog-breadcrumb {
    font-size: 12px;
    color: #666;
}

.catalog-title {
    font-size: 24px;
    font-weight: 800;
    color: #111;
}

.catalog-stats {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 13px;
    color: #555;
}

.catalog-controls {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 12px;
    margin: 16px 0 24px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.p-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.p-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    transform: translateY(-2px);
    border-color: #f1a57f;
}

.p-card-imgWrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.p-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.p-card:hover .p-card-img {
    transform: scale(1.05);
}

.p-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: grid;
    gap: 6px;
}

.p-badge {
    background: #ff6b35;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
}

.p-badge--danger { background: #dc3545; }
.p-badge--muted { background: #111; opacity: .85; }

.p-thumbs {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
}

.p-thumb {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 2px solid #fff;
    overflow: hidden;
}

.p-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.p-brand { color: #e0561d; font-size: 12px; font-weight: 700; }
.p-name { color: #111; font-size: 14px; font-weight: 700; line-height: 1.3; min-height: 36px; }

.p-rating { display:flex; align-items:center; gap:6px; }
.p-stars { color: #ffc107; font-size: 12px; letter-spacing: 1px; }
.p-reviews { color: #1d4ed8; font-size: 12px; }

.p-priceWrap { display:flex; align-items:baseline; gap:8px; }
.p-price { color: #dc2626; font-size: 20px; font-weight: 800; }
.p-original { color: #9ca3af; font-size: 12px; text-decoration: line-through; }
.p-discount { color: #ef4444; font-size: 12px; font-weight: 700; }

.p-cta {
    margin-top: auto;
    padding: 12px;
    display: grid;
    gap: 8px;
}

.p-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.p-btn--buy {
    background: linear-gradient(90deg, #ef4444, #f97316);
    color: #fff;
    box-shadow: 0 8px 24px rgba(249,115,22,.25);
}

.p-btn--buy:hover { transform: translateY(-1px); }

.p-btn--outline {
    background: #fff;
    color: #ea580c;
    border: 2px solid #f59e0b;
}

.p-urgency { text-align:center; color:#dc2626; font-size: 12px; font-weight:700; }


