/**
 * GAS Shop Catalog — Phase 5A.bis (D4.2)
 * Styles minimaux pour la page /produits/ et le shortcode [gas_produits].
 * Tous tokens via var(--gas-*) — voir config/gas-design-tokens.css.
 */

.gas-shop-catalog__wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--gas-spacing-lg, 1.5rem) var(--gas-spacing-md, 1rem);
    container-type: inline-size;
}

.gas-shop-catalog__header {
    margin-bottom: var(--gas-spacing-lg, 1.5rem);
}

.gas-shop-catalog__title {
    font-size: var(--gas-font-size-xxl, 2rem);
    margin: 0 0 var(--gas-spacing-xs, 0.5rem);
    color: var(--gas-text-primary, #1a1a1a);
}

.gas-shop-catalog__count {
    color: var(--gas-text-secondary, #666);
    font-size: var(--gas-font-size-sm, 0.875rem);
    margin: 0;
}

.gas-shop-catalog__empty {
    padding: var(--gas-spacing-xl, 2rem);
    background: var(--gas-bg-muted, #f5f5f5);
    border-radius: var(--gas-radius-md, 8px);
    text-align: center;
    color: var(--gas-text-secondary, #666);
}

.gas-shop-catalog__grid {
    display: grid;
    gap: var(--gas-spacing-md, 1rem);
}

.gas-shop-catalog__grid--cols-1 { grid-template-columns: 1fr; }
.gas-shop-catalog__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.gas-shop-catalog__grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.gas-shop-catalog__grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
.gas-shop-catalog__grid--learningpass-only {
    grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
    justify-content: center;
}

@media (max-width: 1024px) {
    .gas-shop-catalog__grid--cols-3,
    .gas-shop-catalog__grid--cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .gas-shop-catalog__grid--cols-2,
    .gas-shop-catalog__grid--cols-3,
    .gas-shop-catalog__grid--cols-4 {
        grid-template-columns: 1fr;
    }
}

@container (max-width: 1024px) {
    .gas-shop-catalog__grid--cols-3,
    .gas-shop-catalog__grid--cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container (max-width: 640px) {
    .gas-shop-catalog__grid--cols-2,
    .gas-shop-catalog__grid--cols-3,
    .gas-shop-catalog__grid--cols-4 {
        grid-template-columns: 1fr;
    }
}

.gas-shop-catalog__card {
    background: var(--gas-bg-surface, #fff);
    border: 1px solid var(--gas-border-default, #e2e2e2);
    border-radius: var(--gas-radius-md, 8px);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.gas-shop-catalog__card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.gas-shop-catalog__card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: var(--gas-spacing-md, 1rem);
    text-decoration: none;
    color: inherit;
}

.gas-shop-catalog__card-link:hover {
    text-decoration: none;
}

.gas-shop-catalog__card-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--gas-radius-sm, 6px);
    overflow: hidden;
    background: var(--gas-bg-muted, #f5f5f5);
    border: 1px solid var(--gas-border-default, #e2e2e2);
    margin-bottom: var(--gas-spacing-sm, 0.75rem);
}

.gas-shop-catalog__card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gas-shop-catalog__card-image-placeholder {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--gas-font-size-xl, 1.5rem);
    font-weight: 600;
    color: var(--gas-text-secondary, #666);
}

.gas-shop-catalog__card-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--gas-spacing-xs, 0.5rem);
    padding: 0.25rem 0.625rem;
    background: var(--gas-bg-muted, #f5f5f5);
    color: var(--gas-text-secondary, #666);
    font-size: var(--gas-font-size-xs, 0.75rem);
    font-weight: 500;
    border-radius: var(--gas-radius-sm, 4px);
    margin-bottom: var(--gas-spacing-sm, 0.75rem);
    align-self: flex-start;
}

.gas-shop-catalog__featured-badge {
    align-self: flex-start;
    margin-bottom: var(--gas-spacing-sm, 0.75rem);
    padding: 0.25rem 0.625rem;
    border-radius: var(--gas-radius-sm, 4px);
    background: var(--gas-color-warning-soft, #fff5d6);
    color: var(--gas-color-warning-strong, #7a5a00);
    font-size: var(--gas-font-size-xs, 0.75rem);
    font-weight: 700;
}

/* Type-specific badge accents */
.gas-shop-catalog__card--learningpass .gas-shop-catalog__card-badge {
    background: rgba(255, 193, 7, 0.12);
    color: #b08600;
}
.gas-shop-catalog__card--cotisation .gas-shop-catalog__card-badge {
    background: rgba(0, 123, 255, 0.12);
    color: #0056b3;
}
.gas-shop-catalog__card--produit_digital .gas-shop-catalog__card-badge {
    background: rgba(40, 167, 69, 0.12);
    color: #1e7e34;
}
.gas-shop-catalog__card--produit_physique .gas-shop-catalog__card-badge {
    background: rgba(108, 117, 125, 0.12);
    color: #495057;
}

.gas-shop-catalog__card-title {
    font-size: var(--gas-font-size-md, 1.125rem);
    margin: 0 0 var(--gas-spacing-sm, 0.75rem);
    line-height: 1.3;
    color: var(--gas-text-primary, #1a1a1a);
}

.gas-shop-catalog__card-description {
    font-size: var(--gas-font-size-sm, 0.875rem);
    color: var(--gas-text-secondary, #666);
    margin: 0 0 var(--gas-spacing-md, 1rem);
    flex-grow: 1;
}

.gas-shop-catalog__card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--gas-spacing-sm, 0.75rem);
    border-top: 1px solid var(--gas-border-default, #e2e2e2);
    margin-top: auto;
}

.gas-shop-catalog__card-price {
    font-weight: 600;
    color: var(--gas-text-primary, #1a1a1a);
}

.gas-shop-catalog__card-cta {
    color: var(--gas-color-primary, #0066cc);
    font-size: var(--gas-font-size-sm, 0.875rem);
}
