/* ============================================================
   DD STORE - Charte graphique (bleu ciel #4DB8FF / rouge #FF3333)
   Fichier d'override : chargé après custom.css dans app.blade.php
   ============================================================ */
:root {
    --dd-sky: #4DB8FF;
    --dd-blue: #1173D4;
    --dd-navy: #0E2A4E;
    --dd-red: #E01E26;
    --dd-red-dark: #C1161D;
}

/* ============================================================
   Site en pleine largeur
   ============================================================ */
@media (min-width: 1200px) {
    .container {
        max-width: 96%;
    }
}
@media (min-width: 1600px) {
    .container {
        max-width: 94%;
    }
}

/* ============================================================
   Rouge renforcé : prix produits + badges de réduction
   ============================================================ */
/* Prix sur les cartes produits */
.product-price,
.product-price .text-accent,
.single-product-details .text-accent,
.single-product-details .product-price span:not(del),
.product-price span.text-dark {
    color: var(--dd-red) !important;
}

/* Prix principal sur la page détail produit */
.discounted-unit-price,
.product-details-chosen-price-amount,
.product-details-chosen-price-section .text-base {
    color: var(--dd-red) !important;
    font-weight: 700;
}

/* Prix barré (ancien prix) reste gris */
.product-price del,
.category-single-product-price,
.product-total-unit-price {
    color: #9aa4b2 !important;
}

/* Badge de réduction sur les cartes produits */
.for-discount-value {
    background: var(--dd-red) !important;
    color: #fff !important;
    border-radius: 0 0 8px 0;
}

/* Badge de réduction sur la page détail (était bleu bg-primary) */
.discount-badge,
.discount-badge.bg-primary {
    background: var(--dd-red) !important;
    color: #fff !important;
}

/* ---------- Topbar : bleu marine (comme nav/footer), texte blanc ---------- */
.topbar {
    background: var(--dd-navy) !important;
    padding: 6px 0;
}
.topbar .topbar-link,
.topbar .topbar-text,
.topbar .topbar-link:hover {
    color: #fff !important;
}

/* Réseaux sociaux dans le topbar */
.topbar-social {
    gap: 8px;
}
.topbar-social-link {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    font-size: 14px;
    transition: background .2s ease, transform .2s ease;
}
/* force toutes les icônes réseaux en blanc (fb, insta, tiktok) */
.topbar-social-link i {
    color: #fff !important;
}
.topbar-social-link:hover {
    background: var(--dd-red);
    color: #fff !important;
    transform: translateY(-2px);
}
.topbar-social-link:hover i {
    color: #fff !important;
}

/* Icône TikTok (absente de FontAwesome 4) : rendue via masque SVG */
i.fa-tiktok {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path d='M448 209.9a210.1 210.1 0 0 1-122.8-39.3V349.4A162.6 162.6 0 1 1 185 188.3V278.2a74.6 74.6 0 1 0 52.2 71.2V0h88a121.2 121.2 0 0 0 1.9 22.2h0A122.2 122.2 0 0 0 381 102.4a121.4 121.4 0 0 0 67 20.1z'/></svg>") center/contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path d='M448 209.9a210.1 210.1 0 0 1-122.8-39.3V349.4A162.6 162.6 0 1 1 185 188.3V278.2a74.6 74.6 0 1 0 52.2 71.2V0h88a121.2 121.2 0 0 0 1.9 22.2h0A122.2 122.2 0 0 0 381 102.4a121.4 121.4 0 0 0 67 20.1z'/></svg>") center/contain no-repeat;
    vertical-align: -0.125em;
}
i.fa-tiktok::before {
    content: "";
}
/* TikTok blanc sur les fonds sombres (topbar + footer) */
.topbar-social-link i.fa-tiktok,
.dd-social-btn i.fa-tiktok {
    background-color: #fff;
}

/* ---------- Barre de navigation : bleu marine, items blancs ---------- */
/* Desktop uniquement (>=1200px) : en dessous, menu tiroir (tablette + mobile) */
@media (min-width: 1200px) {
    .navbar-stuck-menu {
        background: linear-gradient(90deg, var(--dd-navy) 0%, #143257 100%);
        box-shadow: 0 2px 10px rgba(14, 42, 78, 0.25);
    }
    /* une seule ligne, centrée ; la taille de police est ajustée par JS pour ne jamais déborder */
    .navbar-stuck-menu .navbar-collapse > .navbar-nav {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        display: flex;
        justify-content: center;
        align-items: stretch;
        flex-wrap: wrap; /* filet de sécurité : si le JS ne s'exécute pas, passage à la ligne plutôt que débordement */
        gap: 2px;
    }
    .navbar-stuck-menu .navbar-nav .nav-item {
        display: flex;
        align-items: stretch;
    }
    .navbar-stuck-menu .navbar-nav .nav-link {
        color: #fff !important;
        font-weight: 700;
        font-size: var(--dd-nav-fs, 13px);
        text-transform: uppercase !important; /* écrase le text-capitalize du thème */
        letter-spacing: 0.3px;
        padding: 0.95rem 0.85em; /* padding horizontal en em : se resserre quand la police diminue */
        white-space: nowrap;
        display: flex;
        align-items: center;
        position: relative;
        border-radius: 6px;
        transition: color .25s ease, background-color .25s ease;
    }
    /* trait rouge animé sous chaque item */
    .navbar-stuck-menu .navbar-nav .nav-link::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 6px;
        width: 0;
        height: 2px;
        background: var(--dd-red);
        border-radius: 2px;
        transform: translateX(-50%);
        transition: width .28s ease;
    }
    .navbar-stuck-menu .navbar-nav .nav-link:hover {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.10);
    }
    .navbar-stuck-menu .navbar-nav .nav-link:hover::after {
        width: 55%;
    }
    /* item actif : fond rouge plein */
    .navbar-stuck-menu .navbar-nav .nav-item.active .nav-link {
        background: var(--dd-red);
        color: #fff !important;
    }
    .navbar-stuck-menu .navbar-nav .nav-item.active .nav-link::after {
        width: 0;
    }
    /* item Promotions : légère mise en avant */
    .navbar-stuck-menu .navbar-nav .dd-nav-promo {
        color: #FFD36B !important;
    }
    .navbar-stuck-menu .navbar-nav .active .dd-nav-promo {
        color: #fff !important;
    }
}

/* Tablette et mobile (<1200px) : menu tiroir (mêmes styles que le tiroir mobile du thème,
   qui n'étaient définis que sous 768px dans style.css) */
@media (min-width: 768px) and (max-width: 1199.98px) {
    #navbarCollapse {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: #fff !important;
        z-index: 99999;
        padding: 20px;
        padding-bottom: 50px;
        max-width: 320px;
        transition: all ease 0.3s;
        overflow-y: auto;
        font-size: 14px;
    }
    #navbarCollapse .czi-menu {
        display: none;
    }
    #navbarCollapse .dropdown-toggle span {
        margin-left: 0 !important;
    }
    #navbarCollapse .dropdown-menu {
        min-width: 0 !important;
        padding: 5px 0 !important;
        background: #f3f8ff;
        border-radius: 8px !important;
        border: none !important;
        font-size: 13px;
    }
    #navbarCollapse .dropdown-menu * {
        font-size: 13px;
    }
    #navbarCollapse .__dropdown-menu-2 .dropdown {
        flex-wrap: nowrap;
    }
    #navbarCollapse .__dropdown-menu-2 .dropdown a:first-child {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 0;
        flex-grow: 1;
    }
    #navbarCollapse .__dropdown-menu-2 .dropdown span {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    #navbarCollapse .nav-item {
        border: none !important;
    }
    #navbarCollapse .nav-item.__inline-17 > div {
        flex-grow: 1;
    }
    #navbarCollapse .nav-item a {
        color: #212629 !important;
        display: block;
    }
    .text-max-md-dark {
        color: #222222 !important;
    }
    .logout-btn {
        position: fixed;
        bottom: 0;
        right: 0;
        width: 100%;
        max-width: 320px;
        background: #fff;
        margin: 0 !important;
        z-index: 99;
    }
    .logout-btn a {
        padding-inline: 20px !important;
    }
}

/* ---------- Logo header agrandi ----------
   L'image du logo a été recadrée (les grandes marges transparentes internes ont été supprimées).
   Marges négatives : le logo est rendu plus grand que la barre sans l'épaissir,
   quitte à déborder légèrement (voulu). */
.navbar-sticky .navbar:not(.navbar-stuck-menu) {
    padding-top: 6px;
    padding-bottom: 6px;
}
.navbar-brand .__inline-11,
.navbar-brand img.__inline-11 {
    height: 92px !important;
    max-height: none !important;
    width: auto !important;
    margin-top: -14px;
    margin-bottom: -14px;
    position: relative;
    z-index: 5;
}
.navbar-brand {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.navbar-brand.__min-w-7rem {
    min-width: auto !important;
}
.mobile-logo-img {
    max-height: 60px !important;
    width: auto !important;
}
@media (max-width: 767px) {
    .navbar-brand .__inline-11 {
        height: 60px !important;
        margin-top: -4px;
        margin-bottom: -4px;
    }
}

/* ---------- Topbar : léger survol des liens ---------- */
.topbar .topbar-link {
    transition: opacity .2s ease;
}
.topbar .topbar-link:hover {
    opacity: 0.85;
}

/* ---------- Bouton recherche : rouge ---------- */
.search_form .search_button .input-group-text,
.input-group-append-overlay .input-group-text {
    background: var(--dd-red) !important;
    border-color: var(--dd-red) !important;
}

/* ---------- Prix : rouge ---------- */
.product-price,
.product-price-with-discount .price,
.single-product-details .product-price {
    color: var(--dd-red) !important;
}
.product-price del,
.category-single-product-price {
    color: #8a94a6 !important;
}

/* ---------- Hero pleine largeur : l'image occupe TOUTE la largeur de l'écran
   (mobile, tablette, desktop), la hauteur s'adapte au ratio de l'image ---------- */
.dd-hero-section {
    background: var(--dd-navy);
    padding: 0;
}
.dd-hero-section .container {
    max-width: 100% !important;
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.dd-hero-section .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
/* annule l'espace réservé à l'ancienne colonne catégories */
.__top-slider-images {
    max-width: 100% !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    padding: 0 !important;
}
.hero-slider {
    border-radius: 0; /* pleine largeur : pas de coins arrondis ni d'ombre */
    overflow: hidden;
    box-shadow: none;
}

/* ---------- Bannières milieu de page + pied de page : cadres plus hauts ---------- */
/* le thème forçait 165px (rognage) ; on affiche l'image entière, non rognée */
.rtl .footer_banner_img,
.container .footer_banner_img,
.promotional-banner-slider .footer_banner_img {
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    width: 100% !important;
    border-radius: 10px;
}

.hero-slider .__slide-img,
.hero-slider .__slide-img-170 {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    object-fit: cover;
    display: block;
}
/* flèches du slider hero plus visibles */
.hero-slider .owl-nav button.owl-prev,
.hero-slider .owl-nav button.owl-next {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--dd-navy) !important;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* ---------- Barre réassurance : carte blanche sous le hero (maquette) ---------- */
.shipping-policy-web {
    background: #fff !important;
    border-radius: 14px;
    border: 1px solid #eef3f9;
    box-shadow: 0 8px 28px rgba(14, 42, 78, 0.10);
    padding: 22px 14px;
    position: relative;
    z-index: 3;
    margin-top: -18px;
}
.shipping-policy-web p {
    color: var(--dd-navy) !important;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase; /* éléments promotionnels en majuscules */
    margin: 0;
}
.shipping-policy-web .shopping-method-icon {
    background: var(--dd-blue) !important;
    width: 58px !important;
    height: 58px !important;
    box-shadow: 0 4px 12px rgba(17, 115, 212, 0.25);
}
.shipping-policy-web .shopping-method-icon img {
    filter: brightness(0) invert(1); /* icône en blanc sur pastille bleue */
    width: 30px !important;
    height: 30px !important;
}
@media (max-width: 767px) {
    .shipping-policy-web {
        margin-top: 14px;
    }
}

/* ============================================================
   Footer DD STORE (refonte épurée)
   ============================================================ */
.dd-footer {
    background: var(--dd-navy);
    color: rgba(255, 255, 255, 0.82);
}
.dd-footer-main {
    padding: 48px 0 34px;
}

/* Logo : aucun cadre blanc, affiché tel quel */
.dd-footer-logo img {
    max-width: 190px;
    height: auto;
}
.dd-footer-tagline {
    margin: 16px 0 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

/* Réseaux sociaux */
.dd-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.dd-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    font-size: 16px;
    transition: background .2s ease, transform .2s ease;
}
.dd-social-btn:hover {
    background: var(--dd-red);
    color: #fff;
    transform: translateY(-3px);
}

/* Titres de colonnes : trait rouge dessous */
.dd-footer-title {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.4px;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 18px;
}
.dd-footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 3px;
    background: var(--dd-red);
    border-radius: 2px;
}

/* Listes de liens */
.dd-footer-links,
.dd-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dd-footer-links li {
    margin-bottom: 10px;
}
.dd-footer-links a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    transition: color .2s ease, padding-left .2s ease;
    display: inline-block;
}
.dd-footer-links a:hover {
    color: var(--dd-sky);
    padding-left: 4px;
}

/* Bloc contact */
.dd-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}
.dd-footer-contact li i {
    color: var(--dd-sky);
    width: 18px;
    text-align: center;
    margin-top: 3px;
    flex-shrink: 0;
}
.dd-footer-contact a {
    color: rgba(255, 255, 255, 0.82);
    transition: color .2s ease;
}
.dd-footer-contact a:hover {
    color: var(--dd-sky);
}

/* Barre du bas */
.dd-footer-bottom {
    background: #0A2140;
    padding: 16px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}
.dd-footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}
/* Ligne moyens de paiement */
.dd-payment-note {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}
.dd-pay-badge {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
}
@media (max-width: 767px) {
    .dd-footer-main { padding: 34px 0 20px; }
    .dd-footer-title::after { left: 0; }
    .dd-payment-note { justify-content: center; }
}

/* ---------- Page À propos (et pages business) ---------- */
.for-padding h1,
.for-padding h2,
.for-padding h3 {
    color: var(--dd-blue);
    font-weight: 700;
}
.for-padding h2 {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 20px;
    font-size: 26px;
}
.for-padding h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--dd-red);
    border-radius: 2px;
}
.for-padding p {
    line-height: 1.9;
    color: #3d4d63;
    margin-bottom: 14px;
}
.for-padding ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 16px;
}
.for-padding ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    line-height: 1.7;
    color: #3d4d63;
}
.for-padding ul li::before {
    content: "\f00c";
    font-family: "FontAwesome";
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--dd-sky);
    font-weight: 900;
}

/* Grille d'engagements DD STORE (dans la page À propos) */
.dd-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 16px;
    margin: 26px 0;
}
.dd-value-card {
    background: #f6fafe;
    border: 1px solid #e3eefb;
    border-radius: 12px;
    padding: 22px 18px;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}
.dd-value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(17, 115, 212, 0.12);
}
.dd-value-card .dd-value-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dd-blue), var(--dd-sky));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.dd-value-card h4 {
    color: var(--dd-navy);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}
.dd-value-card p {
    font-size: 13.5px;
    color: #6a7688;
    margin: 0;
    line-height: 1.6;
}

/* Encadré coordonnées boutique */
.dd-contact-box {
    background: var(--dd-navy);
    color: #fff;
    border-radius: 12px;
    padding: 24px 26px;
    margin-top: 26px;
}
.dd-contact-box h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 14px;
}
.dd-contact-box p {
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 8px;
    line-height: 1.8;
}
.dd-contact-box i {
    color: var(--dd-sky);
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

/* ---------- Bouton Commander via WhatsApp (fiche produit + quick-view) ---------- */
.btn-dd-whatsapp {
    background: #25D366;
    color: #fff !important;
    font-weight: 600;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
}
.btn-dd-whatsapp:hover {
    background: #1EBE5A;
    color: #fff !important;
}

/* Aligner les boutons Acheter / Ajouter au panier avec le bouton WhatsApp (même largeur totale) */
.product-add-and-buy-section > .btn:not(.product-action-add-wishlist) {
    flex: 1 1 0;
}

/* ---------- Liens téléphone et e-mail cliquables (le thème les désactivait) ---------- */
a[href^="tel:"],
a[href^="mailto:"] {
    pointer-events: auto !important;
    cursor: pointer;
}

/* ============================================================
   DD STORE : textes en MAJUSCULES
   ============================================================ */
/* Noms des produits (cartes, listes, deal du jour, page produit) */
.flash-product-title,
.single-product-details h2,
.single-product-details h3,
.single-product-details h4,
.single-product-details h2 a,
.single-product-details h3 a,
.single-product-details h4 a,
.deal_of_the_day h3,
.flash_deal_product_details > div > a,
h2.__inline-24 {
    text-transform: uppercase !important;
}
/* Noms des catégories : majuscules + gras */
.__cate-item h3,
.__inline-62 h3,
.category-item-name,
.categories-page-item h3,
.category-single-product .categories-item-name {
    text-transform: uppercase !important;
    font-weight: 700 !important;
}

/* ============================================================
   Page Contact : carte coordonnées (le formulaire a été retiré)
   ============================================================ */
.dd-contact-card {
    border: 1px solid #eef3f9;
    border-radius: 0;
    box-shadow: 0 8px 28px rgba(14, 42, 78, 0.08);
}
.dd-contact-card .card-body {
    padding: 28px 30px;
}
.dd-contact-title {
    color: var(--dd-navy);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.dd-contact-intro {
    color: #5c6b7f;
    margin-bottom: 22px;
    line-height: 1.7;
}
.dd-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.dd-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.dd-contact-list strong {
    display: block;
    color: var(--dd-navy);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.dd-contact-list a {
    color: var(--dd-blue);
    font-weight: 600;
}
.dd-contact-list a:hover {
    color: var(--dd-red);
}
.dd-contact-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--dd-blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    box-shadow: 0 4px 12px rgba(17, 115, 212, 0.25);
}
.dd-contact-icon-whatsapp {
    background: #25D366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}
.dd-contact-social strong {
    color: var(--dd-navy);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}
/* boutons sociaux : version fond clair (ceux du footer sont blancs sur bleu marine) */
.dd-contact-card .dd-social-btn {
    background: var(--dd-navy);
    color: #fff;
}
.dd-contact-card .dd-social-btn:hover {
    background: var(--dd-red);
}
@media (max-width: 991px) {
    .dd-contact-card .card-body {
        padding: 22px 18px;
    }
}
