/* ==========================================
   1. CABECERA Y ESTRUCTURA GLOBAL
   ========================================== */
header#masthead {
    position: sticky;
    top: 0;
}

.content-area {
    min-height: 80vh !important;
}

.ast-separate-container {
    background-color: var(--ast-global-color-4, #fffdf7) !important;
}

.ast-separate-container #primary {
    padding: 0 !important;
    margin: 0 !important;
}

.ast-archive-description {
    padding-top: 50px !important;
    padding-bottom: 25px !important;
}

.ast-woocommerce-container {
    padding-top: 25px !important;
}

/* ==========================================
   2. BUSCADOR EN LA CABECERA
   ========================================== */
.site-header-section .wp-block-search__inside-wrapper {
    border: 1.5px solid #f44e06 !important;
    border-radius: 50px !important;
    padding: 5px 25px !important;
    background-color: transparent !important;
    display: flex !important;
    align-items: center !important;
    width: 400px !important;
    max-width: 90% !important;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.site-header-section .wp-block-search__inside-wrapper:focus-within {
    box-shadow: 0 0 8px rgba(232, 131, 58, 0.2);
}

.site-header-section .wp-block-search__input {
    border: none !important;
    background: transparent !important;
    padding: 8px !important;
    outline: none !important;
    color: #E8833A !important;
    font-size: 15px !important;
}

.site-header-section .wp-block-search__input::placeholder {
    color: #E8833A !important;
    opacity: 0.7;
}

/* ==========================================
   2b. OCULTAR BOTONES EN CATÁLOGO Y HOME
   ========================================== */
/* WooCommerce classic loop — botón en tarjeta de producto */
body:not(.single-product) a.button.add_to_cart_button,
body:not(.single-product) a.button.product_type_variable,
body:not(.single-product) a.button.product_type_grouped,
body:not(.single-product) a.button.product_type_external {
    display: none !important;
}

/* WC Blocks (carousel, product collection) — wrapper + botón */
body:not(.single-product) .wp-block-button.wc-block-components-product-button {
    display: none !important;
}

/* ==========================================
   3. TARJETAS DE PRODUCTO (TIENDA)
   ========================================== */
li.product {
    background: #ffffff !important;
    border: 1px solid #ebebeb !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

li.product:hover {
    border-color: #d1d1d1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.woocommerce ul.products li.product img {
    border-radius: 16px 16px 0 0 !important;
    margin-bottom: 15px !important;
}

.astra-shop-summary-wrap {
    padding: 10px;
}

.nmgr-atw-wrapper {
    margin: 0 !important;
    padding: 10px !important;
}

/* ==========================================
   4. TARJETAS DE PRODUCTO (BLOQUES WC - HOME)
   ========================================== */
.is-product-collection-layout-carousel {
    align-items: stretch !important;
}

.is-product-collection-layout-carousel .wc-block-product {
    background: #ffffff !important;
    border: 1px solid #ebebeb !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex !important;
    flex-direction: column !important;
    max-width: none !important;
    padding-bottom: 0 !important;
    min-width: 55% !important;
}

@media (min-width: 600px) {
    .is-product-collection-layout-carousel .wc-block-product {
        min-width: 36% !important;
    }
}

@media (min-width: 782px) {
    .is-product-collection-layout-carousel .wc-block-product {
        min-width: 28% !important;
    }
}

@media (min-width: 960px) {
    .is-product-collection-layout-carousel .wc-block-product {
        min-width: 22% !important;
    }
}

@media (min-width: 1280px) {
    .is-product-collection-layout-carousel .wc-block-product {
        min-width: 19% !important;
    }
}

@media (min-width: 1440px) {
    .is-product-collection-layout-carousel .wc-block-product {
        min-width: 16% !important;
    }
}

.is-product-collection-layout-carousel .wc-block-product:hover {
    border-color: #d1d1d1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.is-product-collection-layout-carousel .wc-block-components-product-image img,
.is-product-collection-layout-carousel .wc-block-components-product-image a img {
    border-radius: 16px 16px 0 0 !important;
    object-fit: cover !important;
    width: 100% !important;
}

.is-product-collection-layout-carousel .wc-block-product h2.wp-block-post-title,
.is-product-collection-layout-carousel .wc-block-product .wp-block-post-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1.4 !important;
    padding: 8px 12px 2px !important;
    margin-bottom: 4px !important;
    min-height: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    box-sizing: content-box !important;
}

.is-product-collection-layout-carousel .wc-block-product h2.wp-block-post-title a,
.is-product-collection-layout-carousel .wc-block-product .wp-block-post-title a {
    color: #333 !important;
    text-decoration: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    box-sizing: content-box !important;
}

.is-product-collection-layout-carousel .wc-block-components-product-price,
.is-product-collection-layout-carousel .wp-block-woocommerce-product-price {
    margin-top: 0 !important;
    padding: 0 12px 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--ast-global-color-3, #7a5c4f) !important;
}

/* ==========================================
   5. GALERÍA DE PRODUCTO (THUMBNAILS)
   ========================================== */
/* Carrusel horizontal de thumbnails — una fila, scroll lateral */
.woocommerce-product-gallery .flex-control-thumbs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    padding: 14px 0 5px !important;
    list-style: none !important;
    margin: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: thin !important;
}

/* Ocultar scrollbar horizontal (estilo app) */
.woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar {
    display: none !important;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    width: auto !important;
    flex: 0 0 auto !important;
    float: none !important;
    margin: 0 !important;
    scroll-snap-align: center !important;
}

.woocommerce-product-gallery .flex-control-thumbs li img {
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
    opacity: 0.6 !important;
    cursor: pointer !important;
    display: block !important;
    border: 1.5px solid rgba(0, 0, 0, 0.06) !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

.woocommerce-product-gallery .flex-control-thumbs li img:hover {
    opacity: 0.85 !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

.woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
    opacity: 1 !important;
    border-color: var(--ast-global-color-0, #46d198) !important;
    border-width: 2px !important;
    box-shadow: 0 2px 8px rgba(70, 209, 152, 0.2) !important;
}

/* Prevenir que FlexSlider capture touch en el carrusel de thumbnails */
.woocommerce-product-gallery .flex-control-thumbs {
    touch-action: pan-x !important;
    overscroll-behavior-x: contain !important;
}

/* Click en thumbnails sigue funcionando */
.woocommerce-product-gallery .flex-control-thumbs li a {
    pointer-events: auto !important;
}

/* ==========================================
   6. CARRITO Y FINALIZAR COMPRA
   ========================================== */
/* Ocultar cupón en /carrito/ - dejar solo en /finalizar-compra/ */
.woocommerce-cart .coupon,
.woocommerce-cart form.woocommerce-cart-form .coupon {
    display: none !important;
}

/* Ocultar solo el CALCULADOR de envío en /carrito/ - mantener la tarifa visible */
.woocommerce-cart .woocommerce-shipping-calculator,
.woocommerce-cart .shipping-calculator-button,
.woocommerce-cart .shipping-calculator-form {
    display: none !important;
}

/* Mensaje debajo del botón Finalizar Compra en /carrito/ */
.woocommerce-cart .wc-proceed-to-checkout::after {
    content: "Haz clic en Finalizar Compra para ingresar tus datos de envío, facturación y cualquier código de descuento.";
    display: block !important;
    margin-top: 10px !important;
    font-size: 13px !important;
    color: #666 !important;
    text-align: center !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

/* Texto "regalo" arriba del checkbox en /finalizar-compra/ */
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout #ship-to-different-address {
    position: relative !important;
}

.woocommerce-checkout .woocommerce-shipping-fields::before {
    content: "Selecciona la siguiente casilla si estás mandando un regalo.";
    display: block !important;
    margin-bottom: 8px !important;
    font-size: 14px !important;
    color: #555 !important;
    font-weight: 400 !important;
    font-family: 'HeyWow', sans-serif !important;
}

/* ==========================================
   7. REVISIÓN DE PEDIDO Y MÉTODOS DE ENVÍO
   ========================================== */
#order_review table.shop_table {
    width: 100% !important;
    table-layout: fixed;
    word-wrap: break-word;
}

#order_review table.shop_table td {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Forzar a que el listado de envío no tenga un ancho mínimo obligatorio */
ul#shipping_method {
    min-width: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Asegurar que las opciones internas también se ajusten */
ul#shipping_method li {
    width: 100% !important;
    display: block !important;
    word-break: break-word;
}

/* Activar scroll horizontal para el bloque Fila en móviles */
@media (max-width: 767px) {
    .fila-scroll-movil {
        overflow-x: auto !important;
        justify-content: flex-start !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 15px;
        scroll-snap-type: x mandatory;
    }

    /* Evitar que los bloques dentro de la fila se aplasten */
    .fila-scroll-movil>* {
        min-width: 85% !important;
        scroll-snap-align: center;
    }

    /* Ocultar la barra de desplazamiento para que se vea como una app */
    .fila-scroll-movil::-webkit-scrollbar {
        display: none;
    }
}

/* --- Gift Registry: Forzar Selectores Nativos --- */
/* Ocultar el componente complejo de Select2 que da problemas en móvil */
.nmgr-account-template .select2-container {
    display: none !important;
}

/* Mostrar el selector original de HTML (el que siempre funciona) */
.nmgr-account-template select {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 45px !important;
    position: relative !important;
    z-index: 1 !important;
    /* Flecha nativa pero controlada */
    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='%23666' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 10px !important;
    padding-right: 35px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* ==========================================
   8. INPUTS GLOBALES — ESTILO PROFESIONAL
   ========================================== */

/* Base: todos los inputs, textareas y selects con diseño clean y moderno.
   Usamos :root + :is() para garantizar especificidad (0,2,1) que supera
   cualquier selector de clases del tema (.ast-search-menu-icon .search-field, etc.)
   y no requiere !important para vencer. */
:root :is(
    input[type="text"], input[type="email"], input[type="url"],
    input[type="password"], input[type="search"], input[type="number"],
    input[type="tel"], input[type="date"], input[type="datetime-local"],
    input[type="month"], input[type="week"], input[type="time"],
    textarea, select
) {
    background-color: #ffffff !important;
    border: 1.5px solid #d4d4d4 !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: #1a1a1a !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: none !important;
    width: 100% !important;
    -webkit-appearance: none;
    appearance: none;
}

/* Hover: borde ligeramente más oscuro para feedback visual */
:root :is(
    input[type="text"]:hover, input[type="email"]:hover, input[type="url"]:hover,
    input[type="password"]:hover, input[type="search"]:hover, input[type="number"]:hover,
    input[type="tel"]:hover, input[type="date"]:hover, input[type="datetime-local"]:hover,
    input[type="month"]:hover, input[type="week"]:hover, input[type="time"]:hover,
    textarea:hover, select:hover
) {
    border-color: #b0b0b0 !important;
}

/* Focus: outline verde del tema (ast-global-color-0) + glow sutil */
:root :is(
    input[type="text"]:focus, input[type="email"]:focus, input[type="url"]:focus,
    input[type="password"]:focus, input[type="search"]:focus, input[type="number"]:focus,
    input[type="tel"]:focus, input[type="date"]:focus, input[type="datetime-local"]:focus,
    input[type="month"]:focus, input[type="week"]:focus, input[type="time"]:focus,
    textarea:focus, select:focus
) {
    border-color: var(--ast-global-color-0) !important;
    box-shadow: 0 0 0 3px rgba(70, 209, 152, 0.15) !important;
    outline: none !important;
}

/* Select: flecha personalizada consistente */
:root select {
    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='%23666' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 10px !important;
    padding-right: 35px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* Textarea: resize solo vertical */
:root textarea {
    resize: vertical !important;
    min-height: 100px !important;
}

/* Placeholder: color sutil */
:root input::placeholder,
:root textarea::placeholder {
    color: #999 !important;
    opacity: 1 !important;
}

/* Estado deshabilitado */
:root :is(
    input[disabled], textarea[disabled], select[disabled]
) {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    background-color: #f5f5f5 !important;
}

/* --- Excepción: WordPress Admin Bar ---
   Los inputs dentro de la admin bar deben mantener su estilo nativo
   de WP, no los estilos globales del front-end. */
#wpadminbar input[type="text"],
#wpadminbar input[type="search"],
#wpadminbar input[type="password"],
#wpadminbar textarea,
#wpadminbar select {
    all: revert !important;
}

/* --- Excepción: buscador slide de Astra (header search icon) ---
   Este input inicia oculto (width:0, sin borde, fondo transparente)
   y se expande al hacer clic en el icono de lupa. Los estilos
   globales rompen su comportamiento, así que lo restauramos. */
.ast-search-menu-icon input.search-field {
    background-color: transparent !important;
    border: none !important;
    border-radius: inherit !important;
    padding: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: #757575 !important;
    width: 0 !important;
    transition: width 0.2s ease !important;
    box-sizing: content-box !important;
}

/* Estado activo (desplegado) — restaurar ancho original del tema */
.ast-search-menu-icon.ast-dropdown-active input.search-field {
    width: 235px !important;
}

/* ==========================================
   9. REDISEÑO PÁGINA DE PRODUCTO — BOUTIQUE DE LUJO
   ========================================== */

/* --- 9a. LAYOUT GENERAL: tarjeta flotante sobre fondo crema de marca --- */

/* Marco sutil alrededor de la imagen principal del producto */
.single-product .woocommerce-product-gallery {
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
}

.single-product .woocommerce-product-gallery .flex-viewport {
    border: none !important;
    border-radius: 13px 13px 0 0 !important;
    overflow: hidden !important;
}

.single-product .woocommerce-product-gallery .flex-viewport img {
    border-radius: 13px 13px 0 0 !important;
    width: 100% !important;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs {
    border-radius: 0 0 13px 13px !important;
    padding: 12px 12px 12px 12px !important;
    background: rgba(255, 255, 255, 0.25) !important;
}
.single-product .ast-woocommerce-container {
    padding-top: 36px !important;
    padding-bottom: 40px !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
    background: transparent !important;
}

/* Forzar que el contenedor del producto también sea transparente (Astra pinta fondo blanco) */
.single-product.ast-separate-container .ast-article-single {
    background: transparent !important;
}

.single-product.ast-separate-container .ast-woocommerce-container {
    background: transparent !important;
}

/* Tarjeta contenedora del producto — cristal esmerilado sobre crema */
.single-product .ast-woocommerce-container .product {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.02) !important;
    padding: 36px 40px 12px 40px !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Contenedor del producto: flex en desktop */
.single-product div.product {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 48px !important;
    align-items: flex-start !important;
}

/* Columna izquierda: galería 50% */
.single-product div.product div.images {
    flex: 0 0 calc(50% - 24px) !important;
    max-width: calc(50% - 24px) !important;
    width: calc(50% - 24px) !important;
}

/* Columna derecha: info + compra 50% */
.single-product div.product div.summary {
    flex: 0 0 calc(50% - 24px) !important;
    max-width: calc(50% - 24px) !important;
    width: calc(50% - 24px) !important;
    padding-top: 0 !important;
    position: relative !important;
}

/* Asegurar que el summary no se estire más de su columna */
.single-product div.product div.summary > * {
    max-width: 100% !important;
}

/* El breadcrumb dentro del summary arranca alineado con la imagen */
.single-product .woocommerce-breadcrumb {
    font-size: 12px !important;
    color: #b0b0b0 !important;
    margin-bottom: 6px !important;
    padding: 0 !important;
    letter-spacing: 0.3px !important;
    font-weight: 400 !important;
}

@media (max-width: 921px) {
    .single-product div.product div.images,
    .single-product div.product div.summary {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .single-product div.product {
        gap: 24px !important;
    }
}

/* Tabs y related: ancho completo debajo de las columnas */
.single-product .woocommerce-tabs,
.single-product section.related.products {
    width: 100% !important;
    clear: both !important;
}

/* Eliminar líneas divisorias rígidas */
.single-product .woocommerce-tabs {
    border-top: none !important;
    margin-top: 0 !important;
    padding-top: 20px !important;
}

.single-product hr,
.single-product .wp-block-separator {
    opacity: 0.3 !important;
}

/* --- 9b. BREADCRUMB: sutil, gris claro --- */
.single-product .woocommerce-breadcrumb {
    font-size: 12px !important;
    color: #b0b0b0 !important;
    margin-bottom: 8px !important;
    padding: 0 !important;
    letter-spacing: 0.3px !important;
    font-weight: 400 !important;
}

.single-product .woocommerce-breadcrumb a {
    color: #c0c0c0 !important;
    text-decoration: none !important;
}

.single-product .woocommerce-breadcrumb a:hover {
    color: #888 !important;
}

.single-product .nidoo-breadcrumb-sep {
    color: #d0d0d0 !important;
    margin: 0 4px !important;
    font-size: 14px !important;
}

/* --- 9c. OCULTAR CATEGORÍA SOBRE EL TÍTULO --- */
.single-product .single-product-category {
    display: none !important;
}

/* --- 9d. TÍTULO: elegante, grande, sans-serif --- */
.single-product h1.product_title {
    font-family: 'Quicksand', 'Poppins', sans-serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #2d2d2d !important;
    line-height: 1.15 !important;
    margin: 0 0 2px 0 !important;
    letter-spacing: -0.3px !important;
}

/* --- 9e. PRECIO: generoso, bold, moderno --- */
.single-product .price {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #2d2d2d !important;
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
    font-family: 'Poppins', sans-serif !important;
    letter-spacing: -0.2px !important;
}

.single-product .price .woocommerce-Price-amount {
    color: #2d2d2d !important;
}

.single-product .price del {
    font-size: 18px !important;
    opacity: 0.5 !important;
    margin-right: 8px !important;
}

.single-product .price ins {
    text-decoration: none !important;
}

/* --- 9f. VARIACIONES: limpias, minimalistas, compactas --- */
.single-product table.variations {
    border: none !important;
    margin: 0 0 12px 0 !important;
}

.single-product table.variations tbody,
.single-product table.variations tr,
.single-product table.variations td,
.single-product table.variations th {
    border: none !important;
    background: transparent !important;
}

.single-product table.variations th.label {
    display: block !important;
    padding: 0 !important;
    margin: 0 0 4px 0 !important;
}

.single-product table.variations th.label label {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #666 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    font-family: 'Poppins', sans-serif !important;
}

.single-product table.variations td.value {
    padding: 0 0 10px 0 !important;
    display: block !important;
}

/* Select de variaciones */
.single-product table.variations select {
    width: 100% !important;
    padding: 13px 16px !important;
    border: 1px solid #e4e4e4 !important;
    border-radius: 12px !important;
    background-color: #fcfcfc !important;
    font-size: 14px !important;
    color: #333 !important;
    font-family: 'Poppins', sans-serif !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23888' d='M1 1l4 4 4-4' stroke='%23888' stroke-width='0.5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 10px 6px !important;
    padding-right: 40px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.single-product table.variations select:hover {
    border-color: #c8c8c8 !important;
    background-color: #fff !important;
}

.single-product table.variations select:focus {
    border-color: var(--ast-global-color-0) !important;
    box-shadow: 0 0 0 3px rgba(70, 209, 152, 0.12), inset 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    outline: none !important;
    background-color: #fff !important;
}

/* Link 

/* Link "Limpiar" de variaciones */
.single-product a.reset_variations {
    font-size: 11px !important;
    color: #aaa !important;
    text-decoration: none !important;
    margin-top: 2px !important;
    display: block !important;
    text-align: right !important;
    font-weight: 400 !important;
    letter-spacing: 0.3px !important;
    transition: color 0.2s ease !important;
}

.single-product a.reset_variations:hover {
    color: #777 !important;
    text-decoration: underline !important;
}

@media (max-width: 544px) {
    .single-product a.reset_variations {
        font-size: 10px !important;
        margin-top: 0 !important;
    }
}

/* --- 9g. INDICADOR DE STOCK: círculo verde + texto --- */
.single-product .nidoo-stock-status {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #46d198 !important;
    margin: 0 0 8px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-family: 'Poppins', sans-serif !important;
}

.single-product .nidoo-stock-dot {
    display: inline-block !important;
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: #46d198 !important;
    flex-shrink: 0 !important;
}

/* --- 9h. BLOQUE DE COMPRA: cantidad + botón en línea --- */
.single-product form.cart {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
}

.single-product .quantity {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #fcfcfc !important;
    height: 52px !important;
}

/* Targeting both .minus/.plus and ast-qty-placeholder */
.single-product .quantity .minus,
.single-product .quantity .plus,
.single-product .quantity .ast-qty-placeholder.minus,
.single-product .quantity .ast-qty-placeholder.plus {
    width: 44px !important;
    min-width: 44px !important;
    height: 52px !important;
    border: none !important;
    background: transparent !important;
    font-size: 20px !important;
    color: #555 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.15s ease !important;
    margin: 0 !important;
    position: static !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    padding: 0 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.single-product .quantity .minus:hover,
.single-product .quantity .plus:hover,
.single-product .quantity .ast-qty-placeholder.minus:hover,
.single-product .quantity .ast-qty-placeholder.plus:hover {
    background: #f0f0f0 !important;
    color: #333 !important;
}

.single-product .quantity input[type="number"].qty {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 52px !important;
    border: none !important;
    border-left: 1px solid #eee !important;
    border-right: 1px solid #eee !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
}

/* Botón AÑADIR AL CARRITO — con degradado sutil y relieve */
.single-product .single_add_to_cart_button {
    flex: 1 !important;
    min-width: 200px !important;
    height: 52px !important;
    padding: 0 32px !important;
    background: linear-gradient(135deg, #46d198 0%, #3dbb88 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: 'Poppins', 'Quicksand', sans-serif !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 14px rgba(70, 209, 152, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
}

.single-product .single_add_to_cart_button:hover {
    background: linear-gradient(135deg, #3dbb88 0%, #34a87a 100%) !important;
    box-shadow: 0 6px 24px rgba(70, 209, 152, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-1px) !important;
}

.single-product .single_add_to_cart_button:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(70, 209, 152, 0.25), inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Mensaje de envío con icono de camión */
.single-product .nidoo-shipping-eta {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #46d198 !important;
    margin: 2px 0 12px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.single-product .nidoo-shipping-eta svg.nidoo-truck-icon {
    flex-shrink: 0 !important;
}

/* --- 9i. BOTÓN LISTA DE REGALOS: púrpura oscuro --- */
.single-product .nmgr-atw-wrapper {
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.single-product .nmgr-atw-wrapper a.button.alt.nmgr-atw-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    height: 52px !important;
    padding: 0 24px !important;
    background: linear-gradient(135deg, var(--ast-global-color-1, #778ccf) 0%, #6577b8 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    font-family: 'Poppins', 'Quicksand', sans-serif !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 14px rgba(119, 140, 207, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    text-decoration: none !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
}

.single-product .nmgr-atw-wrapper a.button.alt.nmgr-atw-btn:hover {
    background: linear-gradient(135deg, #6577b8 0%, #5668a3 100%) !important;
    box-shadow: 0 6px 24px rgba(119, 140, 207, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-1px) !important;
    border: none !important;
}

.single-product .nmgr-atw-wrapper a.button.alt.nmgr-atw-btn:active {
    transform: translateY(0) !important;
}

.single-product .nmgr-atw-wrapper .nmgr-tip {
    display: inline-flex !important;
    align-items: center !important;
}

/* --- 9j. METADATA (SKU, Categorías, Marca): OCULTA --- */
.single-product .product_meta {
    display: none !important;
}

/* --- 9k. WOOCOMMERCE TABS: contenedor blanco con esquinas redondeadas --- */
.single-product .woocommerce-tabs {
    padding-top: 0 !important;
    margin-top: 28px !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.single-product .woocommerce-tabs ul.tabs {
    padding: 0 !important;
    margin: 0 0 24px 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding-bottom: 0 !important;
}

.single-product .woocommerce-tabs ul.tabs::before {
    display: none !important;
}

.single-product .woocommerce-tabs ul.tabs li {
    border: none !important;
    background: transparent !important;
    margin: 0 0 -1px 0 !important;
    padding: 0 !important;
}

.single-product .woocommerce-tabs ul.tabs li a {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #999 !important;
    padding: 10px 22px 14px 22px !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    display: block !important;
    border-bottom: 2px solid transparent !important;
    white-space: nowrap !important;
}

.single-product .woocommerce-tabs ul.tabs li a:hover {
    color: #555 !important;
}

.single-product .woocommerce-tabs ul.tabs li.active a {
    color: var(--ast-global-color-0, #46d198) !important;
    font-weight: 600 !important;
    border-bottom-color: var(--ast-global-color-0, #46d198) !important;
}

.single-product .woocommerce-tabs .panel {
    padding: 28px 0 !important;
    border: none !important;
}

.single-product .woocommerce-tabs .panel p {
    color: #555 !important;
    line-height: 1.8 !important;
    font-size: 15px !important;
    margin-bottom: 1em !important;
}

/* Panel "Más productos" dentro de tabs */
.single-product .woocommerce-Tabs-panel--more_seller_product > h2 {
    display: none !important;
}

/* --- 8. BADGE DE OFERTA (SALE!) en tarjetas de producto --- */
/* Badge redondo y estilizado en catálogo y relacionados */
body:not(.single-product) .ast-onsale-card,
.single-product section.related.products .ast-onsale-card {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    width: 52px !important;
    height: 52px !important;
    padding: 0 !important;
    background: #f964af !important;
    border-radius: 50% !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    font-family: 'Poppins', sans-serif !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1.2 !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 3px 10px rgba(249, 100, 175, 0.3) !important;
    z-index: 5 !important;
    text-transform: uppercase !important;
    border: none !important;
}

/* Tabla de atributos */
.single-product table.woocommerce-product-attributes {
    border: none !important;
}

.single-product table.woocommerce-product-attributes th,
.single-product table.woocommerce-product-attributes td {
    background: transparent !important;
    border: none !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
}

.single-product table.woocommerce-product-attributes th {
    font-weight: 600 !important;
    color: #666 !important;
}

/* Reviews header */
.single-product .woocommerce-Reviews-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #444 !important;
}

.single-product .woocommerce-noreviews,
.single-product .woocommerce-Reviews p {
    color: #888 !important;
    font-size: 14px !important;
}

/* Formulario de review — inputs con profundidad */
.single-product #review_form #respond form p input,
.single-product #review_form #respond form p textarea {
    border: 1px solid #e4e4e4 !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    background-color: #fcfcfc !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s ease !important;
    font-size: 14px !important;
}

.single-product #review_form #respond form p input:focus,
.single-product #review_form #respond form p textarea:focus {
    border-color: var(--ast-global-color-0, #46d198) !important;
    background-color: #fff !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03), 0 0 0 3px rgba(70, 209, 152, 0.1) !important;
    outline: none !important;
}

/* Botón submit del review */
.single-product #review_form #respond input#submit {
    background: var(--ast-global-color-0, #46d198) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 28px !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

.single-product #review_form #respond input#submit:hover {
    background: #3dbb88 !important;
    box-shadow: 0 4px 12px rgba(70, 209, 152, 0.3) !important;
}

/* --- 9l. PRODUCTOS RELACIONADOS: tarjetas de cristal --- */
.single-product section.related.products {
    padding: 28px 0 0 0 !important;
    margin-top: 32px !important;
    clear: both !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.single-product section.related.products > h2 {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #2d2d2d !important;
    font-family: 'Quicksand', 'Poppins', sans-serif !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
    letter-spacing: -0.2px !important;
}

/* Cada tarjeta de producto relacionado — bloque blanco editorial */
.single-product section.related.products ul.products li.product {
    background: #ffffff !important;
    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05), 0 1px 4px rgba(0, 0, 0, 0.02) !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}

/* Imagen ocupa la mayor parte de la tarjeta */
.single-product section.related.products ul.products li.product .astra-shop-thumbnail-wrap {
    margin: 0 !important;
    padding: 0 !important;
}

.single-product section.related.products ul.products li.product img {
    width: 100% !important;
    border-radius: 14px 14px 0 0 !important;
    margin: 0 !important;
    display: block !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-bottom: none !important;
}

.single-product section.related.products ul.products li.product .astra-shop-summary-wrap {
    padding: 12px 14px 14px 14px !important;
    text-align: left !important;
}

.single-product section.related.products ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #2d2d2d !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    font-family: 'Poppins', sans-serif !important;
}

.single-product section.related.products ul.products li.product .price {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--ast-global-color-3, #46d198) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.single-product section.related.products ul.products li.product:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

/* Badge de oferta en tarjetas relacionadas */
.single-product section.related.products .ast-onsale-card {
    top: 10px !important;
    left: 10px !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 10px !important;
}

/* --- 9m. RESPONSIVE MÓVIL: compacto, simétrico, alineado --- */
@media (max-width: 544px) {

    /* Tarjeta producto — menos padding en los costados */
    .single-product .ast-woocommerce-container .product {
        padding: 20px 16px 8px 16px !important;
    }

    /* Título y precio más compactos */
    .single-product h1.product_title {
        font-size: 20px !important;
        margin: 0 0 2px 0 !important;
        line-height: 1.15 !important;
    }

    .single-product .price {
        font-size: 20px !important;
        margin: 0 0 10px 0 !important;
    }

    /* Breadcrumb más denso */
    .single-product .woocommerce-breadcrumb {
        font-size: 11px !important;
        margin-bottom: 4px !important;
        line-height: 1.4 !important;
    }

    /* Variaciones ultra compactas */
    .single-product table.variations {
        margin: 0 0 8px 0 !important;
    }

    .single-product table.variations th.label {
        margin: 0 0 3px 0 !important;
    }

    .single-product table.variations th.label label {
        font-size: 11px !important;
    }

    .single-product table.variations td.value {
        padding: 0 0 8px 0 !important;
    }

    .single-product table.variations select {
        padding: 11px 14px !important;
        font-size: 13px !important;
    }

    /* Stock indicador compacto */
    .single-product .nidoo-stock-status {
        margin: 0 0 6px 0 !important;
        font-size: 11px !important;
    }

    /* Bloque de compra: apilado vertical, sin espacios muertos */
    .single-product form.cart {
        flex-direction: column !important;
        gap: 8px !important;
        margin-bottom: 8px !important;
    }

    /* Quantity selector: distribuido uniformemente */
    .single-product .quantity {
        width: 100% !important;
        height: 48px !important;
        display: flex !important;
        justify-content: stretch !important;
    }

    .single-product .quantity .minus,
    .single-product .quantity .plus,
    .single-product .quantity .ast-qty-placeholder.minus,
    .single-product .quantity .ast-qty-placeholder.plus {
        width: 52px !important;
        min-width: 52px !important;
        height: 48px !important;
        font-size: 22px !important;
        font-weight: 400 !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        line-height: 1 !important;
    }

    .single-product .quantity input[type="number"].qty {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 48px !important;
        flex: 1 !important;
        font-size: 17px !important;
        font-weight: 600 !important;
    }

    /* Botón añadir al carrito: full-width */
    .single-product .single_add_to_cart_button {
        width: 100% !important;
        min-width: 0 !important;
        height: 48px !important;
        font-size: 13px !important;
        letter-spacing: 1px !important;
    }

    /* Envío */
    .single-product .nidoo-shipping-eta {
        margin: 2px 0 10px 0 !important;
        font-size: 12px !important;
    }

    /* Lista de regalos: full-width, misma altura */
    .single-product .nmgr-atw-wrapper {
        margin: 0 0 12px 0 !important;
    }

    .single-product .nmgr-atw-wrapper a.button.alt.nmgr-atw-btn {
        height: 48px !important;
        font-size: 12px !important;
    }

    /* Gap entre columnas */
    .single-product div.product {
        gap: 16px !important;
    }

    /* Galería: compacta */
    .single-product .woocommerce-product-gallery .flex-control-thumbs {
        padding: 8px 8px 8px 8px !important;
        gap: 6px !important;
    }

    .single-product .woocommerce-product-gallery .flex-control-thumbs li img {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
    }

    /* Tabs: menos padding */
    .single-product .woocommerce-tabs {
        margin-top: 16px !important;
    }

    .single-product .woocommerce-tabs ul.tabs li a {
        font-size: 12px !important;
        padding: 8px 14px 12px 14px !important;
    }

    .single-product .woocommerce-tabs .panel {
        padding: 16px 0 !important;
    }

    /* Separadores */
    .single-product section.related.products {
        margin-top: 20px !important;
        padding: 20px 0 0 0 !important;
    }

    .single-product section.related.products > h2 {
        font-size: 18px !important;
        margin-bottom: 14px !important;
    }

    /* Tarjetas relacionadas: altura mínima fija, precio al fondo */
    .single-product section.related.products ul.products li.product {
        display: flex !important;
        flex-direction: column !important;
        min-height: 320px !important;
    }

    .single-product section.related.products ul.products li.product .astra-shop-thumbnail-wrap {
        flex: 1 1 auto !important;
        display: flex !important;
        align-items: flex-start !important;
    }

    .single-product section.related.products ul.products li.product .astra-shop-thumbnail-wrap img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }

    .single-product section.related.products ul.products li.product .astra-shop-summary-wrap {
        margin-top: auto !important;
        padding: 10px 12px 12px 12px !important;
    }

    .single-product section.related.products ul.products li.product h2.woocommerce-loop-product__title {
        font-size: 13px !important;
    }

    .single-product section.related.products ul.products li.product .price {
        font-size: 14px !important;
    }
}

/* --- 9n. PPCP MENSAJES (PayPal) --- */
.single-product .ppcp-messages {
    margin-bottom: 16px !important;
}
