/* Conteneur page : largeur standard du site (1520px centre) — aligne sur home/deals/categories-show */
.b24-cats-page { max-width: 1520px; margin: 0 auto; width: 100%; }

/* ============================================================
 * frontend-categories-index.css
 * Auto-extracted from frontends/public-bff/resources/views/frontend/categories/index.blade.php
 * by scripts/extract-blade-styles.php
 * Règle CLAUDE.md §389 : CSS jamais dans les Blades.
 * ============================================================ */

.categories-mosaic-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    @media (max-width:767px) {
        .categories-mosaic-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    .category-mosaic-wrapper {
        display: flex;
        flex-direction: column;
        border: 1px solid #cecece;
        border-radius: 10px;
    }

    [data-tpl-container] {
        overflow: hidden;
    }

    [data-tpl-container]>* {
        height: 100%;
        display: flex;
        flex-direction: column;
        border-radius: 8px 8px 0 0;
    }

    .tpl-mosaic__grid,
    .tpl-deals .tpl-grid,
    .tpl-suggestions .tpl-grid,
    .tpl-promo .tpl-grid,
    .tpl-rounded .tpl-grid {
        flex: 1;
    }

    .tpl-vitrine .tpl-cover,
    .tpl-collection .tpl-hero {
        flex: 1;
    }

    .tpl-spotlight .tpl-hero {
        flex-shrink: 0;
        height: 40%;
    }

    .tpl-hexagon .tpl-hexa-bg {
        flex: 1;
    }

    .tpl-mosaic,
    .tpl-vitrine,
    .tpl-deals,
    .tpl-suggestions,
    .tpl-collection,
    .tpl-spotlight,
    .tpl-promo,
    .tpl-rounded,
    .tpl-hexagon {
        border-radius: 8px 8px 0 0;
        overflow: hidden;
        box-shadow: 0 1px 4px rgba(0, 0, 0, .10);
        display: flex;
        flex-direction: column;
    }

    .tpl-mosaic__header {
        padding: 6px 16px 10px;
        border-bottom: 1px solid #f0f0f0;
    }

    .tpl-mosaic__title {
        font-size: 1.25rem;
        font-weight: 700;
    }

    .tpl-mosaic__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 2px;
        background: #f0f0f0;
    }

    .tpl-mosaic__item {
        background: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 8px 4px 6px;
    }

    .tpl-mosaic__item img {
        width: 100%;
        aspect-ratio: 1/1;
        object-fit: cover;
    }

    .tpl-mosaic__placeholder {
        width: 100%;
        aspect-ratio: 1/1;
        background: #e8e8e8;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        font-weight: 600;
        color: #aaa;
    }

    .tpl-mosaic__label {
        font-size: .72rem;
        color: #555;
        margin-top: 4px;
        text-align: center;
    }

    .tpl-mosaic__footer {
        padding: 8px 12px;
        text-align: right;
        border-top: 1px solid #f0f0f0;
    }

    .tpl-mosaic__cta {
        font-size: .8rem;
        color: #007185;
        text-decoration: none;
    }

    .tpl-mosaic__cta:hover {
        text-decoration: underline;
    }

    .tpl-header {
        padding: 6px 16px 10px;
        border-bottom: 1px solid #f0f0f0;
    }

    .tpl-title {
        font-size: 1.25rem;
        font-weight: 700;
    }

    .tpl-footer {
        padding: 8px 12px;
        text-align: right;
        border-top: 1px solid #f0f0f0;
    }

    .tpl-cta {
        font-size: .8rem;
        color: #007185;
        text-decoration: none;
    }

    .tpl-cta:hover {
        text-decoration: underline;
    }

    .tpl-vitrine .tpl-cover {
        width: 100%;
        background: #ddd;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .tpl-vitrine .tpl-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .tpl-vitrine .tpl-thumbs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2px;
        background: #f0f0f0;
        flex-shrink: 0;
    }

    .tpl-vitrine .tpl-thumb {
        aspect-ratio: 1/1;
        background: #e8e8e8;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

    .tpl-deals .tpl-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2px;
        background: #f0f0f0;
    }

    .tpl-deals .tpl-item {
        background: #fff;
        padding: 6px 4px;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        text-decoration: none;
        color: inherit;
    }

    .tpl-deals .tpl-img {
        width: 100%;
        aspect-ratio: 1/1;
        background: #e8e8e8;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    .tpl-deals .tpl-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .tpl-deals .tpl-badge {
        position: absolute;
        top: 4px;
        left: 4px;
        background: #e44;
        color: #fff;
        font-size: .65rem;
        font-weight: 700;
        padding: 2px 5px;
        border-radius: 3px;
        z-index: 2;
    }

    .tpl-deals .tpl-prices {
        font-size: .7rem;
        text-align: center;
        margin-top: 4px;
    }

    .tpl-deals .tpl-price {
        font-weight: 700;
        color: #B12704;
    }

    .tpl-deals .tpl-old {
        text-decoration: line-through;
        color: #aaa;
        margin-left: 4px;
    }

    .tpl-suggestions .tpl-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2px;
        background: #f0f0f0;
    }

    .tpl-suggestions .tpl-item {
        background: #fff;
        padding: 6px 4px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: inherit;
    }

    .tpl-suggestions .tpl-img {
        width: 100%;
        aspect-ratio: 1/1;
        background: #e8e8e8;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .tpl-suggestions .tpl-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .tpl-suggestions .tpl-badge {
        display: inline-block;
        margin-top: 4px;
        background: #e77600;
        color: #fff;
        font-size: .65rem;
        font-weight: 700;
        padding: 2px 6px;
        border-radius: 10px;
    }

    .tpl-collection .tpl-hero {
        width: 100%;
        background: #667eea;
        position: relative;
        overflow: hidden;
    }

    .tpl-collection .tpl-thumbs {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2px;
        background: #f0f0f0;
        flex-shrink: 0;
    }

    .tpl-collection .tpl-thumb {
        aspect-ratio: 1/1;
        background: #e8e8e8;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

    .tpl-spotlight .tpl-badge-spot {
        display: inline-block;
        background: #f0a500;
        color: #fff;
        font-size: .7rem;
        font-weight: 700;
        padding: 2px 8px;
        border-radius: 3px;
        margin-left: 8px;
    }

    .tpl-spotlight .tpl-hero {
        width: 100%;
        background: #ddd;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tpl-spotlight .tpl-hero img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .tpl-spotlight .tpl-desc {
        padding: 6px 12px;
        font-size: .75rem;
        color: #555;
        flex-shrink: 0;
    }

    .tpl-spotlight .tpl-thumbs {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2px;
        background: #f0f0f0;
        flex-shrink: 0;
    }

    .tpl-spotlight .tpl-thumb {
        aspect-ratio: 1/1;
        background: #e8e8e8;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

    .tpl-promo .tpl-promo-header {
        padding: 8px 12px;
        background: #e44;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
    }

    .tpl-promo .tpl-promo-title {
        font-size: 1.1rem;
        font-weight: 700;
        color: #fff;
    }

    .tpl-promo .tpl-flash-badge {
        background: #fff;
        color: #e44;
        font-size: .7rem;
        font-weight: 700;
        padding: 2px 8px;
        border-radius: 3px;
    }

    .tpl-promo .tpl-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2px;
        background: #f0f0f0;
    }

    .tpl-promo .tpl-item {
        background: #fff;
        padding: 6px 4px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: inherit;
    }

    .tpl-promo .tpl-img {
        width: 100%;
        aspect-ratio: 1/1;
        background: #e8e8e8;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }

    .tpl-promo .tpl-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .tpl-promo .tpl-tag {
        position: absolute;
        bottom: 4px;
        left: 4px;
        background: #e44;
        color: #fff;
        font-size: .6rem;
        font-weight: 700;
        padding: 1px 5px;
        border-radius: 2px;
        z-index: 2;
    }

    .tpl-rounded .tpl-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 8px;
        background: #fff;
    }

    .tpl-rounded .tpl-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: inherit;
    }

    .tpl-rounded .tpl-img {
        width: 80%;
        aspect-ratio: 1/1;
        border-radius: 50%;
        background: #e8e8e8;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .tpl-rounded .tpl-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .tpl-rounded .tpl-label {
        font-size: .72rem;
        color: #555;
        margin-top: 4px;
        text-align: center;
    }

    .tpl-hexagon__header {
        padding: 8px 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
    }

    .tpl-hexagon__title {
        font-size: 1.25rem;
        font-weight: 700;
    }

    .tpl-hexagon__mega-badge {
        background: #e44;
        color: #fff;
        font-size: .7rem;
        font-weight: 800;
        padding: 3px 10px;
        border-radius: 4px;
    }

    .tpl-hexagon .tpl-hexa-bg {
        background: #E97115;
        padding: 12px 8px 8px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
    }

    .tpl-hexagon .tpl-hexa-row {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 6px;
        align-items: flex-start;
    }

    .tpl-hexagon .tpl-hexa-cell {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        text-decoration: none;
    }

    .tpl-hexagon .sc-hex-lg {
        width: 140px;
        height: 162px;
        clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
        background: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tpl-hexagon .sc-hex-sm {
        width: 100px;
        height: 116px;
        clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
        background: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tpl-hexagon .sc-hex-img {
        clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
        background-size: cover;
        background-position: center;
    }

    .tpl-hexagon .sc-hex-lg .sc-hex-img {
        width: 128px;
        height: 150px;
    }

    .tpl-hexagon .sc-hex-sm .sc-hex-img {
        width: 90px;
        height: 106px;
    }

    .tpl-hexagon .tpl-hexa-discount {
        background: #f0a500;
        color: #fff;
        font-size: .65rem;
        font-weight: 800;
        padding: 2px 6px;
        text-align: center;
        min-width: 32px;
    }

    .tpl-hexagon .tpl-hexa-discount.badge-round {
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .tpl-hexagon .tpl-hexa-discount.badge-rect {
        border-radius: 4px;
    }

    .tpl-hexagon .tpl-hexa-label {
        font-size: .6rem;
        color: rgba(255, 255, 255, .85);
        text-align: center;
    }

    .tpl-hexagon .tpl-hexa-footer {
        padding: 6px 12px 4px;
        text-align: right;
        background: #E97115;
        flex-shrink: 0;
    }

    .tpl-hexagon .tpl-hexa-cta {
        font-size: .8rem;
        color: rgba(255, 255, 255, .9);
        text-decoration: none;
    }

    .swiper-ads-wrap {
        display: grid;
        gap: 12px;
        align-items: start;
    }

    .swiper-ads-wrap.layout-C {
        grid-template-columns: 1fr;
    }

    .swiper-ads-wrap.layout-C .ads-zone-dummy {
        display: none;
    }

    .swiper-ads-wrap.layout-A {
        grid-template-columns: 1fr 3fr;
    }

    .swiper-ads-wrap.layout-B {
        grid-template-columns: 3fr 1fr;
    }

    .ads-zone-dummy {
        background: #fff3cd;
        border: 2px dashed #ffc107;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 120px;
        font-size: .85rem;
        font-weight: 700;
        color: #856404;
    }

    .categories-swiper-rail {
        margin-top: 32px !important;
        margin-bottom: 32px !important;
    }

    .swiper-rail-title {
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 12px;
    }

    .swiper-zone {
        min-width: 0;
    }

    .categories-swiper-rail .swiper {
        overflow: hidden;
    }

    .swiper-dummy-slide {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .swiper-dummy-img {
        width: 100%;
        aspect-ratio: 4/3;
        background: #e8e8e8;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        font-weight: 700;
        color: #aaa;
    }

    .swiper-dummy-label {
        font-size: .75rem;
        color: #555;
        text-align: center;
    }
