body {
    margin: 0;
    background: var(--main-background);
    padding: 0;
}

header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

main {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 20px;
	
	
    max-width: 1800px;
    margin: 0 auto;
}

.image-wrapper {
    position: relative;
    padding: 20px;
    background: white;
}

.product-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: white;
    border-radius: 10px;
}

.product-subtitles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 35px;
}

.product-subtitle {
    color: #de3d41;
    padding: 4px 12px;
    font-size: 1em;
    font-weight: 500;
    margin-bottom: 35px;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 2;
    width: 32px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.arrow:hover {
    transform: translateY(-50%) scale(0.95);
}

.arrow:active {
    transform: translateY(-50%) scale(1.1);
}

.arrow img {
    height: 24px;
    width: auto;
}

.arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}

.thumbnail-bar {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
    justify-content: center;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.thumbnail-bar img {
    height: 60px;
    cursor: pointer;
    border-radius: 5px;
    border: 2px solid transparent;
    scroll-snap-align: start;
}

.thumbnail-bar img.active {
    border-color: #de3d41;
}

#cart-icon {
    position: relative;
    font-size: 24px;
    cursor: pointer;
}

.details-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 280px;
    background: #f1f1f1;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#product-name {
    color: #de3d41;
    font-size: 2.5em;
    margin: -5px 0 5px 0;
}

#product-price {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    color: black;
    font-weight: bold;
    font-size: 2.7em;
}

.product-price-taxe{
    font-size:.7em;
}

.ht-label {
    font-size: 0.7em;
    font-weight: lighter;
    margin-left: 4px;
}

#add-to-cart-btn {
    background: #FFD500;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#add-to-cart-btn:hover {
    background-color: #de3d41;
    color: white;
}

.product-price {
    margin:0;
}

.quantity-input {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 15px 0;
}

.quantity-input input {
    width: 50px;
    height: 40px;
    text-align: center;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.quantity-input input::-webkit-inner-spin-button,
.quantity-input input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input input[type="number"] {
    -moz-appearance: textfield;
}

.quantity-input button {
    width: 40px;
    height: 40px;
    font-size: 20px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

.quantity-input button:hover {
    background: #eee;
}

/* Mode bundle : sélecteur de quantité par lots */
.quantity-input.bundle-mode select#qty-input {
    height: 40px;
    min-width: 90px;
    padding: 0 14px;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    text-align-last: center;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.quantity-input.bundle-mode select#qty-input:hover {
    border-color: #999;
}

.quantity-input.bundle-mode select#qty-input:focus-visible {
    outline: none;
    border-color: #de3d41;
    box-shadow: 0 0 0 3px rgba(222, 61, 65, 0.15);
}

section {
    padding: 20px;
}

/* ===================== Produits Associés ===================== */
.associated-products {
    margin-top: 40px;
    padding: 0;
    background: transparent;
}

.associated-products__title {
    font-size: 1.5em;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #de3d41;
}

.associated-products__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.associated-product {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.associated-product:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
}

.associated-product__link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    gap: 16px;
    height: 100%;
}

.associated-product__thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.associated-product__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.associated-product__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.associated-product__name {
    font-weight: 600;
    font-size: 1em;
    color: #333;
}

.associated-product:hover .associated-product__name {
    color: #de3d41;
}

.associated-product__ref {
    font-size: 0.85em;
    color: #888;
}

.bundle-info {
    font-size: 0.85em;
    color: #888;
    margin-top: 6px;
}

/* Produits enfants (sous-niveaux) */
.associated-product__children {
    padding: 0 0 12px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.associated-product--child {
    background: #f9f9f9;
    border-left: 3px solid #de3d41;
}

.associated-product--child .associated-product__link {
    padding: 10px 14px;
}

.associated-product--child .associated-product__thumb {
    width: 50px;
    height: 50px;
}

.associated-product--child .associated-product__name {
    font-size: 0.95em;
}

/* Responsive */
@media (max-width: 600px) {
    .associated-product__thumb {
        width: 50px;
        height: 50px;
    }

    .associated-product__children {
        padding-left: 16px;
    }
}





/* ===================== PRODUCT BUY AREA / PRICE ===================== */

.details-box {
    align-items: stretch !important;
    background: #f3f3f3 !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 28px rgba(0,0,0,.07) !important;
    padding: 24px !important;
}

#product-price.product-price {
    width: 100% !important;
    margin: 0 0 4px 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 8px !important;
    color: #de3d41 !important;
    font-size: 44px !important;
    line-height: .9 !important;
    font-weight: 950 !important;
    letter-spacing: -.04em !important;
}

#product-price.product-price::before {
    content: "Prix location";
    display: block;
    position: absolute;
    margin-top: -22px;
    color: #777;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

#product-price .product-price-taxe {
    margin-top: 2px !important;
    color: #de3d41 !important;
    font-size: 22px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    letter-spacing: -.02em !important;
}

.stock-data {
    display: block ;
    width: fit-content !important;
    margin: 8px auto 16px auto !important;
    padding: 5px 11px !important;
    color: #087a3a !important;
    background: rgba(8,122,58,.08) !important;
    border: 1px solid rgba(8,122,58,.18) !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    text-align: center !important;
}

.quantity-input {
    justify-content: center !important;
    margin: 0 0 14px 0 !important;
}

.quantity-input.bundle-mode select#qty-input,
.quantity-input input {
    min-width: 215px !important;
    height: 44px !important;
    border: 1px solid rgba(0,0,0,.18) !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #111 !important;
    font-size: 15px !important;
    font-weight: 850 !important;
    text-align: center !important;
    box-shadow: 0 3px 10px rgba(0,0,0,.04) !important;
}

.quantity-input button {
    width: 44px !important;
    height: 44px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(0,0,0,.18) !important;
    background: #fff !important;
    color: #111 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
}

.add-to-cart {
    display: block !important;
    width: fit-content !important;
    min-width: 150px !important;
    margin: 0 auto 8px auto !important;
    padding: 13px 22px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #ffd400 !important;
    color: #111 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: .02em !important;
    cursor: pointer !important;
    box-shadow: 0 8px 18px rgba(0,0,0,.10) !important;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease !important;
}

.add-to-cart:hover {
    transform: translateY(-2px) !important;
    background: #de3d41 !important;
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(222,61,65,.24) !important;
}
