/* ── Catalog Container ─────────────────────────────────────── */

.catalog-container {
    max-width: 1024px;
    margin: 0 auto;
}

/* ── Product Card ───────────────────────────────────────────── */

.product-card {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* ── Image ─────────────────────────────────────────────────── */

.product-card-image {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    overflow: hidden;
}

.product-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-card-no-image {
    background: #eee;
}

/* ── Content ───────────────────────────────────────────────── */

.product-card-content {
    padding: 10px !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

/* ── Header (price + stock code) ───────────────────────────── */

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-wholesale {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
}

.price-rrp {
    font-size: 0.72rem;
    color: #999;
    text-decoration: line-through;
}

.stock-code {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    color: #c0392b !important;
    letter-spacing: 0.3px;
}

/* ── Packs (colour + size grid) ────────────────────────────── */

.product-packs {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pack-block {
    padding: 2px 0;
}

.pack-block + .pack-block {
    border-top: 1px solid #eee;
    padding-top: 4px;
}

.pack-code {
    font-size: 0.65rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pack-colour {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.size-grid {
    border-collapse: collapse;
    width: auto;
}

.size-grid td {
    text-align: center;
    font-size: 0.68rem;
    padding: 1px 6px;
    border: 1px solid #ddd;
    min-width: 24px;
}

.size-grid .size-row td {
    font-weight: 600;
    color: #333;
    background: #fff;
}

.size-grid .qty-row td {
    color: #666;
    background: #f0f0f0;
}

/* ── Material ──────────────────────────────────────────────── */

.product-material {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    color: #555 !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ── Footer (brand + label) ────────────────────────────────── */

.product-footer {
    margin-top: auto;
    padding-top: 4px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-name {
    font-size: 0.7rem !important;
    color: var(--mud-palette-primary) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
}

.product-label {
    display: flex;
    align-items: center;
}

.label-image {
    max-height: 24px;
    max-width: 60px;
    object-fit: contain;
}

.label-text {
    font-size: 0.72rem;
    font-weight: 700;
    color: #555;
    letter-spacing: 0.5px;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 599px) {
    .product-card-image {
        height: 260px;
    }

    .product-card-content {
        padding: 10px !important;
        gap: 6px;
    }

    .price-wholesale {
        font-size: 1rem;
    }

    .pack-colour {
        font-size: 0.7rem;
    }

    .size-grid td {
        font-size: 0.6rem;
        padding: 1px 4px;
        min-width: 20px;
    }
}

@media (min-width: 600px) and (max-width: 959px) {
    .product-card-image {
        height: 280px;
    }
}

@media (min-width: 960px) and (max-width: 1279px) {
    .product-card-image {
        height: 300px;
    }
}

@media (min-width: 1280px) {
    .product-card-image {
        height: 400px;
    }
}
