/* ============================================
   PAGE PRODUIT - MAISON SUSHI
   Primary: #222248 | Accent: #F19D76
   ============================================ */

:root {
    --primary: #222248;
    --primary-light: #2e2f6b;
    --accent: #F19D76;
    --accent-dark: #e07a4a;
    --text-dark: #1a1a2e;
    --text-mid: #4a4a6a;
    --text-light: #8888aa;
    --bg-soft: #f7f7fb;
    --bg-card: #ffffff;
    --border: #e8e8f0;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 2px 10px rgba(34, 34, 72, 0.08);
    --shadow-md: 0 6px 24px rgba(34, 34, 72, 0.12);
    --shadow-lg: 0 12px 40px rgba(34, 34, 72, 0.16);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   CACHE RÉASSURANCE
   ============================================ */
.blockreassurance_product {
    display: none;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    padding: 16px 0;
    font-size: 13px;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition);
}

.breadcrumb li a:hover {
    color: var(--accent);
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: var(--border);
}

.breadcrumb li:last-child span {
    color: var(--text-mid);
    font-weight: 500;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.page-product #wrapper .container {
    width: 75%;
}

#main .product-container {
    padding: 48px 0 2px;
    gap: 60px;
    align-items: flex-start;
}

/* ============================================
   ZONE IMAGE (colonne gauche)
   ============================================ */
.product-container .col-md-6:first-child {
    position: relative;
}

.product-cover {
    position: relative;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-soft);
    aspect-ratio: 1 / 1;
    box-shadow: var(--shadow-md);
}

.product-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-cover:hover img {
    transform: scale(1.04);
}

.product-cover .layer {
    position: absolute;
    inset: 0;
    background: rgba(34, 34, 72, 0.0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition);
    cursor: pointer;
}

.product-cover:hover .layer {
    background: rgba(34, 34, 72, 0.25);
    opacity: 1;
}

.product-cover .layer .material-icons {
    color: #fff;
    font-size: 40px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Flags */
.product-flags {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-flag {
    background: var(--primary);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.product-flag.discount {
    background: #27ae60;
}

.product-flag.new {
    background: #2980b9;
}

/* Thumbnails */
.product-images {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    list-style: none;
    padding-left: 0;
}

.product-images::-webkit-scrollbar {
    height: 4px;
}

.product-images::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.product-images .thumb-container {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-soft);
}

.product-images .thumb-container:hover,
.product-images .thumb-container.js-thumb-selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(241, 157, 118, 0.2);
}

.product-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   ZONE INFOS (colonne droite)
   ============================================ */
.product-container .col-md-6:last-child {
    display: flex;
    flex-direction: column;
}

/* Titre */
.product-container h1.h1 {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 24px;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

/* ============================================
   BLOC PRIX
   ============================================ */
.product-prices {
    display: flex;
    align-items: flex-start;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 10px 20px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    gap: 13px;
    box-shadow: var(--shadow-md);
    align-content: space-around;
}

.current-price-value {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
}

.tax-shipping-delivery-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: -8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.regular-price {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
}

/* ============================================
   DESCRIPTION COURTE
   ============================================ */
#product-description-short-334,
.product-information>.product-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-mid);
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

/* ============================================
   BLOC AJOUT AU PANIER — REFONTE COMPLÈTE
   ============================================ */
.product-add-to-cart {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

/* Label Quantité */
.product-add-to-cart .control-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-light);
    margin-bottom: 14px;
}

/* -------- QUANTITÉ — nouveau design -------- */
.product-quantity {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.qty {
    display: flex;
    align-items: center;
}

/* Remet à zéro le groupe Bootstrap touchspin */
.input-group.bootstrap-touchspin {
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: 23px;
    overflow: hidden;
    width: auto;
    background: var(--bg-soft);
    transition: border-color var(--transition), box-shadow var(--transition);
    height: 53px;
}

.input-group.bootstrap-touchspin:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(241, 157, 118, 0.18);
}

/* Champ numérique */
#quantity_wanted {
    border: none;
    background: transparent;
    text-align: center;
    width: 52px;
    height: 51px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    padding: 0;
    outline: none;
    -moz-appearance: textfield;
    box-sizing: border-box;
}

#quantity_wanted::-webkit-outer-spin-button,
#quantity_wanted::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Boutons +/- en vertical → on les place latéralement */
.input-group-btn-vertical {
    display: contents;
    /* permet de placer les boutons avant/après l'input */
}

.input-group-btn-vertical .btn-touchspin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 51px;
    background: transparent;
    border: none;
    color: var(--text-mid);
    font-size: 20px;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    flex-shrink: 0;
    outline: none;
    -webkit-appearance: none;
}

.input-group-btn-vertical .bootstrap-touchspin-down {
    order: 1;
    border-radius: 50px 0 0 50px;
}

.input-group-btn-vertical .bootstrap-touchspin-up {
    order: 3;
    border-radius: 0 50px 50px 0;
}

.input-group-btn-vertical .btn-touchspin::after {
    font-family: 'Material Icons';
    font-size: 20px;
}

.input-group-btn-vertical .bootstrap-touchspin-down::after {
    content: 'remove';
}

.input-group-btn-vertical .bootstrap-touchspin-up::after {
    content: 'add';
}

/* Cacher les icones Material Icons générés automatiquement */
.input-group-btn-vertical .btn-touchspin .material-icons {
    display: none;
}

.input-group-btn-vertical .btn-touchspin:hover {
    background: #e74c3c;
    color: #fff;
}

.input-group-btn-vertical .btn-touchspin:active {
    background: var(--accent-dark);
}

/* -------- Div .add = bouton panier -------- */
.product-quantity .add {
    flex: 1;
    min-width: 180px;
}

.btn.btn-primary.add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0 28px;
    height: 52px;
    background: #e74c3c !important;
    color: #ffffff !important;
    border: none;
    border-radius: 0px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(241, 157, 118, 0.4);
    position: relative;
    overflow: hidden;
}

.btn.btn-primary.add-to-cart::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #e74c3c1c;
    color: #141414;
    opacity: 0;
    transition: opacity var(--transition);
}

.btn.btn-primary.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(241, 157, 118, 0.55);
}

.btn.btn-primary.add-to-cart:hover::before {
    opacity: 1;
}

.btn.btn-primary.add-to-cart:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(241, 157, 118, 0.4);
}

.btn.btn-primary.add-to-cart .material-icons.shopping-cart {
    font-size: 20px;
}

/* Disponibilité */
#product-availability {
    display: block;
    margin-top: 14px;
    font-size: 13px;
    color: #27ae60;
    font-weight: 600;
}

.product-minimal-quantity {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 8px;
}

/* ============================================
   INFOS ADDITIONNELLES
   ============================================ */
.product-additional-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-light);
}

/* ============================================
   ONGLETS
   ============================================ */
.tabs {
    margin-top: 64px;
    clear: both;
}

.nav-tabs {
    border: none;
    display: flex;
    gap: 4px;
    background: var(--bg-soft);
    padding: 6px;
    border-radius: 50px;
    width: fit-content;
}

.nav-tabs .nav-item {
    margin: 0;
}

.nav-tabs .nav-link {
    border: none;
    background: transparent;
    color: var(--text-light);
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all var(--transition);
    border-radius: 50px;
    white-space: nowrap;
}

.nav-tabs .nav-link:hover {
    color: var(--primary);
}

.nav-tabs .nav-link.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    padding: 32px 4px 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeUp 0.3s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content .product-description {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-mid);
    border: none;
    padding: 0;
    margin: 0;
    max-width: 680px;
}

/* Référence produit */
.product-reference {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    gap: 8px;
    align-items: center;
}

.product-reference .label {
    font-weight: 600;
    color: var(--text-mid);
}

/* ============================================
   FEATURES
   ============================================ */
.product-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    display: flex;
    gap: 24px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.product-features li:last-child {
    border-bottom: none;
}

.product-features .label {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 160px;
    flex-shrink: 0;
}

.product-features .value {
    color: var(--text-mid);
}

/* ============================================
   VARIANTS
   ============================================ */
.product-variants {
    margin-bottom: 20px;
}

.product-variants label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
    display: block;
}

.product-variants select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-dark);
    background: var(--bg-card);
    transition: border-color var(--transition);
    cursor: pointer;
    outline: none;
}

.product-variants select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(241, 157, 118, 0.18);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .page-product .container {
        width: 92%;
    }

    #main .product-container {
        padding: 32px 0;
        gap: 32px;
    }

    .product-container h1.h1 {
        font-size: 24px;
    }

    .current-price-value {
        font-size: 30px;
    }

    .page-product #wrapper .container {
        width: 100%;
    }
}

@media (max-width: 767px) {

    .page-product .qty.input-group.bootstrap-touchspin{
        margin-left: 20%;
    }

    .product-quantity {
        display: block;
    }
    .page-product .container {
        width: 96%;
    }

    #main .product-container {
        padding: 20px 0;
    }

    .product-container h1.h1 {
        font-size: 21px;
    }

    .current-price-value {
        font-size: 26px;
    }

    .product-add-to-cart {
        padding: 20px;
    }

    .product-quantity {
        gap: 12px;
    }

    .product-quantity .add {
        min-width: 0;
        width: 100%;
    }

    .nav-tabs {
        width: 100%;
        border-radius: var(--radius-sm);
    }

    .nav-tabs .nav-link {
        flex: 1;
        text-align: center;
        padding: 10px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .product-container h1.h1 {
        font-size: 18px;
    }

    .current-price-value {
        font-size: 22px;
    }

    .product-prices {
        padding: 16px 18px;
    }

    .product-add-to-cart {
        padding: 16px;
    }

    .product-quantity {
        flex-direction: column;
        align-items: stretch;
    }

    .qty {
        justify-content: center;
    }

    .input-group.bootstrap-touchspin {
        width: 160px;
        margin: 0 auto;
    }
}


.page-product #wrapper .tabs {
    display: none;
}


/* --- STYLISATION POPUP PANIER (MODAL) --- */

/* Fenêtre principale */
#blockcart-modal .modal-content {
    background: #1a1a2e !important;
    /* Fond sombre */
    color: #515050 !important;
    border-radius: 20px;
    border: 1px solid #343751;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

/* Header de la popup */
#blockcart-modal .modal-header {
    
    background: #22223b !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
}

#blockcart-modal .modal-title {
    color: #ffffff !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 16px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

#blockcart-modal .modal-title i {
    color: #44bd32;
    /* Vert pour le succès */
    margin-right: 10px;
}

/* Bouton fermer (X) */
#blockcart-modal .close {
    color: #fff;
    opacity: 0.7;
    text-shadow: none;
}

/* Corps de la popup */
#blockcart-modal .modal-body {
    padding: 30px !important;
}

/* Image du produit */
#blockcart-modal .product-image {
    border-radius: 12px;
    max-width: 100%;
    margin-bottom: 15px;
}

/* Infos produit (gauche) */
#blockcart-modal .product-name {
    color: #000000 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 10px;
}

#blockcart-modal .product-price,
#blockcart-modal .product-quantity {
    color: #a3896b !important;
    /* Couleur bronze */
    font-size: 15px;
}

/* Séparateur vertical */
#blockcart-modal .divide-right {
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Récapitulatif Panier (droite) */
.cart-content p {
    color: #bdc3c7;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.cart-content .value {
    color: #fff;
    font-weight: 600;
}

/* Total TTC */
.cart-content .product-total {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.cart-content .product-total .label {
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
}

.cart-content .product-total .value {
    font-size: 20px;
    color: #000000;
}

/* --- BOUTONS --- */
.cart-content-btn {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

/* Bouton Continuer mes achats */
.cart-content-btn .btn-secondary {
    background: transparent !important;
    color: #000000 !important;
    border: 1px solid #444868 !important;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    flex: 1;
    border-radius: 8px;
    padding: 12px;
}

/* Bouton Commander */
.cart-content-btn .btn-primary {
    background: #a3896b !important;
    /* Couleur bronze/gold */
    border: none !important;
    color: #fff !important;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    flex: 1;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-content-btn .btn-primary:hover {
    background: #8e755a !important;
    transform: translateY(-2px);
}

/* Responsive mobile */
@media (max-width: 767px) {
    #blockcart-modal .divide-right {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .cart-content-btn {
        flex-direction: column;
        width: 100%;
    }
}


/* --- STYLISATION CARROUSEL "VOUS AIMEREZ AUSSI" --- */

/* 1. Conteneur et Flèches */
.related-carousel-wrapper {
    padding: 20px 0;
    position: relative;
}

.related-carousel-wrapper .related-carousel-arrow {
    background: #ffffff !important;
    border: 1px solid #eee !important;
    border-radius: 50% !important;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222248 !important;
    transition: all 0.3s ease;
    z-index: 10;
}

.related-carousel-wrapper .related-carousel-arrow:hover {
    background: #222248 !important;
    color: #fff !important;
    border-color: #222248 !important;
}

/* 2. La Carte Produit (Miniature) */
.related-carousel-wrapper .product-miniature {
    background: #ffffff;
    border-radius: 20px;
    padding: 15px;
    margin: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.related-carousel-wrapper .product-miniature:hover {
    transform: translateY(-5px);
}

/* 3. Image du produit */
.related-carousel-wrapper .product-card-img {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.related-carousel-wrapper .product-card-img img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.related-carousel-wrapper .product-miniature:hover .product-card-img img {
    transform: scale(1.1);
}

/* Badge "Nouveau" ou Promo */
.related-carousel-wrapper .product-flag.new {
    background: #222248 !important;
    color: #fff !important;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
    top: 10px;
    left: 10px;
}

/* 4. Texte et Titres */
.related-carousel-wrapper .product-card-body {
    padding-top: 15px;
    text-align: left;
}

.related-carousel-wrapper .product-card-title-link {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #222248 !important;
    text-decoration: none !important;
    display: block;
    height: 40px;
    /* Aligne les titres sur 2 lignes */
    overflow: hidden;
}

.related-carousel-wrapper .product-card-subtitle {
    font-size: 12px;
    color: #a4b0be;
    font-weight: 600;
    margin-bottom: 5px;
}

/* 5. Footer (Prix + Bouton Ajouter) */
.related-carousel-wrapper .product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.related-carousel-wrapper .product-card-price {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #222248 !important;
}

/* Le bouton "+" design */
.related-carousel-wrapper .product-card-btn-add {
    background: #222248 !important;
    color: #ffffff !important;
    width: 35px;
    height: 35px;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-size: 20px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.related-carousel-wrapper .product-card-btn-add:hover {
    background: #000 !important;
    transform: rotate(90deg);
}


.clearfix.product-variants-item .control-label {
    display: none !important;
}

.ams-multiselect-group .radio-label-with-image {
    border: none !important;
}

.page-product button.btn.btn-touchspin.js-touchspin.bootstrap-touchspin-up {
    display: none;
}

.page-product button.btn.btn-touchspin.js-touchspin.bootstrap-touchspin-down {
    display: none;
}

.page-product.modal-quantity {
    display: none !important;
}

.modal-content.product-quantity.clearfix.unmodal-quantity {
    display: none !important;
}

.page-category .unmodal-quantity {
    display: none !important;
}