/* Catalogue & fiches produit — MGE & CO */

.section-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-accent, #e8a317);
    margin-bottom: 0.65rem;
}

.hero-produits {
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(155deg, rgba(11,61,46,0.92) 0%, rgba(8,40,30,0.8) 100%),
        url('images/ih1.jpg') center / cover no-repeat;
    min-height: 15rem;
}
.hero-produits::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse 70% 55% at 20% 30%, rgba(232,163,23,0.14) 0%, transparent 55%);
    pointer-events: none;
}
.hero-produits > .container { position: relative; z-index: 1; }
@media (min-width: 768px) {
    .hero-produits { min-height: 18.5rem; }
}

.catalog-toolbar {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(11,61,46,0.08);
    box-shadow: 0 4px 18px rgba(11,61,46,0.04);
}
.catalog-search {
    width: 100%;
    padding: 0.7rem 2.75rem 0.7rem 1rem;
    border: 1px solid rgba(11,61,46,0.14);
    border-radius: 9999px;
    background: #fff;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.catalog-search:focus {
    outline: none;
    border-color: var(--color-primary, #0b3d2e);
    box-shadow: 0 0 0 3px rgba(11,61,46,0.12);
}
.filter-btn {
    padding: 0.45rem 0.95rem;
    border-radius: 9999px;
    border: 1px solid rgba(11,61,46,0.16);
    background: #fff;
    color: var(--color-dark, #121212);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.filter-btn:hover {
    border-color: var(--color-primary, #0b3d2e);
    color: var(--color-primary, #0b3d2e);
}
.filter-btn.active {
    background: var(--color-primary, #0b3d2e);
    color: #fff;
    border-color: var(--color-primary, #0b3d2e);
}
@media (min-width: 640px) {
    .filter-btn { font-size: 0.875rem; padding: 0.5rem 1.1rem; }
}

.card-hover { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(11,61,46,0.12);
    border-color: rgba(11,61,46,0.14);
}

.product-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid rgba(11,61,46,0.08);
    box-shadow: 0 4px 16px rgba(11,61,46,0.04);
    overflow: hidden;
    display: block;
    text-decoration: none;
    height: 100%;
}
.product-card .product-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(180deg, #f7faf8 0%, #eef5f1 100%);
    overflow: hidden;
}
@media (min-width: 640px) {
    .product-card .product-card-media { aspect-ratio: 1 / 1; }
}
.product-card img {
    max-width: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.75rem;
    transition: transform 0.35s ease;
}
.product-card:hover img { transform: scale(1.04); }
.product-card-badge {
    position: absolute;
    top: 0.65rem;
    padding: 0.28rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.product-card-badge.brand {
    left: 0.65rem;
    background: rgba(255,255,255,0.94);
    color: var(--color-primary, #0b3d2e);
}
.product-card-badge.popular {
    right: 0.65rem;
    background: var(--color-accent, #e8a317);
    color: #1a1a1a;
}
.product-card-body {
    padding: 0.9rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.product-card-cat {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-primary, #0b3d2e);
}
.product-card-title {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--color-dark, #121212);
    line-height: 1.35;
    margin: 0;
}
@media (min-width: 640px) {
    .product-card-title { font-size: 1.05rem; }
}
.product-card-ref {
    font-size: 0.72rem;
    color: #6b7280;
    margin: 0;
}
.product-card-specs {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin: 0.25rem 0 0;
}
.product-card-cta {
    margin-top: 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary, #0b3d2e);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.product-card:hover .product-card-cta { gap: 0.55rem; }

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-empty {
    text-align: center;
    padding: 3.5rem 1rem;
}
.catalog-empty i {
    font-size: 3rem;
    color: rgba(11,61,46,0.2);
    margin-bottom: 1rem;
}

/* ——— Fiche produit ——— */
.product-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--color-primary, #0b3d2e);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    margin-bottom: 1.25rem;
    transition: gap 0.2s ease;
}
.product-back:hover { gap: 0.7rem; }

.product-detail-shell {
    background: #fff;
    border-radius: 1.15rem;
    border: 1px solid rgba(11,61,46,0.08);
    box-shadow: 0 12px 40px rgba(11,61,46,0.07);
    overflow: hidden;
    padding: 1.15rem;
}
@media (min-width: 640px) {
    .product-detail-shell { padding: 1.75rem; }
}
@media (min-width: 1024px) {
    .product-detail-shell { padding: 2.25rem; }
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}
@media (min-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
        align-items: start;
    }
}

.product-detail-media {
    background: linear-gradient(180deg, #f7faf8 0%, #eef5f1 100%);
    border: 1px solid rgba(11,61,46,0.08);
    border-radius: 1rem;
    aspect-ratio: 4 / 3;
    max-height: min(70vh, 32rem);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
@media (min-width: 640px) {
    .product-detail-media { aspect-ratio: 1 / 1; }
}
.product-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.product-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 600;
}
.product-chip.cat {
    background: var(--color-primary, #0b3d2e);
    color: #fff;
}
.product-chip.brand {
    background: var(--color-nude, #eef5f1);
    color: var(--color-primary, #0b3d2e);
}

.product-detail-title {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-size: clamp(1.45rem, 3.5vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--color-dark, #121212);
    margin: 0.75rem 0 0.35rem;
}

.product-specs {
    margin: 1.25rem 0 1.5rem;
    background: #f7faf8;
    border: 1px solid rgba(11,61,46,0.07);
    border-radius: 0.9rem;
    padding: 0.35rem 1rem;
}
.product-spec-row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(11,61,46,0.07);
}
.product-spec-row:last-child { border-bottom: none; }
.product-spec-row span:first-child {
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 500;
}
.product-spec-row span:last-child {
    font-size: 0.95rem;
    color: var(--color-dark, #121212);
    font-weight: 600;
}
@media (min-width: 640px) {
    .product-spec-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
@media (min-width: 640px) {
    .product-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}
.product-actions .btn-primary,
.product-actions a,
.product-actions button {
    width: 100%;
    justify-content: center;
}
@media (min-width: 640px) {
    .product-actions .btn-primary,
    .product-actions a,
    .product-actions button {
        width: auto;
    }
}

.btn-primary {
    background: var(--color-primary, #0b3d2e);
    transition: background 0.25s ease, transform 0.25s ease;
}
.btn-primary:hover { background: #0f5240; }
@media (hover: hover) and (min-width: 640px) {
    .btn-primary:hover { transform: scale(1.02); }
}
