html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .font-display { letter-spacing: -0.02em; }
.logo-crop { width: 190px; height: 64px; overflow: hidden; position: relative; }
.logo-crop img { position: absolute; width: 330px; max-width: none; left: -70px; top: -118px; }
.link-u { position: relative; }
.link-u::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: currentColor; transition: width .3s; }
.link-u:hover::after, .link-u.active::after { width: 100%; }
.card .img2 { opacity: 0; transition: opacity .5s; }
.card:hover .img2 { opacity: 1; }
.card .add { transform: translateY(100%); transition: transform .35s; }
.card:hover .add { transform: translateY(0); }
.ph { background: linear-gradient(135deg, #EFEDE8, #E2DFD8); }
#drawer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 100% !important;
    width: 100% !important;
    max-width: 420px !important;
    z-index: 99999 !important;
    transform: translateX(100%) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
#drawer.is-open {
    transform: translateX(0) !important;
}
#mobile-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 100% !important;
    width: 300px !important;
    max-width: 85vw !important;
    z-index: 99999 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
#mobile-sidebar.is-open {
    transform: translateX(0) !important;
}
@media (min-width: 768px) {
    #mobile-sidebar {
        display: none !important;
    }
}
#overlay.is-open, #sidebar-backdrop.is-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}
.reveal { opacity: 0; transform: translateY(18px); transition: all .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.field { width: 100%; background: #fff; border: 1px solid #E2DFD8; padding: .85rem 1rem; font-size: .9rem; outline: none; transition: border-color .2s; }
.field:focus { border-color: #111; }
.lbl { display: block; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: #6B6A66; margin-bottom: .45rem; }
.btn { display: inline-block; background: #111; color: #fff; padding: 1rem 2.25rem; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; transition: background .3s; text-align: center; }
.btn:hover { background: #8044B0; }
.btn-o { display: inline-block; border: 1px solid #111; padding: 1rem 2.25rem; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; transition: all .3s; text-align: center; }
.btn-o:hover { background: #111; color: #fff; }
.eyebrow { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: #8044B0; font-weight: 500; }
.card{
    background-color: transparent !important;
    border: none !important;
}
#showroom{
    background-color: #000000 !important;
}

/* Reseteo para checkout review table y botón place_order */
.woocommerce-checkout-review-order-table {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    border: none !important;
}
#order_review {
    position: relative;
}
#place_order {
    cursor: pointer;
}

/* ==========================================================================
   PÁGINAS DE CONTENIDO Y LEGALES (POLÍTICA DE PRIVACIDAD, TÉRMINOS, ETC.)
   ========================================================================== */
.legal-content h2 {
    font-family: 'Bricolage Grotesque', Inter, sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #111;
    margin-top: 2.25rem;
    margin-bottom: 0.85rem;
    letter-spacing: -0.02em;
}

.legal-content h3 {
    font-family: 'Bricolage Grotesque', Inter, sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #111;
    margin-top: 1.75rem;
    margin-bottom: 0.65rem;
}

.legal-content p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.legal-content ul, 
.legal-content ol {
    margin-top: 1rem;
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.legal-content ul {
    list-style-type: disc;
}

.legal-content ol {
    list-style-type: decimal;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.65;
}

.legal-content strong {
    color: #111;
    font-weight: 600;
}

.legal-content a {
    color: #8044B0;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}

.legal-content a:hover {
    opacity: 0.8;
}

.legal-content hr {
    border: none;
    border-top: 1px solid #E2DFD8;
    margin: 2.5rem 0;
}

/* ==========================================================================
   RESETEO DE MI CUENTA (WOOCOMMERCE)
   Abarca todo el ancho total disponible para el contenido de la cuenta
   ========================================================================== */
.woocommerce-account .woocommerce {
    width: 100% !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content > * {
    width: 100% !important;
}

.woocommerce-account #list,
.woocommerce-account article {
    width: 100% !important;
}

/* ==========================================================================
   SISTEMA DE NOTIFICACIONES FLOTANTES (TOASTS) - TUBIASCONTIGO LUXURY
   ========================================================================== */

@keyframes toastSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-18px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastSlideOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-16px) scale(0.95);
    }
}

/* Contenedores de WooCommerce posicionados como viewport flotante */
.woocommerce-notices-wrapper,
.woocommerce-NoticeGroup-checkout,
.woocommerce-NoticeGroup {
    position: fixed !important;
    top: 130px !important;
    right: 2rem !important;
    z-index: 99999 !important;
    max-width: 440px !important;
    width: calc(100vw - 3rem) !important;
    pointer-events: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.85rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

@media (max-width: 640px) {
    .woocommerce-notices-wrapper,
    .woocommerce-NoticeGroup-checkout,
    .woocommerce-NoticeGroup {
        top: 115px !important;
        right: 1rem !important;
        left: 1rem !important;
        width: auto !important;
        max-width: none !important;
    }
}

/* Base de la tarjeta flotante */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info,
.tubiascontigo-toast {
    pointer-events: auto !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-top: none !important; /* Neutraliza el border-top rojo por defecto de WooCommerce */
    border-radius: 14px !important;
    padding: 1.15rem 1.35rem !important;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
    color: #121212 !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    animation: toastSlideIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    margin: 0 !important;
    list-style: none !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}

/* Variantes según tipo */
.woocommerce-error,
.tubiascontigo-toast-error {
    border-left: 4px solid #DC2626 !important;
}

.woocommerce-message,
.tubiascontigo-toast-success {
    border-left: 4px solid #16A34A !important;
}

.woocommerce-info,
.tubiascontigo-toast-info {
    border-left: 4px solid #8044B0 !important;
}

/* Header interno del Toast */
.tubiascontigo-toast-header {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    margin-bottom: 0.65rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.tubiascontigo-toast-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
}

.tubiascontigo-toast-error .tubiascontigo-toast-icon,
.woocommerce-error .tubiascontigo-toast-icon {
    background: #FEE2E2 !important;
    color: #DC2626 !important;
}

.tubiascontigo-toast-success .tubiascontigo-toast-icon,
.woocommerce-message .tubiascontigo-toast-icon {
    background: #DCFCE7 !important;
    color: #16A34A !important;
}

.tubiascontigo-toast-info .tubiascontigo-toast-icon,
.woocommerce-info .tubiascontigo-toast-icon {
    background: #F3E8FF !important;
    color: #8044B0 !important;
}

.tubiascontigo-toast-title {
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: #121212 !important;
    flex-grow: 1 !important;
}

.tubiascontigo-toast-close {
    background: transparent !important;
    border: none !important;
    font-size: 20px !important;
    line-height: 1 !important;
    color: #9CA3AF !important;
    cursor: pointer !important;
    padding: 0 4px !important;
    transition: color 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.tubiascontigo-toast-close:hover {
    color: #121212 !important;
}

/* Lista de mensajes de error */
.woocommerce-error li,
.tubiascontigo-toast-list li {
    position: relative !important;
    padding-left: 1rem !important;
    margin-bottom: 0.4rem !important;
    color: #374151 !important;
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    list-style: none !important;
}

.woocommerce-error li:last-child,
.tubiascontigo-toast-list li:last-child {
    margin-bottom: 0 !important;
}

.woocommerce-error li::before,
.tubiascontigo-toast-list li::before {
    content: "•" !important;
    position: absolute !important;
    left: 0 !important;
    color: #DC2626 !important;
    font-weight: bold !important;
    font-size: 14px !important;
    line-height: 1 !important;
    top: 2px !important;
}

/* Neutralizar pseudo-elementos e íconos anticuados de WooCommerce */
.woocommerce-error::before,
.woocommerce-message::before,
.woocommerce-info::before {
    display: none !important;
}

/* Enlaces dentro del aviso (ej: "Ver carrito") */
.woocommerce-message a.button,
.woocommerce-error a.button,
.woocommerce-info a.button {
    float: none !important;
    display: inline-block !important;
    margin-top: 0.5rem !important;
    padding: 0.45rem 0.95rem !important;
    background: #121212 !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: background 0.2s ease !important;
}

.woocommerce-message a.button:hover,
.woocommerce-error a.button:hover,
.woocommerce-info a.button:hover {
    background: #8044B0 !important;
    color: #fff !important;
}

/* Animación de salida programática */
.toast-dismissing {
    opacity: 0 !important;
    transform: translateY(-16px) scale(0.95) !important;
    pointer-events: none !important;
}

/* ==========================================================================
   FICHA DE PRODUCTO: FORMULARIO DE COMPRA Y VARIACIONES (TuBiasContigo Style)
   ========================================================================== */
.tubias-product-add-to-cart form.cart {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 0 !important;
    padding: 0 !important;
}

/* Tablas de variaciones de WooCommerce convertidas a layout moderno */
.tubias-product-add-to-cart .variations {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 0.85rem !important;
    margin: 0 !important;
    border: none !important;
}

.tubias-product-add-to-cart .variations tbody,
.tubias-product-add-to-cart .variations tr {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.tubias-product-add-to-cart .variations tr {
    margin-bottom: 0.75rem;
}

.tubias-product-add-to-cart .variations th.label {
    display: block !important;
    padding: 0 0 0.35rem 0 !important;
    text-align: left !important;
    border: none !important;
}

.tubias-product-add-to-cart .variations th.label label {
    font-size: 11px !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    color: #4B5563 !important;
    font-weight: 600 !important;
}

.tubias-product-add-to-cart .variations td.value {
    display: block !important;
    padding: 0 !important;
    width: 100% !important;
    border: none !important;
    position: relative;
}

/* Dropdown de variaciones estilizado */
.tubias-product-add-to-cart .variations select {
    width: 100% !important;
    max-width: 100% !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: #FFFFFF !important;
    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='%238044B0' 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") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 14px 14px !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    padding: 0.75rem 2.5rem 0.75rem 1rem !important;
    font-size: 13px !important;
    color: #0F172A !important;
    font-weight: 500 !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    cursor: pointer;
}

.tubias-product-add-to-cart .variations select:focus {
    border-color: #8044B0 !important;
    box-shadow: 0 0 0 3px rgba(128, 68, 176, 0.12) !important;
}

/* Enlace para limpiar selección de variaciones */
.tubias-product-add-to-cart .reset_variations {
    display: inline-block !important;
    font-size: 10.5px !important;
    letter-spacing: 0.05em !important;
    color: #8044B0 !important;
    font-weight: 600 !important;
    margin-top: 0.4rem !important;
    text-decoration: underline !important;
    transition: color 0.2s ease !important;
}

.tubias-product-add-to-cart .reset_variations:hover {
    color: #E22D68 !important;
}

/* Área de precio y descripción de la variación seleccionada */
.tubias-product-add-to-cart .woocommerce-variation {
    padding: 0.85rem 1rem !important;
    background-color: #F8FAFC !important;
    border: 1px solid #F1F5F9 !important;
    border-radius: 12px !important;
    margin-top: 0.5rem !important;
}

.tubias-product-add-to-cart .woocommerce-variation-price .price {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #0F172A !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.tubias-product-add-to-cart .woocommerce-variation-availability {
    font-size: 12px !important;
    font-weight: 600 !important;
    margin-top: 0.25rem !important;
}

.tubias-product-add-to-cart .woocommerce-variation-availability .stock {
    margin: 0 !important;
}

/* Fila de controles: Cantidad + Botón Añadir a la Bolsa */
.tubias-product-add-to-cart .woocommerce-variation-add-to-cart,
.tubias-product-add-to-cart form.cart:not(.variations_form) {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 0.85rem !important;
    width: 100% !important;
}

/* Input de cantidad WooCommerce nativo */
.tubias-product-add-to-cart .quantity {
    display: inline-flex !important;
    position: relative !important;
    margin: 0 !important;
}

.tubias-product-add-to-cart .quantity .qty {
    width: 4rem !important;
    height: 3.25rem !important;
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.tubias-product-add-to-cart .quantity .qty:focus {
    border-color: #8044B0 !important;
    box-shadow: 0 0 0 3px rgba(128, 68, 176, 0.12) !important;
}

/* Botón Añadir al carrito */
.tubias-product-add-to-cart .single_add_to_cart_button.button {
    flex: 1 1 200px !important;
    min-height: 3.25rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #8044B0 !important;
    color: #FFFFFF !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(128, 68, 176, 0.25) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
    padding: 0 1.5rem !important;
}

.tubias-product-add-to-cart .single_add_to_cart_button.button:hover:not(:disabled) {
    background: #E22D68 !important;
    box-shadow: 0 6px 18px rgba(226, 45, 104, 0.35) !important;
    transform: translateY(-1px) !important;
}

.tubias-product-add-to-cart .single_add_to_cart_button.button:active:not(:disabled) {
    transform: translateY(0) !important;
}

.tubias-product-add-to-cart .single_add_to_cart_button.button.disabled,
.tubias-product-add-to-cart .single_add_to_cart_button.button:disabled {
    background: #CBD5E1 !important;
    color: #94A3B8 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    transform: none !important;
}