/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.0.0
*/

/* Accordéon des informations produit */
.infos-produit-accordeon {
    margin: 40px 0;
    max-width: 100%;
}

.accordeon-item {
    margin-bottom: 10px;
    border: 2px solid #000;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
}

.accordeon-header {
    width: 100%;
    padding: 20px;
    background: #fff !important;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    color: #000 !important;
    transition: none !important;
}

.accordeon-header:hover {
    background: #fff !important;
}

.accordeon-header span {
    color: #000 !important;
}

.accordeon-item.active .accordeon-header {
    background: #fff !important;
}

.accordeon-icon {
    font-size: 24px;
    font-weight: 700;
    color: #000 !important;
}

.accordeon-content {
    display: none;
    padding: 20px;
    background: #fff;
    border-top: 2px solid #000;
    color: #000;
}

.accordeon-content p {
    color: #000;
}

.accordeon-content p:last-child {
    margin-bottom: 0;
}

/* Cacher les icônes de zoom/loupe sur les images produit */
.product_image_slider__trigger,
.product_image_slider__trigger a,
.product_image_slider__trigger svg {
    display: none !important;
}

svg[viewBox="0 0 512 512"] path[d*="M416 208c0 45.9"] {
    display: none !important;
}

svg[viewBox="0 0 512 512"]:has(path[d*="M416 208c0 45.9"]) {
    display: none !important;
}

/* Enlever le fond gris du select des variations */
.variations select,
.variations_form select,
.variations .value select,
table.variations select {
    background-color: #fff !important;
    background: #fff !important;
}

.variations,
.variations_form .variations,
table.variations td.value {
    background-color: transparent !important;
    background: transparent !important;
}

table.variations tr {
    background-color: transparent !important;
}

/* Enlever le fond gris du label "Goût" */
table.variations th.label {
    background-color: transparent !important;
    background: transparent !important;
}

table.variations th,
table.variations td {
    background-color: transparent !important;
    background: transparent !important;
}

/* S'assurer que le select garde sa flèche native */
.variations select,
.variations_form select {
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    appearance: menulist !important;
}

/* Réorganiser les variations : label au-dessus, select en dessous */
table.variations {
    display: block !important;
}

table.variations tbody {
    display: block !important;
}

table.variations tr {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-bottom: 20px;
}

table.variations th.label {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    margin-bottom: 10px;
    padding: 0 !important;
}

table.variations td.value {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
}

table.variations select {
    width: 100% !important;
    max-width: 300px;
    text-align: left !important;
}

/* Styliser UNIQUEMENT le prix du widget Elementor sur la fiche produit */
.elementor-widget-woocommerce-product-price .price,
.elementor-widget-woocommerce-product-price p.price {
    color: #e24524 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
}

.elementor-widget-woocommerce-product-price .woocommerce-Price-amount,
.elementor-widget-woocommerce-product-price span.woocommerce-Price-amount {
    color: #e24524 !important;
}

.elementor-widget-woocommerce-product-price .price bdi,
.elementor-widget-woocommerce-product-price .woocommerce-Price-amount bdi {
    color: #e24524 !important;
}

.elementor-widget-woocommerce-product-price .woocommerce-Price-currencySymbol {
    color: #e24524 !important;
}

/* Si le prix est barré (promo) */
.elementor-widget-woocommerce-product-price del .woocommerce-Price-amount,
.elementor-widget-woocommerce-product-price del .price {
    color: #999 !important;
    font-size: 20px !important;
}

/* Prix en promotion (nouveau prix) */
.elementor-widget-woocommerce-product-price ins .woocommerce-Price-amount,
.elementor-widget-woocommerce-product-price ins .price {
    color: #e24524 !important;
    font-size: 28px !important;
    text-decoration: none !important;
}

/* Boutons +/- pour la quantité */
.quantity-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.minus-btn,
.plus-btn {
    width: 50px;
    height: 50px;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #000 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: none !important;
    padding: 0;
    line-height: 1;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.minus-btn:hover,
.plus-btn:hover {
    background: transparent !important;
    opacity: 0.7;
}

.quantity-wrapper .qty {
    width: 80px;
    height: 50px;
    text-align: center;
    border: 2px solid #000;
    border-radius: 5px;
    -moz-appearance: textfield;
    margin: 0 !important;
    font-size: 18px;
    font-weight: 600;
}

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