/*
Theme Name: astra Child
Theme URI: https://wpastra.com/
Description: Child theme for Twenty Twenty Five
Author: Brainstorm Force
Author URI: https://wpastra.com/about/
Template: astra
Version: 1.0.0
*/

/* Importa los estilos del parent theme */
@import url("../astra/style.css");

:root {
    --color-light-gray: #E5E7EB;
    --color-primary-blue: #2B7AF5;
    --color-orange: #FFA500;
    --color-green: #28A745;
}

.summary.entry-summary {
    width: 100% !important;
    display: flex;
    justify-content: center;
}

span.single-product-category {
    display: none !important;
}

.product-info {
    text-align: center;
}

.add-to-cart-form {
    display: flex;
    justify-content: center;
}

h1.product_title.entry-title {
    font-size: 38px;
    font-weight: 700;
}

form.variations_form.cart {
    display: flex;
    max-width: 570px;
}

form .variation {
    text-align: left;
}

input.input-text.qty.text {
    display: none;
}

.woocommerce-js div.product form.cart .button.single_add_to_cart_button {
    padding: 15px 20px;
    width: 100%;
    background: var(--color-orange);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
}

.woocommerce-js div.product form.cart .variations label {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25em;
    font-weight: 600;
}

.single-product form.variations_form.cart {
    padding: 20px;
    background: white;
    border-radius: 16px;
    min-width: 500px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.single-product form.variations_form.cart select {
    width: 100%;
    height: 60px;
    border-radius: 12px;
    border: 2px solid var(--color-light-gray);
    font-size: 16px;
    padding-left: 12px;
}

.woocommerce-variation,
.woocommerce-variation-price,
.woocommerce-variation-description,
.woocommerce-variation-availability {
    display: none !important;
}

/* Contenedor principal */
.single-product .variation-row {
    margin-bottom: 15px;
    display: flex;
}

.single-product .variation-row .label {
    width: 30%;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.single-product .variation-row .value {
    width: 70%;
}

/* Contenedor del select personalizado */
.single-product .variation-select-container {
    position: relative;
    width: 100%;
}

/* Select nativo (oculto pero funcional) */
.single-product .variation-select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 2;
    cursor: pointer;
}

/* Display visual personalizado */
.single-product .select-display {
    border: 1px solid #ddd;
    padding: 10px 40px 10px 12px;
    min-height: 42px;
    background: #fff;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    display: flex;
    align-items: center;
    border-radius: 3px;
}

/* Elementos del display */
.single-product .option-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 15px;
}

.single-product .price-text {
    color: #FF6B00;
    font-weight: bold;
    white-space: nowrap;
    margin-left: auto;
}

.single-product .badge-text {
    color: white;
    background: #28A745;
    font-weight: bold;
    font-size: 0.8em;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
    display: none;
}

/* Estado activo */
.single-product .variation-select-container.active .select-display {
    border-color: #999;
    box-shadow: 0 0 0 1px #999;
}


div#wapo-total-price-table {
    display: none;
}

h6.wapo-addon-title.toggle-closed {
    padding: 0;
    margin: 0;
}

input#yith-wapo-2-0 {
    width: 100%;
    height: 60px;
    border-radius: 12px;
    border: 2px solid var(--color-light-gray);
    font-size: 16px;
    padding-left: 12px;
}

.yith-wapo-addon.yith-wapo-addon-type-checkbox.default-closed.toggle-closed .options-container .options.per-row-1 {
    display: flex !important;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 40px;
}

#yith-wapo-option-1-0, 
#yith-wapo-option-1-1 {
    border: 2px solid var(--color-light-gray);
    padding: 22px;
    border-radius: 12px;
    position: relative;
    width: 47%;
    height: 100px;
}

#yith-wapo-option-1-0.selected,
#yith-wapo-option-1-1.selected {
    border: 2px solid var(--color-primary-blue);
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

#yith-wapo-option-1-1::after {
    content: "Recommended"; /* Texto del badge */
    position: absolute;
    top: 0;
    left: 50%; /* Centrado horizontal */
    transform: translateX(-50%) translateY(-50%); /* Ajuste fino de centrado */
    background-color: var(--color-orange); /* Naranja (puedes cambiarlo a hsl(30, 100%, 50%) o un HEX específico) */
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 12px; /* Bordes redondeados */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sutil sombra */
    white-space: nowrap; /* Evita saltos de línea */
    z-index: 10; /* Asegura que esté por encima de otros elementos */
  }

#yith-wapo-option-1-1 .yith-wapo-addon-label {
    color: var(--color-primary-blue);
}


label.yith-wapo-addon-label {
    font-weight: 600;
    font-size: 16px;
}

input#yith-wapo-1-1,
input#yith-wapo-1-0 {
    display: none;
}

.single-product .yith-wapo-addon-type-checkbox .options .yith-wapo-option .yith-wapo-addon-label {
    margin-left: 0px !important;
}

.yith-wapo-block .yith-wapo-addon .yith-wapo-option .description {
    font-size: 12px;
    word-break: break-word;
    text-align: left;
}


.yith-wapo-addon.yith-wapo-addon-type-text h3 {
    font-size: 16px;
    margin-bottom: -30px;
}

.yith-wapo-addon.yith-wapo-addon-type-checkbox  h3 {
    font-size: 16px;
}

.yith-wapo-addon.yith-wapo-addon-type-text .required {
    display:none
}

.single-product .product-meta-custom-badges {
    display: flex;
    justify-content: center;
}

.single-product .ready-to-buy-container {
    text-align: center;
    width: 100%;
}

.single-product .ready-to-buy-container h3 {
    margin-bottom: 10px;
    margin-bottom: 20px;
    padding-top: 40px;
    font-size: 32px;
}


.single-product .custom-boxes-wrapper {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.single-product .custom-box {
    background: white;
    border-radius: 12px;
    padding: 18px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    max-width: 300px;
}

.single-product .custom-box-icon {
    display: flex;
    justify-content: center;
}

.single-product .custom-box-icon-background {
    padding: 20px 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3a7cff 0%, #00c6a7 100%);
}

.single-product .custom-box-icon-background svg {
    width: 30px;
    height: 30px;
    color: white;
}

.single-product h4 {
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 20px;
}

.single-product .box-desc {
    font-size: 14px;
    color: #666;
}

/* Estructura principal */
.single-product .custom-product-faqs {
    border-top: 1px solid #e5e7eb;
    padding-top: 30px;
    text-align: center;
}

.single-product .faq-main-title {
    color: #1e293b;
    font-size: 1.4em;
    margin-bottom: 15px;
    font-size: 32px;
    margin-top: 40px;
}

.single-product .faq-main-desc {
    color: #64748b;
    margin-bottom: 25px;
    font-size: 0.95em;
    line-height: 1.6;
}

/* Acordeón FAQ */
.single-product .faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.single-product .faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    width: 80%;
}

.single-product .faq-question {
    width: 100%;
    padding: 15px 20px;
    text-align: left;
    background: white;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: background 0.3s;
}

.single-product .faq-question:hover {
    background: #f1f5f9;
}

.single-product .faq-question[aria-expanded="true"] {
    background: #f1f5f9;
}

.single-product .faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.single-product .faq-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

.single-product .faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #475569;
    font-size: 0.95em;
    line-height: 1.6;
}

.single-product .faq-answer.show {
    padding: 15px 20px;
    max-height: 1000px;
    background: white;
    text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
    .single-product .faq-question {
        padding: 12px 15px;
        font-size: 0.95em;
    }
    
    .single-product .faq-answer {
        padding: 0 15px;
    }
    
    .single-product .faq-answer.show {
        padding: 12px 15px;
    }
}

.text-orange {
    color: var(--color-orange);
}

.text-blue {
    color: var(--color-primary-blue);
}

.text-green {
    color: var(--color-green);
}

.instant-delivery-gradient {
    background: linear-gradient(90deg, #3498db, #9b59b6, #e91e63);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.woocommerce-product-description {
    margin-top: 60px;
    max-width: 70%;
    text-align: center;
}

.woocommerce-product-description h2,
.woocommerce-product-description p {
    text-align: center;
}

#yith-wapo-option-2-0 .option-container {
    display: none !important;
}

.woocommerce-product-description-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}