/* Carrito: ocultar precio tachado (precio anterior) */
body.woocommerce-cart .woocommerce-cart-form__cart-item .product-name del,
body.woocommerce-cart .woocommerce-cart-form__cart-item .product-price del,
body.woocommerce-cart .woocommerce-cart-form__cart-item .product-subtotal del {
    display: none !important;
}

/* Fallback global cart/checkout (clásico + bloques) para evitar UI de oferta */
body.woocommerce-cart del,
body.woocommerce-checkout del,
body.woocommerce-checkout-review-order-table del,
.wc-block-cart del,
.wc-block-checkout del,
.wc-block-components-product-price del,
.wc-block-components-formatted-money-amount del {
    display: none !important;
}

/* Fallback: ocultar "Ahorra" (plugin Dynamic Pricing) */
.rp_wcdpd_promotion_total_saved_table_row,
.rp_wcdpd_promotion_total_saved_div,
.rp_wcdpd_promotion_total_saved_div_position {
    display: none !important;
}
.nav-menu .nav-link {
    color: #1f2937;
    background: transparent;
    text-transform: uppercase;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link:focus,
.nav-menu li:hover .nav-link,
.nav-menu li:hover>.nav-link,
.nav-menu .menu-item:hover .nav-link,
.nav-menu .menu-item:hover>.nav-link {
    color: #ffffff !important;
    background: var(--color-primary) !important;
}

.nav-menu .menu-item.active>.nav-link,
.nav-menu .menu-item.current-menu-item>.nav-link,
.nav-menu .menu-item.current_page_item>.nav-link,
.nav-menu .menu-item.current-menu-ancestor>.nav-link,
.nav-menu .menu-item.current-menu-parent>.nav-link {
    color: #fff !important;
    background: var(--color-primary) !important;
    box-shadow: 0 8px 18px -12px rgba(15, 23, 42, 0.35);
}

.nav-menu .menu-item.active>.nav-link:hover,
.nav-menu .menu-item.current-menu-item>.nav-link:hover,
.nav-menu .menu-item.current_page_item>.nav-link:hover,
.nav-menu .menu-item.current-menu-ancestor>.nav-link:hover,
.nav-menu .menu-item.current-menu-parent>.nav-link:hover {
    color: #fff !important;
    background: var(--color-primary) !important;
}

/* Menú principal del header: item activo solo texto color #110083, sin background */
.header-primary-nav .nav-menu .menu-item.active>.nav-link,
.header-primary-nav .nav-menu .menu-item.current-menu-item>.nav-link,
.header-primary-nav .nav-menu .menu-item.current_page_item>.nav-link,
.header-primary-nav .nav-menu .menu-item.current-menu-ancestor>.nav-link,
.header-primary-nav .nav-menu .menu-item.current-menu-parent>.nav-link {
    color: #110083 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.header-primary-nav .nav-menu .menu-item.active>.nav-link:hover,
.header-primary-nav .nav-menu .menu-item.current-menu-item>.nav-link:hover,
.header-primary-nav .nav-menu .menu-item.current_page_item>.nav-link:hover,
.header-primary-nav .nav-menu .menu-item.current-menu-ancestor>.nav-link:hover,
.header-primary-nav .nav-menu .menu-item.current-menu-parent>.nav-link:hover {
    color: #110083 !important;
    background: transparent !important;
}

.header-primary-nav .nav-menu .nav-link:hover,
.header-primary-nav .nav-menu .nav-link:focus,
.header-primary-nav .nav-menu li:hover .nav-link,
.header-primary-nav .nav-menu li:hover>.nav-link,
.header-primary-nav .nav-menu .menu-item:hover .nav-link,
.header-primary-nav .nav-menu .menu-item:hover>.nav-link {
    color: #110083 !important;
    background: transparent !important;
}

/* ============================================
   WOOCOMMERCE NOTIFICATIONS
   ============================================ */

/* Contenedor de notificaciones - estilo toast */
.woocommerce-notices-wrapper-fixed {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    max-width: 400px !important;
    z-index: 9999 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: none !important;
    /* Oculto por defecto, se mostrará cuando haya notificaciones */
}

.woocommerce-notices-wrapper-fixed:not(:empty) {
    display: block !important;
}

/* Solo las notificaciones dentro del contenedor fijo tienen estilo toast */
.woocommerce-notices-wrapper-fixed .woocommerce-notices-wrapper,
.woocommerce-notices-wrapper-fixed .woocommerce-message,
.woocommerce-notices-wrapper-fixed .woocommerce-info,
.woocommerce-notices-wrapper-fixed .woocommerce-error {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 400px !important;
    z-index: 9999 !important;
    margin: 0 0 1rem 0 !important;
    padding: 1rem 1.5rem !important;
    background: #1f2937 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
    border-radius: 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    animation: slideInUp 0.3s ease-out !important;
    word-wrap: break-word !important;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.woocommerce-message.toast-hiding,
.woocommerce-info.toast-hiding,
.woocommerce-error.toast-hiding {
    animation: slideOutDown 0.3s ease-out forwards !important;
}

/* No necesitamos ajustar el padding del body para toasts */

/* Ocultar descripción en el carrito */
.woocommerce-cart .product-name p,
.woocommerce-cart .product-name .product-description,
.woocommerce-cart-form__cart-item .product-name>p:not(:first-child),
.woocommerce-cart-form__cart-item .product-name .woocommerce-product-details__short-description {
    display: none !important;
}

/* Mensajes de éxito - solo dentro del contenedor fijo */
.woocommerce-notices-wrapper-fixed .woocommerce-message {
    background: #10b981 !important;
    border-left: 4px solid #059669 !important;
}

/* Mensajes de información - solo dentro del contenedor fijo */
.woocommerce-notices-wrapper-fixed .woocommerce-info {
    background: #3b82f6 !important;
    border-left: 4px solid #2563eb !important;
}

/* Mensajes de error - solo dentro del contenedor fijo */
.woocommerce-notices-wrapper-fixed .woocommerce-error {
    background: #ef4444 !important;
    border-left: 4px solid #dc2626 !important;
}

/* Notificación inline en tarjetas de producto */
.inline-cart-notification {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botones dentro de las notificaciones */
.woocommerce-message a.button,
.woocommerce-info a.button,
.woocommerce-error a.button {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.woocommerce-message a.button:hover,
.woocommerce-info a.button:hover,
.woocommerce-error a.button:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Texto de la notificación */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    display: none !important;
}

/* ============================================
   MAIN THEME STYLES
   ============================================ */

/* Base styles and utilities */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Top bar: reducir tipografía general a 13px */
.top-bar-small {
    font-size: 11px !important;
}

/* Ocultar top bar (horarios, ofertas, dirección, redes) en mobile */
@media (max-width: 767px) {
    .site-top-bar {
        display: none !important;
    }
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid var(--button-bg, var(--color-primary, #000));
    outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    left: -9999px;
    z-index: 999999;
}

.skip-to-content:focus {
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem;
    background: var(--button-bg, var(--color-primary, #000));
    color: white;
    text-decoration: none;
}

/* ============================================
   BREADCRUMBS STYLES
   ============================================ */

/* Breadcrumb wrapper - only visible on desktop */
.breadcrumb-wrapper {
    display: none;
}

@media (min-width: 1024px) {
    .breadcrumb-wrapper {
        display: block;
    }
}

/* Breadcrumb navigation */
.breadcrumbs {
    font-size: 0.875rem;
    line-height: 1.5;
}

.breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
}

.breadcrumbs a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.breadcrumbs li:last-child {
    color: white;
    font-weight: 500;
}

/* WooCommerce breadcrumb links */
.breadcrumb-wrapper .breadcrumbs a {
    color: white;
}

.breadcrumb-wrapper .breadcrumbs a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-wrapper .breadcrumbs li:last-child {
    color: white;
}

/* Breadcrumb minimal: single product - sin fondo, separado del header, texto oscuro */
.breadcrumb-wrapper--minimal {
    background: none !important;
    margin-top: 1.5rem;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}
.breadcrumb-wrapper--minimal .breadcrumbs a {
    color: #4b5563 !important;
}
.breadcrumb-wrapper--minimal .breadcrumbs a:hover {
    color: #111827 !important;
}
.breadcrumb-wrapper--minimal .breadcrumbs li:last-child {
    color: #111827 !important;
}
.breadcrumb-wrapper--minimal .breadcrumbs ol {
    color: #6b7280;
}
.breadcrumb-wrapper--minimal .breadcrumbs .text-white\/70,
.breadcrumb-wrapper--minimal .breadcrumbs span[class*="text-white"] {
    color: #9ca3af !important;
}

/* ============================================
   WOOCOMMERCE BUTTON STYLES OVERRIDE
   ============================================ */

/* Reset WooCommerce default button styles */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce #content input.button {
    background: var(--button-bg, var(--color-primary, #000)) !important;
    color: var(--button-text, #ffffff) !important;
    border: none !important;
    padding: 0.625rem 1rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    text-decoration: none !important;
    display: inline-block !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce #content input.button:hover {
    background: var(--button-hover-bg, var(--color-secondary, #1e40af)) !important;
    color: var(--button-hover-text, #ffffff) !important;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background: var(--button-bg, var(--color-primary, #000)) !important;
}

/* Fix for loop add to cart button */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
    background: var(--button-bg, var(--color-primary, #000)) !important;
    color: var(--button-text, #ffffff) !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: auto !important;
    line-height: 1.5 !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce-page ul.products li.product .button:hover {
    background: var(--button-hover-bg, var(--color-secondary, #1e40af)) !important;
    color: var(--button-hover-text, #ffffff) !important;
}

/* Fix for price display - remove any blue background */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price,
.woocommerce .price,
.woocommerce-page .price {
    background: transparent !important;
    color: var(--primary-color, #000) !important;
    display: inline-block !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
}

.woocommerce ul.products li.product .price span,
.woocommerce-page ul.products li.product .price span,
.woocommerce .price span,
.woocommerce-page .price span {
    background: transparent !important;
    color: inherit !important;
}

/* ============================================
   SHOP PAGE - RESULT COUNT & ORDERING
   ============================================ */

/* Container for result count and ordering */
.woocommerce .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.875rem !important;
    color: #6b7280 !important;
    line-height: 1.5 !important;
}

.woocommerce .woocommerce-ordering,
.woocommerce-page .woocommerce-ordering {
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce .woocommerce-ordering select,
.woocommerce-page .woocommerce-ordering select {
    padding: 0.5rem 2.5rem 0.5rem 1rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    color: #374151 !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E") !important;
    background-position: right 0.5rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.5em 1.5em !important;
    appearance: none !important;
    cursor: pointer !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    min-width: 200px !important;
}

.woocommerce .woocommerce-ordering select:focus,
.woocommerce-page .woocommerce-ordering select:focus {
    outline: none !important;
    border-color: #000 !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

/* Shop loop controls container */
.shop-loop-controls {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
    flex-wrap: wrap !important;
}

/* Layout for before shop loop - result count and ordering */
.woocommerce .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count {
    margin: 0 !important;
    flex: 0 0 auto !important;
}

.woocommerce .woocommerce-ordering,
.woocommerce-page .woocommerce-ordering {
    margin: 0 !important;
    flex: 0 0 auto !important;
}

/* Desktop: Side by side layout */
@media (min-width: 769px) {
    .shop-loop-controls {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .woocommerce .woocommerce-result-count,
    .woocommerce-page .woocommerce-result-count {
        margin-right: auto !important;
    }

    .woocommerce .woocommerce-ordering,
    .woocommerce-page .woocommerce-ordering {
        margin-left: auto !important;
    }
}

/* Mobile: Stack vertically */
@media (max-width: 768px) {
    .shop-loop-controls {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    .woocommerce .woocommerce-result-count,
    .woocommerce-page .woocommerce-result-count {
        width: 100% !important;
        margin-right: 0 !important;
        text-align: left !important;
    }

    .woocommerce .woocommerce-ordering,
    .woocommerce-page .woocommerce-ordering {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .woocommerce .woocommerce-ordering select,
    .woocommerce-page .woocommerce-ordering select {
        width: 100% !important;
        min-width: 100% !important;
    }
}

/* Fix for search button in header - must be protected from WooCommerce styles (excl. search form) */
header form:not(.header-search-form) button[type="submit"],
.site-header form:not(.header-search-form) button[type="submit"],
.main-header form:not(.header-search-form) button[type="submit"],
.woocommerce header form:not(.header-search-form) button[type="submit"],
.woocommerce-page header form:not(.header-search-form) button[type="submit"],
body.single-product header form:not(.header-search-form) button[type="submit"],
body.woocommerce header form:not(.header-search-form) button[type="submit"],
body.woocommerce-page header form:not(.header-search-form) button[type="submit"] {
    background: var(--button-bg, var(--color-primary, #000)) !important;
    color: var(--button-text, #ffffff) !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
    position: absolute !important;
    right: 0.5rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    min-width: auto !important;
    flex: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
}

header form:not(.header-search-form) button[type="submit"]:hover,
.site-header form:not(.header-search-form) button[type="submit"]:hover,
.main-header form:not(.header-search-form) button[type="submit"]:hover,
.woocommerce header form:not(.header-search-form) button[type="submit"]:hover,
.woocommerce-page header form:not(.header-search-form) button[type="submit"]:hover,
body.single-product header form:not(.header-search-form) button[type="submit"]:hover,
body.woocommerce header form:not(.header-search-form) button[type="submit"]:hover,
body.woocommerce-page header form:not(.header-search-form) button[type="submit"]:hover {
    background: var(--button-hover-bg, var(--color-secondary, #1e40af)) !important;
    color: var(--button-hover-text, #ffffff) !important;
    transform: translateY(-50%) !important;
}

/* Ensure all WooCommerce buttons have proper text color */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
button[type="submit"]:not(.cart-toggle),
button[type="submit"].button:not(.cart-toggle),
button.add_to_cart_button,
.woocommerce ul.products li.product .button {
    color: var(--button-text, #ffffff) !important;
    text-shadow: none !important;
}

/* Remove any blue background from price wrapper */
.woocommerce ul.products li.product .price-wrapper,
.woocommerce-page ul.products li.product .price-wrapper {
    background: transparent !important;
}

/* Force text visibility in buttons */
.woocommerce a.button *,
.woocommerce button.button *,
.woocommerce input.button *,
button[type="submit"]:not(.cart-toggle) *,
button[type="submit"].button:not(.cart-toggle) *,
button.add_to_cart_button *,
.button:not(.cart-toggle) * {
    color: var(--button-text, #ffffff) !important;
}

/* Ensure button text is visible and properly displayed */
.woocommerce ul.products li.product .button::before,
.woocommerce-page ul.products li.product .button::before {
    display: none !important;
}

.woocommerce ul.products li.product .button::after,
.woocommerce-page ul.products li.product .button::after {
    display: none !important;
}

/* Additional fix for WooCommerce price display */
.woocommerce .product .price,
.woocommerce-page .product .price,
article.product .price,
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
    background-color: transparent !important;
    background: transparent !important;
    padding: 0 !important;
    display: inline-block !important;
}

.woocommerce .product .price ins,
.woocommerce-page .product .price ins,
article.product .price ins {
    background: transparent !important;
    text-decoration: none !important;
}

/* Fix for WooCommerce loop buttons specifically */
.woocommerce ul.products li.product a.button,
.woocommerce-page ul.products li.product a.button,
.woocommerce ul.products li.product button.button,
.woocommerce-page ul.products li.product button.button {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    min-width: auto !important;
    width: auto !important;
}

/* Ensure all text in buttons is visible */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    position: relative !important;
    z-index: 1 !important;
}

/* General button styles (non-WooCommerce) */
a.button,
button.button:not(.cart-toggle),
input.button,
.single_add_to_cart_button,
.button:not(.cart-toggle) {
    background: var(--button-bg, var(--color-primary, #000)) !important;
    color: var(--button-text, #ffffff) !important;
    border: none !important;
    padding: 0.625rem 1rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    text-decoration: none !important;
    display: inline-block !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

a.button:hover,
button.button:not(.cart-toggle):hover,
input.button:hover,
.button:not(.cart-toggle):hover {
    background: var(--button-hover-bg, var(--color-secondary, #1e40af)) !important;
    color: var(--button-hover-text, #ffffff) !important;
}

/* Cart checkout button */
.cart-checkout,
.single_add_to_cart_button,
a.cart-checkout {
    background: var(--button-bg, var(--color-primary, #000)) !important;
    color: var(--button-text, #ffffff) !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    text-decoration: none !important;
    display: inline-block !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
    width: 100% !important;
    text-align: center !important;
}

.cart-checkout:hover,
a.cart-checkout:hover {
    background: var(--button-hover-bg, var(--color-secondary, #1e40af)) !important;
    color: var(--button-hover-text, #ffffff) !important;
}

.cart-checkout:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Cart toggle button - should not use button styles */
.cart-toggle,
.account-link {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: inherit !important;
}

.cart-toggle:hover,
.account-link:hover {
    background: transparent !important;
    color: var(--button-bg, var(--color-primary, #000)) !important;
}

.cart-toggle *,
.account-link * {
    color: inherit !important;
}

/* Header: carrito siempre color #110083 */
header .cart-toggle,
header .cart-toggle *,
header .header-cart-icon,
header .header-cart-icon * {
    color: #110083 !important;
}

header .cart-toggle:hover,
header .header-cart-icon:hover,
header .cart-toggle:hover *,
header .header-cart-icon:hover * {
    color: #110083 !important;
}

/* Header: buscador sin fondo en el botón, solo lupa #110083; input fondo blanco */
header .header-search-form .header-search-input,
header form.header-search-form input[type="search"] {
    background-color: #ffffff !important;
    padding-left: 2.5rem !important;
}

header .header-search-form button[type="submit"],
header .header-search-form .header-search-btn,
header form.header-search-form button[type="submit"] {
    background: transparent !important;
    color: #110083 !important;
    box-shadow: none !important;
}

header .header-search-form button[type="submit"]:hover,
header form.header-search-form button[type="submit"]:hover {
    background: transparent !important;
    color: #110083 !important;
}

header .header-search-form button[type="submit"] *,
header form.header-search-form button[type="submit"] * {
    color: #110083 !important;
}

.header-search-form {
    position: relative;
}

.header-search-suggestions {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    z-index: 70;
    background: #ffffff;
    border: 1px solid #d9ddf3;
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(17, 0, 131, 0.12);
    overflow: hidden;
}

.header-search-suggestions__list {
    max-height: 360px;
    overflow-y: auto;
}

.header-search-suggestions__item,
.header-search-suggestions__view-all {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.header-search-suggestions__item {
    color: #1f2937;
    border-bottom: 1px solid #eef1fb;
}

.header-search-suggestions__item:hover,
.header-search-suggestions__item:focus,
.header-search-suggestions__view-all:hover,
.header-search-suggestions__view-all:focus {
    background: #f7f8ff;
}

.header-search-suggestions__thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: #f3f4f6;
    flex: 0 0 48px;
}

.header-search-suggestions__thumb--placeholder {
    display: inline-block;
}

.header-search-suggestions__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.header-search-suggestions__title {
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1f2937;
}

.header-search-suggestions__meta,
.header-search-suggestions__price,
.header-search-suggestions__status {
    font-size: 0.82rem;
    line-height: 1.35;
}

.header-search-suggestions__meta {
    color: #6b7280;
}

.header-search-suggestions__price {
    color: #110083;
    font-weight: 600;
}

.header-search-suggestions__status {
    padding: 0.95rem 1rem;
    color: #4b5563;
}

.header-search-suggestions__view-all {
    justify-content: center;
    color: #110083;
    font-weight: 500;
    background: #fafbff;
}

.header-search-suggestions--mobile {
    top: calc(100% + 0.35rem);
}

/* ============================================
   SINGLE PRODUCT GALLERY STYLES
   ============================================ */

/* Product gallery container */
.woocommerce-product-gallery {
    position: relative;
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.woocommerce-product-gallery img {
    width: 100%;
    height: auto;
    display: block;
}

/* Main gallery image */
.woocommerce-product-gallery__wrapper {
    position: relative;
    margin: 0;
    padding: 0;
}

.woocommerce-product-gallery__image {
    display: flex;
    position: relative;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    max-height: 600px;
    height: 500px;
}

.woocommerce-product-gallery__image img,
.woocommerce-product-gallery__image--placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    min-height: 500px;
    max-height: 600px;
}

@media (max-width: 768px) {
    .woocommerce-product-gallery__image {
        min-height: 260px;
        max-height: 420px;
        height: auto;
    }

    .woocommerce-product-gallery__image img,
    .woocommerce-product-gallery__image--placeholder img {
        min-height: 0;
        max-height: none;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* Gallery thumbnails navigation */
.woocommerce-product-gallery__thumbnails {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 transparent;
    justify-content: center;
    align-items: center;
}

.woocommerce-product-gallery__thumbnails::-webkit-scrollbar {
    height: 6px;
}

.woocommerce-product-gallery__thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.woocommerce-product-gallery__thumbnails::-webkit-scrollbar-thumb {
    background-color: #cbd5e0;
    border-radius: 3px;
}

/* Lightbox simple para imagen principal en single product */
.rocha-image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483647; /* muy por encima de cualquier otro elemento */
    opacity: 1;
    transition: opacity 0.25s ease;
}

.rocha-image-lightbox.hidden {
    opacity: 0;
    pointer-events: none;
}

.rocha-image-lightbox__content {
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(1);
    transition: transform 0.25s ease;
}

.rocha-image-lightbox.hidden .rocha-image-lightbox__content {
    transform: scale(0.97);
}

.rocha-image-lightbox__img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

.rocha-image-lightbox__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #ffffff;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
}

.rocha-image-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #111827;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.rocha-image-lightbox__nav:hover {
    transform: translateY(-50%) scale(1.06);
    background: #ffffff;
}

.rocha-image-lightbox__nav--prev {
    left: 1rem;
}

.rocha-image-lightbox__nav--next {
    right: 1rem;
}

@media (max-width: 767px) {
    .rocha-image-lightbox__nav {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1rem;
    }
}

/* My Account login hero panel */
.login-hero-panel {
    background: linear-gradient(145deg, #110083 0%, #2e1b9e 100%) !important;
    color: #ffffff !important;
}

.login-hero-panel * {
    color: inherit;
}

.woocommerce-product-gallery__thumbnails::-webkit-scrollbar-thumb:hover {
    background-color: #a0aec0;
}

.woocommerce-product-gallery__thumbnail-item {
    width: 80px;
    height: 80px;
}

.woocommerce-product-gallery__thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.woocommerce-product-gallery__thumbnail-item.active .woocommerce-product-gallery__thumbnail-image,
.woocommerce-product-gallery__thumbnail-item:hover .woocommerce-product-gallery__thumbnail-image {
    border-color: #000 !important;
    transform: scale(1.05);
}

/* Gallery navigation arrows (for flex slider) */
.woocommerce-product-gallery .flex-viewport {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    min-height: 500px;
    max-height: 600px;
}

@media (max-width: 768px) {
    .woocommerce-product-gallery .flex-viewport {
        min-height: 260px;
        max-height: min(420px, 70vh);
        height: auto !important;
    }
}

/* Ensure FlexSlider container is visible */
.woocommerce-product-gallery .flexslider {
    margin: 0;
    border: none;
    background: transparent;
}

.woocommerce-product-gallery .flexslider .slides {
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce-product-gallery .flexslider .slides>li {
    margin: 0;
    display: block;
    position: relative;
    min-height: 500px;
    max-height: 600px;
    height: 500px;
}

@media (max-width: 768px) {
    .woocommerce-product-gallery .flexslider .slides>li {
        min-height: 260px;
        max-height: min(420px, 70vh);
        height: auto !important;
    }
}

/* Gallery opacity fix - ensure it's visible after WooCommerce loads */
.woocommerce-product-gallery.woocommerce-product-gallery--with-images {
    opacity: 1 !important;
}

.woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0 0 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: center;
    align-items: center;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    margin: 0;
    cursor: pointer;
}

.woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.woocommerce-product-gallery .flex-control-thumbs li img:hover,
.woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
    opacity: 1;
    border-color: #000;
}

.woocommerce-product-gallery .flex-direction-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-product-gallery .flex-direction-nav a {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #374151;
    font-size: 18px;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.woocommerce-product-gallery .flex-direction-nav a:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--button-bg, var(--color-primary, #000));
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.woocommerce-product-gallery .flex-direction-nav .flex-prev {
    left: 10px;
}

.woocommerce-product-gallery .flex-direction-nav .flex-next {
    right: 10px;
}

.woocommerce-product-gallery .flex-direction-nav .flex-prev:before {
    content: '←';
}

.woocommerce-product-gallery .flex-direction-nav .flex-next:before {
    content: '→';
}

/* Gallery zoom and lightbox */
.woocommerce-product-gallery__trigger {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    z-index: 10;
    transition: all 0.3s ease;
}

.woocommerce-product-gallery__trigger:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.woocommerce-product-gallery__trigger:before {
    content: '🔍';
    font-size: 18px;
}

/* Single product page improvements */
body.single-product .product-images-wrapper {
    position: sticky !important;
    top: 2rem !important;
    align-self: start !important;
}

body.single-product .woocommerce-product-gallery {
    margin-bottom: 0 !important;
    position: relative !important;
}

body.single-product .woocommerce-product-gallery .flex-viewport,
body.single-product .woocommerce-product-gallery__image,
body.single-product .woocommerce-product-gallery .flexslider .slides>li {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 1 / 1;
}

body.single-product .woocommerce-product-gallery__image img,
body.single-product .woocommerce-product-gallery .flexslider .slides>li img,
body.single-product .woocommerce-product-gallery__image--placeholder img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

body.single-product .woocommerce-product-gallery__image img {
    cursor: zoom-in;
}

body.single-product .product-images-wrapper .product-badges {
    position: absolute !important;
    top: 1rem !important;
    left: 1rem !important;
    z-index: 20 !important;
}

@media (max-width: 1023px) {
    body.single-product .product-images-wrapper {
        position: relative !important;
        top: 0 !important;
    }
}

/* Mobile: evitar que la columna de imagen se rompa o desborde */
@media (max-width: 767px) {
    body.single-product .product-images-wrapper {
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden;
    }
    body.single-product .woocommerce-product-gallery {
        max-width: 100%;
        min-width: 0;
    }
    body.single-product .woocommerce-product-gallery .flex-viewport,
    body.single-product .woocommerce-product-gallery__image,
    body.single-product .woocommerce-product-gallery .flexslider .slides>li {
        aspect-ratio: 1 / 1;
    }
}

body.single-product {
    padding: 0 !important;
}

body.single-product .product-summary-wrapper .bg-white {
    height: 100% !important;
}

/* Productos similares: primera columna, debajo de la imagen */
body.single-product .product-images-wrapper .related.products,
body.single-product .product-images-wrapper .single-product-related {
    margin-top: 1.5rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.single-product .product-images-wrapper .single-product-related-inner {
    max-width: 100%;
}

body.single-product .product-images-wrapper .single-product-related-title {
    margin-bottom: 1rem;
}

/* Product title - multiple selectors */
body.single-product .product_title,
body.single-product h1.product_title,
.single-product .product_title,
.single-product h1.product_title,
.woocommerce .single-product .product_title,
.woocommerce .single-product h1.product_title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 1rem !important;
    line-height: 1.2 !important;
}

body.single-product h1.product_title,
.single-product h1.product_title,
.woocommerce .single-product h1.product_title {
    display: block !important;
}

body.single-product .single-product-title-desktop {
    display: none !important;
}

@media (min-width: 1024px) {
    body.single-product .single-product-title-mobile {
        display: none !important;
    }

    body.single-product .single-product-title-desktop {
        display: block !important;
    }
}

@media (max-width: 768px) {

    body.single-product .product_title,
    body.single-product h1.product_title {
        font-size: 1.5rem !important;
    }
}

/* Product price - overridden by enhanced styles below */

body.single-product .stock-status {
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    margin: 0.75rem 0 !important;
}

body.single-product .stock-status.out-of-stock {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

body.single-product .product-sku {
    color: #6b7280 !important;
    font-size: 0.875rem !important;
    margin: 1rem 0 !important;
}

body.single-product .woocommerce-product-details__short-description {
    margin: 1.5rem 0 !important;
    color: #4b5563 !important;
    line-height: 1.7 !important;
}

body.single-product form.cart,
body.single-product form.single-product-cart-form {
    margin: 2rem 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    flex-wrap: nowrap !important;
}

body.single-product .quantity {
    margin-right: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}


body.single-product .quantity label {
    font-weight: 600 !important;
    color: #374151 !important;
    font-size: 0.875rem !important;
}

body.single-product .quantity input[type="number"] {
    width: 80px !important;
    padding: 0.75rem !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    text-align: center !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    transition: border-color 0.3s ease !important;
}

body.single-product .quantity input[type="number"]:focus {
    outline: none !important;
    border-color: var(--button-bg, var(--color-primary, #000)) !important;
    box-shadow: 0 0 0 3px rgba(var(--button-bg-rgb, 37, 99, 235), 0.18) !important;
}

/* Comprar ahora: azul/primary, redondeado */
body.single-product form.single-product-cart-form .single-product-buy-now-btn {
    border-radius: 0.5rem !important;
    background: var(--color-primary, #1e3a5f) !important;
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}
body.single-product form.single-product-cart-form .single-product-buy-now-btn:hover {
    opacity: 0.9 !important;
}

/* Add to cart button - Solo en formulario principal del producto single (verde), NO en content-product-card */
body.single-product form.single-product-cart-form .single_add_to_cart_button,
body.single-product form.single-product-cart-form button[type="submit"][name="add-to-cart"] {
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    background: #549D0A !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0.5rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(84, 157, 10, 0.22) !important;
    flex: 1 !important;
    min-width: 160px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

body.single-product form.single-product-cart-form .single_add_to_cart_button:hover,
body.single-product form.single-product-cart-form button[type="submit"][name="add-to-cart"]:hover {
    background: #4a8c09 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(84, 157, 10, 0.28) !important;
}

body.single-product form.single-product-cart-form .single_add_to_cart_button:active,
body.single-product form.single-product-cart-form button[type="submit"][name="add-to-cart"]:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(84, 157, 10, 0.22) !important;
}

body.single-product form.single-product-cart-form .single_add_to_cart_button:disabled,
body.single-product form.single-product-cart-form button[type="submit"][name="add-to-cart"]:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Enhanced Product Info Container - Compact Design */
body.single-product .product-info-container {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    transition: box-shadow 0.3s ease !important;
    padding: 1.5rem !important;
}

@media (min-width: 1024px) {
    body.single-product .product-info-container {
        padding: 2rem !important;
    }
}

/* Enhanced Product Title - Compact */
body.single-product .product_title,
body.single-product h1.product_title {
    color: #1f2937 !important;
    margin-bottom: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 1px solid #e5e7eb !important;
    position: relative !important;
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
}

@media (min-width: 768px) {

    body.single-product .product_title,
    body.single-product h1.product_title {
        font-size: 1.75rem !important;
    }
}

/* Price Section - Compact with better layout */
body.single-product .price {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 0.5rem !important;
    margin: 0.75rem 0 !important;
    flex-wrap: wrap !important;
}

body.single-product .price .woocommerce-Price-amount {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 0.25rem !important;
}

body.single-product .price .woocommerce-Price-amount.amount {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: var(var(--button-bg, var(--color-secondary, #1e40af))) !important;
    letter-spacing: -0.5px !important;
}

@media (min-width: 768px) {
    body.single-product .price .woocommerce-Price-amount.amount {
        font-size: 2rem !important;
    }
}

body.single-product .price .woocommerce-Price-currencySymbol {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--button-bg, var(--color-primary, #000)) !important;
}

@media (min-width: 768px) {
    body.single-product .price .woocommerce-Price-currencySymbol {
        font-size: 1.5rem !important;
    }
}

/* Regular price when on sale */
body.single-product .price del {
    font-size: 1rem !important;
    color: #9ca3af !important;
    margin-right: 0.5rem !important;
}

body.single-product .price del .woocommerce-Price-amount {
    text-decoration: line-through !important;
    color: #9ca3af !important;
}

/* Short Description - Compact */
body.single-product .woocommerce-product-details__short-description {
    margin: 0.75rem 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    color: #4b5563 !important;
    line-height: 1.6 !important;
    font-size: 0.9375rem !important;
}

body.single-product .woocommerce-product-details__short-description p {
    margin: 0 !important;
    color: #4b5563 !important;
}

/* Cart Form - Compact and Clean */
body.single-product form.cart {
    margin: 1rem 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    flex-wrap: nowrap !important;
}

/* Quantity Input - Compact */
body.single-product .quantity {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: #ffffff !important;
    padding: 0 !important;
    border: none !important;
}

body.single-product .quantity label {
    display: none !important;
}

body.single-product .quantity input[type="number"] {
    width: 70px !important;
    padding: 0.625rem 0.75rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
    text-align: center !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
}

body.single-product .quantity input[type="number"]:hover {
    border-color: var(--button-bg, var(--color-primary, #000)) !important;
}

body.single-product .quantity input[type="number"]:focus {
    outline: none !important;
    border-color: var(--button-bg, var(--color-primary, #000)) !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08) !important;
}

/* Product Meta - Compact */
body.single-product .product_meta {
    margin-top: 1rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid #e5e7eb !important;
}

body.single-product .product_meta .sku_wrapper,
body.single-product .product_meta .posted_in {
    display: block !important;
    margin-bottom: 0.5rem !important;
    padding: 0 !important;
    background: transparent !important;
    font-size: 0.8125rem !important;
    color: #6b7280 !important;
}

body.single-product .product_meta .sku_wrapper .sku,
body.single-product .product_meta .sku_value {
    font-weight: 600 !important;
    color: #374151 !important;
    font-size: 0.8125rem !important;
}

body.single-product .product_meta .posted_in a {
    color: var(--button-bg, var(--color-primary, #000)) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
}

body.single-product .product_meta .posted_in a:hover {
    color: var(--button-hover-bg, var(--color-secondary, #1e40af)) !important;
    text-decoration: underline !important;
}

/* Estilos para etiquetas (tags) - consistente con SKU y categorías */
body.single-product .product_meta .tagged_as {
    display: block !important;
    margin-bottom: 0.5rem !important;
    padding: 0 !important;
    background: transparent !important;
    font-size: 0.8125rem !important;
    color: #6b7280 !important;
}

body.single-product .product_meta .tagged_as a {
    color: var(--button-bg, var(--color-primary, #000)) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
}

body.single-product .product_meta .tagged_as a:hover {
    color: var(--button-hover-bg, var(--color-secondary, #1e40af)) !important;
    text-decoration: underline !important;
}

/* Custom SKU Display */
body.single-product .product-sku-custom {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.625rem 1rem !important;
    background: rgba(var(--button-bg-rgb, 37, 99, 235), 0.08) !important;
    border: 1px solid rgba(var(--button-bg-rgb, 37, 99, 235), 0.35) !important;
    border-radius: 0.5rem !important;
    font-size: 0.875rem !important;
}

body.single-product .product-sku-custom .sku-label {
    font-weight: 600 !important;
    color: var(--button-bg, var(--color-primary, #000)) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

body.single-product .product-sku-custom .sku-value {
    font-weight: 700 !important;
    color: var(--button-hover-bg, var(--button-bg, var(--color-secondary, #1e40af))) !important;
    font-size: 0.9375rem !important;
    font-family: 'Courier New', monospace !important;
}

/* Remove duplicate SKU if both are showing */
body.single-product .product-sku {
    display: none !important;
}

body.single-product .product-meta-wrapper .product-sku {
    display: none !important;
}

/* Product Carousel Styles */
.product-carousel-section {
    margin: 2rem 0;
}

.product-carousel-container {
    position: relative;
    padding: 0 2rem;
}

@media (max-width: 1023px) {
    .product-carousel-container {
        padding: 0 1rem;
    }
}

.product-carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.product-carousel-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

.product-carousel-item {
    flex-shrink: 0;
}

/* Mobile: 1 column */
@media (max-width: 767px) {
    .product-carousel-item {
        width: calc(100% - 0.5rem) !important;
        min-width: 180px !important;
    }
}

/* Desktop: 4 columns */
@media (min-width: 768px) {
    .product-carousel-item {
        width: calc((100% - 3rem) / 4) !important;
        min-width: 200px !important;
    }
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-btn:hover:not(:disabled) {
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 1023px) {
    .carousel-btn {
        display: none !important;
    }
}

/* Product card styles in carousel */
.product-carousel-item .product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.product-carousel-item .product-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 10;
}

.product-carousel-item .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Home categories editorial grid */
.home-categories-section {
    position: relative;
}

.home-categories-header {
    max-width: 44rem;
    margin-left: auto;
    margin-right: auto;
}

.home-categories-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    line-height: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
}

.home-categories-title {
    margin: 0;
    color: #110083;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.15;
    font-weight: 800;
    text-transform: uppercase;
}

/* Grilla de categorías: menos separación que el carrusel genérico (2rem) */
.product-carousel-section.home-categories-grid-section {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .product-carousel-section.home-categories-grid-section {
        margin-top: 0.75rem;
        margin-bottom: 0.75rem;
    }
}

.product-carousel-section.home-categories-grid-section--embedded {
    margin-top: 0;
    margin-bottom: 0;
}

/* Grilla de categorías en home: todas visibles (p. ej. 6 ítems en 3×2 o 2×3) */
.home-categories-grid {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .home-categories-grid {
        gap: 1rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .home-categories-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.home-categories-grid__item {
    min-width: 0;
}

/* Home hero quick categories strip */
.hero-category-strip {
    background: #ffffff;
    margin-top: -0.25rem;
}

.hero-category-strip .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.hero-category-strip__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    background: var(--button-bg, var(--color-primary, #110083));
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-category-strip__item {
    min-height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    padding: 0.7rem 0.55rem;
    color: #f8fbff;
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: background-color 0.2s ease;
}

.hero-category-strip__item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hero-category-strip__icon {
    width: 1.45rem;
    height: 1.45rem;
    color: #d7e4ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.45rem;
    overflow: hidden;
}

.hero-category-strip__icon svg {
    width: 100%;
    height: 100%;
}

.hero-category-strip__icon-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.hero-category-strip__label {
    font-size: 0.76rem;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

@media (max-width: 639px) {
    .hero-category-strip__item {
        flex-direction: column;
        gap: 0.35rem;
        padding: 0.6rem 0.45rem;
        text-align: center;
    }

    .hero-category-strip__label {
        line-height: 1.15;
    }
}

@media (min-width: 640px) {
    .hero-category-strip__inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .hero-category-strip__inner {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .hero-category-strip__item {
        min-height: 2.9rem;
        border-bottom: 0;
    }
}

.home-category-card {
    position: relative;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
}

.home-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
    border-color: #cbd5e1;
}

.home-category-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 0;
    width: min(10rem, 72%);
    margin: 0.85rem auto 0.4rem;
    border-radius: 9999px;
    overflow: hidden;
}

.home-category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.45s ease;
}

.home-category-card:hover .home-category-image {
    transform: scale(1.05);
}

.home-category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 0, 131, 0) 40%, rgba(17, 0, 131, 0.09) 100%);
    pointer-events: none;
}

.home-category-content {
    padding: 0.5rem 0.9rem 0.95rem;
    text-align: center;
}

.home-category-name {
    margin: 0;
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
}

.home-category-count {
    display: inline-block;
    margin-top: 0.3rem;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .home-category-content {
        padding: 0.95rem 1rem 1.05rem;
    }

    .home-category-name {
        font-size: 11px;
    }
}

@media (max-width: 639px) {
    .home-category-card {
        display: block;
        border-radius: 0.7rem;
    }

    .home-category-media {
        width: min(6.5rem, 88%);
        margin-top: 0.45rem;
        margin-bottom: 0.2rem;
    }

    .home-category-content {
        min-width: 0;
        padding: 0.3rem 0.1rem 0.55rem;
    }

    .home-category-name {
        font-size: 11px !important;
        line-height: 14px;
        letter-spacing: -0.02em;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .home-category-count {
        margin-top: 0.2rem;
        font-size: clamp(0.52rem, 2.25vw, 0.625rem);
        line-height: 0.8rem;
        white-space: nowrap;
    }
}

/* Home news section */
.home-news-header {
    max-width: 46rem;
    margin-left: auto;
    margin-right: auto;
}

.home-news-title {
    margin: 0;
    color: #110083;
    font-size: clamp(1.35rem, 2.2vw, 1.95rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.home-news-card {
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.home-news-card:hover {
    transform: translateY(-5px);
    border-color: #dbe3ef;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.home-news-media {
    aspect-ratio: 16 / 10;
}

.home-news-image {
    transition: transform 0.45s ease;
}

.home-news-card:hover .home-news-image {
    transform: scale(1.05);
}

.home-news-date {
    color: #64748b;
    font-weight: 600;
}

.home-news-card-title {
    line-height: 1.35;
}

.home-news-link {
    color: #0f172a;
}

.home-news-link:hover {
    color: #110083;
}

.home-news-excerpt {
    color: #334155;
}

.home-news-cta {
    border: 1px solid #110083;
    color: #110083;
    background: #ffffff;
    font-weight: 700;
}

.home-news-cta:hover {
    background: #110083;
    color: #ffffff;
}

/* Services archive */
.service-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.service-card-media {
    position: relative;
}

.service-card-image {
    transition: transform 0.45s ease;
}

.service-card:hover .service-card-image {
    transform: scale(1.05);
}

.service-card-content {
    color: #334155;
}

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

/* About us sections */
.about-main-title {
    letter-spacing: 0.01em;
}

.about-secondary-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.about-secondary-card:hover {
    transform: translateY(-4px);
    border-color: #dbe3ef;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

/* Contact page */
.contact-kicker {
    margin: 0 0 0.4rem;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* My Account visual refresh */
body.woocommerce-account .site-main {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 40%);
}

.myaccount-shell {
    padding-top: 0.25rem;
}

.myaccount-header {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: linear-gradient(130deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    padding: 1rem 1.25rem;
}

.myaccount-greeting a {
    font-weight: 700;
    color: #110083;
}

.myaccount-nav-card,
.myaccount-content-card {
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.myaccount-nav-link {
    border-left: 3px solid transparent;
}

.myaccount-nav-link:hover {
    background: #eef2ff;
    color: #110083;
    border-left-color: #110083;
}

.myaccount-nav-link.is-active,
.myaccount-nav-link.woocommerce-MyAccount-navigation-link--active {
    background: #110083;
    color: #ffffff;
    border-left-color: #67e8f9;
}

.woocommerce-MyAccount-content .woocommerce-Address,
.woocommerce-MyAccount-content .woocommerce-address-fields,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm,
.woocommerce-MyAccount-content .woocommerce-EditAddressForm,
.woocommerce-MyAccount-content .woocommerce-orders-table-wrapper {
    border: 1px solid #e5e7eb;
    border-radius: 0.9rem;
    background: #ffffff;
    padding: 1rem;
}

.woocommerce-MyAccount-content .woocommerce-orders-table thead th {
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
}

.woocommerce-MyAccount-content .woocommerce-orders-table tbody tr:hover {
    background: #f8fafc;
}

.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button,
.woocommerce-MyAccount-content .woocommerce-button.button {
    border-radius: 0.6rem;
    font-size: 0.8125rem;
    font-weight: 700;
}

@media (max-width: 767px) {
    .myaccount-header {
        padding: 0.9rem 1rem;
    }

    .myaccount-nav-card,
    .myaccount-content-card {
        border-radius: 0.9rem;
    }
}

.contact-main-title,
.contact-subtitle {
    letter-spacing: 0.01em;
}

.contact-form-shell {
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    padding: 1.25rem;
}

.contact-hero-media img {
    min-height: 26rem;
}

.contact-map-shell iframe {
    display: block;
}

.contact-info-box {
    background: linear-gradient(160deg, #110083 0%, #2e1b9e 100%);
}

@media (max-width: 767px) {
    .contact-form-shell {
        padding: 1rem;
    }
}

/* Product tabs: sin caja, contenido al centro */
.woocommerce-tabs {
    margin-top: 3rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.woocommerce-tabs .tabs {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    /*border-bottom: 2px solid #e5e7eb;*/
}

.woocommerce-tabs .tabs li {
    margin: 0;
}

.woocommerce-tabs .tabs li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.woocommerce-tabs .tabs li.active a,
.woocommerce-tabs .tabs li a:hover {
    color: #000;
    border-bottom-color: #000;
}

.woocommerce-tabs .panel {
    padding: 1.5rem 0;
    color: #4b5563;
    line-height: 1.7;
    text-align: center;
}

.woocommerce-tabs .panel h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

/* Tabla de atributos/características centrada, sin caja */
.woocommerce-tabs .panel table {
    width: auto;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    border-collapse: collapse;
}

.woocommerce-tabs .panel table th,
.woocommerce-tabs .panel table td {
    padding: 0.75rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-tabs .panel table th {
    font-weight: 600;
    color: #1f2937;
}

/* Forzar centrado en tabla de características (sobreescribe clases del template) */
.woocommerce-tabs .panel table.woocommerce-product-attributes,
.woocommerce-tabs .panel table.shop_attributes {
    margin-left: auto;
    margin-right: auto;
}
.woocommerce-tabs .panel table.woocommerce-product-attributes th,
.woocommerce-tabs .panel table.woocommerce-product-attributes td,
.woocommerce-tabs .panel table.shop_attributes th,
.woocommerce-tabs .panel table.shop_attributes td {
    text-align: center !important;
}

/* Características: ancho completo del contenedor sin desbordar */
.woocommerce-tabs .panel:has(.product-characteristics) {
    text-align: left;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
    overflow-x: hidden;
    padding-left: clamp(0.75rem, 3vw, 1.5rem);
    padding-right: clamp(0.75rem, 3vw, 1.5rem);
}
.product-characteristics {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0.5rem 0 0;
    padding: 0;
    text-align: left;
    box-sizing: border-box;
    overflow-x: hidden;
}
.product-characteristics--extras {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed #e5e7eb;
}
.product-characteristics__pair--empty {
    visibility: hidden;
    pointer-events: none;
    min-height: 1.35rem;
}
.product-characteristics__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 clamp(0.75rem, 2vw, 1.5rem);
    border-bottom: 1px solid #e5e7eb;
    padding: 0.65rem 0;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.product-characteristics__row:first-of-type {
    border-top: 1px solid #e5e7eb;
}
.product-characteristics__pair {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem clamp(0.5rem, 2vw, 1rem);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.product-characteristics__pair--placeholder {
    visibility: hidden;
    pointer-events: none;
}
.product-characteristics__label {
    font-weight: 700;
    color: #111827;
    font-size: 0.875rem;
    flex: 0 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.product-characteristics__value {
    font-weight: 400;
    color: #64748b;
    font-size: 0.875rem;
    text-align: right;
    flex: 0 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}
@media (max-width: 639px) {
    .product-characteristics__row {
        grid-template-columns: 1fr;
        gap: 0.5rem 0;
        padding: 0.5rem 0;
    }
    .product-characteristics__pair--placeholder {
        display: none;
    }
}

/* Related products (cuando están fuera de la columna; en single van dentro de product-images-wrapper) */
.woocommerce .product-summary-wrapper ~ .related,
.woocommerce .upsells {
    margin-top: 4rem;
}

.woocommerce .related h2,
.woocommerce .upsells h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1f2937;
}

/* ============================================
   PRODUCT FILTERS - CATEGORIES & ATTRIBUTES
   ============================================ */

/* Custom scrollbar for filter sections */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 transparent;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #cbd5e0;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: #a0aec0;
}

/* Category hierarchy styles */
.category-item {
    position: relative;
}

.category-children {
    margin-top: 0.25rem;
    border-left: 2px solid #e5e7eb;
    padding-left: 0.5rem;
    margin-left: 0.5rem;
}

.category-item label {
    user-select: none;
}

.category-item input[type="checkbox"] {
    flex-shrink: 0;
}

.category-item:hover .category-children {
    border-left-color: #d1d5db;
}

/* Filter section spacing */
#product-filters-form>div:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Desktop sidebar apply filters button: no border radius */
#apply-filters-btn-desktop {
    border-radius: 0 !important;
}

/* Sidebar "Filtros" title: 14px, uppercase */
.filter-sidebar-title {
    font-size: 14px !important;
    font-weight: 700;
    text-transform: uppercase;
}

/* Single product: botón Añadir al carrito verde */
.single-product-add-to-cart-btn,
button.single_add_to_cart_button.single-product-add-to-cart-btn {
    background-color: #549D0A !important;
    color: #fff !important;
    border-radius: 0;
}
.single-product-add-to-cart-btn:hover,
button.single_add_to_cart_button.single-product-add-to-cart-btn:hover {
    background-color: #4a8c09 !important;
    color: #fff !important;
}

/* Single product: botón Comprar ahora sin border-radius si hace falta */
.single-product-buy-now-btn {
    border-radius: 0;
    font-weight: 500 !important;
    font-size: 13px !important;
}

/* Single product: enlace WhatsApp — solo icono, verde marca */
.single-product-whatsapp-btn {
    width: 3.25rem !important;
    height: 3.25rem !important;
    min-width: 0 !important;
    border-radius: 9999px !important;
    background-color: #25d366 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.single-product-whatsapp-btn:hover {
    opacity: 1 !important;
    filter: brightness(1.05);
}

/* Single product: caja de compra — reducir padding vertical */
.product-purchase-box {
    padding-top: 0.1rem !important;  /* antes ~py-6 (1.5rem) */
    padding-bottom: 0rem !important;
}

/* Single product: promos bancarias — una sola línea, logo alineado al texto (estilo Gadnic) */
.single-product-promos-box {
    padding-left: 0 !important;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}
.single-product-promo-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    align-items: center !important;
    white-space: nowrap !important;
    min-height: 2rem;
    line-height: 1.1rem;
}
/* Contenedor del logo: centrado en la fila, misma altura que la línea de texto */
.single-product-promo-row .single-product-promo-icon {
    flex-shrink: 0;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    height: 1.5rem;
    overflow: visible;
}
/* Logo: escala dentro del contenedor, sin recortar; alineado al centro de la línea */
.single-product-promo-row .single-product-promo-logo {
    display: block;
    max-height: 1rem;
    width: auto;
    max-width: 120px;
    height: auto;
    object-fit: contain;
    object-position: center;
    vertical-align: middle;
    margin: 0;
}
.single-product-promo-row .single-product-promo-text {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    line-height: inherit;
}
.single-product-promo-row .single-product-promo-text .text-primary {
    color: #478438 !important;
}
.single-product-promo-row .woocommerce-Price-amount,
.single-product-promo-row .amount,
.single-product-promo-row bdi {
    display: inline !important;
    white-space: nowrap !important;
}

/* Single product: toggles \"Más promos en cuotas\" y \"Medios de pago\" */
.single-product-toggle {
    display: inline-block;
}
.single-product-toggle-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    outline: none;
    font-size: 0.875rem; /* 14px */
    font-weight: 400 !important; /* sin bold */
}
.single-product-toggle-summary::-webkit-details-marker {
    display: none;
}
.single-product-toggle-icon svg {
    transition: transform 0.2s ease;
}
.single-product-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #478438;
}
/* Texto verde dentro de los toggles (ej: \"6 cuotas promocionadas\") */
.single-product-toggle .text-primary {
    color: #478438 !important;
}
details[open] .single-product-toggle-icon svg {
    transition: transform 0.2s ease;
    transform: rotate(180deg);
}

/* Single product: Medios de pago — menos espacio con la caja de compra */
.single-product-payment-methods {
    margin-bottom: 0.75rem !important;
}
.single-product-payment-methods-image {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Single product: Medios de pago (desplegable con imagen) */
.single-product-payment-methods-image {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Single product: badges de descuento y ahorro en verde corporativo */
.single-product-discount-badge,
.single-product-saving-badge {
    color: #478438 !important;
}

/* Single product: "En stock" solo texto, sin fondo */
.product-in-stock-text {
    color: #549D0A;
}

/* Single product: "En stock" solo texto en verde #549D0A */
.product-in-stock-text {
    color: #549D0A;
}

/* ============================================
   WOOCOMMERCE PAGINATION STYLES
   ============================================ */

.woocommerce-pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.woocommerce nav.woocommerce-pagination,
.woocommerce-page nav.woocommerce-pagination {
    text-align: center;
    margin: 0;
    padding: 0;
}

.woocommerce nav.woocommerce-pagination ul,
.woocommerce-page nav.woocommerce-pagination ul {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.woocommerce nav.woocommerce-pagination ul li,
.woocommerce-page nav.woocommerce-pagination ul li {
    display: inline-block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
.woocommerce-page nav.woocommerce-pagination ul li a,
.woocommerce-page nav.woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem 0.75rem;
    margin: 0;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    line-height: 1;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce-page nav.woocommerce-pagination ul li a:hover {
    background-color: var(--color-primary, #000);
    color: #ffffff;
    border-color: var(--color-primary, #000);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce-page nav.woocommerce-pagination ul li span.current {
    background-color: var(--color-primary, #000);
    color: #ffffff;
    border-color: var(--color-primary, #000);
    font-weight: 600;
    cursor: default;
}

.woocommerce nav.woocommerce-pagination ul li span.dots,
.woocommerce-page nav.woocommerce-pagination ul li span.dots {
    background-color: transparent;
    border: none;
    color: #6b7280;
    cursor: default;
    padding: 0.5rem 0.25rem;
}

.woocommerce nav.woocommerce-pagination ul li a.prev,
.woocommerce nav.woocommerce-pagination ul li a.next,
.woocommerce-page nav.woocommerce-pagination ul li a.prev,
.woocommerce-page nav.woocommerce-pagination ul li a.next {
    padding: 0.5rem 1rem;
    min-width: auto;
}

.woocommerce nav.woocommerce-pagination ul li a.prev:hover,
.woocommerce nav.woocommerce-pagination ul li a.next:hover,
.woocommerce-page nav.woocommerce-pagination ul li a.prev:hover,
.woocommerce-page nav.woocommerce-pagination ul li a.next:hover {
    background-color: var(--color-primary, #000);
    color: #ffffff;
    border-color: var(--color-primary, #000);
}

/* Mobile responsive pagination */
@media (max-width: 640px) {

    .woocommerce nav.woocommerce-pagination ul,
    .woocommerce-page nav.woocommerce-pagination ul {
        gap: 0.25rem;
    }

    .woocommerce nav.woocommerce-pagination ul li a,
    .woocommerce nav.woocommerce-pagination ul li span,
    .woocommerce-page nav.woocommerce-pagination ul li a,
    .woocommerce-page nav.woocommerce-pagination ul li span {
        min-width: 2.25rem;
        height: 2.25rem;
        padding: 0.375rem 0.5rem;
        font-size: 0.8125rem;
    }

    .woocommerce nav.woocommerce-pagination ul li a.prev,
    .woocommerce nav.woocommerce-pagination ul li a.next,
    .woocommerce-page nav.woocommerce-pagination ul li a.prev,
    .woocommerce-page nav.woocommerce-pagination ul li a.next {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
     /*
     * WooCommerce agrega .prev/.next al enlace, no al <li>. Mantener todos
     * los items visibles permite navegar en mobile y el flex-wrap evita
     * desbordes en pantallas angostas.
     */
}

/* ============================================
   MOBILE FILTER DRAWER
   ============================================ */

/* Mobile filter toggle button */
#mobile-filter-toggle {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#mobile-filter-toggle:active {
    transform: scale(0.95);
}

/* Filter drawer container */
.filter-drawer {
    will-change: transform;
}

/* Smooth overlay transition */
#mobile-filter-overlay {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Prevent body scroll when drawer is open */
body.filter-drawer-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Ensure drawer content is scrollable */
#mobile-filter-drawer form {
    min-height: 100%;
}

/* Better spacing for mobile drawer */
@media (max-width: 1023px) {
    #mobile-filter-drawer {
        padding-top: env(safe-area-inset-top);
    }

    #mobile-filter-drawer .filter-progressive-container {
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }

    #mobile-filter-drawer .filter-content {
        max-height: calc(100vh - 300px);
    }
}

/* Desktop: ensure drawer behaves as sidebar */
@media (min-width: 1024px) {
    .filter-drawer {
        position: static !important;
        transform: none !important;
        max-width: 100% !important;
        height: auto !important;
        box-shadow: none !important;
    }

    #mobile-filter-toggle {
        display: none !important;
    }

    #mobile-filter-overlay {
        display: none !important;
    }
}

/* ============================================
   WOOCOMMERCE MY ACCOUNT PAGE
   ============================================ */

.woocommerce-account-wrapper {
    min-height: 60vh;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

.woocommerce-account-wrapper .container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.woocommerce-account-wrapper .grid {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.woocommerce-MyAccount-content>* {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.woocommerce-MyAccount-navigation {
    position: relative;
}

.woocommerce-MyAccount-navigation-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.woocommerce-MyAccount-navigation-link {
    margin: 0;
}

.woocommerce-MyAccount-navigation-link a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 0;
}

.woocommerce-MyAccount-navigation-link a:hover {
    background-color: var(--color-primary, #3b82f6);
    color: #ffffff;
}

.woocommerce-MyAccount-navigation-link a.is-active {
    background-color: var(--color-primary, #3b82f6);
    color: #ffffff;
    font-weight: 600;
}

.woocommerce-MyAccount-navigation-link a svg {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
}

.woocommerce-MyAccount-content {
    width: 100%;
}

.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #111827;
    font-weight: 700;
}

.woocommerce-MyAccount-content h2 {
    font-size: 1.5rem;
}

.woocommerce-MyAccount-content h3 {
    font-size: 1.25rem;
}

/* Mobile optimizations */
@media (max-width: 1023px) {
    .woocommerce-account-wrapper .grid {
        grid-template-columns: 1fr;
    }

    .woocommerce-MyAccount-navigation {
        margin-bottom: 1.5rem;
    }

    .woocommerce-MyAccount-navigation-link a {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }

    .woocommerce-MyAccount-content {
        padding: 1rem;
    }
}

/* Account dashboard specific styles */
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-error {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid;
}

.woocommerce-MyAccount-content .woocommerce-message {
    background-color: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.woocommerce-MyAccount-content .woocommerce-info {
    background-color: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
}

.woocommerce-MyAccount-content .woocommerce-error {
    background-color: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

/* Orders table */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.woocommerce-orders-table th,
.woocommerce-orders-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-orders-table th {
    font-weight: 600;
    color: #374151;
    background-color: #f9fafb;
}

.woocommerce-orders-table tr:hover {
    background-color: #f9fafb;
}

@media (max-width: 768px) {
    .woocommerce-orders-table {
        font-size: 0.875rem;
    }

    .woocommerce-orders-table th,
    .woocommerce-orders-table td {
        padding: 0.5rem;
    }
}

/* Addresses */
.woocommerce-Address {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
}

.woocommerce-Address-title {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

/* Forms in account */
.woocommerce-MyAccount-content form {
    max-width: 100%;
}

.woocommerce-MyAccount-content .form-row {
    margin-bottom: 1.25rem;
}

.woocommerce-MyAccount-content label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content input[type="tel"],
.woocommerce-MyAccount-content select,
.woocommerce-MyAccount-content textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.woocommerce-MyAccount-content input[type="text"]:focus,
.woocommerce-MyAccount-content input[type="email"]:focus,
.woocommerce-MyAccount-content input[type="password"]:focus,
.woocommerce-MyAccount-content input[type="tel"]:focus,
.woocommerce-MyAccount-content select:focus,
.woocommerce-MyAccount-content textarea:focus {
    outline: none;
    border-color: var(--color-primary, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* WooCommerce form fields - ONLY for My Account pages, NOT for product filters */
/* Styles consolidated below in "WooCommerce form field structure" section */

.woocommerce-account-wrapper form .form-row label,
.woocommerce-MyAccount-content form .form-row label,
.woocommerce-EditAccountForm .form-row label,
.woocommerce-EditAddressForm .form-row label {
    display: block !important;
    margin-bottom: 0.5rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    font-size: 0.875rem !important;
}

.woocommerce-account-wrapper form .form-row .required,
.woocommerce-MyAccount-content form .form-row .required,
.woocommerce-EditAccountForm .form-row .required,
.woocommerce-EditAddressForm .form-row .required {
    color: var(--color-primary, #3b82f6) !important;
    font-weight: 600 !important;
}

.woocommerce-account-wrapper form .form-row .woocommerce-form-row__description,
.woocommerce-MyAccount-content form .form-row .woocommerce-form-row__description,
.woocommerce-EditAccountForm .form-row .woocommerce-form-row__description,
.woocommerce-EditAddressForm .form-row .woocommerce-form-row__description {
    display: block !important;
    margin-top: 0.25rem !important;
    font-size: 0.875rem !important;
    color: #6b7280 !important;
}

/* Form row spacing - ONLY for My Account pages */
/* Styles consolidated below in "Ensure form row containers" section */

.woocommerce-account-wrapper form .form-row.form-row-first,
.woocommerce-account-wrapper form .form-row.form-row-last,
.woocommerce-MyAccount-content form .form-row.form-row-first,
.woocommerce-MyAccount-content form .form-row.form-row-last,
.woocommerce-EditAccountForm .form-row.form-row-first,
.woocommerce-EditAccountForm .form-row.form-row-last,
.woocommerce-EditAddressForm .form-row.form-row-first,
.woocommerce-EditAddressForm .form-row.form-row-last {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

@media (min-width: 768px) {

    .woocommerce-account-wrapper form .form-row.form-row-first,
    .woocommerce-account-wrapper form .form-row.form-row-last,
    .woocommerce-MyAccount-content form .form-row.form-row-first,
    .woocommerce-MyAccount-content form .form-row.form-row-last,
    .woocommerce-EditAccountForm .form-row.form-row-first,
    .woocommerce-EditAccountForm .form-row.form-row-last,
    .woocommerce-EditAddressForm .form-row.form-row-first,
    .woocommerce-EditAddressForm .form-row.form-row-last {
        width: calc(50% - 0.75rem) !important;
        max-width: calc(50% - 0.75rem) !important;
        float: left !important;
        box-sizing: border-box !important;
    }

    .woocommerce-account-wrapper form .form-row.form-row-first,
    .woocommerce-MyAccount-content form .form-row.form-row-first,
    .woocommerce-EditAccountForm .form-row.form-row-first,
    .woocommerce-EditAddressForm .form-row.form-row-first {
        margin-right: 1.5rem !important;
        margin-left: 0 !important;
    }

    .woocommerce-account-wrapper form .form-row.form-row-last,
    .woocommerce-MyAccount-content form .form-row.form-row-last,
    .woocommerce-EditAccountForm .form-row.form-row-last,
    .woocommerce-EditAddressForm .form-row.form-row-last {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}

.woocommerce-account-wrapper form .form-row.form-row-wide,
.woocommerce-MyAccount-content form .form-row.form-row-wide,
.woocommerce-EditAccountForm .form-row.form-row-wide,
.woocommerce-EditAddressForm .form-row.form-row-wide {
    width: 100% !important;
    max-width: 100% !important;
    clear: both !important;
    float: none !important;
}

/* Select dropdown styling - ONLY for My Account */
.woocommerce-account-wrapper form .form-row select,
.woocommerce-MyAccount-content form .form-row select,
.woocommerce-EditAccountForm .form-row select,
.woocommerce-EditAddressForm .form-row select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem !important;
}

/* Textarea styling - ONLY for My Account */
.woocommerce-account-wrapper form .form-row textarea,
.woocommerce-MyAccount-content form .form-row textarea,
.woocommerce-EditAccountForm .form-row textarea,
.woocommerce-EditAddressForm .form-row textarea {
    min-height: 100px !important;
    resize: vertical !important;
}

/* Address fields - prevent overflow */
.woocommerce-address-fields {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.woocommerce-address-fields__field-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.woocommerce-address-fields__field-wrapper .form-row {
    display: block !important;
    margin-bottom: 1.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    clear: both !important;
    float: none !important;
}

.woocommerce-address-fields__field-wrapper .form-row.form-row-first,
.woocommerce-address-fields__field-wrapper .form-row.form-row-last {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-right: 0 !important;
}

@media (min-width: 768px) {

    .woocommerce-address-fields__field-wrapper .form-row.form-row-first,
    .woocommerce-address-fields__field-wrapper .form-row.form-row-last {
        width: calc(50% - 0.75rem) !important;
        max-width: calc(50% - 0.75rem) !important;
        float: left !important;
        box-sizing: border-box !important;
    }

    .woocommerce-address-fields__field-wrapper .form-row.form-row-first {
        margin-right: 1.5rem !important;
    }

    .woocommerce-address-fields__field-wrapper .form-row.form-row-last {
        margin-right: 0 !important;
    }
}

/* Edit account form specific - prevent overflow */
.woocommerce-EditAccountForm {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.woocommerce-EditAccountForm .space-y-6>*+* {
    margin-top: 1.5rem;
}

.woocommerce-EditAccountForm .grid {
    display: grid;
    gap: 1.5rem;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.woocommerce-EditAccountForm .form-row {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.woocommerce-EditAddressForm {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

/* Buttons in account pages */
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content button.button,
.woocommerce-MyAccount-content input.button {
    display: inline-block !important;
    padding: 0.75rem 1.5rem !important;
    background-color: var(--color-primary, #3b82f6) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.woocommerce-MyAccount-content .button:hover,
.woocommerce-MyAccount-content button.button:hover,
.woocommerce-MyAccount-content input.button:hover {
    background-color: var(--color-secondary, #1e40af) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Orders table improvements */
.woocommerce-orders-table__cell {
    padding: 1rem !important;
}

.woocommerce-orders-table__cell-order-actions a {
    display: inline-block !important;
    padding: 0.5rem 1rem !important;
    background-color: var(--color-primary, #3b82f6) !important;
    color: #ffffff !important;
    border-radius: 0.375rem !important;
    text-decoration: none !important;
    font-size: 0.875rem !important;
    transition: all 0.2s ease !important;
}

.woocommerce-orders-table__cell-order-actions a:hover {
    background-color: var(--color-secondary, #1e40af) !important;
}

/* Address cards */
.woocommerce-Address {
    background-color: #f9fafb !important;
    border-radius: 0.5rem !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.woocommerce-Address-title {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin-bottom: 1rem !important;
}

.woocommerce-Address address {
    font-style: normal !important;
    line-height: 1.75 !important;
    color: #374151 !important;
}

/* Order status badges */
.woocommerce-orders-table__status {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 9999px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.status-pending {
    background-color: #fef3c7 !important;
    color: #92400e !important;
}

.status-processing {
    background-color: #dbeafe !important;
    color: #1e40af !important;
}

.status-on-hold {
    background-color: #e0e7ff !important;
    color: #3730a3 !important;
}

.status-completed {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
}

.status-cancelled {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
}

.status-refunded {
    background-color: #f3f4f6 !important;
    color: #374151 !important;
}

.status-failed {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
}

/* Pagination in account */
.woocommerce-pagination {
    margin-top: 2rem !important;
    display: flex !important;
    gap: 1rem !important;
    justify-content: center !important;
}

.woocommerce-pagination .button {
    display: inline-block !important;
    padding: 0.75rem 1.5rem !important;
    background-color: var(--color-primary, #3b82f6) !important;
    color: #ffffff !important;
    border-radius: 0.5rem !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.woocommerce-pagination .button:hover {
    background-color: var(--color-secondary, #1e40af) !important;
}

/* Clear floats - ONLY for My Account */
.woocommerce-account-wrapper form .clear,
.woocommerce-MyAccount-content form .clear,
.woocommerce-EditAccountForm .clear,
.woocommerce-EditAddressForm .clear {
    clear: both !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure p tags in forms don't cause overflow - ONLY for My Account */
.woocommerce-account-wrapper form .form-row p,
.woocommerce-account-wrapper form p.form-row,
.woocommerce-MyAccount-content form .form-row p,
.woocommerce-MyAccount-content form p.form-row,
.woocommerce-EditAccountForm .form-row p,
.woocommerce-EditAccountForm p.form-row,
.woocommerce-EditAddressForm .form-row p,
.woocommerce-EditAddressForm p.form-row {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 1.5rem 0 !important;
    padding: 0 !important;
}

/* Prevent any element from causing horizontal overflow - ONLY for My Account */
.woocommerce-account-wrapper * {
    max-width: 100% !important;
}

.woocommerce-account-wrapper input,
.woocommerce-account-wrapper select,
.woocommerce-account-wrapper textarea,
.woocommerce-account-wrapper button {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* WooCommerce form field structure - ONLY for My Account pages */
.woocommerce-account-wrapper form .form-row .input-text,
.woocommerce-account-wrapper form .form-row input[type="text"],
.woocommerce-account-wrapper form .form-row input[type="email"],
.woocommerce-account-wrapper form .form-row input[type="tel"],
.woocommerce-account-wrapper form .form-row input[type="password"],
.woocommerce-account-wrapper form .form-row input[type="number"],
.woocommerce-account-wrapper form .form-row select,
.woocommerce-account-wrapper form .form-row textarea,
.woocommerce-MyAccount-content form .form-row .input-text,
.woocommerce-MyAccount-content form .form-row input[type="text"],
.woocommerce-MyAccount-content form .form-row input[type="email"],
.woocommerce-MyAccount-content form .form-row input[type="tel"],
.woocommerce-MyAccount-content form .form-row input[type="password"],
.woocommerce-MyAccount-content form .form-row input[type="number"],
.woocommerce-MyAccount-content form .form-row select,
.woocommerce-MyAccount-content form .form-row textarea,
.woocommerce-EditAccountForm .form-row .input-text,
.woocommerce-EditAccountForm .form-row input[type="text"],
.woocommerce-EditAccountForm .form-row input[type="email"],
.woocommerce-EditAccountForm .form-row input[type="tel"],
.woocommerce-EditAccountForm .form-row input[type="password"],
.woocommerce-EditAccountForm .form-row input[type="number"],
.woocommerce-EditAccountForm .form-row select,
.woocommerce-EditAccountForm .form-row textarea,
.woocommerce-EditAddressForm .form-row .input-text,
.woocommerce-EditAddressForm .form-row input[type="text"],
.woocommerce-EditAddressForm .form-row input[type="email"],
.woocommerce-EditAddressForm .form-row input[type="tel"],
.woocommerce-EditAddressForm .form-row input[type="password"],
.woocommerce-EditAddressForm .form-row input[type="number"],
.woocommerce-EditAddressForm .form-row select,
.woocommerce-EditAddressForm .form-row textarea {
    display: block !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.75rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
    font-size: 1rem !important;
    background-color: #ffffff !important;
    color: #111827 !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.woocommerce-account-wrapper form .form-row .input-text:focus,
.woocommerce-account-wrapper form .form-row input[type="text"]:focus,
.woocommerce-account-wrapper form .form-row input[type="email"]:focus,
.woocommerce-account-wrapper form .form-row input[type="tel"]:focus,
.woocommerce-account-wrapper form .form-row input[type="password"]:focus,
.woocommerce-account-wrapper form .form-row input[type="number"]:focus,
.woocommerce-account-wrapper form .form-row select:focus,
.woocommerce-account-wrapper form .form-row textarea:focus,
.woocommerce-MyAccount-content form .form-row .input-text:focus,
.woocommerce-MyAccount-content form .form-row input[type="text"]:focus,
.woocommerce-MyAccount-content form .form-row input[type="email"]:focus,
.woocommerce-MyAccount-content form .form-row input[type="tel"]:focus,
.woocommerce-MyAccount-content form .form-row input[type="password"]:focus,
.woocommerce-MyAccount-content form .form-row input[type="number"]:focus,
.woocommerce-MyAccount-content form .form-row select:focus,
.woocommerce-MyAccount-content form .form-row textarea:focus,
.woocommerce-EditAccountForm .form-row .input-text:focus,
.woocommerce-EditAccountForm .form-row input[type="text"]:focus,
.woocommerce-EditAccountForm .form-row input[type="email"]:focus,
.woocommerce-EditAccountForm .form-row input[type="tel"]:focus,
.woocommerce-EditAccountForm .form-row input[type="password"]:focus,
.woocommerce-EditAccountForm .form-row input[type="number"]:focus,
.woocommerce-EditAccountForm .form-row select:focus,
.woocommerce-EditAccountForm .form-row textarea:focus,
.woocommerce-EditAddressForm .form-row .input-text:focus,
.woocommerce-EditAddressForm .form-row input[type="text"]:focus,
.woocommerce-EditAddressForm .form-row input[type="email"]:focus,
.woocommerce-EditAddressForm .form-row input[type="tel"]:focus,
.woocommerce-EditAddressForm .form-row input[type="password"]:focus,
.woocommerce-EditAddressForm .form-row input[type="number"]:focus,
.woocommerce-EditAddressForm .form-row select:focus,
.woocommerce-EditAddressForm .form-row textarea:focus {
    outline: none !important;
    border-color: var(--color-primary, #3b82f6) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Ensure form row containers don't overflow - ONLY for My Account */
.woocommerce-account-wrapper form .form-row,
.woocommerce-MyAccount-content form .form-row,
.woocommerce-EditAccountForm .form-row,
.woocommerce-EditAddressForm .form-row {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 0 1.5rem 0 !important;
    clear: both !important;
}

/* Address form fields - covered by main form field styles above */

/* Additional overflow prevention */
body.woocommerce-account,
body.woocommerce-account-page {
    overflow-x: hidden !important;
}

.woocommerce-account-wrapper,
.woocommerce-account-wrapper .container,
.woocommerce-account-wrapper .grid,
.woocommerce-MyAccount-content,
.woocommerce-MyAccount-content>div {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* Ensure grid columns don't overflow */
@media (min-width: 1024px) {
    .woocommerce-account-wrapper .grid>div {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
}

/* Fix for Tailwind grid classes in account pages */
.woocommerce-account-wrapper [class*="col-span"] {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

/* Final override: My Account look and spacing */
body.woocommerce-account .site-main {
    background: #ffffff !important;
    padding-top: 1rem;
    padding-bottom: 2rem;
}

body.woocommerce-account .woocommerce-account-wrapper.myaccount-shell {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    border-radius: 1.25rem;
    padding: 0.75rem;
}

body.woocommerce-account .myaccount-header {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

body.woocommerce-account .myaccount-nav-card,
body.woocommerce-account .myaccount-content-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

body.woocommerce-account .myaccount-nav-link.is-active,
body.woocommerce-account .myaccount-nav-link.woocommerce-MyAccount-navigation-link--active,
body.woocommerce-account .myaccount-nav-link[class*="is-active"] {
    background: #f1f5f9 !important;
    font-weight: 600;
    color: #1e293b !important;
    border-left-color: #334155 !important;
}

@media (max-width: 767px) {
    body.woocommerce-account .woocommerce-account-wrapper.myaccount-shell {
        border-radius: 1rem;
        padding: 0.55rem;
    }
}

/* Ensure all form elements are properly contained - ONLY for My Account */
.woocommerce-account-wrapper form,
.woocommerce-MyAccount-content form,
.woocommerce-EditAccountForm,
.woocommerce-EditAddressForm {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Fix for form rows with float that might cause overflow - ONLY for My Account */
.woocommerce-account-wrapper form::after,
.woocommerce-MyAccount-content form::after,
.woocommerce-EditAccountForm::after,
.woocommerce-EditAddressForm::after,
.woocommerce-address-fields::after {
    content: "";
    display: table;
    clear: both;
    width: 100%;
}

/* Ensure inputs don't exceed container - ONLY for My Account */
/* Styles already included in main form field structure above */

/* Form sections */
.woocommerce-EditAccountForm .border-t {
    border-top: 1px solid #e5e7eb !important;
    padding-top: 1.5rem !important;
    margin-top: 1.5rem !important;
}

/* Ensure all form elements respect container width - ONLY for My Account */
/* Forms already covered above, adding address fields */
.woocommerce-address-fields,
.woocommerce-address-fields__field-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.woocommerce-account-wrapper form *,
.woocommerce-MyAccount-content form *,
.woocommerce-EditAccountForm *,
.woocommerce-EditAddressForm * {
    box-sizing: border-box !important;
}

/* Mobile optimizations for account pages */
@media (max-width: 767px) {
    .woocommerce-MyAccount-content {
        padding: 1rem !important;
    }

    .woocommerce-account-wrapper form .form-row.form-row-first,
    .woocommerce-account-wrapper form .form-row.form-row-last,
    .woocommerce-MyAccount-content form .form-row.form-row-first,
    .woocommerce-MyAccount-content form .form-row.form-row-last,
    .woocommerce-EditAccountForm .form-row.form-row-first,
    .woocommerce-EditAccountForm .form-row.form-row-last,
    .woocommerce-EditAddressForm .form-row.form-row-first,
    .woocommerce-EditAddressForm .form-row.form-row-last {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin-right: 0 !important;
        clear: both !important;
    }

    .woocommerce-account-wrapper .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .woocommerce-account-wrapper .grid {
        gap: 1rem !important;
    }

    .woocommerce-orders-table {
        font-size: 0.875rem !important;
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .woocommerce-orders-table thead {
        display: none !important;
    }

    .woocommerce-orders-table tbody,
    .woocommerce-orders-table tr,
    .woocommerce-orders-table td {
        display: block !important;
        width: 100% !important;
    }

    .woocommerce-orders-table tr {
        border: 1px solid #e5e7eb !important;
        border-radius: 0.5rem !important;
        margin-bottom: 1rem !important;
        padding: 1rem !important;
        background-color: #ffffff !important;
    }

    .woocommerce-orders-table td {
        border: none !important;
        padding: 0.5rem 0 !important;
        text-align: left !important;
    }

    .woocommerce-orders-table td:before {
        content: attr(data-title) ": ";
        font-weight: 600 !important;
        color: #374151 !important;
        display: inline-block !important;
        width: 40% !important;
    }
}

/* ============================================
   HEADER LOGO STYLES - MOBILE OPTIMIZATION
   ============================================ */

/* Logo container */
.site-logo {
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo image responsive sizing */
.site-logo-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Mobile: logo centrado con los iconos y sin que el slide lo corte */
@media (max-width: 640px) {
    /* Barra del header: altura fija y contenido recortado para que nada se salga */
    header .bg-white.border-b {
        overflow: hidden;
        min-height: 3.5rem;
    }

    /* Menos padding vertical para que logo e iconos quepan en una sola fila */
    header .bg-white.border-b .container {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    /* Fila del header: altura fija y centrado vertical (logo alineado con iconos) */
    header .bg-white.border-b .container > div {
        min-height: 3rem !important;
        max-height: 3rem !important;
        align-items: center !important;
    }

    /* Logo mismo alto que la fila para quedar centrado con menú/carrito */
    .site-logo-img {
        max-height: 3rem !important;
        width: auto !important;
        height: auto !important;
        display: block !important;
        object-fit: contain !important;
        object-position: center !important;
        vertical-align: middle !important;
    }

    .site-logo-text {
        font-size: 1.125rem !important;
        text-align: center !important;
    }

    .site-logo {
        flex: 1 1 auto !important;
        max-width: 100% !important;
        max-height: 3rem !important;
        height: 3rem !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto !important;
        overflow: hidden !important;
    }
}

/* Tablet: Medium logo */
@media (min-width: 641px) and (max-width: 1023px) {
    .site-logo-img {
        max-height: 4rem !important;
        /* 64px */
        width: auto !important;
    }

    .site-logo-text {
        font-size: 1.5rem !important;
        /* 24px */
    }
}

/* Desktop: Full size logo */
@media (min-width: 1024px) {
    .site-logo-img {
        max-height: 5rem !important;
        /* 80px */
        width: auto !important;
    }

    .site-logo-text {
        font-size: 1.875rem !important;
        /* 30px */
    }
}

/* Header layout adjustments for mobile */
@media (max-width: 1023px) {
    /* Contener el header para evitar desbordes */
    header .bg-white.border-b {
        overflow: hidden;
    }

    /* Ensure header items are properly spaced */
    .container.mx-auto.px-4.py-4>div {
        gap: 0.5rem !important;
        position: relative !important;
    }

    /* Left side buttons (menu + search) */
    .container.mx-auto.px-4.py-4>div>div:first-child {
        flex-shrink: 0 !important;
        gap: 0.5rem;
        width: auto !important;
    }

    /* Logo centrado horizontal Y vertical con los iconos del header */
    .site-logo {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 !important;
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: auto !important;
        max-width: calc(100% - 200px) !important;
        max-height: 100% !important;
    }

    /* Right side actions */
    .container.mx-auto.px-4.py-4>div>div:last-child {
        flex-shrink: 0 !important;
        width: auto !important;
        margin-left: auto !important;
    }
}

/* ============================================
   ORDER RECEIVED / THANKYOU PAGE STYLES
   ============================================ */



/* Order received title */
.woocommerce-order-received .woocommerce-order h2,
.woocommerce-thankyou-order-received .woocommerce-order h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Thank you message */
.woocommerce-order-received .woocommerce-order p.woocommerce-notice,
.woocommerce-thankyou-order-received .woocommerce-order p.woocommerce-notice {
    font-size: 1.125rem;
    color: #059669;
    background-color: #d1fae5;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #059669;
}

/* Order details section */
.woocommerce-order-received .woocommerce-order .woocommerce-order-overview,
.woocommerce-thankyou-order-received .woocommerce-order .woocommerce-order-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.woocommerce-order-received .woocommerce-order .woocommerce-order-overview li,
.woocommerce-thankyou-order-received .woocommerce-order .woocommerce-order-overview li {
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.woocommerce-order-received .woocommerce-order .woocommerce-order-overview strong,
.woocommerce-thankyou-order-received .woocommerce-order .woocommerce-order-overview strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.woocommerce-order-received .woocommerce-order .woocommerce-order-overview .woocommerce-order-overview__order,
.woocommerce-thankyou-order-received .woocommerce-order .woocommerce-order-overview .woocommerce-order-overview__order,
.woocommerce-order-received .woocommerce-order .woocommerce-order-overview .woocommerce-order-overview__date,
.woocommerce-thankyou-order-received .woocommerce-order .woocommerce-order-overview .woocommerce-order-overview__date,
.woocommerce-order-received .woocommerce-order .woocommerce-order-overview .woocommerce-order-overview__email,
.woocommerce-thankyou-order-received .woocommerce-order .woocommerce-order-overview .woocommerce-order-overview__email,
.woocommerce-order-received .woocommerce-order .woocommerce-order-overview .woocommerce-order-overview__total,
.woocommerce-thankyou-order-received .woocommerce-order .woocommerce-order-overview .woocommerce-order-overview__total,
.woocommerce-order-received .woocommerce-order .woocommerce-order-overview .woocommerce-order-overview__payment-method,
.woocommerce-thankyou-order-received .woocommerce-order .woocommerce-order-overview .woocommerce-order-overview__payment-method {
    font-size: 1rem;
    color: #111827;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    display: block;
}

/* Specific fix for email addresses */
.woocommerce-order-received .woocommerce-order .woocommerce-order-overview .woocommerce-order-overview__email,
.woocommerce-thankyou-order-received .woocommerce-order .woocommerce-order-overview .woocommerce-order-overview__email {
    word-break: break-all;
    overflow-wrap: anywhere;
}

/* Order details heading */
.woocommerce-order-received .woocommerce-order h3,
.woocommerce-thankyou-order-received .woocommerce-order h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Order details table */
.woocommerce-order-received .woocommerce-order .shop_table,
.woocommerce-thankyou-order-received .woocommerce-order .shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 2rem;
    background-color: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.woocommerce-order-received .woocommerce-order .shop_table thead,
.woocommerce-thankyou-order-received .woocommerce-order .shop_table thead {
    background-color: #f9fafb;
}

.woocommerce-order-received .woocommerce-order .shop_table th,
.woocommerce-thankyou-order-received .woocommerce-order .shop_table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e5e7eb;
}

.woocommerce-order-received .woocommerce-order .shop_table td,
.woocommerce-thankyou-order-received .woocommerce-order .shop_table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    font-size: 1rem;
}

.woocommerce-order-received .woocommerce-order .shop_table tbody tr:last-child td,
.woocommerce-thankyou-order-received .woocommerce-order .shop_table tbody tr:last-child td {
    border-bottom: none;
}

.woocommerce-order-received .woocommerce-order .shop_table tbody tr:hover,
.woocommerce-thankyou-order-received .woocommerce-order .shop_table tbody tr:hover {
    background-color: #f9fafb;
}

/* Product name in order table */
.woocommerce-order-received .woocommerce-order .shop_table .product-name,
.woocommerce-thankyou-order-received .woocommerce-order .shop_table .product-name {
    font-weight: 500;
    color: #111827;
}

/* Order totals section */
.woocommerce-order-received .woocommerce-order .shop_table .order-total,
.woocommerce-thankyou-order-received .woocommerce-order .shop_table .order-total {
    background-color: #f9fafb;
    font-weight: 600;
}

.woocommerce-order-received .woocommerce-order .shop_table .order-total th,
.woocommerce-thankyou-order-received .woocommerce-order .shop_table .order-total th,
.woocommerce-order-received .woocommerce-order .shop_table .order-total td,
.woocommerce-thankyou-order-received .woocommerce-order .shop_table .order-total td {
    font-size: 1.125rem;
    color: #111827;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* Address sections */
.woocommerce-order-received .woocommerce-order .woocommerce-customer-details,
.woocommerce-thankyou-order-received .woocommerce-order .woocommerce-customer-details {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.woocommerce-order-received .woocommerce-order .woocommerce-customer-details .woocommerce-column__title,
.woocommerce-thankyou-order-received .woocommerce-order .woocommerce-customer-details .woocommerce-column__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.woocommerce-order-received .woocommerce-order .woocommerce-customer-details address,
.woocommerce-thankyou-order-received .woocommerce-order .woocommerce-customer-details address {
    font-style: normal;
    line-height: 1.75;
    color: #374151;
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.woocommerce-order-received .woocommerce-order .woocommerce-customer-details address p,
.woocommerce-thankyou-order-received .woocommerce-order .woocommerce-customer-details address p {
    margin: 0.5rem 0;
}

.woocommerce-order-received .woocommerce-order .woocommerce-customer-details address strong,
.woocommerce-thankyou-order-received .woocommerce-order .woocommerce-customer-details address strong {
    font-weight: 600;
    color: #111827;
}


/* Mobile responsive */
@media (max-width: 768px) {



    body.single-product .price .woocommerce-Price-amount.amount {
        font-size: 1.3rem !important;
    }

    .woocommerce-order-received .woocommerce-order h2,
    .woocommerce-thankyou-order-received .woocommerce-order h2 {
        font-size: 1.5rem;
    }

    .woocommerce-order-received .woocommerce-order .woocommerce-order-overview,
    .woocommerce-thankyou-order-received .woocommerce-order .woocommerce-order-overview {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
        overflow: hidden;
    }

    .woocommerce-order-received .woocommerce-order .woocommerce-order-overview li,
    .woocommerce-thankyou-order-received .woocommerce-order .woocommerce-order-overview li {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .woocommerce-order-received .woocommerce-order .woocommerce-order-overview .woocommerce-order-overview__order,
    .woocommerce-thankyou-order-received .woocommerce-order .woocommerce-order-overview .woocommerce-order-overview__order,
    .woocommerce-order-received .woocommerce-order .woocommerce-order-overview .woocommerce-order-overview__date,
    .woocommerce-thankyou-order-received .woocommerce-order .woocommerce-order-overview .woocommerce-order-overview__date,
    .woocommerce-order-received .woocommerce-order .woocommerce-order-overview .woocommerce-order-overview__email,
    .woocommerce-thankyou-order-received .woocommerce-order .woocommerce-order-overview .woocommerce-order-overview__email,
    .woocommerce-order-received .woocommerce-order .woocommerce-order-overview .woocommerce-order-overview__total,
    .woocommerce-thankyou-order-received .woocommerce-order .woocommerce-order-overview .woocommerce-order-overview__total,
    .woocommerce-order-received .woocommerce-order .woocommerce-order-overview .woocommerce-order-overview__payment-method,
    .woocommerce-thankyou-order-received .woocommerce-order .woocommerce-order-overview .woocommerce-order-overview__payment-method {
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        box-sizing: border-box;
    }

    .woocommerce-order-received .woocommerce-order .shop_table,
    .woocommerce-thankyou-order-received .woocommerce-order .shop_table {
        font-size: 0.875rem;
        overflow-x: auto;
        display: block;
        width: 100%;
    }

    .woocommerce-order-received .woocommerce-order .shop_table th,
    .woocommerce-thankyou-order-received .woocommerce-order .shop_table th,
    .woocommerce-order-received .woocommerce-order .shop_table td,
    .woocommerce-thankyou-order-received .woocommerce-order .shop_table td {
        padding: 0.75rem 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .woocommerce-order-received .woocommerce-order .woocommerce-customer-details,
    .woocommerce-thankyou-order-received .woocommerce-order .woocommerce-customer-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ============================================
   PRODUCT CARD LAYOUT - Centered Price & Button
   ============================================ */

/* Tamaño de fuente para la utilidad text-lg (alineado con Tailwind) */
.text-lg {
    font-size: 1.125rem !important;
    line-height: 1.75rem;
}

/* Ensure product card has flex layout for proper spacing */
.woocommerce ul.products li.product article,
article.bg-white.rounded-lg {
    display: flex !important;
    flex-direction: column !important;
}

/* Product card content wrapper */
.woocommerce ul.products li.product article .p-4,
article.bg-white.rounded-lg .p-4 {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

/* Center price in product cards */
.woocommerce ul.products li.product article .text-center .text-lg,
article.bg-white.rounded-lg .text-center .text-lg {
    text-align: center !important;
    width: 100% !important;
}

/* Center add to cart button in product cards */
.woocommerce ul.products li.product article .text-center .flex,
article.bg-white.rounded-lg .text-center .flex {
    justify-content: center !important;
    width: 100% !important;
}

/* Ensure button is centered */
.woocommerce ul.products li.product article .text-center .flex .button,
article.bg-white.rounded-lg .text-center .flex .button {
    margin: 0 auto !important;
}

/* Hide "Ver carrito" / "View cart" button after adding to cart */
.woocommerce ul.products li.product .wc-forward,
.woocommerce ul.products li.product a.added_to_cart,
.woocommerce ul.products li.product .added_to_cart,
article.product .wc-forward,
article.product a.added_to_cart,
article.product .added_to_cart,
.woocommerce-loop-product__link .wc-forward,
.woocommerce-loop-product__link .added_to_cart {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Footer principal personalizado */
.footer-main {
    background-color: #C2CBD6;
    color: #110083;
}
.footer-main a {
    color: #110083;
}
.footer-main a:hover {
    text-decoration: underline;
}

/* Menú del footer - lista vertical limpia */
.footer-main ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-main ul li {
    margin-bottom: 0.5rem;
}
.footer-main ul li a {
    display: block;
    text-decoration: none;
    transition: opacity 0.2s;
}
.footer-main ul li a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Íconos de contacto en el footer */
.footer-main .flex.items-start svg {
    flex-shrink: 0;
}

.wc-block-components-checkout-return-to-cart-button{
    padding: 12px 30px 12px 30px;
    border: 1px solid;
}
.wc-block-components-checkout-place-order-button{
    border: 1px solid #000;
}
.wc-block-cart__submit-button{
    border: 1px solid #000;
}

body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-shipping-block,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-fee-block,
body.woocommerce-cart .wc-block-components-totals-shipping,
body.woocommerce-cart .wc-block-components-totals-fees,
body.woocommerce-cart .wc-block-components-totals-item--shipping,
body.woocommerce-cart .wc-block-components-totals-item--fee {
    display: none !important;
}

/* WooCommerce Advanced Product Labels: etiquetas visibles en el listado */
.site-main .product-card {
    overflow: visible;
}
.site-main .product-card .label-wrap {
    z-index: 15;
}

/* Modalidad de compra: negro y negrita (como antes en ficha / título de sección) */
.product-card-modality-heading,
.single-product-modality-heading {
    font-size: 0.875rem; /* ~text-sm */
    line-height: 1.35;
    font-weight: 700;
    color: #111827; /* gray-900 */
    text-transform: none;
}
/* Solo card de archivo: “Modalidad de compra” más chico y centrado */
.content-product-card .product-card-modality-heading {
    font-size: 0.80rem !important; /* 10px */
    line-height: 1.3;
    text-align: center;
    width: 100%;
    display: block;
}
@media (min-width: 640px) {
    .content-product-card .product-card-modality-heading {
        font-size: 0.6875rem; /* 11px */
    }
}
/* Radios modalidad: una sola línea; columna bulto un poco más ancha */
.content-product-card .product-card-modality--radios {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.28fr);
    column-gap: 0.25rem;
    align-items: stretch;
}
.content-product-card .product-card-mode-option {
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    flex-wrap: nowrap;
    min-width: 0;
}
.content-product-card .product-card-mode-option > span {
    white-space: nowrap;
    font-size: 0.625rem !important;
    line-height: 1.2;
    min-width: 0;
}
@media (min-width: 1024px) {
    .content-product-card > a > .lg\:h-full {
        height: 100% !important;
    }
}
@media (min-width: 640px) {
    .content-product-card .product-card-mode-option > span {
        font-size: 0.6875rem !important;
    }
}
.content-product-card .product-card-price-label {
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.25;
}

/* Price with discount in product cards: compact in one line */
.content-product-card .product-card-unit-value {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.content-product-card .product-card-unit-value.hidden {
    display: none !important;
}

.content-product-card .product-card-unit-value del {
    display: inline !important;
    margin: 0;
    font-size: 0.58em;
    font-weight: 700;
    opacity: 0.7;
}

.content-product-card .product-card-unit-value del .woocommerce-Price-amount {
    display: inline !important;
    font-size: inherit;
}

.content-product-card .product-card-unit-value ins {
    display: inline !important;
    margin: 0;
    text-decoration: none;
}

.content-product-card .product-card-unit-value .woocommerce-Price-amount {
    display: inline !important;
    font-size: 19px !important;
}

@media (max-width: 639px) {
    .content-product-card .product-card-unit-value {
        max-width: 100%;
        gap: 2px;
        font-size: 13px !important;
        line-height: 1;
    }

    .content-product-card .product-card-unit-value del {
        font-size: 8px;
        line-height: 1;
    }

    .content-product-card .product-card-unit-value ins {
        font-size: inherit;
        line-height: inherit;
    }

    .content-product-card .product-card-price-label {
        font-size: 10px !important;
        line-height: 12px;
    }

    .content-product-card .product-card-total {
        max-width: 100%;
        font-size: 13px !important;
        line-height: 1;
        white-space: nowrap;
    }
}

.content-product-card .product-card-mode-option:focus-within {
    box-shadow: 0 0 0 2px rgba(17, 0, 131, 0.25);
}
.content-product-card .product-card-mode-option--unit.is-active {
    border-color: var(--button-bg, var(--color-primary, #110083)) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.content-product-card .product-card-mode-option--bulk.is-active {
    border-color: #22d3ee !important;
    box-shadow: 0 1px 2px rgba(6, 182, 212, 0.25);
}
.content-product-card .product-card-mode-radio {
    flex-shrink: 0;
    align-self: center;
    width: 0.75rem;
    height: 0.75rem;
    min-width: 0.75rem;
    min-height: 0.75rem;
    margin: 0;
    accent-color: var(--button-bg, var(--color-primary, #110083));
}
.content-product-card--modalidad-bulto .product-card-mode-option--bulk.is-active .product-card-mode-radio {
    accent-color: #06b6d4;
}

/* Single ficha: modalidad de compra (radios) — misma lógica cromática que la card */
.single-product-purchase-mode .single-product-mode-option {
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background-color: #fff;
}
.single-product-purchase-mode .single-product-mode-option:focus-within {
    box-shadow: 0 0 0 2px rgba(17, 0, 131, 0.25);
}
.single-product-purchase-mode .single-product-mode-option--unit.is-active {
    border-color: var(--button-bg, var(--color-primary, #110083)) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.single-product-purchase-mode .single-product-mode-option--bulk.is-active {
    border-color: #22d3ee !important;
    box-shadow: 0 1px 2px rgba(6, 182, 212, 0.25);
}
.single-product-purchase-mode .single-product-mode-radio {
    flex-shrink: 0;
    align-self: center;
    width: 0.875rem;
    height: 0.875rem;
    min-width: 0.875rem;
    min-height: 0.875rem;
    margin: 0;
    accent-color: var(--button-bg, var(--color-primary, #110083));
}
.single-product-purchase-mode--modalidad-bulto .single-product-mode-option--bulk.is-active .single-product-mode-radio {
    accent-color: #06b6d4;
}
.content-product-card .product-qty-input--wide {
    max-width: 3.5rem;
    min-width: 2.75rem;
}

/* Content product card: barra cantidad + añadir al carrito */
.content-product-card .product-card-actions {
    background: var(--button-bg, var(--color-primary, #110083)) !important;
    min-height: 40px;
    border-radius: 0 !important;
    overflow: visible;
}

/* Solo la barra con cantidad + CTA debe estirar hijos en altura; no el enlace “Consultar” ni “No disponible” */
.content-product-card form .product-card-actions,
.content-product-card .product-card-form .product-card-actions {
    align-items: stretch;
}

/* “Consultar” (WhatsApp) y “No disponible”: centrado vertical real */
.content-product-card a.product-card-actions,
.content-product-card div.product-card-actions.cursor-not-allowed {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;
    line-height: 1;
}

.content-product-card a.product-card-actions span,
.content-product-card div.product-card-actions.cursor-not-allowed .product-card-unavailable {
    line-height: 1.2;
}

.content-product-card a.product-card-actions svg {
    flex-shrink: 0;
    display: block;
}
/* Misma barra en cyan al elegir “Por bulto” (debe ir después y con mayor especificidad que la regla anterior) */
.content-product-card.content-product-card--modalidad-bulto .product-card-actions {
    background: #22d3ee !important;
}
.content-product-card .product-card-quantity {
    flex-shrink: 0;
    border-radius: 0 !important;
    min-height: 40px !important;
}
.content-product-card .product-qty-input {
    -moz-appearance: textfield;
    border-radius: 0 !important;
    min-width: 32px;
    max-width: 40px;
    height: 40px !important;
}
.content-product-card .product-qty-input::-webkit-outer-spin-button,
.content-product-card .product-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.content-product-card .product-qty-minus,
.content-product-card .product-qty-plus {
    min-width: 32px;
    border-radius: 0 !important;
    height: 40px !important;
}

.rocha-qty-limit-notice {
    font-size: 0.8125rem;
    line-height: 1.35;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin: 0;
}

.rocha-qty-limit-notice.hidden {
    display: none;
}

.product-qty-input--over-max,
.single-product-qty-input--over-max {
    box-shadow: inset 0 0 0 2px #f59e0b;
}

/* Botón “Añadir al carrito” en la barra: fondo transparente para heredar el color del contenedor.
   Debe superar .woocommerce button.button.alt y button.button:not(.cart-toggle) (misma área del archivo WooCommerce, líneas ~420) */
.woocommerce .content-product-card .product-card-actions button.button.alt.single_add_to_cart_button,
.woocommerce-page .content-product-card .product-card-actions button.button.alt.single_add_to_cart_button,
.content-product-card .product-card-actions button.button.alt.single_add_to_cart_button {
    background: transparent !important;
    background-color: transparent !important;
    color: #fff !important;
    text-transform: uppercase;
    border-radius: 0 !important;
    white-space: nowrap;
    overflow-wrap: normal;
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    font-size: 13px !important;
    line-height: 1.15 !important;
    height: auto !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;
}

.content-product-card .product-card-cart-icon {
    filter: brightness(0) invert(1);
}

.woocommerce .content-product-card .product-card-actions button.button.alt.single_add_to_cart_button:hover,
.woocommerce-page .content-product-card .product-card-actions button.button.alt.single_add_to_cart_button:hover,
.content-product-card .product-card-actions button.button.alt.single_add_to_cart_button:hover {
    background: transparent !important;
    background-color: transparent !important;
    opacity: 0.9;
    font-size: 13px !important;
}

/* Forzar tamaño de fuente 13px para botón añadir al carrito en tarjetas de producto - máxima especificidad */
.content-product-card form.cart .single_add_to_cart_button,
.content-product-card form.cart button.single_add_to_cart_button,
.content-product-card form.cart .button.single_add_to_cart_button,
.content-product-card form.cart button.button.single_add_to_cart_button,
.content-product-card .product-card-form .single_add_to_cart_button,
.content-product-card .product-card-form button.single_add_to_cart_button,
.content-product-card .product-card-form .button.single_add_to_cart_button,
.content-product-card .product-card-form button.button.single_add_to_cart_button {
    font-size: 13px !important;
    font-size: 0.8125rem !important; /* 13px en rem */
    height: auto !important;
    min-height: 40px !important;
}

@media (max-width: 640px) {
    .content-product-card .product-card-modality--radios {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .content-product-card .product-card-mode-option {
        width: 100%;
        min-width: 0;
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    .content-product-card .product-card-mode-option > span {
        font-size: 0.7rem;
        line-height: 1.15;
        white-space: normal;
        overflow-wrap: anywhere;
        letter-spacing: 0;
    }

    .content-product-card form .product-card-actions,
    .content-product-card .product-card-form .product-card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .content-product-card .product-card-quantity {
        width: 100%;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        justify-content: space-between;
    }

    .content-product-card .product-qty-input {
        width: 100%;
        min-width: 0;
        max-width: 3rem;
    }

    .woocommerce .content-product-card .product-card-actions button.button.alt.single_add_to_cart_button,
    .woocommerce-page .content-product-card .product-card-actions button.button.alt.single_add_to_cart_button,
    .content-product-card .product-card-actions button.button.alt.single_add_to_cart_button,
    .content-product-card form.cart .single_add_to_cart_button,
    .content-product-card form.cart button.single_add_to_cart_button,
    .content-product-card form.cart .button.single_add_to_cart_button,
    .content-product-card form.cart button.button.single_add_to_cart_button,
    .content-product-card .product-card-form .single_add_to_cart_button,
    .content-product-card .product-card-form button.single_add_to_cart_button,
    .content-product-card .product-card-form .button.single_add_to_cart_button,
    .content-product-card .product-card-form button.button.single_add_to_cart_button {
        width: 100% !important;
        min-height: 40px !important;
        padding: 0.5rem !important;
        font-size: 11px !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        text-align: center;
    }
}

@media (min-width: 768px) {
    #rocha-home-featured-grid > *:nth-child(16) {
        display: none !important;
    }

    .rocha-home-offers-grid > *:nth-child(6) {
        display: none !important;
    }
}

/*
 * Portátiles tipo 1366×768: la grilla deja la card angosta y el CTA se parte en muchas líneas.
 * Criterio: viewport no demasiado ancho + altura típica de laptop (excluye 1600×900 y monitores altos).
 */
@media (max-width: 1540px) and (min-width: 1240px) and (max-height: 800px) {
    .content-product-card .product-qty-minus,
    .content-product-card .product-qty-plus {
        width: 1.75rem !important;
        min-width: 1.75rem !important;
        max-width: 1.75rem !important;
    }

    .content-product-card .product-qty-input {
        width: 1.75rem !important;
        min-width: 1.5rem !important;
        max-width: 1.75rem !important;
        font-size: 0.75rem !important;
    }

    .woocommerce .content-product-card .product-card-actions button.button.alt.single_add_to_cart_button,
    .woocommerce-page .content-product-card .product-card-actions button.button.alt.single_add_to_cart_button,
    .content-product-card .product-card-actions button.button.alt.single_add_to_cart_button {
        font-size: 11px !important;
        letter-spacing: 0.035em;
        line-height: 1.2 !important;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }

    .woocommerce .content-product-card .product-card-actions button.button.alt.single_add_to_cart_button:hover,
    .woocommerce-page .content-product-card .product-card-actions button.button.alt.single_add_to_cart_button:hover,
    .content-product-card .product-card-actions button.button.alt.single_add_to_cart_button:hover {
        font-size: 11px !important;
    }

    .content-product-card form.cart .single_add_to_cart_button,
    .content-product-card form.cart button.single_add_to_cart_button,
    .content-product-card form.cart .button.single_add_to_cart_button,
    .content-product-card form.cart button.button.single_add_to_cart_button,
    .content-product-card .product-card-form .single_add_to_cart_button,
    .content-product-card .product-card-form button.single_add_to_cart_button,
    .content-product-card .product-card-form .button.single_add_to_cart_button,
    .content-product-card .product-card-form button.button.single_add_to_cart_button {
        font-size: 11px !important;
    }

    /* WhatsApp “Consultar” (misma banda de viewport que el CTA) */
    .content-product-card a.product-card-actions {
        min-height: 2.75rem !important;
        height: auto !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        padding-top: 0.35rem !important;
        padding-bottom: 0.35rem !important;
        gap: 0.375rem !important;
        overflow: visible !important;
        align-items: center !important;
    }

    .content-product-card a.product-card-actions span {
        font-size: 11px !important;
        letter-spacing: 0.045em;
        line-height: 1.2 !important;
    }

    .content-product-card a.product-card-actions svg {
        width: 0.875rem !important;
        height: 0.875rem !important;
        flex-shrink: 0;
    }

    /* “No disponible” (misma barra inferior) */
    .content-product-card div.product-card-actions.cursor-not-allowed {
        min-height: 2.75rem !important;
        height: auto !important;
        padding-top: 0.35rem !important;
        padding-bottom: 0.35rem !important;
        overflow: visible !important;
        align-items: center !important;
    }

    .content-product-card div.product-card-actions.cursor-not-allowed .product-card-unavailable {
        font-size: 11px !important;
        letter-spacing: 0.04em;
        line-height: 1.2 !important;
    }
}

/* Botón "Ver todos" en featured products - sin border radius */
section .text-center .button,
section .text-center a.button {
    border-radius: 0 !important;
}

/* Accesibilidad: enlace "Ir al contenido" */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
    clip: auto !important;
    clip-path: none;
    background-color: #fff;
    color: #000;
    display: block;
    font-size: 1rem;
    height: auto;
    left: 6px;
    line-height: normal;
    padding: 12px 24px;
    text-decoration: none;
    top: 6px;
    width: auto;
    z-index: 100000;
}

/* ============================================
   CRITICAL LAYOUT UTILITIES
   Subset mínimo de Tailwind para que el header
   y el above-the-fold rendericen correctamente
   antes de que cargue el CDN de Tailwind.
   ============================================ */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.overflow-hidden { overflow: hidden; }
.bg-white { background-color: #ffffff; }
.bg-gray-200 { background-color: #e5e7eb; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-gray-200 { border-color: #e5e7eb; }
.text-white { color: #ffffff; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.p-1 { padding: 0.25rem; }
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-12 { height: 3rem; }
.h-full { height: 100%; }
.cursor-pointer { cursor: pointer; }
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-duration: 150ms; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-50 { z-index: 50; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }
.rounded { border-radius: 0.25rem; }
.rounded-full { border-radius: 9999px; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:hidden { display: none; }
}
@media (max-width: 1023px) {
    .hidden.lg\:flex { display: none; }
}

/* ============================================
   REEMPLAZOS DE VALORES ARBITRARIOS TAILWIND
   Permiten eliminar la dependencia del CDN JIT
   para estas clases específicas.
   ============================================ */

/* Color de marca #110083 */
.text-navy { color: #110083; }
.hover-text-navy:hover { color: #110083; }
.z-60 { z-index: 60; }
.text-11px { font-size: 11px; }
.hover-scale-sm:hover { transform: scale(1.01); }

/* Alturas fijas */
.h-500 { height: 500px; }
.min-h-500 { min-height: 500px; }
@media (min-width: 768px) {
    .md-h-500 { height: 500px; }
    .md-max-h-500 { max-height: 500px; }
    .banner-hero-h { height: 500px; }
}
.banner-hero-h { height: 24rem; }

/* Botón outline con color de marca */
.btn-brand-outline {
    border: 1px solid #110083;
    color: #110083;
    background-color: #ffffff;
}
.btn-brand-outline:hover {
    background-color: #110083;
    color: #ffffff;
}

/* Focus ring en search input */
.header-search-input:focus {
    box-shadow: 0 0 0 2px rgba(17, 0, 131, 0.35);
    outline: none;
}

/* Altura del título de tarjeta de producto (2 líneas reservadas) */
.product-card-title-h {
    min-height: 2.9rem;
}
@media (min-width: 640px) {
    .product-card-title-h { min-height: 3.2rem; }
}

/* Botón "No disponible" en tarjeta de producto */
.product-card-unavailable {
    line-height: 3rem;
}