
.hcp-category-page,
.hcp-category-page *{
    box-sizing:border-box
}
.hcp-category-page{
    width:100%;
    overflow-x:clip;
    color:var(--hcp-text);
    background:var(--hcp-white);
    font-family:var(--hcp-font),-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    --e-global-color-primary:var(--hcp-navy);
    --e-global-color-secondary:var(--hcp-navy-2);
    --e-global-color-text:var(--hcp-text);
    --e-global-color-accent:var(--hcp-lime)
}
.hcp-shell{
    width:min(calc(100% - 48px),var(--hcp-max));
    margin-inline:auto
}
.hcp-breadcrumb-shell{
    padding:17px 0;
    background:var(--hcp-white);
    border-bottom:1px solid var(--hcp-line)
}
.hcp-breadcrumb-shell .woocommerce-breadcrumb{
    margin:0;
    color:var(--hcp-muted);
    font-size:12px
}
.hcp-breadcrumb-shell .woocommerce-breadcrumb a{
    color:var(--hcp-text);
    text-decoration:none
}
.hcp-category-hero{
    padding:72px 0;
    background:
        radial-gradient(circle at 82% 18%,color-mix(in srgb,var(--hcp-cat-accent) 18%,transparent),transparent 31%),
        var(--hcp-cat-hero)
}
.hcp-category-hero-grid{
    display:grid;
    grid-template-columns:minmax(0,1.2fr) minmax(330px,.8fr);
    align-items:center;
    gap:58px
}
.hcp-eyebrow{
    display:block;
    margin:0 0 14px;
    color:var(--hcp-gold);
    font-size:11px;
    font-weight:800;
    letter-spacing:.16em;
    text-transform:uppercase
}
.hcp-category-copy h1{
    max-width:800px;
    margin:0 0 22px;
    color:var(--hcp-text);
    font-size:clamp(44px,5.4vw,78px);
    font-weight:800;
    line-height:.97;
    letter-spacing:-.05em;
    text-transform:uppercase
}
.hcp-category-intro{
    max-width:760px;
    color:var(--hcp-muted);
    font-size:17px;
    line-height:1.72
}
.hcp-category-intro p:last-child{
    margin-bottom:0
}
.hcp-category-summary{
    margin-top:25px;
    display:flex;
    flex-wrap:wrap;
    gap:9px
}
.hcp-category-summary span{
    padding:9px 13px;
    color:var(--hcp-text);
    background:var(--hcp-white);
    border:1px solid var(--hcp-line);
    border-radius:999px;
    font-size:11px;
    font-weight:800
}
.hcp-category-image-wrap{
    min-height:370px;
    display:grid;
    place-items:center;
    overflow:hidden;
    background:var(--hcp-white);
    border:1px solid var(--hcp-line);
    border-radius:var(--hcp-hero-radius);
    box-shadow:0 24px 58px rgba(3,17,31,.1)
}
.hcp-category-image{
    width:100%;
    height:100%;
    max-height:470px;
    object-fit:var(--hcp-cat-fit)
}
.hcp-category-placeholder{
    width:78%;
    aspect-ratio:4/5;
    padding:28px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    color:var(--hcp-white);
    background:var(--hcp-navy);
    border-radius:18px
}
.hcp-category-placeholder span{
    color:var(--hcp-cat-accent);
    font-size:13px;
    font-weight:800;
    letter-spacing:.18em
}
.hcp-category-placeholder strong{
    font-size:34px;
    line-height:1.05;
    text-transform:uppercase
}
.hcp-trust{
    padding:24px 0;
    background:var(--hcp-white);
    border-top:1px solid var(--hcp-line);
    border-bottom:1px solid var(--hcp-line)
}
.hcp-trust-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px
}
.hcp-trust article{
    min-width:0;
    padding:18px;
    display:flex;
    align-items:center;
    gap:14px;
    background:var(--hcp-white);
    border:1px solid var(--hcp-line);
    border-radius:14px
}
.hcp-trust-icon{
    width:42px;
    height:42px;
    flex:0 0 42px;
    display:grid;
    place-items:center;
    color:var(--hcp-navy);
    background:var(--hcp-lime);
    border-radius:12px;
    font-weight:800
}
.hcp-trust article div{
    min-width:0
}
.hcp-trust strong,
.hcp-trust small{
    display:block
}
.hcp-trust strong{
    color:var(--hcp-text);
    font-size:13px
}
.hcp-trust small{
    margin-top:3px;
    color:var(--hcp-muted);
    font-size:11px;
    line-height:1.45
}
.hcp-products-section{
    padding:82px 0 96px;
    background:var(--hcp-white)
}
.hcp-products-head{
    max-width:820px;
    margin:0 auto 44px;
    text-align:center
}
.hcp-products-head h2{
    margin:8px 0 14px;
    color:var(--hcp-text);
    font-size:clamp(34px,4vw,54px);
    font-weight:800;
    line-height:1;
    letter-spacing:-.04em;
    text-transform:uppercase
}
.hcp-products-head p{
    margin:0;
    color:var(--hcp-muted);
    font-size:15px;
    line-height:1.65
}
.hcp-products-toolbar{
    margin-bottom:24px;
    padding:14px 16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    background:var(--hcp-cream);
    border:1px solid var(--hcp-line);
    border-radius:13px
}
.hcp-products-toolbar .woocommerce-result-count{
    margin:0;
    color:var(--hcp-muted);
    font-size:12px
}
.hcp-products-toolbar .woocommerce-ordering{
    margin:0
}
.hcp-products-toolbar select{
    min-height:42px;
    color:var(--hcp-text);
    background:var(--hcp-white);
    border:1px solid var(--hcp-line);
    border-radius:9px
}

.hcp-products-grid{
    display:grid;
    grid-template-columns:repeat(var(--hcp-cols-desktop),minmax(0,1fr));
    gap:24px
}
.hcp-product-card{
    min-width:0;
    position:relative;
    padding:12px;
    display:flex;
    flex-direction:column;
    gap:14px;
    background:var(--hcp-white);
    border:1px solid var(--hcp-line);
    border-radius:var(--hcp-card-radius);
    box-shadow:0 12px 36px rgba(3,17,31,.055);
    transition:transform .22s ease,box-shadow .22s ease
}
.hcp-product-card:hover{
    transform:translateY(-4px);
    box-shadow:0 18px 42px rgba(3,17,31,.1)
}
.hcp-product-chip{
    position:absolute;
    z-index:2;
    top:12px;
    left:12px;
    max-width:calc(100% - 24px);
    padding:7px 11px;
    color:var(--hcp-navy);
    background:color-mix(in srgb,var(--hcp-cat-accent) 70%, white);
    border:1px solid color-mix(in srgb,var(--hcp-cat-accent) 92%, black 8%);
    border-radius:999px;
    font-size:10px;
    font-weight:800;
    line-height:1;
    letter-spacing:.08em;
    text-transform:uppercase;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis
}
.hcp-product-image-link{
    display:block;
    color:inherit;
    text-decoration:none
}
.hcp-product-image-wrap{
    width:100%;
    overflow:hidden;
    border-radius:calc(var(--hcp-card-radius) - 6px);
    background:var(--hcp-cream);
    aspect-ratio:4/5
}
.hcp-product-image{
    width:100%;
    height:100%;
    display:block;
    object-fit:contain;
    background:var(--hcp-cream)
}
.hcp-product-image-fallback{
    width:100%;
    height:100%;
    padding:18px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    color:var(--hcp-white);
    background:linear-gradient(180deg,var(--hcp-navy),var(--hcp-navy-2))
}
.hcp-product-image-fallback span{
    display:inline-flex;
    width:max-content;
    padding:7px 10px;
    color:var(--hcp-navy);
    background:var(--hcp-cat-accent);
    border-radius:999px;
    font-size:10px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase
}
.hcp-product-image-fallback strong{
    font-size:24px;
    line-height:1.02;
    text-transform:uppercase
}
.hcp-product-content{
    display:flex;
    flex:1;
    flex-direction:column;
    gap:12px
}
.hcp-product-title{
    margin:0;
    color:var(--hcp-text);
    font-size:18px;
    font-weight:800;
    line-height:1.28
}
.hcp-product-title a{
    color:inherit;
    text-decoration:none
}
.hcp-product-price{
    color:var(--hcp-text);
    font-size:18px;
    font-weight:800
}
.hcp-product-price del{
    color:var(--hcp-muted)
}
.hcp-product-actions{
    margin-top:auto
}
.hcp-product-button{
    width:100%;
    min-height:44px;
    padding:12px 16px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:var(--hcp-navy)!important;
    background:var(--hcp-lime)!important;
    border:1px solid var(--hcp-lime)!important;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
    text-decoration:none!important;
    line-height:1.2;
    transition:all .18s ease
}
.hcp-product-button:hover{
    color:var(--hcp-white)!important;
    background:var(--hcp-navy)!important;
    border-color:var(--hcp-navy)!important
}
.hcp-empty{
    padding:48px 24px;
    text-align:center;
    background:var(--hcp-cream);
    border:1px solid var(--hcp-line);
    border-radius:16px
}
@media(max-width:1020px){
    .hcp-products-grid{
        grid-template-columns:repeat(var(--hcp-cols-tablet),minmax(0,1fr));
    }
    .hcp-category-hero-grid{
        grid-template-columns:1fr;
        gap:34px
    }
    .hcp-category-image-wrap{
        min-height:310px
    }
    .hcp-trust-grid{
        grid-template-columns:1fr
    }
}
@media(max-width:680px){
    .hcp-shell{
        width:min(calc(100% - 24px),var(--hcp-max))
    }
    .hcp-category-hero{
        padding:42px 0
    }
    .hcp-category-copy h1{
        font-size:38px
    }
    .hcp-category-intro{
        font-size:15px
    }
    .hcp-category-image-wrap{
        min-height:250px
    }
    .hcp-products-section{
        padding:58px 0 72px
    }
    .hcp-products-toolbar{
        align-items:stretch;
        flex-direction:column
    }
    .hcp-products-toolbar select{
        width:100%
    }
    .hcp-products-grid{
        grid-template-columns:repeat(var(--hcp-cols-mobile),minmax(0,1fr));
        gap:16px
    }
    .hcp-product-title{
        font-size:16px
    }
}


/* ==========================================================
   1.0.3 — PDF WooCommerce direct + chips plus visibles
   ========================================================== */

.hcp-product-chip{
    top:16px !important;
    left:16px !important;
    max-width:calc(100% - 32px) !important;
    padding:8px 12px !important;
    color:#03111f !important;
    background:var(--hcp-cat-accent) !important;
    border:1px solid rgba(3,17,31,.24) !important;
    box-shadow:0 4px 12px rgba(3,17,31,.16) !important;
    font-size:10px !important;
    font-weight:800 !important;
    letter-spacing:.07em !important;
}

.hcp-product-image-wrap{
    padding:22px !important;
    display:grid !important;
    place-items:center !important;
    background:
        linear-gradient(180deg,rgba(255,255,255,.78),rgba(244,238,227,.92)),
        var(--hcp-cream) !important;
}

.hcp-product-image{
    width:auto !important;
    max-width:100% !important;
    height:auto !important;
    max-height:100% !important;
    object-fit:contain !important;
    background:#fff !important;
    border-radius:6px !important;
    box-shadow:0 10px 28px rgba(3,17,31,.13) !important;
}

@media(max-width:680px){
    .hcp-product-chip{
        top:13px !important;
        left:13px !important;
        max-width:calc(100% - 26px) !important;
    }

    .hcp-product-image-wrap{
        padding:16px !important;
    }
}


/* ==========================================================
   1.0.4 — Pagination boutique + images PDF dynamiques
   ========================================================== */

.hcp-pagination{
    margin-top:38px !important;
}

.hcp-pagination ul.page-numbers{
    margin:0 !important;
    padding:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    border:0 !important;
    list-style:none !important;
}

.hcp-pagination ul.page-numbers li{
    margin:0 !important;
    padding:0 !important;
    float:none !important;
    border:0 !important;
}

.hcp-pagination .page-numbers a,
.hcp-pagination .page-numbers span{
    width:42px !important;
    min-width:42px !important;
    height:42px !important;
    padding:0 !important;
    display:grid !important;
    place-items:center !important;
    color:var(--hcp-text) !important;
    background:#fff !important;
    border:1px solid var(--hcp-line) !important;
    border-radius:50% !important;
    box-shadow:0 6px 16px rgba(3,17,31,.05) !important;
    font-size:12px !important;
    font-weight:800 !important;
    text-decoration:none !important;
    transition:all .18s ease !important;
}

.hcp-pagination .page-numbers .current,
.hcp-pagination .page-numbers a:hover{
    color:var(--hcp-navy) !important;
    background:var(--hcp-lime) !important;
    border-color:var(--hcp-lime) !important;
    transform:translateY(-1px);
}

.hcp-product-image[data-hpd-pdf-preview]{
    opacity:.78;
    transition:opacity .25s ease;
}

.hcp-product-image.hpd-pdf-preview-ready{
    opacity:1;
}


/* ==========================================================
   1.0.5 — Pagination strictement identique à la boutique
   ========================================================== */

.hcp-category-page .hcp-pagination{
    width:100% !important;
    margin:42px 0 0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}

.hcp-category-page .hcp-pagination-nav{
    display:block !important;
    width:auto !important;
    margin:0 auto !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
}

.hcp-category-page .hcp-pagination-nav > ul{
    margin:0 !important;
    padding:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex-wrap:wrap !important;
    gap:9px !important;
    border:0 !important;
    background:transparent !important;
    list-style:none !important;
}

.hcp-category-page .hcp-pagination-nav > ul > li{
    width:auto !important;
    height:auto !important;
    margin:0 !important;
    padding:0 !important;
    display:block !important;
    float:none !important;
    border:0 !important;
    background:transparent !important;
    list-style:none !important;
}

.hcp-category-page .hcp-pagination-nav .page-numbers{
    width:48px !important;
    min-width:48px !important;
    max-width:48px !important;
    height:48px !important;
    min-height:48px !important;
    max-height:48px !important;
    margin:0 !important;
    padding:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    float:none !important;
    color:var(--hcp-text) !important;
    background:#ffffff !important;
    border:1px solid var(--hcp-line) !important;
    border-radius:999px !important;
    box-shadow:0 7px 18px rgba(3,17,31,.06) !important;
    font-family:var(--hcp-font),Inter,sans-serif !important;
    font-size:13px !important;
    font-weight:800 !important;
    line-height:1 !important;
    text-align:center !important;
    text-decoration:none !important;
    transition:
        background-color .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease,
        box-shadow .18s ease !important;
}

.hcp-category-page .hcp-pagination-nav a.page-numbers:hover,
.hcp-category-page .hcp-pagination-nav a.page-numbers:focus-visible,
.hcp-category-page .hcp-pagination-nav .page-numbers.current{
    color:var(--hcp-navy) !important;
    background:var(--hcp-lime) !important;
    border-color:var(--hcp-lime) !important;
    box-shadow:0 9px 22px rgba(3,17,31,.1) !important;
    transform:translateY(-1px) !important;
    outline:none !important;
}

.hcp-category-page .hcp-pagination-nav .page-numbers.dots{
    color:var(--hcp-muted) !important;
    background:transparent !important;
    border-color:transparent !important;
    box-shadow:none !important;
}

.hcp-category-page .hcp-pagination-nav .page-numbers.prev,
.hcp-category-page .hcp-pagination-nav .page-numbers.next{
    font-size:17px !important;
}

@media(max-width:680px){
    .hcp-category-page .hcp-pagination{
        margin-top:32px !important;
    }

    .hcp-category-page .hcp-pagination-nav > ul{
        gap:7px !important;
    }

    .hcp-category-page .hcp-pagination-nav .page-numbers{
        width:44px !important;
        min-width:44px !important;
        max-width:44px !important;
        height:44px !important;
        min-height:44px !important;
        max-height:44px !important;
        font-size:12px !important;
    }
}
