.nav-menu .nav-link {
    color: #1f2937;
    background: transparent;
}

/* Tipografia global */
h1,
h2 {
    font-family: 'Abel', sans-serif !important;
}

p {
    font-family: 'Inter', sans-serif !important;
}

.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;
}

/* Main header primary nav: remove red hover/active states */
.main-header-primary-nav .nav-menu .nav-link,
.main-header-primary-nav .nav-menu .nav-link:hover,
.main-header-primary-nav .nav-menu .nav-link:focus,
.main-header-primary-nav .nav-menu li:hover .nav-link,
.main-header-primary-nav .nav-menu li:hover > .nav-link,
.main-header-primary-nav .nav-menu .menu-item:hover .nav-link,
.main-header-primary-nav .nav-menu .menu-item:hover > .nav-link,
.main-header-primary-nav .nav-menu .menu-item.active > .nav-link,
.main-header-primary-nav .nav-menu .menu-item.current-menu-item > .nav-link,
.main-header-primary-nav .nav-menu .menu-item.current_page_item > .nav-link,
.main-header-primary-nav .nav-menu .menu-item.current-menu-ancestor > .nav-link,
.main-header-primary-nav .nav-menu .menu-item.current-menu-parent > .nav-link,
.main-header-primary-nav .nav-menu .menu-item.active > .nav-link:hover,
.main-header-primary-nav .nav-menu .menu-item.current-menu-item > .nav-link:hover,
.main-header-primary-nav .nav-menu .menu-item.current_page_item > .nav-link:hover,
.main-header-primary-nav .nav-menu .menu-item.current-menu-ancestor > .nav-link:hover,
.main-header-primary-nav .nav-menu .menu-item.current-menu-parent > .nav-link:hover {
    color: #1f2937 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* ============================================
   WOOCOMMERCE NOTIFICATIONS
   ============================================ */

/* Contenedor de notificaciones - estilo toast */
.woocommerce-notices-wrapper-fixed {
    position: fixed !important;
    bottom: 16px !important;
    right: 20px !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    max-width: min(92vw, 520px) !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: min(92vw, 520px) !important;
    z-index: 9999 !important;
    margin: 0 0 0.55rem 0 !important;
    padding: 0.65rem 0.95rem !important;
    background: #111827 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22) !important;
    border-radius: 9999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 0.55rem !important;
    animation: slideInUp 0.3s ease-out !important;
    word-wrap: break-word !important;
    border: none !important;
    border-left: none !important;
    outline: none !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: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: none !important;
}

/* Mensajes de información - solo dentro del contenedor fijo */
.woocommerce-notices-wrapper-fixed .woocommerce-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border: none !important;
}

/* Mensajes de error - solo dentro del contenedor fijo */
.woocommerce-notices-wrapper-fixed .woocommerce-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: none !important;
}

/* 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;
}

.woocommerce-notices-wrapper-fixed .toast-message-text {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    line-height: 1.25;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.woocommerce-notices-wrapper-fixed .toast-close {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.woocommerce-notices-wrapper-fixed .toast-close:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

/* ============================================
   MAIN THEME STYLES
   ============================================ */

/* Base styles and utilities */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@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;
    }
}

/* 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;
}

/* Single product breadcrumb override */
body.single-product .breadcrumb-wrapper {
    background: transparent !important;
    color: #000000 !important;
    padding-top: 0.875rem !important;
    padding-bottom: 0.5rem !important;
}

body.single-product .breadcrumb-wrapper .breadcrumbs,
body.single-product .breadcrumb-wrapper .breadcrumbs li,
body.single-product .breadcrumb-wrapper .breadcrumbs li:last-child,
body.single-product .breadcrumb-wrapper .breadcrumbs .woocommerce-breadcrumb,
body.single-product .breadcrumb-wrapper .breadcrumbs .woocommerce-breadcrumb * {
    color: #000000 !important;
}

body.single-product .breadcrumb-wrapper .breadcrumbs a,
body.single-product .breadcrumb-wrapper .breadcrumbs .woocommerce-breadcrumb a {
    color: #000000 !important;
}

body.single-product .breadcrumb-wrapper .breadcrumbs a:hover,
body.single-product .breadcrumb-wrapper .breadcrumbs .woocommerce-breadcrumb a:hover {
    color: #000000 !important;
    opacity: 0.75;
}

body.single-product .single-product-content {
    padding-top: 0.75rem !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: #DD0029 !important;
    color: #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: #c30024 !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 */
header button[type="submit"],
header form button[type="submit"],
.site-header button[type="submit"],
.site-header form button[type="submit"],
.main-header button[type="submit"],
.main-header form button[type="submit"],
.woocommerce header button[type="submit"],
.woocommerce header form button[type="submit"],
.woocommerce-page header button[type="submit"],
.woocommerce-page header form button[type="submit"],
body.single-product header button[type="submit"],
body.single-product header form button[type="submit"],
body.woocommerce header button[type="submit"],
body.woocommerce header form button[type="submit"],
body.woocommerce-page header button[type="submit"],
body.woocommerce-page header 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 button[type="submit"]:hover,
header form button[type="submit"]:hover,
.site-header button[type="submit"]:hover,
.site-header form button[type="submit"]:hover,
.main-header button[type="submit"]:hover,
.main-header form button[type="submit"]:hover,
.woocommerce header button[type="submit"]:hover,
.woocommerce header form button[type="submit"]:hover,
.woocommerce-page header button[type="submit"]:hover,
.woocommerce-page header form button[type="submit"]:hover,
body.single-product header button[type="submit"]:hover,
body.single-product header form button[type="submit"]:hover,
body.woocommerce header button[type="submit"]:hover,
body.woocommerce header form button[type="submit"]:hover,
body.woocommerce-page header button[type="submit"]:hover,
body.woocommerce-page header 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;
}

/* Keep desktop header search icon inside its block */
.header-search-form .header-search-submit {
    position: static !important;
    transform: none !important;
    right: auto !important;
    top: auto !important;
    background: transparent !important;
    color: #111111 !important;
    border-radius: 0 !important;
    padding: 0.5rem 1rem !important;
}

.header-search-form .header-search-submit:hover {
    background: transparent !important;
    color: #111111 !important;
    transform: none !important;
}

.header-search-form .header-search-submit svg,
.header-search-form .header-search-submit svg * {
    color: #111111 !important;
    stroke: #111111 !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;
}

/* ============================================
   SINGLE PRODUCT GALLERY STYLES
   ============================================ */

/* Product gallery container */
.woocommerce-product-gallery {
    position: relative;
    overflow: hidden;
}

.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: 400px;
        max-height: 500px;
        height: 400px;
    }

    .woocommerce-product-gallery__image img,
    .woocommerce-product-gallery__image--placeholder img {
        min-height: 400px;
        max-height: 500px;
    }
}

/* 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;
}

.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: 400px;
        max-height: 500px;
    }
}

/* 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;
    position: relative;
    min-height: 500px;
    max-height: 600px;
    height: 500px;
}

@media (max-width: 768px) {
    .woocommerce-product-gallery .flexslider .slides>li {
        min-height: 400px;
        max-height: 500px;
        height: 400px;
    }
}

/* 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;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.65' y1='16.65' x2='21' y2='21'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
}

.woocommerce-product-gallery__trigger:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.woocommerce-product-gallery__trigger:before,
.woocommerce-product-gallery__trigger:after {
    content: none !important;
    display: none !important;
}

/* Keep only one zoom trigger icon in single product gallery */
.woocommerce-product-gallery .woocommerce-product-gallery__trigger~.woocommerce-product-gallery__trigger {
    display: none !important;
}

/* Single product page improvements */
body.single-product .product-images-wrapper {
    position: sticky !important;
    top: 2rem !important;
    align-self: start !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

body.single-product .woocommerce-product-gallery {
    margin-bottom: 0 !important;
    position: relative !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

body.single-product .product-images-wrapper .product-badges {
    position: absolute !important;
    top: 1rem !important;
    left: 0 !important;
    z-index: 20 !important;
}

@media (max-width: 1023px) {
    body.single-product .product-images-wrapper {
        position: relative !important;
        top: 0 !important;
    }
}

body.single-product {
    padding: 0 !important;
}

body.single-product .product-summary-wrapper .bg-white {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* 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;
}

@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 {
    margin: 2rem 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    flex-wrap: wrap !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;
}

/* Add to cart button - Compact and Modern */
body.single-product .single_add_to_cart_button,
body.single-product button[type="submit"][name="add-to-cart"],
body.single-product form.cart .single_add_to_cart_button,
body.single-product form.cart button[type="submit"][name="add-to-cart"],
.single-product .single_add_to_cart_button,
.single-product button[type="submit"][name="add-to-cart"],
.single-product form.cart .single_add_to_cart_button,
.single-product form.cart button[type="submit"][name="add-to-cart"],
.woocommerce .single-product .single_add_to_cart_button,
.woocommerce .single-product button[type="submit"][name="add-to-cart"],
.woocommerce-page .single_add_to_cart_button,
.woocommerce-page button[type="submit"][name="add-to-cart"],
.woocommerce-page form.cart .single_add_to_cart_button,
.woocommerce-page form.cart button[type="submit"][name="add-to-cart"] {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    background: var(--button-bg, var(--color-primary, #000)) !important;
    color: var(--button-text, #ffffff) !important;
    border: none !important;
    border-radius: 0.375rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(var(--button-bg-rgb, 37, 99, 235), 0.22) !important;
    flex: 1 !important;
    min-width: 160px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

body.single-product .single_add_to_cart_button:hover,
body.single-product button[type="submit"][name="add-to-cart"]:hover,
body.single-product form.cart .single_add_to_cart_button:hover,
body.single-product form.cart button[type="submit"][name="add-to-cart"]:hover,
.single-product .single_add_to_cart_button:hover,
.single-product button[type="submit"][name="add-to-cart"]:hover,
.single-product form.cart .single_add_to_cart_button:hover,
.single-product form.cart button[type="submit"][name="add-to-cart"]:hover,
.woocommerce .single-product .single_add_to_cart_button:hover,
.woocommerce .single-product button[type="submit"][name="add-to-cart"]:hover,
.woocommerce-page .single_add_to_cart_button:hover,
.woocommerce-page button[type="submit"][name="add-to-cart"]:hover,
.woocommerce-page form.cart .single_add_to_cart_button:hover,
.woocommerce-page form.cart button[type="submit"][name="add-to-cart"]:hover {
    background: var(--button-hover-bg, var(--color-secondary, #1e40af)) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(var(--button-bg-rgb, 37, 99, 235), 0.28) !important;
}

body.single-product .single_add_to_cart_button:active,
body.single-product button[type="submit"][name="add-to-cart"]:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(var(--button-bg-rgb, 37, 99, 235), 0.22) !important;
}

body.single-product .single_add_to_cart_button:disabled,
body.single-product 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 {
    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: 400 !important;
    color: #DD0029 !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: 400 !important;
    color: #DD0029 !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;
    align-items: center !important;
    gap: 0.75rem !important;
    flex-wrap: wrap !important;
}

/* Quantity Input - Compact */
body.single-product .quantity {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    background: #f9fafb !important;
    padding: 0 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.75rem !important;
    overflow: hidden !important;
    width: fit-content !important;
}

body.single-product .quantity label {
    display: none !important;
}

body.single-product .quantity input[type="number"] {
    width: 52px !important;
    height: 42px !important;
    padding: 0 !important;
    border: none !important;
    border-left: 1px solid #d1d5db !important;
    border-right: 1px solid #d1d5db !important;
    border-radius: 0 !important;
    text-align: center !important;
    font-size: 1.0625rem !important;
    font-weight: 600 !important;
    color: #c7002b !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
}

body.single-product .quantity input[type="number"]:hover {
    border-color: #d1d5db !important;
}

body.single-product .quantity input[type="number"]:focus {
    outline: none !important;
    border-color: #d1d5db !important;
    box-shadow: none !important;
}

body.single-product .quantity input[type="number"]::-webkit-outer-spin-button,
body.single-product .quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

body.single-product .quantity input[type="number"] {
    -moz-appearance: textfield !important;
}

body.single-product .quantity .sp-qty-btn {
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    color: #404040 !important;
    font-size: 1.5rem !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.single-product .quantity .sp-qty-btn:hover {
    background: #f3f4f6 !important;
}

body.single-product .quantity .sp-qty-btn:focus {
    outline: none !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;
}

/* Product tabs */
.woocommerce-tabs {
    margin-top: 3rem;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.woocommerce-tabs .tabs {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
    display: flex;
    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;
}

.woocommerce-tabs .panel h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.woocommerce-tabs .panel table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-tabs .panel table th,
.woocommerce-tabs .panel table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-tabs .panel table th {
    font-weight: 600;
    color: #1f2937;
}

/* Related products */
.woocommerce .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;
}

/* ============================================
   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;
    }

    /* Hide page numbers on very small screens, show only prev/next */
    .woocommerce nav.woocommerce-pagination ul li:not(.prev):not(.next):not(.dots) {
        display: none;
    }

    .woocommerce nav.woocommerce-pagination ul li.prev,
    .woocommerce nav.woocommerce-pagination ul li.next,
    .woocommerce-page nav.woocommerce-pagination ul li.prev,
    .woocommerce-page nav.woocommerce-pagination ul li.next {
        display: inline-block;
    }
}

/* ============================================
   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%;
}

/* Filter panel title override (prevents generic h2 rules). */
#product-filters-form h2,
#product-filters-form-desktop h2 {
    font-size: 1.125rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

/* 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;
}

/* 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
   ============================================ */

@media (max-width: 1023px) {
    .top-header-bar {
        display: none !important;
    }
}

/* 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: Smaller logo */
@media (max-width: 640px) {
    .site-logo-img {
        max-height: 3rem !important;
        /* 48px */
        width: auto !important;
        margin: 0 auto !important;
        display: block !important;
        transform: none !important;
        margin-top: 0 !important;
    }

    .site-logo-text {
        font-size: 1.125rem !important;
        /* 18px */
        text-align: center !important;
    }

    /* Center logo in mobile */
    .site-logo {
        flex: 1 1 auto !important;
        max-width: 100% !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 1023px) {
    header[role="banner"] {
        position: relative !important;
        top: auto !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 */
    }
}

/* ============================================
   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
   ============================================ */

/* 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;
}

.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;
}

/* WooCommerce Advanced Product Labels: etiquetas visibles en el listado */
.site-main .product-card {
    overflow: visible;
}
.site-main .product-card .label-wrap {
    z-index: 15;
}

/* ============================================
   FEATURED PRODUCTS SECTION
   ============================================ */
.featured-products-title {
    font-family: 'Abel', sans-serif !important;
    font-size: 30px !important;
    font-weight: 500 !important;
    line-height: 1.05 !important;
    margin: 0;
}

@media (min-width: 768px) {
    .featured-products-title {
        font-size: 38px !important;
    }
}

.featured-products-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #DD0029;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 0.65rem 1rem;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.featured-products-all-btn:hover {
    background: #b30021;
}

.featured-products-grid .product-card {
    border: 1px solid #ececec;
    border-radius: 8px;
    box-shadow: none !important;
    transition: none;
}

.featured-products-grid .product-card:hover {
    box-shadow: none !important;
}

.featured-card-body {
    padding: 0.75rem 0.75rem 0.85rem;
}

.featured-card-image-wrap {
    position: relative;
    overflow: hidden;
}

.featured-card-image {
    transition: opacity 0.3s ease;
}

.featured-card-image--secondary {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .product-card:hover .featured-card-image-wrap.has-secondary .featured-card-image--secondary {
        opacity: 1;
    }

    .product-card:hover .featured-card-image-wrap.has-secondary .featured-card-image--primary {
        opacity: 0;
    }
}

.featured-card-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 12;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af !important;
    background: transparent;
    text-decoration: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.featured-card-wishlist:hover {
    color: #DD0029 !important;
}

.featured-card-wishlist.is-active {
    color: #DD0029 !important;
}

.featured-card-wishlist svg {
    width: 16px;
    height: 16px;
    fill: transparent;
}

.featured-card-wishlist.is-active svg {
    fill: currentColor;
}

.favorites-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.favorites-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    color: #374151;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.favorites-tab:hover {
    border-color: #111827;
    color: #111827;
}

.favorites-tab.is-active {
    background: #DD0029;
    border-color: #DD0029;
    color: #ffffff;
}

.favorites-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 9999px;
    background: rgba(17, 24, 39, 0.08);
    font-size: 12px;
    line-height: 1;
}

.favorites-tab.is-active .favorites-tab-count {
    background: rgba(255, 255, 255, 0.2);
}

body.single-product .single-product-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

body.single-product .single-product-title-row .product_title {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

body.single-product .single-product-wishlist {
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

body.single-product .single-product-wishlist svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: transparent;
}

body.single-product .single-product-wishlist.is-active {
    color: #DD0029;
}

body.single-product .single-product-wishlist.is-active svg {
    fill: currentColor;
}

.featured-card-category {
    font-size: 10px;
    color: #9ca3af;
    margin-bottom: 0.35rem;
    text-transform: none;
}

.featured-card-taxonomy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.featured-card-taxonomy-row .featured-card-category {
    margin-bottom: 0;
}

.featured-card-brand {
    font-size: 10px;
    color: #9ca3af;
    text-transform: none;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 45%;
}

body.single-product .single-product-shipping-note {
    margin-top: 10px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.35;
    background-color: #F5F7F8;
    width: fit-content;
    max-width: 100%;
}

body.single-product .single-product-shipping-note .shipping-note-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

body.single-product .single-product-shipping-note .shipping-note-icon svg {
    width: 100%;
    height: 100%;
    fill: #9ca3af;
}

body.single-product .single-product-shipping-note .shipping-note-whatsapp {
    margin-left: 2px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #DD0029;
}

body.single-product .single-product-shipping-note .shipping-note-whatsapp svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

body.single-product .single-product-short-description,
body.single-product .single-product-characteristics {
    margin-top: 14px;
}

body.single-product .single-product-short-description h3,
body.single-product .single-product-characteristics h3 {
    font-size: 18px !important;
    line-height: 1.2;
    margin-bottom: 8px;
    color: #1f2937;
}

body.single-product .single-product-short-description p,
body.single-product .single-product-characteristics p {
    font-size: 12px;
    color: #4b5563;
    line-height: 1.5;
    margin: 0 0 8px;
}


.featured-card-title {
    font-size: 13px !important;
    line-height: 1.3;
    color: #000000 !important;
    margin: 0 0 0.4rem;
    min-height: 32px;
    font-weight: 700 !important;
}

.featured-card-title a {
    color: inherit;
    text-decoration: none;
}

.featured-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
}

.featured-card-price,
.featured-card-price .price {
    font-size: 14px;
    font-weight: 400;
    color: #DD0029 !important;
    line-height: 1;
}

.featured-card-price del {
    color: #9ca3af;
    font-size: 12px;
    margin-right: 4px;
}

.featured-card-price ins {
    text-decoration: none;
}

.featured-card-more {
    font-size: 10px;
    color: #DD0029 !important;
    text-decoration: underline;
}

.featured-card-actions {
    margin-top: auto;
    width: 100%;
}

.featured-add-to-cart-form {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.featured-qty-control {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    background: #f3f4f6;
    border-radius: 7px;
    border: 1px solid #e5e7eb;
    height: 28px;
    overflow: hidden;
    flex: 1 1 0%;
    min-width: 0;
}

.featured-qty-btn {
    width: 100%;
    height: 28px;
    border: 0;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.featured-qty-input {
    width: 100%;
    min-width: 0;
    text-align: center;
    border: 0;
    background: transparent;
    color: #DD0029;
    font-size: 11px;
    padding: 0;
}

.featured-qty-input::-webkit-outer-spin-button,
.featured-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.featured-qty-input[type=number] {
    -moz-appearance: textfield;
}

.featured-cart-btn {
    width: auto;
    flex: 1 1 0%;
    height: 28px;
    border: 0;
    border-radius: 7px;
    background: #DD0029 !important;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.featured-cart-btn svg {
    width: 14px;
    height: 14px;
}

.featured-card-view-product {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    border-radius: 7px;
    padding: 0 10px;
    background: #DD0029;
    color: #fff !important;
    font-size: 11px;
    text-decoration: none;
}

/* ============================================
   RECENTLY VIEWED SECTION
   ============================================ */
.recently-viewed-title {
    font-family: 'Abel', sans-serif !important;
    font-size: 42px !important;
    font-weight: 400 !important;
    margin: 0 0 1rem;
    line-height: 1;
}

.recently-viewed-track-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.recently-viewed-track-wrap::-webkit-scrollbar {
    display: none;
}

.recently-viewed-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 1fr);
    gap: 12px;
    min-width: max-content;
}

.recently-viewed-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 8px 10px;
    text-decoration: none;
    border: 1px solid #efefef;
}

.recently-viewed-image {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.recently-viewed-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.recently-viewed-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.recently-viewed-category {
    color: #9ca3af;
    font-size: 9px;
    line-height: 1.2;
}

.recently-viewed-name {
    color: #111827;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recently-viewed-brand {
    color: #6b7280;
    font-size: 9px;
    line-height: 1.2;
}

/* ============================================
   CATEGORIES GRID SECTION
   ============================================ */
.categories-grid-title {
    font-family: 'Abel', sans-serif !important;
    font-size: 44px !important;
    font-weight: 400 !important;
    line-height: 1.05 !important;
    margin: 0 0 1rem;
}

.category-tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    min-height: 130px;
    text-decoration: none;
    background: #1f2937;
}

.category-tile-image {
    width: 100%;
    height: 100%;
    min-height: 130px;
    object-fit: cover;
    display: block;
}

.category-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 10%, rgba(0, 0, 0, 0.08) 70%);
    pointer-events: none;
}

.category-tile-title {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    z-index: 2;
    margin: 0;
    color: #ffffff;
    font-size: 26px !important; 
    font-family: 'Abel', sans-serif !important;
    font-weight: 400;
    line-height: 1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.categories-carousel-track {
    display: flex;
    gap: 12px;
    transition: transform 0.3s ease;
    will-change: transform;
}

.categories-carousel-item {
    flex: 0 0 calc((100% - 48px) / 5);
    min-width: calc((100% - 48px) / 5);
}

.categories-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 9999px;
    border: 0;
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

.categories-carousel-btn svg {
    width: 18px;
    height: 18px;
}

.categories-carousel-btn-prev {
    left: -20px;
}

.categories-carousel-btn-next {
    right: -12px;
}

@media (max-width: 1023px) {
    .categories-carousel-item {
        flex: 0 0 calc((100% - 24px) / 3);
        min-width: calc((100% - 24px) / 3);
    }
}

@media (max-width: 767px) {
    .categories-carousel-item {
        flex: 0 0 calc((100% - 12px) / 2);
        min-width: calc((100% - 12px) / 2);
    }

    .categories-carousel-btn {
        display: none;
    }
}

/* ============================================
   TRAINING HIGHLIGHT SECTION
   ============================================ */
.training-highlight-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(380px, 1fr);
    gap: 22px;
    align-items: start;
}

.training-highlight-left-col {
    display: grid;
    gap: 14px;
}

.training-highlight-title {
    font-family: 'Abel', sans-serif !important;
    font-size: 36px !important;
    line-height: 1;
    font-weight: 400;
    margin: 0 0 12px;
}

.training-highlight-description {
    color: #374151;
    font-size: 29px;
    line-height: 1.15;
    margin: 0 0 10px;
}

.training-highlight-link {
    color: #DD0029;
    font-size: 14px;
    text-decoration: underline;
}

.training-highlight-subtitle {
    font-size: 40px;
    line-height: 1.05;
    margin: 14px 0 0;
    font-family: 'Abel', sans-serif !important;
}

.training-highlight-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.training-highlight-card {
    border: 1px solid #d7dde2;
    border-radius: 10px;
    background: #ffffff;
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 178px;
}

.training-highlight-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.training-highlight-card-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.training-highlight-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.training-highlight-card-title {
    margin: 0;
    font-size: 26px !important;
    line-height: 1.05;
    font-family: 'Abel', sans-serif !important;
    font-weight: 400;
}

.training-highlight-card-description {
    margin: 0;
    color: #374151;
    font-size: 16px;
    line-height: 1.25;
}

.training-highlight-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    height: 35px;
    border-radius: 10px;
    background: #DD0029;
    color: #fff !important;
    text-decoration: none;
    font-size: 15px;
    font-family: 'Abel', sans-serif !important;
    align-self: flex-end;
    margin-top: auto;
}

@media (max-width: 1100px) {
    .training-highlight-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .training-highlight-title {
        font-size: 40px;
    }

    .training-highlight-description {
        font-size: 22px;
    }

    .training-highlight-subtitle {
        font-size: 30px;
    }

    .training-highlight-card {
        min-height: unset;
    }

    .training-highlight-card-btn {
        width: 100%;
        margin-top: 4px;
    }
}

/* ============================================
   DIVERSITY FEATURED CATEGORIES
   ============================================ */
.diversity-featured-title {
    font-family: 'Abel', sans-serif !important;
    font-size: 36px !important;
    font-weight: 400;
    line-height: 1.05;
    margin: 0 0 14px;
}

.diversity-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.diversity-featured-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    min-height: 518px;
    background: #111827;
}

.diversity-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
}

.diversity-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 10%, rgba(0, 0, 0, 0.25) 58%, rgba(0, 0, 0, 0.15) 100%);
}

.diversity-featured-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 18px 20px 16px;
}

.diversity-featured-card-title {
    margin: 0 0 8px;
    color: #fff;
    font-size: 36px !important;
    line-height: 1;
    font-family: 'Abel', sans-serif !important;
    font-weight: 400;
}

.diversity-featured-card-description {
    margin: 0 0 12px;
    color: #fff;
    font-size: 14px !important;
    line-height: 1.15;
    max-width: 96%;
}

.diversity-featured-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    height: 34px;
    border-radius: 10px;
    background: #DD0029;
    color: #fff !important;
    text-decoration: none;
    font-size: 18px;
    font-family: 'Abel', sans-serif !important;
}

@media (max-width: 1023px) {
    .diversity-featured-grid {
        grid-template-columns: 1fr;
    }

    .diversity-featured-card {
        min-height: 420px;
    }
}

/* ============================================
   BRAND LOGOS SECTION
   ============================================ */
.brand-logos-track-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.brand-logos-track-wrap::-webkit-scrollbar {
    display: none;
}

.brand-logos-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(140px, 1fr);
    gap: 10px;
    min-width: max-content;
}

.brand-logo-item {
    background: #ffffff;
    border: 1px solid #efefef;
    border-radius: 10px;
    height: 74px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-item img {
    max-width: 100%;
    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
    background: #ffffff;
}

.newsletter-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.25fr) minmax(320px, 1fr);
    gap: 24px;
    align-items: center;
}

.newsletter-title {
    margin: 0;
    font-family: 'Abel', sans-serif !important;
    font-size: 36px !important;
    font-weight: 400;
    line-height: 1.05;
}

.newsletter-form-wrap {
    width: 100%;
}

.newsletter-form-title {
    margin: 0 0 4px;
    font-size: 14px !important;
    line-height: 1.2;
    font-weight: 400;
    color: #111111;
}

.newsletter-form-wrap .wpforms-container {
    margin: 0 !important;
}

.newsletter-form-wrap .wpforms-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.newsletter-form-wrap .wpforms-field-container {
    flex: 1 1 auto;
    min-width: 0;
}

.newsletter-form-wrap .wpforms-submit-container {
    margin: 0 !important;
    flex: 0 0 auto;
}

.newsletter-form-wrap .wpforms-field {
    padding: 0 !important;
    margin: 0 !important;
}

.newsletter-form-wrap .wpforms-field input {
    height: 42px;
}

.newsletter-form-wrap .wpforms-submit {
    height: 42px;
    margin: 0 !important;
}

.newsletter-fallback {
    margin: 0;
    color: #6b7280;
}

@media (max-width: 1023px) {
    .newsletter-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .newsletter-title {
        font-size: 23px !important;
    }

    .newsletter-form-wrap .wpforms-form {
        flex-wrap: wrap;
    }
}

/* ============================================
   FOOTER
   ============================================ */
footer[role="contentinfo"] {
    background: #000000 !important;
    color: #ffffff;
}

.site-footer-main {
    padding: 44px 0 24px;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: minmax(230px, 1.25fr) repeat(3, minmax(150px, 1fr));
    gap: 36px;
    align-items: start;
}

.site-footer-logo-link {
    display: inline-flex;
    margin-bottom: 16px;
}

.site-footer-logo {
    width: auto;
    height: 52px;
    object-fit: contain;
}

.site-footer-logo-text {
    font-size: 48px;
    line-height: 1;
    font-weight: 700;
    color: #dd0029;
}

.site-footer-description {
    margin: 0;
    max-width: 300px;
    color: #ffffff;
    font-size: 28px;
    line-height: 1.2;
}

.site-footer-heading {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 14px !important;
    line-height: 1.2;
    font-weight: 500;
}

body.woocommerce-page footer[role="contentinfo"] .site-footer-heading,
body.woocommerce footer[role="contentinfo"] .site-footer-heading {
    font-size: 14px !important;
}

.site-footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer-list li {
    margin: 0 0 4px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px !important;
    line-height: 1.25;
}

.site-footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

.site-footer-contact-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    margin-top: 2px;
    color: #ffffff;
    opacity: 0.9;
}

.site-footer-contact-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.site-footer-list li:last-child {
    margin-bottom: 0;
}

.site-footer-list a {
    color: inherit;
    transition: color 0.2s ease;
}

.site-footer-list a:hover {
    color: #ffffff;
}

.site-footer-bottom-row {
    margin-top: 0px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    justify-content: flex-end;
}

.site-footer-social {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.site-footer-social a {
    color: #ffffff;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.site-footer-social a:hover {
    opacity: 1;
}

.site-footer-social-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.site-footer-copyright {
    padding-top: 14px;
    text-align: center;
}

.site-footer-copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    line-height: 1.35;
}

@media (max-width: 1199px) {
    .site-footer-description {
        font-size: 22px;
    }

    .site-footer-heading {
        font-size: 24px;
    }

    .site-footer-list li {
        font-size: 15px;
    }
}

@media (max-width: 991px) {
    .site-footer-main {
        padding: 32px 0 20px;
    }

    .site-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .site-footer-description {
        font-size: 18px;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .site-footer-grid {
        grid-template-columns: 1fr;
    }

    .site-footer-logo {
        height: 44px;
    }

    .site-footer-heading {
        margin-bottom: 8px;
    }

    .site-footer-bottom-row {
        margin-top: 28px;
    }
}

.filter-color-swatch {
    width: 14px;
    height: 14px;
    border-radius: 9999px;
    border: 1px solid #d1d5db;
    background-color: var(--swatch-color, transparent);
    flex: 0 0 auto;
}

.rocha-new-badge {
    background-color: #ffffff !important;
    color: #DD0029 !important;
    border: 1px solid #DD0029;
    border-radius: 10px;
}

body.single-product .single-product-characteristics-intro p,
body.single-product .single-product-characteristics-remaining p {
    margin: 0 0 8px;
}

body.single-product .single-product-read-more {
    border: none;
    background: transparent;
    color: #DD0029;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin-top: 2px;
    font-size: 12px;
}

body.single-product .single-product-characteristics-remaining.is-hidden {
    display: none;
}

@media (max-width: 768px) {
    body.single-product .single-product-layout {
        display: block !important;
    }

    body.single-product .product-images-wrapper,
    body.single-product .product-summary-wrapper,
    body.single-product .product-info-container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    body.single-product .woocommerce-product-gallery .flex-control-thumbs {
        justify-content: flex-start !important;
        overflow-x: auto !important;
        padding-bottom: 4px;
    }

    body.single-product .single-product-title-row {
        align-items: center;
    }
}

/* Workshops y Eventos */
.workshops-events-banner {
    padding: 64px 0;
}

.workshops-events-banner__content {
    max-width: 1120px;
    color: #ffffff;
    margin: 0 auto;
    text-align: left;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 16px;
    row-gap: 0;
}

.workshops-events-banner__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #ffffff;
    color: #DD0029;
    font-size: 12px;
    line-height: 1;
    margin: 0;
    white-space: nowrap;
}

.workshops-events-banner__badge-icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
}

.workshops-events-banner__badge-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.workshops-events-banner__title {
    margin: 0;
    grid-column: 2;
    width: 100%;
    font-size: 38px !important;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.workshops-events-banner__description {
    margin: 12px 0 0;
    grid-column: 2;
    width: 100%;
    font-size: 18px;
    line-height: 1.5;
    white-space: pre-line;
}

@media (max-width: 768px) {
    .workshops-events-banner {
        padding: 44px 0;
    }

    .workshops-events-banner__content {
        grid-template-columns: 1fr;
        row-gap: 12px;
    }

    .workshops-events-banner__title {
        font-size: 34px;
        grid-column: auto;
    }

    .workshops-events-banner__description {
        font-size: 16px;
        margin-top: 10px;
        grid-column: auto;
    }

    .workshops-events-banner__badge {
        font-size: 11px;
    }
}

.workshops-events-listing {
    background-color: #f6f7f9;
}

.workshops-events-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    position: relative;
    z-index: 5;
}

.workshops-events-filters__pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.workshops-events-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e3e6eb;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    color: #4b5563;
    background: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.workshops-events-pill:hover,
.workshops-events-pill.is-active {
    border-color: #DD0029;
    color: #DD0029;
}

.workshops-events-month-select {
    border: 1px solid #e3e6eb;
    background: #ffffff;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    color: #374151;
    min-width: 150px;
}

.workshops-events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    position: relative;
    z-index: 1;
}

.workshops-event-card {
    background: #fff;
    border: 1px solid #e7e9ee;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 8px 20px rgba(16, 24, 40, 0.06);
}

.workshops-event-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.workshops-event-card__link:hover .workshops-event-card__title {
    color: #DD0029;
}

.workshops-event-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #eef1f4;
}

.workshops-event-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.workshops-event-card__badge {
    position: absolute;
    top: 18px;
    left: 18px;
    border: 1px solid #DD0029;
    border-radius: 999px;
    background: #fff;
    color: #DD0029;
    padding: 5px 12px;
    font-size: 13px;
    line-height: 1;
}

.workshops-event-card__body {
    padding: 18px 18px 20px;
}

.workshops-event-card__title {
    margin: 0;
    color: #111827;
    font-family: 'Abel', sans-serif !important;
    font-size: 26px !important;
    line-height: 1.1;
    text-transform: uppercase;
}

.workshops-event-card__subtitle {
    margin: 0px;
    color: #101828;
    font-size: 16px !important;
    line-height: 1.2;
}

.workshops-event-card__meta {
    list-style: none;
    margin: 16px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid #eceef2;
}

.workshops-event-card__meta li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.workshops-event-card__meta li + li {
    margin-top: 2px;
}

.workshops-event-card__meta-icon {
    width: 14px;
    min-width: 14px;
    margin-top: 3px;
    color: #8a94a4;
}

.workshops-event-card__meta-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.workshops-events-empty {
    margin: 14px 0 0;
    color: #6b7280;
}

@media (max-width: 1200px) {
    .workshops-events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .workshops-events-grid {
        grid-template-columns: 1fr;
    }

    .workshops-event-card__title {
        font-size: 20px;
    }

    .workshops-event-card__subtitle {
        font-size: 17px;
    }
}

.workshops-event-single__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.workshops-event-single__featured {
    border-radius: 12px;
    overflow: hidden;
    background: #edf0f4;
}

.workshops-event-single__featured-img {
    width: 100%;
    height: auto;
    display: block;
}

.workshops-event-single__thumbs {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.workshops-event-single__thumb-link {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: #edf0f4;
}

.workshops-event-single__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 10;
    display: block;
}

.workshops-event-single__summary {
    background: #ffffff;
    border: 1px solid #e7e9ee;
    border-radius: 14px;
    padding: 24px;
}

.workshops-event-single__badge {
    display: inline-flex;
    border: 1px solid #DD0029;
    color: #DD0029;
    background: #fff;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    line-height: 1;
    margin-bottom: 14px;
}

.workshops-event-single__top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.workshops-event-single__top-row .workshops-event-single__badge {
    margin-bottom: 0;
}

.workshops-event-single__wishlist {
    width: 34px;
    height: 34px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.workshops-event-single__wishlist svg {
    width: 16px;
    height: 16px;
}

.workshops-event-single__wishlist:hover {
    color: #DD0029;
    border-color: #DD0029;
}

.workshops-event-single__wishlist.is-active {
    color: #DD0029;
    border-color: #DD0029;
    background: #fff5f7;
}

.workshops-event-single__title {
    margin: 0;
    font-size: 42px;
    line-height: 1.05;
    text-transform: uppercase;
}

.workshops-event-single__subtitle {
    margin: 0px;
    font-size: 18px !important;
    color: #111827;
}

.workshops-event-single__meta {
    list-style: none;
    margin: 16px 0 0;
    border-top: 1px solid #eceef2;
}

.workshops-event-single__meta li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #111827;
}

.workshops-event-single__meta li + li {
    margin-top: 4px;
}

.workshops-event-single__meta-icon {
    width: 14px;
    min-width: 14px;
    margin-top: 3px;
    color: #111827;
}

.workshops-event-single__meta-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.workshops-event-single__content {
    margin-top: 18px;
    color: #111827;
}

.workshops-event-single__price {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin: 16px 0 0;
    color: #111827;
}

.workshops-event-single__price strong {
    color: #DD0029;
    font-size: 20px;
}

.workshops-event-single__accordions {
    margin-top: 14px;
}

.workshops-event-single__accordion div ul,
.workshops-event-single__accordion div ol {
    margin: 0.75em 0;
    padding-left: 1.25em;
}

.workshops-event-single__accordion div ul {
    list-style: disc;
}

.workshops-event-single__accordion div ol {
    list-style: decimal;
}

.workshops-event-single__accordion div li {
    margin: 0.25em 0;
}

.workshops-event-single__form {
    margin-top: 18px;
}

.workshops-event-single__form-title {
    margin: 0 0 12px;
    font-size: 26px !important;
    line-height: 1.15;
}

/* HubSpot inscripción (single curso intensivo): layout tipo formulario legacy */
.workshops-event-single__form:has(.rocha-hubspot-form) .workshops-event-single__form-title {
    color: #DD0029;
    font-weight: 700;
}

.workshops-event-single__hubspot-form.rocha-hubspot-form {
    margin-top: 4px;
    padding: 20px 18px 22px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #fafafa;
}

.rocha-hubspot-form__grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rocha-hubspot-form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 520px) {
    .rocha-hubspot-form__row--2 {
        grid-template-columns: 1fr 1fr;
    }
}

.rocha-hubspot-form__cell--full {
    grid-column: 1 / -1;
}

.rocha-hubspot-form__label {
    display: block;
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #374151;
}

.rocha-hubspot-form__input,
.rocha-hubspot-form__select {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    font-size: 15px;
    line-height: 1.35;
    color: #111827;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 2px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rocha-hubspot-form__input::placeholder {
    color: #9ca3af;
}

.rocha-hubspot-form__input:hover,
.rocha-hubspot-form__select:hover {
    border-color: #9ca3af;
}

.rocha-hubspot-form__input:focus,
.rocha-hubspot-form__select:focus {
    outline: none;
    border-color: #DD0029;
    box-shadow: 0 0 0 1px rgba(221, 0, 41, 0.2);
}

.rocha-hubspot-form__select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.rocha-hubspot-form__actions {
    margin-top: 18px;
}

.rocha-hubspot-form__submit {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff !important;
    background: var(--color-primary, #DD0029) !important;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.1s ease;
}

.rocha-hubspot-form__submit:hover {
    filter: brightness(1.05);
}

.rocha-hubspot-form__submit:active {
    transform: translateY(1px);
}

.rocha-hubspot-form__message {
    margin: 14px 0 0;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.45;
    border-radius: 2px;
    background: #f3f4f6;
    color: #111827;
}

.workshops-event-single__form-fallback {
    margin: 0;
    padding: 12px 14px;
    font-size: 14px;
    color: #6b7280;
    border: 1px dashed #d1d5db;
    border-radius: 4px;
    background: #fafafa;
}

.workshops-event-single__accordion {
    border-top: 1px solid #e5e7eb;
    padding: 8px 0;
}

.workshops-event-single__accordion:last-child {
    border-bottom: 1px solid #e5e7eb;
}

.workshops-event-single__accordion summary {
    list-style: none;
    cursor: pointer;
    color: #111827;
    font-size: 14px;
    position: relative;
    padding-right: 22px;
}

.workshops-event-single__accordion summary::-webkit-details-marker {
    display: none;
}

.workshops-event-single__accordion summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    color: #6b7280;
}

.workshops-event-single__accordion[open] summary::after {
    content: '-';
}

.workshops-event-single__accordion div {
    margin-top: 8px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .workshops-event-single__layout {
        grid-template-columns: 1fr;
    }
}
