/* Digitall — Vitrine boutique (complète style.css) */
:root {
    --d-primary: #0f172a;
    --d-accent: #f26522;
    --d-accent-hover: #e05518;
    --d-surface: #ffffff;
    --d-muted: #64748b;
    --d-radius: 12px;
    --d-font: 'Outfit', 'Poppins', system-ui, sans-serif;
}

body.digitall-store-body {
    font-family: var(--d-font);
    background: #f4f6f9;
    min-height: 100vh;
}

/* Bannière : image d'origine du site */
.banner_bg_main.digitall-store-banner {
    width: 100%;
    float: none;
    clear: both;
    overflow: hidden;
    background-image: url(../images/banner_bg.png);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    padding-bottom: 0;
}

/* Navbar sur la bannière */
.digitall-nav {
    background: rgba(33, 37, 41, 0.88) !important;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

.digitall-nav .navbar-brand img {
    height: 44px;
    border-radius: 8px;
    transition: transform 0.2s;
}

.digitall-nav .navbar-brand img:hover {
    transform: scale(1.05);
}

.digitall-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px;
}

.digitall-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
}

.digitall-nav .btn-nav-cta {
    border-radius: 8px;
    font-weight: 600;
}

/* Zone hero : texte lisible sur l'image orange (comme l'ancien bandeau) */
.digitall-hero {
    background: transparent;
    margin-top: 56px;
    padding: 1.25rem 0 1.5rem;
    text-align: center;
}

.digitall-hero--compact {
    padding: 0.85rem 0 1rem;
}

.digitall-hero-title,
.digitall-hero .banner_taital {
    width: 100%;
    font-size: clamp(1.35rem, 3vw, 2rem) !important;
    color: #1a1a1a !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.6);
    margin: 0 0 0.5rem;
    padding: 0;
}

.digitall-hero-sub {
    color: #333;
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto 1.25rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.digitall-hero .btn-shop,
.digitall-hero .buynow_bt a,
.digitall-hero a.btn-shop {
    background: #252525;
    color: #fff !important;
    font-weight: 600;
    padding: 0.7rem 1.75rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.2s;
}

.digitall-hero .btn-shop:hover,
.digitall-hero a.btn-shop:hover {
    background: var(--d-accent);
    color: #fff !important;
    transform: translateY(-2px);
}

/* Barre outils — hors bannière, layout flex isolé des anciens CSS */
.digitall-toolbar-wrap {
    position: relative;
    z-index: 20;
    margin: -1.25rem auto 1.5rem;
    padding: 0 0.75rem;
}

.digitall-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.75rem;
    background: var(--d-surface);
    border-radius: var(--d-radius);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12);
    padding: 0.85rem 1rem;
    max-width: 1140px;
    margin: 0 auto;
}

.digitall-toolbar-filters {
    display: flex;
    gap: 0.75rem;
    flex: 0 0 auto;
}

.digitall-toolbar-dropdown {
    min-width: 140px;
    margin: 0 !important;
    display: block !important;
    position: relative !important;
}

.digitall-toolbar-dropdown .btn {
    height: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.digitall-toolbar-search {
    flex: 1 1 280px;
    display: flex !important;
    align-items: stretch;
    width: auto !important;
    margin: 0 !important;
    min-width: 0;
}

.digitall-toolbar-search .form-control {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    border-radius: 8px 0 0 8px !important;
    border: 1px solid #dee2e6;
    height: 42px;
    font-size: 0.95rem;
}

.digitall-toolbar-search .btn-search {
    flex: 0 0 auto;
    background: var(--d-accent);
    border: 1px solid var(--d-accent);
    color: #fff;
    border-radius: 0 8px 8px 0 !important;
    padding: 0 1rem;
    min-width: 48px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.digitall-toolbar-search .btn-search:hover {
    background: var(--d-accent-hover);
    border-color: var(--d-accent-hover);
    color: #fff;
}

.digitall-toolbar-cart {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    min-width: 110px;
    padding-left: 0.25rem;
}

.digitall-toolbar-cart .cart-icon {
    font-size: 1.45rem;
    color: var(--d-primary);
    line-height: 1;
}

.digitall-toolbar-cart .cart-icon .badge {
    position: absolute;
    top: -6px;
    right: -8px;
    font-size: 0.65rem;
}

.digitall-toolbar-cart .cart-total {
    font-weight: 600;
    color: var(--d-primary);
    white-space: nowrap;
    font-size: 0.95rem;
}

/* Compatibilité ancien nom de classe */
.digitall-cart-pill {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.digitall-cart-pill .cart-icon {
    font-size: 1.5rem;
    color: var(--d-primary);
    position: relative;
}

.digitall-cart-pill .badge {
    position: absolute;
    top: -8px;
    right: -10px;
    font-size: 0.7rem;
}

@media (max-width: 991px) {
    .digitall-toolbar {
        flex-direction: column;
    }

    .digitall-toolbar-filters {
        width: 100%;
    }

    .digitall-toolbar-dropdown {
        flex: 1;
        min-width: 0;
    }

    .digitall-toolbar-search {
        width: 100% !important;
        flex: 1 1 100%;
    }

    .digitall-toolbar-cart {
        width: 100%;
        justify-content: center;
        padding: 0.25rem 0 0;
    }
}

@media (max-width: 575px) {
    .digitall-toolbar-wrap {
        margin-top: -0.75rem;
    }

    .digitall-toolbar-filters {
        flex-direction: column;
    }
}

/* Contenu pages internes */
.digitall-page-wrap {
    padding: 1rem 0 3rem;
    min-height: 40vh;
}

.digitall-page-wrap .product-detail-section {
    margin-top: 0;
    padding-top: 1rem;
}

/* Produits — grille plus dense */
.digitall-products {
    padding: 0 0 2.5rem;
}

.digitall-products .container,
.digitall-products .container-fluid {
    max-width: 1200px;
}

.digitall-products .fashion_section_2 {
    margin-top: 0.5rem;
}

.digitall-products .fashion_section_2 > .row {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
}

.digitall-products .fashion_taital,
.digitall-products h1.fashion_taital {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--d-primary);
    text-align: center;
    margin-bottom: 1rem;
}

.custom-product-card {
    border: none !important;
    border-radius: var(--d-radius) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    height: auto !important;
    min-height: 0;
}

.custom-product-card .card-body {
    padding: 0.75rem !important;
}

.custom-product-image {
    max-height: 150px !important;
    object-fit: contain !important;
    padding: 0.5rem;
    background: #fafafa;
}

.custom-card-title {
    font-size: 0.88rem !important;
    line-height: 1.3;
    margin-bottom: 0.35rem !important;
}

.custom-product-card .price_text,
.custom-product-card .btn-sm {
    font-size: 0.8rem !important;
}

.custom-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1) !important;
}

.custom-add-to-cart-btn {
    border-color: var(--d-accent) !important;
    color: var(--d-accent) !important;
}

.custom-add-to-cart-btn:hover {
    background: var(--d-accent) !important;
    color: #fff !important;
}

/* Footer */
.digitall-footer {
    background: linear-gradient(135deg, #0f172a, #1e293b) !important;
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 1.5rem !important;
}

.digitall-footer h5 {
    color: #fff;
    font-weight: 600;
}

.digitall-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.digitall-footer a:hover {
    color: var(--d-accent);
}

/* Masquer l'ancien layout dupliqué */
.logo_section,
.header_section,
.banner_section.layout_padding {
    display: none !important;
}

/* Panier */
.digitall-cart-page .card {
    border-radius: var(--d-radius);
    border: none;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.digitall-cart-page .input-group.quantity {
    max-width: 120px;
    margin: 0 auto;
}

/* Fiche produit */
.digitall-product-detail .product-card {
    background: #fff;
    border-radius: var(--d-radius);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.digitall-product-detail .product-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    padding: 25px;
    background: #fff;
}

.digitall-product-detail .price-tag {
    font-size: 1.8rem;
    color: var(--d-accent);
    font-weight: 700;
}

/* Checkout / paiement (client + visiteur) */
.digitall-checkout-page {
    min-height: 50vh;
}

.digitall-checkout-card {
    background: #fff;
    border-radius: var(--d-radius);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    padding: 1.75rem;
}

.digitall-checkout-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--d-dark);
    margin-bottom: 1rem;
}

.btn-digitall-primary {
    background: linear-gradient(135deg, var(--d-accent), #ea580c) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.65rem 1.35rem;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-digitall-primary:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.35);
}

.btn-digitall-outline {
    border: 2px solid var(--d-accent) !important;
    color: var(--d-accent) !important;
    font-weight: 600;
    border-radius: 10px;
    background: transparent !important;
}

.btn-digitall-outline:hover {
    background: var(--d-accent) !important;
    color: #fff !important;
}

.text-digitall-accent {
    color: var(--d-accent) !important;
}

/* Toast panier AJAX */
.digitall-toast-root {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.digitall-toast {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 260px;
    max-width: 360px;
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.15);
    font-size: 0.925rem;
    font-weight: 500;
    opacity: 0;
    transform: translateX(1rem);
    transition: opacity 0.25s, transform 0.25s;
}

.digitall-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.digitall-toast-success { border-left: 4px solid #22c55e; }
.digitall-toast-success i { color: #22c55e; }
.digitall-toast-warning { border-left: 4px solid #f59e0b; }
.digitall-toast-warning i { color: #f59e0b; }
.digitall-toast-error { border-left: 4px solid #ef4444; }
.digitall-toast-error i { color: #ef4444; }

.js-add-to-cart.adding { opacity: 0.7; }
.js-add-to-cart.added {
    background: #22c55e !important;
    border-color: #22c55e !important;
    color: #fff !important;
}

/* Espace client / compte */
.digitall-account-layout {
    min-height: 55vh;
}

.digitall-account-sidebar {
    background: #fff;
    border-radius: var(--d-radius);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
    position: sticky;
    top: 1rem;
}

.digitall-account-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--d-accent);
}

.digitall-account-nav .nav-link {
    color: #475569;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.digitall-account-nav .nav-link:hover {
    background: rgba(234, 88, 12, 0.08);
    color: var(--d-accent);
}

.digitall-account-nav .nav-link.active {
    background: linear-gradient(135deg, var(--d-accent), #ea580c);
    color: #fff !important;
}

.digitall-account-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.digitall-notif-panel {
    background: #fff;
    border-radius: var(--d-radius);
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.digitall-notif-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.digitall-notif-item:last-child { border-bottom: none; }

.digitall-notif-item.unread {
    border-left: 3px solid var(--d-accent);
    padding-left: 0.75rem;
    background: rgba(234, 88, 12, 0.04);
}

.digitall-order-card {
    background: #fff;
    border-radius: var(--d-radius);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
    padding: 1.25rem;
    height: 100%;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.digitall-order-card--pending {
    border-left: 4px solid var(--d-accent);
}

.digitall-order-thumb {
    max-height: 140px;
    object-fit: contain;
    width: 100%;
    background: #f8fafc;
}

.digitall-empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    background: #fff;
    border-radius: var(--d-radius);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.digitall-orders-table thead th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    border-bottom-width: 1px;
}

@media (max-width: 768px) {
    .banner_bg_main.digitall-store-banner {
        background-size: cover;
        background-position: 65% top;
    }
    .digitall-hero-title {
        font-size: 1.5rem !important;
    }
    .digitall-toolbar-wrap {
        margin-top: -0.5rem;
        margin-bottom: 1.25rem;
    }
}
