/* ===== RESET propres (on n’éteint rien de critique) ===== */
.price-excluding-tax::after,
.price-including-tax::after { content: none !important; }

/* Porto met "HT:" / "TTC:" avec ::before -> on les coupe où il faut */
.catalog-category-view .product-item .price-box .minimal-price .price-container .price-including-tax::before,
.catalog-category-view .product-item .price-box .minimal-price .price-container .price-excluding-tax::before {
    content: none !important;
}

/* ====== Composant prix commun (PDP + comparatif) ====== */
.ew-pricebox{
    display:flex; flex-direction:column; align-items:center; gap:6px; line-height:1.15;
}
.ew-pricebox .price-old{
    color:#ff7a00; text-decoration:line-through; font-size:.9rem;
}
.ew-pricebox .price-old .price{ color:#ff7a00 !important; }
.ew-pricebox .price-highlight{
    font-size:1.18rem; font-weight:800; color:#1f2937;
    display:flex; align-items:center; gap:.35rem;
}
.ew-pricebox .price-ttc{
    font-size:.82rem; font-weight:400; color:#6b7280;   /* TTC plus petit et non gras */
    display:flex; align-items:center; gap:.35rem;
}
/* Suffixes HT / TTC pour les blocs prix rendus dans .ew-pricebox */
.ew-pricebox .price-excluding-tax::after{ content:" HT"; font-size:.7rem; font-weight:600; }
.ew-pricebox .price-including-tax::after{ content:" TTC"; font-size:.7rem; font-weight:600; }

/* Badge -% : masqué partout, visible seulement dans la table comparatif */
.ew-pricebox .discount-badge{ display:none; background:#ff9b17; color:#fff; padding:4px 10px; border-radius:9999px; font-size:.8rem; font-weight:700; }
.ew-compare .ew-pricebox .discount-badge{ display:inline-block !important; }

/* Léger ajustement dans la table comparatif */
.ew-compare .price-cell .ew-pricebox .price-highlight{ font-size:1.1rem; }
.ew-compare .price-cell .ew-pricebox .price-ttc{ font-size:.85rem; }

/* ====== LISTING CATÉGORIE (bloc minimal-price de Porto) ====== */
/* Retire les préfixes "HT:" / "TTC:" générés par Porto */
.catalog-category-view .product-item .price-box .minimal-price .price-container .price-including-tax::before,
.catalog-category-view .product-item .price-box .minimal-price .price-container .price-excluding-tax::before{ content:none !important; }

/* Affiche les deux lignes : HT (principale) + TTC (petite et non grasse) */
.catalog-category-view .product-item .price-box .minimal-price .price-container .price-excluding-tax{
    display:block !important; font-size:1rem; font-weight:700; color:#1f2937;
}
.catalog-category-view .product-item .price-box .minimal-price .price-container .price-including-tax{
    display:block !important; font-size:.85rem; font-weight:400; color:#6b7280; margin-top:2px;
}
/* Suffixes pour le listing */
.catalog-category-view .product-item .price-box .minimal-price .price-excluding-tax .price::after{
    content:" HT"; font-size:.65rem; font-weight:600; margin-left:3px;
}
.catalog-category-view .product-item .price-box .minimal-price .price-including-tax .price::after{
    content:" TTC"; font-size:.65rem; font-weight:600; margin-left:3px;
}
/* Libellé "à partir de" + ancien prix orange en listing */
.catalog-category-view .product-item .price-box .minimal-price .price-label{
    display:block; font-size:.8rem; color:#6b7280; margin-bottom:2px;
}
.catalog-category-view .product-item .price-box .old-price .price{
    color:#ff7a00 !important; text-decoration:line-through; font-size:.9rem; font-weight:600;
}

.box-tocart .action.tocart {
    background:#02B1AE;
}
#product-addtoquote-button{
    background:none;
}
#product-addtoquote-button:hover{
    background:none;
}

.product-info-main .stock span + span {
    color: green;
}
.product-info-main .product-info-stock-sku {
    font-size: 1em;
}
@media (max-width: 992px) {
    .logo img {
        width: 140px;
        max-width: none;
        max-height: none;
    }
}
/* TABLE PRODDUITS GROUPES */
.ew-compare *{box-sizing:border-box}
.ew-compare .container{max-width:1400px;margin:0 auto; padding: 0}
.ew-compare .comparison-table{background:#fff;overflow:hidden;border:1px solid #e5e7eb;border-radius:8px}
.ew-compare .table-header{background:linear-gradient(135deg,#02B1AE 0%,#028a87 100%);color:#fff;padding:1rem;text-align:center}
.ew-compare .table-container{}

/* Table */
.ew-compare table.comparison-table-element{width:100% !important;border-collapse:collapse !important;table-layout:auto}
.ew-compare thead th{background:#02B1AE !important;color:#fff !important;padding:1rem !important;font-weight:700 !important;text-align:center !important;font-size:.9rem !important;border-bottom:2px solid #e5e7eb !important;border-right:1px solid #e5e7eb !important}
.ew-compare tbody td,
.ew-compare tbody th{padding:1rem !important;border-bottom:1px solid #e5e7eb !important;border-right:1px solid #e5e7eb !important;text-align:center !important;font-size:.9rem !important;vertical-align:middle}
.ew-compare tbody tr:hover{background:#f0fdfc}
.ew-compare tbody th{background:#f8fafc !important;font-weight:600 !important;color:#1f2937 !important;text-align:left !important}

/* Centres et blocs internes */
.ew-compare .price-cell{text-align:center !important}
.ew-compare .price-cell .price-box{display:inline-block !important}
.ew-compare .delivery-cell{text-align:center !important}
.ew-compare .delivery-price{font-weight:700;color:#1f2937;font-size:.85rem}
.ew-compare .delivery-ttc{font-size:.75rem;color:#6b7280}

/* Bouton */
.ew-compare .btn-compare{background:#02B1AE;color:#fff;border:none;padding:.55rem .9rem;border-radius:6px;font-size:.85rem;font-weight:700;cursor:pointer;transition:all .3s;width:100%}
.ew-compare .btn-compare:hover{background:#028a87;transform:translateY(-1px)}

/* Scroll helper */
.ew-compare .scroll-indicator{display:none;text-align:center;padding:.75rem;background:#f3f4f6;font-size:.85rem;color:#6b7280;border-top:1px solid #e5e7eb}
@keyframes ew-pulse{0%,100%{opacity:1}50%{opacity:.7}}

/* Responsive (on force le scroll horizontal) */
@media (max-width:1024px){
    .ew-compare .table-container{overflow-x:auto;-webkit-overflow-scrolling:touch}
    .ew-compare .comparison-table-element{min-width:1100px}
    .ew-compare thead th,
    .ew-compare tbody td,
    .ew-compare tbody th{padding:.7rem .4rem;font-size:.8rem;white-space:nowrap}
    .ew-compare tbody th{position:sticky;left:0;z-index:10;border-right:2px solid #e5e7eb;background:#f8fafc;min-width:160px}
    .ew-compare .btn-compare{white-space:nowrap}
    .ew-compare .scroll-indicator{display:block;animation:ew-pulse 2s infinite}
}
@media (max-width:768px){
    .ew-compare .comparison-table-element{min-width:1000px}
    .ew-compare thead th,
    .ew-compare tbody td,
    .ew-compare tbody th{padding:.6rem .3rem;font-size:.75rem}
    .ew-compare tbody th{min-width:140px}
}
@media (max-width:480px){
    .ew-compare .comparison-table-element{min-width:960px}
    .ew-compare thead th,
    .ew-compare tbody td,
    .ew-compare tbody th{padding:.5rem .25rem;font-size:.7rem;line-height:1.15;min-height:52px}
    .ew-compare tbody th{min-width:100px}
    .ew-compare .delivery-price{font-size:.78rem}
    .ew-compare .delivery-ttc{font-size:.68rem}
    .ew-compare td:nth-child(n+2),
    .ew-compare th:nth-child(n+2) {
        white-space: normal !important;
        word-break: break-word;
    }
    .ew-compare .comparison-table-element {
        min-width: 820px;
    }
}

/* Rendre la cellule en haut à gauche fixe */
.ew-compare thead th:first-child {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 20; /* plus haut que les autres */
    background: #02B1AE !important; /* même fond que les autres th */
}

/* masque qty natifs */
.qty-buttons-wrapper{display:none}

/* BLOC LIVRAISON FICHE PRODUIT */
.product-type-default .catalog-product-view .product-info-price{
    display:grid; grid-template-columns:1fr; gap:18px; align-items:start;
}
@media (min-width:992px){
    .catalog-product-view .product-info-price{ grid-template-columns:1fr 300px; }
}

.ew-shipcard{
    background:#fff;
    border:2px solid #d1d5db;
    border-radius:12px;
    padding:20px;
    line-height:1.35;
    font-size:1rem;
    font-weight:600;
    width: 300px;
    height: 170px;
}

.ew-shipcard__head{display:flex; gap:15px; margin-bottom:15px; font-size:1rem}
.ew-shipcard__icon i{font-size:26px; color:#10b2a7;}  /* icône seule, pas de fond */

.ew-shipcard__eta{
    display:inline-block;
    color:#10b2a7;
}
.ew-shipcard__note{
    font-size:.70rem; color:#6b7280;
}

.ew-shipcard__price {text-align: center;margin-top:15px}

/* BLOC PAIEMENT FICHE PRODUIT */
.paiement-facile {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
}

.product-type-default .paiement-facile{
    position: absolute;
    zoom: 90%;
    margin: 120px 0 0 20px;
}

.paiement-facile img {
    width: 40px;
    height: 40px;
}

.paiement-texte span {
    display: block;
    line-height: 0.7;
}

.paiement-texte a {
    color: #666;
    text-decoration: none;
    font-weight: 400;
}

.paiement-texte a:hover {
    text-decoration: underline;
}

.product-type-default .btn-choose-model {
    display: none;
}

/* BOUTON CHOISIR FICHE PRODUIT GROUPES */
.btn-choose-model {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 1px solid #00bcd4;
    padding-bottom: 2px;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.btn-choose-model::after {
    content: "↓";
    color: #00bcd4;
    font-size: 16px;
}

.btn-choose-model:hover {
    color: #00bcd4;
}

/* DISCOUNT BADGE */
.product-discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff9b17;
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    padding: 6px 10px;
    z-index: 9;
    text-align: center;
}
