/* ==========================================================
   ZANDOS — CATEGORY
   Marketplace Design System 2026
========================================================== */

:root {
    --category-bg: #191919;
    --category-surface: #111111;
    --category-soft: #242424;
    --category-text: #ffffff;
    --category-muted: #a0a0a0;
    --category-muted-soft: #727272;
    --category-border: #3f3f3f;
    --category-red: #e30613;
    --page-padding: 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    background: var(--category-bg);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--category-text);
    background: var(--category-bg);
    font-family: "Inter", sans-serif;
    -webkit-font-smoothing: antialiased;
}


/* ==========================================================
   HEADER
========================================================== */

.category-header {
    width: min(1400px, calc(100% - 80px));
    margin: 0 auto;
    padding: 112px 0 22px;
}

.category-header h1 {
    margin: 0 0 7px;
    color: var(--category-text);
    font-size: 23px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.75px;
}

.category-header p {
    margin: 0;
    color: var(--category-muted);
    font-size: 11px;
    line-height: 1.4;
}


/* ==========================================================
   FILTRES
========================================================== */

.audience-filters {
    display: flex;
    width: min(1400px, calc(100% - 80px));
    margin: 0 auto 26px;
    padding: 2px 0 5px;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.audience-filters::-webkit-scrollbar {
    display: none;
}

.audience-filter-btn {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 15px;
    align-items: center;
    justify-content: center;
    color: #d5d5d5;
    border: 1px solid #4b4b4b;
    border-radius: 999px;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.audience-filter-btn:hover {
    color: #ffffff;
    border-color: #777777;
}

.audience-filter-btn.active {
    color: #111111;
    border-color: #ffffff;
    background: #ffffff;
}


/* ==========================================================
   PRODUCTS
========================================================== */

.category-products {
    width: min(1400px, calc(100% - 80px));
    margin: 0 auto;
    padding: 0 0 70px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px 14px;
}


/* ==========================================================
   PRODUCT CARD
========================================================== */

.product-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    color: var(--category-text);
    background: var(--category-bg);
    cursor: pointer;
}

.product-card:hover {
    transform: none;
}


/* IMAGE — RATIO VERROUILLÉ 3:4 */

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 0;
    isolation: isolate;
}

.product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .4s cubic-bezier(.2,.6,.2,1);
}

@media (hover: hover) {
    .product-card:hover .product-image img {
        transform: scale(1.015);
    }
}


/* ==========================================================
   PRODUCT INFORMATION
========================================================== */

.product-info {
    display: flex;
    flex: 1;
    width: 100%;
    min-height: 128px;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 11px 11px;
    background: var(--category-surface);
    text-align: left;
}

.product-info h4 {
    width: 100%;
    margin: 0 0 5px;
    overflow: hidden;
    color: var(--category-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-info .product-description {
    display: -webkit-box;
    width: 100%;
    min-height: 34px;
    margin: 0 0 7px;
    overflow: hidden;
    color: var(--category-muted-soft);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-info > span {
    color: var(--category-text);
    font-size: 12px;
    font-weight: 600;
}


/* ==========================================================
   PRICE
========================================================== */

.price-row {
    display: flex;
    width: 100%;
    margin-top: auto;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 8px;
    text-align: left;
}

.price-row span {
    font-size: 12px;
}

.old-price {
    color: #7d7d7d !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    text-decoration: line-through;
}

.new-price {
    color: var(--category-text) !important;
    font-size: 13px !important;
    font-weight: 650 !important;
}


/* ==========================================================
   PROMOTION BADGE
========================================================== */

.product-badge,
.discount-badge,
.promo-badge {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    color: #ffffff;
    border-radius: 3px;
    background: var(--category-red);
    font-size: 10px;
    font-weight: 700;
}


/* ==========================================================
   BRANDS
========================================================== */

.brand-scroll {
    display: flex;
    width: min(1400px, calc(100% - 80px));
    margin: 0 auto 64px;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.brand-scroll::-webkit-scrollbar {
    display: none;
}

.brand-scroll a {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    color: #d5d5d5;
    border: 1px solid #4b4b4b;
    border-radius: 999px;
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.brand-scroll a:hover {
    color: #ffffff;
    border-color: #777777;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1000px) {

    .category-header,
    .audience-filters,
    .category-products,
    .brand-scroll {
        width: calc(100% - 40px);
    }

    .product-grid {
        gap: 26px 12px;
    }
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 700px) {

    :root {
        --page-padding: 16px;
    }

    .category-header,
    .audience-filters,
    .category-products,
    .brand-scroll {
        width: calc(100% - (var(--page-padding) * 2));
    }

    .category-header {
        padding: 82px 0 18px;
    }

    .category-header h1 {
        margin-bottom: 5px;
        font-size: 23px;
        letter-spacing: -.7px;
    }

    .category-header p {
        font-size: 10px;
    }

    .audience-filters {
        margin-bottom: 20px;
        gap: 7px;
    }

    .audience-filter-btn {
        width: auto;
        min-height: 35px;
        margin: 0;
        padding: 0 14px;
        font-size: 10px;
    }

    .category-products {
        padding-bottom: 48px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 8px;
    }

    .product-card {
        min-width: 0;
        overflow: hidden;
        background: var(--category-bg);
    }

    .product-image {
        width: 100%;
        aspect-ratio: 3 / 4;
        border-radius: 0;
    }

    .product-info {
        min-height: 142px;
        padding: 10px 9px 10px;
    }

    .product-info h4 {
        margin-bottom: 4px;
        font-size: 12px;
    }

    .product-info .product-description {
        min-height: 32px;
        margin-bottom: 6px;
        font-size: 10px;
        line-height: 1.45;
    }

    .price-row span {
        font-size: 11px;
    }

    .new-price {
        font-size: 12px !important;
    }

    .old-price {
        font-size: 9px !important;
    }

    .brand-scroll {
        margin-bottom: 50px;
        gap: 7px;
    }

    .brand-scroll a {
        min-height: 35px;
        padding: 0 14px;
        font-size: 10px;
    }
}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 380px) {

    :root {
        --page-padding: 14px;
    }

    .category-header h1 {
        font-size: 21px;
    }

    .product-grid {
        gap: 20px 7px;
    }

    .product-info {
        padding-left: 8px;
        padding-right: 8px;
    }
}


/* ==========================================================
   ACCESSIBILITY
========================================================== */

.audience-filter-btn:focus-visible,
.brand-scroll a:focus-visible,
.product-card:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    .product-image img,
    .audience-filter-btn,
    .brand-scroll a {
        transition-duration: .01ms !important;
    }
}


/* ZANDOS — CATEGORY NEW + BRANDS FINAL 2026 */

/* ----------------------------------------------------------
   EN-TÊTE CATÉGORIE
   Rapproche Nouveautés du header sans toucher aux produits
---------------------------------------------------------- */

.category-header {
    padding-top: 72px !important;
}


/* ----------------------------------------------------------
   MARQUES
   Même langage visuel que les pills Zandos
---------------------------------------------------------- */

.brand-scroll {
    display: flex !important;
    width: min(1400px, calc(100% - 80px)) !important;
    margin: 0 auto 64px !important;
    padding: 0 0 6px !important;
    gap: 8px !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
}

.brand-scroll::-webkit-scrollbar {
    display: none !important;
}

/* category.js génère des BUTTON, pas des liens */
.brand-scroll .brand-chip {
    appearance: none !important;
    -webkit-appearance: none !important;

    display: inline-flex !important;
    flex: 0 0 auto !important;

    min-height: 40px !important;
    padding: 0 18px !important;

    align-items: center !important;
    justify-content: center !important;

    border: 1px solid #4b4b4b !important;
    border-radius: 999px !important;

    background: transparent !important;
    color: #d5d5d5 !important;

    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1 !important;

    text-decoration: none !important;
    white-space: nowrap !important;

    cursor: pointer !important;

    transition:
        color .2s ease,
        border-color .2s ease,
        background-color .2s ease !important;
}

.brand-scroll .brand-chip:hover {
    color: #ffffff !important;
    border-color: #777777 !important;
}

.brand-scroll .brand-chip:focus-visible {
    outline: 2px solid #ffffff !important;
    outline-offset: 3px !important;
}


/* TABLETTE */
@media (max-width: 1000px) {

    .brand-scroll {
        width: calc(100% - 40px) !important;
    }
}


/* MOBILE */
@media (max-width: 700px) {

    .category-header {
        padding-top: 46px !important;
        padding-bottom: 18px !important;
    }

    .brand-scroll {
        width: calc(100% - 32px) !important;
        margin-bottom: 50px !important;
        gap: 7px !important;
    }

    .brand-scroll .brand-chip {
        min-height: 35px !important;
        padding: 0 14px !important;
        font-size: 10px !important;
    }
}


/* PETIT MOBILE */
@media (max-width: 380px) {

    .category-header {
        padding-top: 40px !important;
    }

    .brand-scroll {
        width: calc(100% - 28px) !important;
    }
}
