/* ==========================================================================
   DENTAL INNOV - DESIGN PRODUIT ULTRA-PREMIUM (V4 - CORRECTIONS)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. STRUCTURE ET ALIGNEMENTS (Rapprochement Image / Texte)
   -------------------------------------------------------------------------- */
   #ttr_page {
    margin-top: 140px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Rapprocher les deux colonnes (Image et Infos) */
.row {
    margin-left: -10px;
    margin-right: -10px;
}
.pb-left-column, .pb-center-column {
    padding-left: 10px;
    padding-right: 10px;
}

/* Titre du produit aligné à GAUCHE et premium */
.ttr_Prodes_Title {
    font-size: 2.6rem !important;
    font-weight: 800 !important;
    color: #1a202c !important; /* Gris anthracite profond */
    text-align: left !important; /* FIX : Alignement forcé à gauche */
    margin-bottom: 1.5rem !important;
    margin-top: 0 !important;
    letter-spacing: -0.5px !important;
}

/* --------------------------------------------------------------------------
   2. IMAGE PRODUIT ET BADGE "NEUF"
   -------------------------------------------------------------------------- */
/* La box blanche de l'image (élargie pour que le badge rentre) */
.product-cover {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    padding: 3.5rem 2rem 2rem 2rem !important; /* Beaucoup d'espace en haut pour le badge */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04) !important; /* Ombre très douce */
    border: none !important;
    margin-bottom: 1.5rem;
}

.product-cover img {
    border-radius: 12px;
    width: 100%;
    object-fit: contain;
}

/* Badge Neuf en mode Capsule */
.product-flags {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    display: flex;
    margin: 0; 
    padding: 0;
}

.product-flag.new {
    background: #ffffff !important;
    color: #0056b3 !important; /* Ton bleu premium */
    border: 2px solid #0056b3 !important;
    border-radius: 50px !important; /* Capsule parfaite */
    padding: 6px 18px !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.15) !important;
}

/* Vignettes sous l'image */
.thumb-container img {
    border-radius: 12px !important;
    border: 2px solid transparent !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.thumb-container img.selected {
    border-color: #0056b3 !important;
}

/* --------------------------------------------------------------------------
   3. BLOC PRIX & ACTIONS (Quantité, Panier)
   -------------------------------------------------------------------------- */
.product-prices {
    background: #f8fafc;
    padding: 1.2rem 2rem;
    border-radius: 50px; /* Mode capsule pour le prix aussi */
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 2rem !important;
    border: none !important;
}

.ttr_prodes_Price {
    font-size: 2.4rem !important;
    font-weight: 900 !important;
    color: #0056b3 !important;
}

/* Box Ajouter au panier */
.product-add-to-cart {
    background: #ffffff;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    border: none !important;
    margin-bottom: 2rem;
}

.product-quantity.clearfix {
    display: flex !important;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Sélecteur de quantité Capsule */
.product-quantity .bootstrap-touchspin.input-group {
    display: flex !important;
    align-items: center !important;
    width: 140px !important;
    height: 54px !important;
    background: #f1f5f9 !important;
    border-radius: 50px !important; /* Capsule */
    padding: 6px !important;
    border: none !important;
}

#quantity_wanted {
    order: 2 !important;
    background: transparent !important;
    border: none !important;
    text-align: center !important;
    font-weight: 800 !important;
    font-size: 1.2rem !important;
    color: #1a202c !important;
    width: 40px !important;
    box-shadow: none !important;
}

.input-group-btn-vertical { display: contents !important; }
.bootstrap-touchspin-down { order: 1 !important; }
.bootstrap-touchspin-up { order: 3 !important; }

.btn-touchspin {
    width: 42px !important;
    height: 42px !important;
    background: #ffffff !important;
    color: #1a202c !important;
    border-radius: 50% !important; /* Parfaitement rond */
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    font-size: 1.4rem !important;
    font-weight: bold !important;
    line-height: 0 !important;
}
.btn-touchspin:hover {
    background: #0056b3 !important;
    color: #ffffff !important;
}
.btn-touchspin i { display: none !important; }
.bootstrap-touchspin-down::after { content: "−"; }
.bootstrap-touchspin-up::after { content: "+"; }

/* Bouton Ajouter au Panier */
.add { flex: 1; min-width: 200px; }

.add-to-cart {
    width: 100%;
    height: 54px;
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    border-radius: 50px !important; /* Capsule */
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.25) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    z-index: 99 !important;
}

.add-to-cart button[type="submit"] {
    pointer-events: auto !important;
    cursor: pointer !important;
}

.add-to-cart form {
    display: block !important;
}

.add-to-cart:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 25px rgba(0, 86, 179, 0.35) !important;
}

/* --------------------------------------------------------------------------
   4. ONGLETS (TABS) - Sans bordure et en capsule
   -------------------------------------------------------------------------- */
.tabs {
    margin-top: 3rem;
}

.ttr_prodes_Tab_Title.nav-tabs {
    background: #f1f5f9;
    padding: 8px;
    border-radius: 50px !important; /* Fond gris en capsule */
    border: none !important; /* Suppression de la bordure grise moche */
    display: inline-flex;
    margin-bottom: 2rem;
}

.ttr_prodes_Tab_Title .nav-link {
    border: none !important;
    color: #64748b !important;
    font-weight: 700 !important;
    padding: 12px 28px !important;
    border-radius: 50px !important; /* Les boutons sont des capsules */
    background: transparent;
    transition: all 0.3s ease;
}

.ttr_prodes_Tab_Title .nav-link.active {
    background: #ffffff !important;
    color: #0056b3 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}

.ttr_prodes_Tab_Content.tab-content {
    background: #ffffff;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03) !important; /* Ombre très légère */
    border: none !important; /* Suppression de la bordure */
    color: #4a5568;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   5. COMMENTAIRES (Esthétique Bleu Premium)
   -------------------------------------------------------------------------- */
#product-comments-list-header {
    margin-top: 3rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: 10px;
}

#product-comments-list-header i {
    color: #0056b3; /* Icône en bleu */
}

#empty-product-comment {
    background: #ffffff;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: none !important;
    text-align: center;
}

/* Bouton donner son avis */
.btn-comment {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: #ffffff !important;
    border-radius: 50px !important; /* Capsule */
    padding: 14px 32px !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.25) !important;
    transition: all 0.3s ease !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-comment:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 25px rgba(0, 86, 179, 0.35) !important;
    background: linear-gradient(135deg, #0056b3, #004085) !important;
}

/* --------------------------------------------------------------------------
   6. REASSURANCE (Garanties, Livraison)
   -------------------------------------------------------------------------- */
.blockreassurance_product div {
    background: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    padding: 1.2rem 1.5rem !important;
    border-radius: 16px !important;
    margin-bottom: 12px;
}
.blockreassurance_product .item-product svg { fill: #0056b3 !important; }
.blockreassurance_product .block-title { font-weight: 700 !important; color: #1a202c !important; }

/* ==========================================================================
   FIX : Suppression définitive des bordures carrées Bootstrap sur les onglets
   ========================================================================== */

/* 1. On tue la bordure de la ligne globale */
.ttr_prodes_Tab_Title.nav-tabs {
    border: none !important;
    border-bottom: none !important; 
    outline: none !important;
}

/* 2. On tue les bordures de l'élément de liste au cas où */
.ttr_prodes_Tab_Title .nav-item {
    border: none !important;
    outline: none !important;
}

/* 3. On tue les bordures des liens, même au clic (focus) et au survol */
.ttr_prodes_Tab_Title .nav-link,
.ttr_prodes_Tab_Title .nav-link.active,
.ttr_prodes_Tab_Title .nav-link:hover,
.ttr_prodes_Tab_Title .nav-link:focus {
    border: none !important;
    outline: none !important; 
    border-color: transparent !important; /* Force la transparence de la bordure Bootstrap */
}