/* Formulario de producto moderno */
.variations_form.cart {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
}

/* Opciones de producto en fila */
.variations_form .variations {
    width: 100%;
    border: none;
    margin-bottom: 20px;
}

.variations_form .variations tbody {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.variations_form .variations tr {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
    border: none;
}

.variations_form .variations .label {
    padding: 0;
    width: auto;
    font-weight: 600;
    font-size: 12px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.variations_form .variations .value {
    padding: 0;
}

/* Stock en la etiqueta */
.variations_form .variations .label .stock {
    font-size: 11px;
    color: #028C7D;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.variations_form .variations select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333333;
    background: #f7f7f7;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.variations_form .variations select:hover {
    border-color: #cccccc;
    background-color: #eeeeee;
}

.variations_form .variations select:focus {
    border-color: rgb(251, 107, 5);
    outline: none;
    box-shadow: 0 0 0 3px rgba(251, 107, 5, 0.1);
    background-color: #ffffff;
}

/* Fila de opciones y cantidad */
.bdv-options-quantity-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Wrapper de variaciones */
.bdv-variations-wrapper {
    display: flex;
    gap: 15px;
    flex: 1;
    min-width: 200px;
}

/* Item de variación */
.bdv-variation-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 150px;
}

.bdv-variation-item label {
    font-size: 12px;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Wrapper de cantidad */
.bdv-quantity-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 160px;
    flex-shrink: 0;
}

.bdv-quantity-wrapper label {
    font-size: 12px;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bdv-stock-label {
    font-size: 11px;
    color: #028C7D;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

/* Campo de cantidad */
.bdv-quantity-wrapper .quantity {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #f7f7f7;
    height: 48px;
}

.bdv-quantity-wrapper .quantity input.minus,
.bdv-quantity-wrapper .quantity input.plus {
    width: 40px;
    height: 48px;
    border: none;
    background: transparent;
    color: #666666;
    cursor: pointer;
    font-size: 20px;
    font-weight: 400;
    transition: all 0.2s ease;
    padding: 0;
}

.bdv-quantity-wrapper .quantity input.minus:hover,
.bdv-quantity-wrapper .quantity input.plus:hover {
    color: rgb(251, 107, 5);
}

.bdv-quantity-wrapper .quantity input.qty {
    width: 60px;
    height: 48px;
    border: none;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    padding: 0;
    background: #ffffff;
}

.bdv-quantity-wrapper .quantity input.qty:focus {
    outline: none;
}

/* Botón añadir al carrito mejorado */
.variations_button {
    margin-top: 0;
}

.single_add_to_cart_button {
    width: 100%;
    background: rgb(251, 107, 5) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: 0 2px 8px rgba(251, 107, 5, 0.3) !important;
}

.single_add_to_cart_button:hover {
    background: rgb(231, 97, 5) !important;
    box-shadow: 0 4px 12px rgba(251, 107, 5, 0.4) !important;
    transform: translateY(-1px);
}

.single_add_to_cart_button:active {
    transform: translateY(0);
}

.single_add_to_cart_button:disabled {
    background: #cccccc !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* Ocultar botón de limpiar */
.reset_variations,
.reset_variations_wrapper,
.wd-reset-var {
    display: none !important;
}

/* Ocultar comparar y compartir si están en el formulario */
.product .compare-button,
.product .product-share {
    display: none !important;
}

/* Precio del producto */
.product .price,
.single_variation .price {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: rgb(251, 107, 5) !important;
    margin-bottom: 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.product .price del,
.single_variation .price del {
    color: #999999 !important;
    font-size: 22px !important;
    font-weight: 400 !important;
}

/* Badge "New" o descuento */
.product .onsale,
.product .product-label {
    background: #e8f5e9 !important;
    color: #028C7D !important;
    border: 1px solid #a5d6a7 !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

/* Stock */
.single_variation .stock {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 15px;
}

.single_variation .stock.in-stock {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.single_variation .stock.out-of-stock {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Responsive */
@media (max-width: 768px) {
    .variations_form.cart {
        padding: 20px;
    }
    
    .bdv-options-quantity-row {
        flex-direction: column;
    }
    
    .bdv-variations-wrapper {
        flex-direction: column;
        min-width: 100%;
    }
    
    .bdv-variation-item {
        min-width: 100%;
    }
    
    .bdv-quantity-wrapper {
        min-width: 100%;
    }
    
    .bdv-quantity-wrapper .quantity {
        width: 100%;
        justify-content: center;
    }
    
    .single_add_to_cart_button {
        width: 100%;
    }
}

/* Mejorar buscador en móvil */
@media (max-width: 768px) {
    /* Ocultar botón borrar de Woodmart en móvil */
    .searchform .wd-clear-search,
    .wd-search-full-screen .wd-clear-search,
    .wd-header-search .wd-clear-search {
        display: none !important;
    }
    
    /* Hacer el input de búsqueda más grande */
    .searchform input[type="text"],
    .searchform input[name="s"],
    .wd-search-full-screen input[type="text"] {
        font-size: 16px !important; /* Evita zoom automático en iOS */
        padding: 16px 20px !important;
    }
    
    /* Ajustar el botón de búsqueda */
    .searchform .searchsubmit {
        width: 50px !important;
        height: 50px !important;
    }
    
    /* Asegurar que el formulario ocupe todo el ancho */
    .wd-header-search-form,
    .wd-search-full-screen .searchform {
        width: 100% !important;
    }
}

