/* ============================================
   MonPC.Store — Personnalisation categories
   themes/classic/assets/css/monpc-overrides.css
   ============================================ */

/* 1. Masquer le titre de categorie dans la zone centrale ("CHARGE", etc.) */
.block-category,
#js-product-list-header .block-category {
    display: none !important;
}

/* 1b. Catégories "sélection" en orange pour les distinguer */
#left-column .block-categories a[href*="notre-selection-pc"],
#left-column .block-categories a[href*="selection-du-jour"],
.monpc-home-sidebar .block-categories a[href*="notre-selection-pc"],
.monpc-home-sidebar .block-categories a[href*="selection-du-jour"] {
    color: #EA580C !important;
    font-weight: 700 !important;
}

#left-column .block-categories a[href*="notre-selection-pc"]:hover,
#left-column .block-categories a[href*="selection-du-jour"]:hover,
.monpc-home-sidebar .block-categories a[href*="notre-selection-pc"]:hover,
.monpc-home-sidebar .block-categories a[href*="selection-du-jour"]:hover {
    color: #F97316 !important;
}

/* 2. Masquer "ACCUEIL" en haut de l'arbre categories a gauche */
#left-column .block-categories > .h6,
#left-column .block-categories > h4,
#left-column .block-categories > h5,
#left-column .block-categories > h6,
#left-column .block-categories > p,
#left-column .block-categories > .title_block,
#left-column .block-categories > .text-uppercase,
#left-column .block-categories > a:first-child {
    display: none !important;
}

/* 3. Categorie active en bleu + gras */
#left-column .block-categories li.current > a,
#left-column .block-categories li.current > div a,
#left-column .block-categories li[class*="current"] > a,
#left-column .block-categories li[class*="current"] > div a,
#left-column .block-categories a.current,
#left-column .block-categories a[class*="current"] {
    color: #29b6d1 !important;
    font-weight: 700 !important;
}

/* 4. Garder les sous-categories de la categorie active deployees */
#left-column .block-categories li.current > ul,
#left-column .block-categories li[class*="current"] > ul {
    display: block !important;
}

/* 5. Hover en bleu */
#left-column .block-categories a:hover {
    color: #29b6d1 !important;
}


/* ============================================
   FICHE PRODUIT — Réorganisation
   ============================================ */

/* 5a. Prix + TTC + éco-participation sur une ligne */
.product-prices .product-price {
    display: inline;
}
.product-prices .current-price {
    display: inline;
}
.product-prices .tax-shipping-delivery-label {
    display: inline;
    font-size: 14px;
    color: #6c757d;
    margin-left: 6px;
    vertical-align: baseline;
}
.product-prices .price-ecotax {
    display: inline;
    font-size: 12px;
    color: #6c757d;
    margin-left: 6px;
    margin-bottom: 0;
}

/* 5b. Onglets pleine largeur sous les 2 colonnes (déplacé par JS) */
.monpc-tabs-full {
    width: 100% !important;
    clear: both;
    margin-top: 24px;
    padding: 0;
}

/* 6. Bloc Specs clés (injecté par monpc-product.js) */
.monpc-specs-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 16px 0;
}

.monpc-specs-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #6c757d;
    margin: 0 0 10px 0;
}

.monpc-specs-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 16px;
    margin: 0;
}

.monpc-specs-grid dt {
    font-size: 13px;
    font-weight: 400;
    color: #6c757d;
    padding: 2px 0;
}

.monpc-specs-grid dd {
    font-size: 13px;
    font-weight: 600;
    color: #232323;
    margin: 0;
    padding: 2px 0;
}

/* 7. Onglets produit — style amélioré */
.tabs .nav-tabs {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 0;
}

.tabs .nav-tabs .nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 20px;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
    background: transparent;
}

.tabs .nav-tabs .nav-link:hover {
    color: #232323;
    border-bottom-color: #adb5bd;
}

.tabs .nav-tabs .nav-link.active,
.tabs .nav-tabs .nav-link.js-product-nav-active {
    color: #24b9d7;
    border-bottom-color: #24b9d7;
}

.tabs .tab-content {
    padding: 20px 0;
}

/* 8. Tableau caractéristiques — zébré et propre */
.monpc-specs-table,
#description .table,
#characteristics .table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 16px 0 0 0;
}

.monpc-specs-table td,
#description .table td,
#characteristics .table td {
    padding: 9px 14px;
    border: none;
    vertical-align: middle;
}

.monpc-specs-table tr:nth-child(even),
#description .table tr:nth-child(even),
#characteristics .table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.monpc-specs-table tr:nth-child(odd),
#description .table tr:nth-child(odd),
#characteristics .table tr:nth-child(odd) {
    background-color: transparent;
}

.monpc-specs-table td:first-child,
#description .table td:first-child,
#characteristics .table td:first-child {
    color: #6c757d;
    font-weight: 400;
    width: 45%;
}

.monpc-specs-table td:first-child strong,
#description .table td:first-child strong,
#characteristics .table td:first-child strong {
    font-weight: 500;
    color: #6c757d;
}

.monpc-specs-table td:last-child,
#description .table td:last-child,
#characteristics .table td:last-child {
    color: #232323;
    font-weight: 500;
}

/* Titre "Informations techniques" */
#description h3,
#characteristics h3 {
    font-size: 16px;
    font-weight: 600;
    color: #232323;
    margin: 0 0 8px 0;
}

/* 9. Description texte — meilleure lisibilité */
#description .product-description {
    font-size: 14px;
    line-height: 1.75;
    color: #444;
}

#description .product-description p {
    margin-bottom: 12px;
}

/* 10. Détails du produit — alignement propre */
#product-details .product-manufacturer,
#product-details .product-reference,
#product-details .product-features {
    font-size: 13px;
    padding: 6px 0;
}

#product-details .label {
    color: #6c757d;
    font-weight: 400;
    min-width: 120px;
    display: inline-block;
}

/* 11. Footer copyright centré */
.footer-container .footer-copyright,
footer .footer-copyright,
.footer-container [class*="copyright"],
footer [class*="copyright"] {
    text-align: center !important;
}

/* 12. Grille produits : 4 par ligne sur écrans larges */
@media (min-width: 1200px) {
    #js-product-list .products .col-lg-4,
    #js-product-list .products .col-xl-4 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* 13. Responsive mobile */
@media (max-width: 768px) {
    .monpc-specs-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2px 12px;
    }

    .tabs .nav-tabs .nav-link {
        font-size: 12px;
        padding: 8px 12px;
    }

    .monpc-specs-table td,
    #description .table td,
    #characteristics .table td {
        padding: 7px 10px;
        font-size: 12px;
    }
}


/* ============================================
   BANDEAU RÉASSURANCE (toutes pages)
   ============================================ */

.monpc-reassurance {
    background-color: #F1F5F9;
    width: 100%;
    border-bottom: 1px solid #E2E8F0;
}

.monpc-reassurance__inner {
    max-width: 1260px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 30px !important;
    gap: 10px;
}

.monpc-reassurance__item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.monpc-reassurance__icon {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
}

.monpc-reassurance__text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.monpc-reassurance__text strong {
    font-family: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 12px !important;
    font-weight: 600;
    color: #0F172A;
}

.monpc-reassurance__text span {
    font-family: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 10px !important;
    font-weight: 400;
    color: #64748B;
}

@media (max-width: 992px) {
    .monpc-reassurance__inner {
        flex-wrap: wrap;
        justify-content: center;
    }
    .monpc-reassurance__item {
        flex: 0 0 45%;
        padding: 8px 0;
    }
}

@media (max-width: 576px) {
    .monpc-reassurance__inner {
        padding: 8px 10px;
        gap: 2px;
        justify-content: space-around;
        flex-wrap: nowrap !important;
    }
    .monpc-reassurance__item {
        flex: 1 1 0%;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 0;
        min-width: 0;
    }
    .monpc-reassurance__icon {
        width: 16px;
        height: 16px;
    }
    .monpc-reassurance__text {
        align-items: center;
    }
    .monpc-reassurance__text strong {
        font-size: 9px;
        text-align: center;
    }
    .monpc-reassurance__text span {
        display: none;
    }
}
