/* Souss Marep - ElectroPlus-style PRODUCT page */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;600;700;800&display=swap');

/* ---- breadcrumb banner (separates header from product) ---- */
.smh-pbread {
    background: #f6f7f9; border-bottom: 1px solid #ececee; margin-bottom: 14px;
    /* full-bleed: span the whole viewport width whatever the parent container is */
    margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
}
.smh-pbread-in { max-width: 1440px; margin: 0 auto; padding: 26px 20px; }
.smh-pbread ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; font-size: 13px; }
.smh-pbread li { display: inline-flex; align-items: center; color: #9aa0a8; }
.smh-pbread li:not(:last-child)::after { content: "|"; margin: 0 12px; color: #cdd2d7; }
.smh-pbread li a { color: #8b9098; text-decoration: none; transition: color .15s; }
.smh-pbread li a:hover { color: #16181d; }
.smh-pbread li.cur span { color: #16181d; font-weight: 700; }
@media (max-width: 767px) {
    .smh-pbread-in { padding: 10px 15px; }
    .smh-pbread ol { font-size: 12px; }
    .smh-pbread li:not(:last-child)::after { margin: 0 7px; }
}

/* ---- image zoom (lens + side preview), ElectroBousfiha style ---- */
.col-product-image { position: relative; }
.smh-zoom-host .product-cover { position: relative; }
.smh-zoom-lens {
    position: absolute; pointer-events: none; z-index: 45; cursor: crosshair;
    border: 1px solid rgba(0,0,0,.3); background: rgba(120,170,255,.18);
    box-shadow: 0 0 0 1px rgba(255,255,255,.6) inset;
}
.smh-zoom-pane {
    position: absolute; top: 0; left: 100%; margin-left: 22px;
    width: 480px; height: 540px; max-width: 46vw;
    background-color: #fff; background-repeat: no-repeat;
    border: 1px solid #e4e7ea; border-radius: 14px; overflow: hidden;
    box-shadow: 0 20px 55px rgba(0,0,0,.20); z-index: 60; pointer-events: none;
}
@media (max-width: 1199px) { .smh-zoom-pane { width: 380px; height: 440px; } }

#main .product-container, #main .product-container * { font-family: "Noto Sans", -apple-system, Segoe UI, Roboto, sans-serif; }
#main .product-container .fa, #main .product-container [class^="fa-"], #main .product-container [class*=" fa-"] { font-family: "FontAwesome" !important; }
#main { max-width: 1440px; margin: 0 auto; }
.product-info-row { padding-top: 16px; }

/* ---- columns 50 / 50 ---- */
.col-product-image { padding-right: 34px; }
.col-product-image .product-cover img,
.col-product-image img.js-qv-product-cover { border-radius: 14px; background: #fff; }

/* ---- left: description + spec tiles ---- */
.ep-left-desc { font-size: 15px; line-height: 1.65; color: #43484f; margin: 26px 0 22px; }
.ep-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 10px; }
.ep-tile { background: #f5f6f7; border-radius: 12px; padding: 18px 10px; text-align: center; }
.ep-tile b { display: block; font-size: 17px; font-weight: 800; color: #16181d; line-height: 1.15; margin-bottom: 4px; word-break: break-word; }
.ep-tile span { font-size: 11.5px; color: #8b9098; }

/* ---- right: title / ref / price ---- */
.product-container .page-title { font-size: 24px; font-weight: 800; line-height: 1.28; letter-spacing: -.3px; color: #16181d; margin-bottom: 10px; }
.ep-ref { font-size: 13px; color: #9aa0a8; margin: 4px 0 12px; }
.product-container .product_p_price_container { margin: 6px 0 14px; }
.product-container .product-prices .current-price span,
.product-container .current-price span,
.product-container .price { font-size: 30px !important; font-weight: 800 !important; color: #16181d !important; }
.product-container .product-prices .regular-price { font-size: 15px; color: #9aa0a8; text-decoration: line-through; margin-left: 8px; }
.product-container .product-prices .discount { display: inline-block; background: #1f6feb; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 5px; margin-left: 8px; }

/* ---- stock + views row ---- */
.ep-stockrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 18px; flex-wrap: wrap; }
.ep-instock { background: #d6f0df; color: #1a7a43; font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 20px; }
.ep-oos { background: #f1e2d6; color: #9a5a1a; font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 20px; }
.ep-views { font-size: 12.5px; color: #6b7178; background: #f4f5f6; padding: 5px 12px; border-radius: 20px; }

/* ---- buy bar: qty + add to cart + whatsapp (compact, left-aligned) ---- */
.ep-buybar { display: flex; gap: 12px; align-items: stretch; justify-content: flex-start; flex-wrap: wrap; margin: 8px 0 22px; }
.ep-cartform { flex: 0 0 auto; }
.ep-cartform .product-quantity { display: flex; gap: 12px; align-items: stretch; margin: 0; }
.ep-cartform .product-quantity .qty { flex: 0 0 72px; }
.ep-cartform .product-quantity .qty .bootstrap-touchspin,
.ep-cartform .product-quantity .qty .input-group,
.ep-cartform input.form-control { border-radius: 10px !important; border: 1.6px solid #e4e7ea !important; height: 52px !important; text-align: center; }
.ep-cartform .product-quantity .add { flex: 0 0 auto; }
.product-container .ep-buybar .add-to-cart,
.product-container .ep-cartform .add-to-cart,
.product-container .add-to-cart.btn-primary,
.product-container button.add-to-cart {
    background: #111418 !important; background-color: #111418 !important; border: none !important; border-radius: 10px !important;
    height: 52px; width: auto; min-width: 190px; padding: 0 24px; font-weight: 700 !important; font-size: 15px !important; letter-spacing: .2px;
    text-transform: none !important; transition: background .2s; color: #fff !important; white-space: nowrap;
}
.product-container .ep-buybar .add-to-cart:hover { background: #000 !important; background-color: #000 !important; }
/* icon + texte alignés verticalement (comme le bouton WhatsApp) + icône panier */
.product-container .ep-buybar .add-to-cart,
.product-container .ep-cartform .add-to-cart,
.product-container button.add-to-cart {
    display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 9px;
}
.product-container .ep-buybar .add-to-cart .bag-icon::before { content: none !important; }
.product-container .ep-buybar .add-to-cart .bag-icon {
    width: 21px; height: 21px; margin: 0; font-size: 0; line-height: 0;
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='20' r='1.4'/><circle cx='18' cy='20' r='1.4'/><path d='M2 3h2.2l2.2 11.5a1.2 1.2 0 0 0 1.2 1h9.1a1.2 1.2 0 0 0 1.2-.9L19.6 7H5'/></svg>") center/contain no-repeat;
}
.product-container .ep-buybar .add-to-cart .spinner-icon { margin: 0; }
/* forcer les 2 boutons EXACTEMENT à la même hauteur + centrés */
.product-container .ep-buybar { align-items: center !important; }
.product-container .ep-buybar .add-to-cart,
.product-container .ep-buybar .ep-wa,
.product-container .ep-cartform .product-quantity,
.product-container .ep-cartform .product-quantity .qty,
.product-container .ep-cartform .product-quantity .qty .input-group,
.product-container .ep-cartform .product-quantity .qty .bootstrap-touchspin {
    height: 52px !important; min-height: 52px !important; box-sizing: border-box !important;
}
.product-container .ep-buybar .add-to-cart,
.product-container .ep-buybar .ep-wa {
    display: inline-flex !important; align-items: center !important; justify-content: center !important; line-height: 1 !important;
}
.ep-wa { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: #25d366; color: #fff !important; font-weight: 700; font-size: 15px; height: 52px; min-width: 240px; border-radius: 10px; margin: 0; transition: background .2s; white-space: nowrap; padding: 0 24px; }
.ep-wa:hover { background: #1fb457; color: #fff; }
.ep-wa svg { width: 20px; height: 20px; flex: 0 0 auto; }
/* minimal-qty note on its own line */
.product-container .product-minimal-quantity { margin-top: 8px; font-size: 12.5px; color: #8b9098; }

/* ---- reassurance (2-line, electroplus) ---- */
.ep-reassure { display: flex; gap: 22px; margin: 4px 0 20px; flex-wrap: wrap; }
.ep-reassure-item { flex: 1 1 26%; display: flex; align-items: center; gap: 11px; }
.ep-reassure-item svg { color: #43484f; flex: 0 0 auto; }
.ep-r-txt { display: flex; flex-direction: column; line-height: 1.25; }
.ep-r-top { font-size: 11.5px; color: #9aa0a8; }
.ep-r-main { font-size: 13.5px; color: #16181d; font-weight: 700; }

/* ---- financement ---- */
.ep-finbox { background: #e7f1ea; border-radius: 12px; padding: 15px 18px; margin: 6px 0 18px; display: flex; align-items: center; gap: 12px; }
.ep-finbox svg { flex: 0 0 auto; color: #123524; }
.ep-finbox b { color: #123524; display: block; font-size: 14px; }
.ep-finbox span { color: #2f5240; font-size: 13px; }
.ep-finbox a { color: #123524; font-weight: 700; text-decoration: underline; }

/* ---- specifications accordion ---- */
.ep-specs { max-width: 1440px; margin: 34px auto 46px; padding: 0 4px; }
.ep-spec-block { border-top: 1px solid #ececec; border-bottom: 1px solid #ececec; }
.ep-spec-head { width: 100%; background: none; border: none; text-align: left; font-size: 22px; font-weight: 800; color: #16181d; padding: 20px 4px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; letter-spacing: -.3px; }
.ep-spec-caret { transition: transform .25s; font-size: 16px; color: #9aa0a8; }
.ep-spec-block:not(.ep-open) .ep-spec-caret { transform: rotate(180deg); }
.ep-spec-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px; padding: 0 4px 22px; }
.ep-spec-block:not(.ep-open) .ep-spec-body { display: none; }
.ep-spec-row { padding: 14px 0; border-top: 1px solid #f1f1f1; }
.ep-spec-name { display: block; font-weight: 700; font-size: 14px; color: #16181d; margin-bottom: 3px; }
.ep-spec-val { display: block; font-size: 14px; color: #6b7178; }

/* ---- footer hook: pfooter wrapper (specs + related) ---- */
.smh-pfooter { max-width: 1440px; margin: 18px auto 0; padding: 0 10px; font-family: "Noto Sans", -apple-system, Segoe UI, Roboto, sans-serif; }
.smh-pfooter h2 { font-size: 23px; font-weight: 800; letter-spacing: -.3px; color: #16181d; margin: 0; }
.smh-pfooter .smh-sec-head { display: flex; justify-content: space-between; align-items: baseline; margin: 36px 0 20px; }
.smh-pfooter .ep-related { margin: 30px 0 44px; }

/* ---- accessories ---- */
.product-accessories .section-title { font-size: 22px; font-weight: 800; margin: 10px 0 20px; letter-spacing: -.3px; }

@media (max-width: 991px) {
    .col-product-image { padding-right: 15px; margin-bottom: 20px; }
    .product-container .page-title { font-size: 21px; }
    .product-container .price { font-size: 25px !important; }
    .ep-spec-body { grid-template-columns: 1fr; }
    .ep-tiles { grid-template-columns: repeat(2, 1fr); }
    .ep-spec-head { font-size: 19px; }
}

/* ---- product tabs (Description / Détails / Documents / Expédition) ---- */
.smh-ptabs-wrap { background: #fff; border: 1px solid #ececee; border-radius: 14px; padding: 26px 30px 30px; margin: 30px 0 40px; }
.smh-ptabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 34px; border-bottom: 1px solid #e7e9eb; margin-bottom: 26px; }
.smh-ptab {
    background: none; border: none; padding: 4px 2px 14px; cursor: pointer;
    font-size: 16px; font-weight: 600; color: #9aa0a8; letter-spacing: .2px;
    border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s;
}
.smh-ptab:hover { color: #43484f; }
.smh-ptab.is-active { color: #16181d; font-weight: 700; border-bottom-color: #16181d; }

.smh-ppane { display: none; }
.smh-ppane.is-active { display: block; }
.smh-pempty { color: #9aa0a8; font-size: 14px; margin: 6px 0; }
.smh-prte { font-size: 14.5px; line-height: 1.7; color: #43484f; }
.smh-prte h4 { font-size: 15px; font-weight: 800; color: #16181d; margin: 18px 0 6px; }
.smh-prte h4:first-child { margin-top: 0; }
.smh-prte p { margin: 0 0 10px; }
.smh-pref { font-size: 13.5px; color: #6b7178; margin-bottom: 16px; }

/* fiche technique */
.smh-fiche-title { font-size: 13px; color: #8b9098; margin: 4px 0 10px; }
.smh-fiche { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; }
.smh-fiche-row { display: grid; grid-template-columns: minmax(180px, 320px) 1fr; gap: 6px; }
.smh-fiche-k { background: #f1f2f4; border-radius: 4px; padding: 11px 14px; font-size: 13.5px; color: #16181d; }
.smh-fiche-v { background: #f7f8f9; border-radius: 4px; padding: 11px 14px; font-size: 13.5px; color: #43484f; }

/* documents joints */
.smh-docs { display: flex; flex-direction: column; gap: 10px; }
.smh-doc { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #f7f8f9; border-radius: 10px; transition: background .15s; }
.smh-doc:hover { background: #eef0f2; }
.smh-doc-ico { font-size: 24px; line-height: 1; }
.smh-doc-txt { display: flex; flex-direction: column; gap: 2px; }
.smh-doc-txt b { font-size: 14px; color: #16181d; }
.smh-doc-txt em { font-size: 13px; color: #6b7178; font-style: normal; }
.smh-doc-size { font-size: 12.5px; color: #9aa0a8; }

/* marque | référence sous le titre */
.ep-ref .ep-ref-sep { margin: 0 10px; color: #d5d8db; }

@media (max-width: 767px) {
    .smh-ptabs-wrap { padding: 18px 16px 22px; }
    .smh-ptabs { gap: 18px; justify-content: flex-start; }
    .smh-ptab { font-size: 14px; }
    .smh-fiche-row { grid-template-columns: 1fr; }
}

/* ---- key specs bullets above the price ---- */
.ep-keyspecs { list-style: none; margin: 16px 0 18px; padding: 0; }
.ep-keyspecs li { position: relative; padding-left: 18px; font-size: 13.5px; line-height: 2; color: #43484f; }
.ep-keyspecs li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 6px; height: 6px; background: #b9bec4; }
.ep-ks-k { color: #6b7178; text-transform: uppercase; letter-spacing: .2px; }
.ep-ks-v { color: #16181d; font-weight: 600; }
