/* ============================================================
   OTOO — PRODUCT PAGE CSS
   public/assets/css/product-page.css
   Chargé uniquement sur la page produit (otoo.product.show)
   Dépend des variables définies dans otoo.css (:root)
   ============================================================ */

/* ============================================================
   BREADCRUMB
   ============================================================ */
.otoo-breadcrumb {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0;
}
.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.breadcrumb-list::-webkit-scrollbar { display: none; }
.bc-item { display: flex; align-items: center; gap: 5px; flex-shrink: 0; white-space: nowrap; }
.bc-link {
    display: flex; align-items: center; gap: 4px;
    font-size: .78rem; font-weight: 500; color: #555;
    text-decoration: none; padding: 3px 6px; border-radius: 5px;
    transition: background .15s, color .15s;
}
.bc-link:hover { color: #1800ad; background: #eef0ff; }
.bc-home-icon { font-size: .85rem; color: #1800ad; }
.bc-sep { font-size: .65rem; color: #ccc; flex-shrink: 0; }
.bc-text { font-size: .78rem; }
.bc-current .bc-product-name {
    font-size: .78rem; font-weight: 600; color: #222;
    max-width: 260px; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; display: inline-block; vertical-align: middle;
}
@media (max-width: 576px) {
    .bc-link { padding: 3px 4px; }
    .bc-current .bc-product-name { max-width: 140px; }
}

/* ============================================================
   IMAGE PRINCIPALE + MINIATURES
   ============================================================ */
.product-image-container {
    overflow: hidden;
    border-radius: 16px;
    position: relative;
}
.product-image {
    width: 100%;
    max-width: 340px;
    border-radius: 16px;
    transition: transform .4s ease, opacity .4s ease;
    display: block;
    margin: 0 auto;
}
.product-image-container:hover .product-image { transform: scale(1.15); }

.thumbnail-image {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border .3s, transform .3s;
}
.thumbnail-image:hover { transform: scale(1.05); }
.thumbnail-image.active { border-color: #1800ad; }

/* ── Slider de miniatures avec flèches ── */
.thumb-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}
.thumb-slider {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 2px 0;
}
.thumb-slider::-webkit-scrollbar { display: none; }
.thumb-slider .thumbnail-image {
    flex-shrink: 0;
    scroll-snap-align: start;
}
.thumb-arrow {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    font-size: .8rem;
    transition: background .15s, color .15s, border-color .15s;
}
.thumb-arrow:hover:not(:disabled) { background: #1800ad; color: #fff; border-color: #1800ad; }
.thumb-arrow:disabled { opacity: .3; cursor: not-allowed; }

/* ============================================================
   PRODUCT CARD (conteneur détail)
   ============================================================ */
.product-card { border-radius: 14px; background: #fff; }

/* ============================================================
   PROMO / DEAL BOX
   Volontairement rouge/orange (urgence vente flash), distinct
   du bleu de marque — même logique que les sections flash sale
   de l'accueil.
   ============================================================ */
.promo-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #fff8e1;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    flex-wrap: wrap;
    overflow: hidden;
}
.deal-price     { font-weight: 800; font-size: 1.3rem; color: #e53935; }
.deal-old-price { text-decoration: line-through; color: #9e9e9e; font-size: 1rem; }
.deal-discount_style {
    position: absolute; top: 0; right: 0; width: 70px; height: 70px;
    background: #e53935; clip-path: polygon(100% 0, 0 0, 100% 100%);
    color: #fff; font-weight: 700; font-size: .75rem;
    display: flex; justify-content: center; align-items: flex-start; padding-top: 8px;
}
.deal-box {
    border-radius: 16px; overflow: hidden; background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.08); border: 1px solid #eee;
}
.deal-header {
    background: linear-gradient(90deg, #ff2a00, #e60000); color: #fff;
    padding: 12px 18px; display: flex; justify-content: space-between; align-items: center;
}
.deal-title { font-weight: 700; }
.deal-timer {
    font-size: 14px; font-weight: 700; background: rgba(255,255,255,.2);
    padding: 4px 10px; border-radius: 8px;
}
.deal-body { padding: 18px; background: #fafafa; }
.deal-price-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.deal-discount { background: #ffe7d9; color: #ff6a00; padding: 4px 10px; border-radius: 6px; font-weight: 600; }
.deal-stock { font-size: 14px; color: #444; }
.deal-progress { height: 8px; background: #ddd; border-radius: 20px; margin-top: 6px; }
.deal-progress-bar { height: 100%; background: linear-gradient(90deg, #ff7a00, #ffb347); border-radius: 20px; }

/* ============================================================
   SÉLECTEUR DE VARIANTES
   ============================================================ */
.vs-wrapper { margin-bottom: 14px; }
.vs-group { margin-bottom: 11px; }
.vs-group-label {
    font-size: .78rem; font-weight: 700; color: #333; margin-bottom: 6px;
    display: flex; align-items: center; gap: 6px;
}
.vs-selected-text { font-weight: 400; color: #888; font-size: .75rem; }
.vs-options { display: flex; flex-wrap: wrap; gap: 7px; }

.vs-chip {
    padding: 5px 13px; border: 1.5px solid #ddd; border-radius: 20px;
    font-size: .78rem; font-weight: 600; cursor: pointer; background: #fff; color: #333;
    transition: all .15s; -webkit-tap-highlight-color: transparent;
}
.vs-chip:hover { border-color: #1800ad; color: #1800ad; background: #eef0ff; }
.vs-chip.vs-selected { border-color: #1800ad; background: #1800ad; color: #fff; }
.vs-chip.vs-unavailable { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

.vs-swatch {
    width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: all .15s;
}
.vs-swatch:hover { transform: scale(1.12); border-color: #333; }
.vs-swatch.vs-selected { border-color: #fff; box-shadow: 0 0 0 3px #1800ad; transform: scale(1.08); }
.vs-swatch.vs-unavailable { opacity: .3; cursor: not-allowed; }
.vs-swatch-check { color: #fff; font-size: 13px; font-weight: 700; display: none; }
.vs-swatch.vs-selected .vs-swatch-check { display: block; }

.vs-badge-out { font-size: 9px; font-weight: 700; background: #fff0f0; color: #c62828; border-radius: 10px; padding: 1px 5px; margin-left: 4px; }
.vs-badge-low { font-size: 9px; font-weight: 700; background: #fff8e1; color: #e65100; border-radius: 10px; padding: 1px 5px; margin-left: 4px; }

.vs-summary { background: #f9f9f9; border: 1px solid #eee; border-radius: 10px; padding: 10px 13px; margin-top: 10px; }
.vs-summary-price { font-size: 1.1rem; font-weight: 700; color: #1800ad; }
.vs-summary-stock { font-size: .75rem; margin-top: 3px; }
.vs-hint { font-size: .78rem; color: #888; margin-top: 8px; }
.vs-hint.vs-error { color: #e53935; font-weight: 700; }

/* ============================================================
   ATTRIBUTS SIMPLES (sans variantes)
   ============================================================ */
.all-attributes-wrapper { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: .5rem; padding-bottom: .25rem; }
.attribute-group { display: flex; flex-direction: column; min-width: max-content; gap: .25rem; }
.attribute-group .form-label { font-size: .75rem; font-weight: 600; margin-bottom: .15rem; white-space: nowrap; }
.attribute-options { display: flex; flex-wrap: nowrap; gap: .2rem; }
.option-label {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .2rem .4rem; border: 1px solid #ccc; border-radius: 4px;
    background: rgba(255,255,255,.8); font-size: .7rem; cursor: pointer;
    white-space: nowrap; transition: all .2s;
}
.option-label input[type="radio"] { display: none; }
.option-label input[type="radio"]:checked + .option-text {
    background: #1800ad; color: #fff; border-radius: 3px; padding: .15rem .3rem;
}
.option-label:hover { border-color: #1800ad; background: rgba(24,0,173,.08); }

/* ============================================================
   QUANTITÉ + BOUTON ACHAT
   ============================================================ */
.cs-qty-row {
    display: inline-flex; align-items: center; border: 1.5px solid #ddd;
    border-radius: 30px; overflow: hidden; margin-bottom: 12px;
}
.cs-qty-btn {
    width: 38px; height: 38px; border: none; background: #f8f9fa;
    font-size: 1.2rem; font-weight: 700; cursor: pointer; color: #555;
    transition: background .15s;
}
.cs-qty-btn:hover { background: #1800ad; color: #fff; }
.cs-qty-val { min-width: 36px; text-align: center; font-weight: 700; font-size: .95rem; color: #222; }

.btn-buy {
    background: linear-gradient(90deg, #1800ad, #2f1fc9);
    color: #fff; font-weight: 700; border: none; border-radius: 12px;
    padding: 13px 20px; font-size: .95rem; cursor: pointer;
    transition: all .2s; display: flex; align-items: center; justify-content: center;
    gap: 8px; width: 100%; box-shadow: 0 3px 10px rgba(24,0,173,.3);
}
.btn-buy:hover:not([disabled]) { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(24,0,173,.35); }
.btn-buy[disabled] { background: #ccc; cursor: not-allowed; opacity: .7; box-shadow: none; }

.atc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.atc-out-stock {
    display: flex; align-items: center; gap: 12px;
    background: #fff5f5; border: 1px solid #ffd9d9; border-radius: 12px;
    padding: 12px 16px; width: 100%;
}
.atc-out-icon {
    width: 34px; height: 34px; border-radius: 50%; background: #ffe0e0;
    color: #c62828; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.atc-out-title { font-weight: 700; color: #c62828; font-size: .88rem; }
.atc-out-sub { font-size: .78rem; color: #888; }
.atc-low-stock {
    margin-top: 8px; font-size: .78rem; color: #e65100; font-weight: 600;
    display: flex; align-items: center; gap: 5px;
}

/* Barre d'achat flottante mobile (optionnelle) */
.pro-mbb {
    position: fixed; left: 12px; right: 12px; bottom: 12px;
    display: flex; align-items: center; gap: 10px; padding: 10px;
    background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.12);
    z-index: 999999; transform: translateY(120%); transition: transform .25s ease;
}
.pro-mbb.show { transform: translateY(0); }
.pro-mbb-btn { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 50%; text-decoration: none; }
.pro-mbb-btn.whatsapp { background: #25D366; color: #fff; }
.pro-mbb-buy {
    height: 42px; border: none; border-radius: 12px; background: #1800ad; color: #fff;
    display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; cursor: pointer;
}
.pro-mbb-buy[disabled] { opacity: .6; cursor: not-allowed; }

/* ============================================================
   PRIX / RATING (usages génériques hors carte produit liste)
   ============================================================ */
.old-price { text-decoration: line-through; color: #999; font-weight: 500; }
.discount  { color: #ff7b00; font-weight: 700; background: rgba(255,123,0,.1); border-radius: 6px; padding: 2px 8px; }
.rating i  { color: #f4c150; font-size: 18px; margin-right: 2px; }

/* ============================================================
   ONGLETS PRODUIT (description / specs / avis / accessoires)
   ============================================================ */
.pd-tabs {
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
    padding-bottom: 2px; border-bottom: 2px solid #f0f0f0; margin-bottom: 0;
}
.pd-tabs::-webkit-scrollbar { display: none; }
.pd-tab {
    padding: 10px 18px; font-size: .82rem; font-weight: 600; color: #777;
    cursor: pointer; border: none; background: none; white-space: nowrap;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
    transition: color .15s, border-color .15s; -webkit-tap-highlight-color: transparent;
}
.pd-tab:hover { color: #1800ad; }
.pd-tab.active { color: #1800ad; border-bottom-color: #1800ad; }
.pd-panel { display: none; padding: 24px 0 0; }
.pd-panel.active { display: block; }

/* ── Description (carte sombre) ── */
.desc-card { background: #1a1a2e; border-radius: 14px; overflow: hidden; }
.desc-card-header {
    display: flex; align-items: center; gap: 10px; padding: 13px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04);
}
.desc-card-icon {
    width: 32px; height: 32px; border-radius: 8px; background: rgba(24,0,173,.18);
    display: flex; align-items: center; justify-content: center; color: #9d8dff;
    font-size: 1rem; flex-shrink: 0;
}
.desc-card-title { font-size: .88rem; font-weight: 700; color: #fff; }
.desc-card-body { padding: 20px 18px; font-size: .88rem; line-height: 1.8; color: rgba(255,255,255,.8); }
.desc-card-body p { margin-bottom: .9rem; color: rgba(255,255,255,.8); }
.desc-card-body p:last-child { margin-bottom: 0; }
.desc-card-body ul, .desc-card-body ol { padding-left: 1.3rem; margin-bottom: .9rem; color: rgba(255,255,255,.8); }
.desc-card-body li { margin-bottom: 5px; }
.desc-card-body strong { color: #fff; font-weight: 600; }
.desc-card-body em { color: rgba(255,255,255,.65); }
.desc-card-body a { color: #9d8dff; text-decoration: underline; }
.desc-card-body img { max-width: 100%; height: auto; display: block; margin: 1rem 0; border-radius: 8px; }
.desc-card-body h4, .desc-card-body h5 { margin-top: 1.3rem; margin-bottom: .4rem; font-weight: 700; color: #fff; }
.desc-card-footer {
    display: flex; gap: 16px; flex-wrap: wrap; padding: 10px 18px;
    background: rgba(0,0,0,.2); border-top: 1px solid rgba(255,255,255,.07);
}
.desc-card-meta { display: flex; align-items: center; gap: 5px; font-size: .73rem; color: rgba(255,255,255,.45); }
.desc-card-meta i { font-size: .85rem; }
.desc-card-meta strong { color: rgba(255,255,255,.85); font-weight: 600; }

/* ── Spécifications (carte sombre) ── */
.specs-card { background: #1a1a2e; border-radius: 14px; overflow: hidden; }
.specs-card-header {
    display: flex; align-items: center; gap: 10px; padding: 13px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04);
}
.specs-card-icon {
    width: 32px; height: 32px; border-radius: 8px; background: rgba(76,175,80,.15);
    display: flex; align-items: center; justify-content: center; color: #66bb6a;
    font-size: 1rem; flex-shrink: 0;
}
.specs-card-title { font-size: .88rem; font-weight: 700; color: #fff; }
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; }
.specs-key {
    padding: 10px 16px; font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.45);
    background: rgba(255,255,255,.03); border-bottom: 1px solid rgba(255,255,255,.06);
}
.specs-val {
    padding: 10px 16px; font-size: .82rem; color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.06); border-left: 1px solid rgba(255,255,255,.06);
}
.specs-grid > *:nth-last-child(-n+2) { border-bottom: none; }

/* ── Accessoires ── */
.pd-acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.pd-acc-item {
    border: 1px solid #f0f0f0; border-radius: 10px; padding: 12px; text-align: center;
    transition: box-shadow .2s, transform .2s; background: #fff; text-decoration: none;
    color: inherit; display: block;
}
.pd-acc-item:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.pd-acc-item img { width: 100%; height: 80px; object-fit: contain; margin-bottom: 8px; }
.pd-acc-item .acc-name { font-size: .78rem; font-weight: 600; color: #222; display: block; margin-bottom: 4px; }
.pd-acc-item .acc-price { font-size: .8rem; color: #1800ad; font-weight: 700; }
.pd-acc-item .acc-old { font-size: .72rem; color: #aaa; text-decoration: line-through; margin-left: 3px; }

/* ── Avis clients ── */
.pd-reviews { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
@media (max-width: 768px) { .pd-reviews { grid-template-columns: 1fr; } }

.rv-card { background: #1a1a2e; border-radius: 14px; overflow: hidden; }
.rv-card-header {
    display: flex; align-items: center; gap: 10px; padding: 13px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04);
}
.rv-card-icon {
    width: 32px; height: 32px; border-radius: 8px; background: rgba(246,176,30,.15);
    display: flex; align-items: center; justify-content: center; color: #f6b01e;
    font-size: 1rem; flex-shrink: 0;
}
.rv-card-title { font-size: .88rem; font-weight: 700; color: #fff; }

.rv-summary { padding: 20px; text-align: center; }
.rv-avg { font-size: 3rem; font-weight: 800; color: #f6b01e; line-height: 1; }
.rv-avg-label { font-size: .75rem; color: rgba(255,255,255,.5); margin-top: 4px; margin-bottom: 14px; }
.rv-star-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: .75rem; color: rgba(255,255,255,.6); }
.rv-bar { flex: 1; height: 5px; background: rgba(255,255,255,.1); border-radius: 10px; overflow: hidden; }
.rv-bar-fill { height: 100%; background: #f6b01e; border-radius: 10px; transition: width .6s ease; }

.rv-form { padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 0; }
.rv-form-title { font-size: .82rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.rv-form .form-label { font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.6); }
.rv-form textarea, .rv-form select {
    background: rgba(255,255,255,.07) !important; border: 1px solid rgba(255,255,255,.12) !important;
    color: #fff !important; border-radius: 8px;
}
.rv-form textarea::placeholder { color: rgba(255,255,255,.3); }
.rv-stars-input { display: flex; flex-direction: row-reverse; gap: 6px; margin-bottom: 10px; }
.rv-stars-input label { font-size: 1.4rem; cursor: pointer; color: rgba(255,255,255,.2); transition: color .15s; }
.rv-stars-input input[type="radio"] { display: none; }
.rv-stars-input input:checked ~ label,
.rv-stars-input label:hover,
.rv-stars-input label:hover ~ label { color: #f6b01e; }

.rv2-list { padding: 0 18px; }
.rv2-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.rv2-item:last-child { border-bottom: none; }
.rv2-avatar {
    width: 36px; height: 36px; border-radius: 50%; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .82rem; font-weight: 600; flex-shrink: 0;
}
.rv2-body { flex: 1; min-width: 0; }
.rv2-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 4px; }
.rv2-author { font-size: .82rem; font-weight: 700; color: #fff; }
.rv2-date { font-size: .7rem; color: rgba(255,255,255,.4); white-space: nowrap; }
.rv2-stars { display: flex; gap: 2px; margin-bottom: 5px; }
.rv2-text { font-size: .82rem; color: rgba(255,255,255,.75); line-height: 1.55; margin: 0 0 7px; }
.rv2-footer { display: flex; align-items: center; }
.rv2-verified { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; color: #4caf50; font-weight: 600; }
.rv2-verified i { font-size: .8rem; }
.rv2-empty { display: flex; flex-direction: column; align-items: center; padding: 28px 0; gap: 6px; }
.rv2-empty i { font-size: 2rem; color: rgba(255,255,255,.2); }
.rv2-empty p { font-size: .85rem; color: rgba(255,255,255,.6); margin: 0; }
.rv2-empty span { font-size: .75rem; color: rgba(255,255,255,.35); }
.rv2-more { display: flex; justify-content: center; padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.06); }
.rv2-more a {
    display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; color: #9d8dff;
    text-decoration: none; border: 1px solid rgba(24,0,173,.4); border-radius: 8px;
    padding: 7px 16px; transition: background .15s; font-weight: 600;
}
.rv2-more a:hover { background: rgba(24,0,173,.15); }

/* ============================================================
   COLONNE DROITE — Garanties & Confiance
   ============================================================ */
.trust-card { border: 1px solid #f0f0f0; }

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
}
.trust-item + .trust-item { border-top: 1px solid #f5f5f5; }

.trust-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eef0ff;
    color: #1800ad;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.trust-title {
    font-size: .85rem;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}
.trust-sub {
    font-size: .76rem;
    color: #888;
    margin-top: 2px;
    line-height: 1.3;
}
.trust-sub a {
    color: #25D366;
    font-weight: 600;
    text-decoration: none;
}
.trust-sub a:hover { text-decoration: underline; }

/* ============================================================
   FORM SELECT (usages génériques restants sur la page produit)
   ============================================================ */
.form-select {
    border-radius: 10px; border: 1px solid #ddd; padding: 10px;
    font-size: .95rem; transition: border-color .3s;
}
.form-select:focus { border-color: #1800ad; box-shadow: 0 0 0 .2rem rgba(24,0,173,.15); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .product-card  { padding: 15px; }
}
