@charset "UTF-8";
/*
Theme Name: Suzata Apple Theme
Author: Suzata Store
Version: 1.0.2
Description: Tema minimalista estilo Apple optimizado para WooCommerce con mejoras de interacción móvil.
*/

:root {
    /* Paleta Apple Original */
    --apple-bg: #f5f5f7;
    --apple-card-bg: #ffffff;
    --apple-text-main: #1d1d1f;
    --apple-text-secondary: #86868b;
    --apple-accent: #350e3b;
    --apple-radius: 18px;
    --apple-transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    --apple-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    --apple-shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.08);

    /* Mapeo de Variables Globales (Resuelve invisibilidad de componentes) */
    --text-primary: var(--apple-text-main);
    --text-secondary: var(--apple-text-secondary);
    --bg-card: var(--apple-card-bg);
    --border-color: rgba(0, 0, 0, 0.08);
    --accent-green: #30d158;
}

* {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--apple-bg);
    color: var(--apple-text-main);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   PANEL LATERAL MÓVIL (OFF-CANVAS DRAWER)
   Controlado por main.js con la clase "is-active"
   ========================================================================== */

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--apple-transition);
    z-index: 1998;
}

.drawer-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    height: 100%;
    background: #ffffff;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: var(--apple-transition);
    z-index: 1999;
    overflow-y: auto;
}

.mobile-drawer.is-active {
    transform: translateX(0);
}

.drawer-close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--apple-text-main);
    cursor: pointer;
    padding: 6px;
}

/* ==========================================================================
   DESPLEGABLE MÓVIL (ACORDEÓN SUBMENÚS)
   ========================================================================== */

/* Ocultar submenús por defecto */
.drawer-navigation ul.sub-menu {
    display: none;
    padding-left: 15px;
    background-color: #f9f9f9;
}

/* Mostrar submenú cuando el padre tiene la clase 'open' */
.drawer-navigation ul li.menu-item-has-children {
    position: relative;
}

.drawer-navigation ul li.menu-item-has-children.open > .sub-menu {
    display: block;
}

/* Botón flecha indicador para abrir submenú */
.drawer-navigation .submenu-toggle {
    position: absolute;
    right: 15px;
    top: 12px;
    padding: 6px 10px;
    font-size: 12px;
    color: var(--apple-text-secondary);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.drawer-navigation ul li.menu-item-has-children.open > .submenu-toggle {
    transform: rotate(180deg);
}

/* ==========================================================================
   MENÚ ESCRITORIO HORIZONTAL (ESTILO MEGAMENÚ / COLUMNAS)
   ========================================================================== */

@media screen and (min-width: 769px) {

    .header-dropdown-menu {
        width: auto !important;
        min-width: 680px;
        max-width: 90vw;
        left: 0;
        margin-top: 8px; /* Separación del botón Menú */
        padding: 28px 32px !important; /* Espacio interno superior, inferior y lateral */
        background-color: #ffffff;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
        border-radius: 14px;
        z-index: 1000;
        box-sizing: border-box;
    }

    /* Convertir lista principal en fila horizontal */
    .header-dropdown-menu > ul.main-menu-list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 36px;
        align-items: flex-start;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .header-dropdown-menu > ul.main-menu-list > li {
        position: relative;
        white-space: nowrap;
        flex: 1 1 auto;
    }

    .header-dropdown-menu > ul.main-menu-list > li > a {
        display: inline-block;
        font-weight: 700;
        font-size: 15px;
        color: var(--apple-text-main, #1d1d1f);
        border-bottom: 2px solid transparent;
        padding: 4px 8px 8px 8px; /* Espaciado cómodo alrededor de los títulos principales */
        text-decoration: none;
        transition: color 0.25s ease, border-color 0.25s ease;
    }

    .header-dropdown-menu > ul.main-menu-list > li > a:hover {
        color: var(--apple-accent, #6e007e);
        border-bottom-color: var(--apple-accent, #6e007e);
        background: transparent;
    }

    /* Submenús en columna debajo de cada categoría principal */
    .header-dropdown-menu ul.sub-menu {
        display: flex !important;
        flex-direction: column;
        gap: 2px;
        position: static;
        box-shadow: none;
        padding: 12px 0 0 0;
        margin: 0;
        background: transparent;
        list-style: none;
    }

    .header-dropdown-menu ul.sub-menu li {
        margin: 0;
        padding: 0;
    }

    .header-dropdown-menu ul.sub-menu li a {
        display: block;
        font-size: 13px;
        color: var(--apple-text-secondary, #6e6e73);
        padding: 6px 12px; /* Margen interior para que no pegue a las orillas */
        border-radius: 6px;
        font-weight: 400;
        text-decoration: none;
        transition: all 0.2s ease-in-out;
    }

    .header-dropdown-menu ul.sub-menu li a:hover {
        color: var(--apple-accent, #6e007e);
        background-color: rgba(110, 0, 126, 0.08);
        transform: translateX(4px);
    }
}

/* ==========================================================================
   NAVEGACIÓN DRAWER (MENÚ DESPLEGABLE LATERAL)
   ========================================================================== */

.drawer-navigation ul {
    list-style: none;
    margin: 0;
    padding: 60px 0 20px;
}

.drawer-navigation ul li a {
    display: block;
    padding: 14px 24px;
    color: var(--apple-text-main, #1d1d1f);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.drawer-navigation ul li a:hover {
    background-color: #f2f2f2;
    color: var(--apple-accent, #6e007e);
}
/* ==========================================================================
   TARJETA DE PRODUCTO Y SINGLE PRODUCT (ESTILO APPLE)
   ========================================================================== */

.product-card {
    background: var(--apple-card-bg);
    border-radius: var(--apple-radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--apple-shadow);
    transition: var(--apple-transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--apple-shadow-hover);
}

.product-card-image {
    width: 100%;
    height: 220px;
    object-fit: contain;
    margin-bottom: 15px;
    transition: var(--apple-transition);
}

.product-card:hover .product-card-image {
    transform: scale(1.03);
}

.apple-product-container {
    max-width: 1140px;
    margin: 60px auto 40px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); /* ~60% galería / ~40% detalles; minmax(0,...) evita que el contenido interno desborde la página */
    gap: 50px;
    align-items: start;
}

.apple-product-details {
    display: flex;
    flex-direction: column;
}

.apple-product-title {
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.015em;
    color: var(--apple-text-main);
}

.apple-product-short-desc {
    font-size: 16px;
    color: var(--apple-text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

/* Producto simple: la fila de cantidad + botón va horizontal.
   (Los productos variables usan .woocommerce-variation-add-to-cart, ver abajo) */
.apple-product-details form.cart:not(.variations_form) {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.apple-product-details form.cart .quantity {
    float: none !important;
    margin: 0 !important;
    flex-shrink: 0;
}

/* Producto variable: WooCommerce agrupa la tabla de atributos (selects) y la
   fila de cantidad/botón en contenedores distintos dentro de form.cart.
   Se reordenan visualmente para que la fila de compra quede primero y el
   selector de variaciones (swatches) quede debajo, como en la referencia. */
.apple-product-details form.cart.variations_form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.apple-product-details form.cart.variations_form table.variations {
    order: 2;
}

.apple-product-details form.cart.variations_form .single_variation_wrap {
    order: 1;
}

.apple-product-details .woocommerce-variation-add-to-cart {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.apple-product-details .woocommerce-variation-add-to-cart .quantity {
    float: none !important;
    margin: 0 !important;
    flex-shrink: 0;
}

.apple-product-details .single_add_to_cart_button {
    background-color: var(--apple-accent) !important;
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    padding: 16px 32px !important;
    border-radius: 980px !important;
    border: none !important;
    cursor: pointer;
    flex: 1;
    margin-top: 0;
    transition: opacity 0.3s ease;
}

.apple-product-details .single_add_to_cart_button:hover {
    opacity: 0.88;
}

.apple-product-full-description {
    max-width: 1024px;
    margin: 40px auto 60px;
    padding: 40px;
    background-color: var(--apple-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
}

.apple-product-full-description h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--apple-text-main);
}

.apple-product-full-description div {
    color: var(--apple-text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.apple-related-products {
    max-width: 1024px;
    margin: 60px auto 80px;
    padding: 0 20px;
}

/* Oculta el título nativo de WooCommerce ("Productos relacionados"/"Related products")
   que woocommerce_related_products() imprime por su cuenta dentro de esta sección,
   ya que el tema ya muestra su propio título (.apple-section-title) arriba */
.apple-related-products .related.products > h2 {
    display: none !important;
}

.apple-section-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--apple-text-main);
    letter-spacing: -0.01em;
}

.apple-related-products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.apple-related-products ul.products li.product {
    background-color: var(--apple-card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 18px !important;
    padding: 20px !important;
    text-align: center !important;
    margin: 0 !important;
    width: 100% !important;
    position: relative !important;
}

.apple-related-products ul.products li.product img {
    border-radius: 12px;
    margin-bottom: 12px;
}

.apple-related-products ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px !important;
    color: var(--apple-text-main) !important;
    margin-bottom: 8px !important;
}

.apple-related-products ul.products li.product .price {
    color: var(--apple-text-secondary) !important;
    font-size: 15px !important;
}

/* ==========================================================================
   BADGE "¡OFERTA!" (REEMPLAZA EL ESTILO POR DEFECTO DE WOOCOMMERCE)
   ========================================================================== */

.apple-product-card span.onsale,
.apple-related-products span.onsale,
.woocommerce span.onsale {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    left: auto !important;
    margin: 0 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    background-color: var(--apple-accent) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    padding: 6px 12px !important;
    border-radius: 980px !important;
    text-transform: none !important;
    box-shadow: none !important;
    z-index: 2;
}

/* ==========================================================================
   SELECTOR DE CANTIDAD (DESKTOP Y GENERAL)
   ========================================================================== */

/* Selector de cantidad Desktop */
.woocommerce .quantity.apple-quantity {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f5f5f7;
    border: 1px solid #e5e5e7;
    border-radius: 980px;
    padding: 2px 4px;
    width: 96px;
    height: 32px;
    box-sizing: border-box;
}

.woocommerce .quantity.apple-quantity input.qty {
    width: 32px;
    height: 26px;
    border: none !important;
    background: transparent !important;
    text-align: center;
    font-size: 13px !important;
    font-weight: 600;
    color: #1d1d1f !important;
    padding: 0 !important;
    margin: 0;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 0 !important;
    -moz-appearance: textfield;
}

/* Selector de Cantidad */

.woocommerce .quantity input.qty::-webkit-outer-spin-button,
.woocommerce .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.woocommerce .quantity input.qty[type=number] {
    -moz-appearance: textfield;
}

/* Botones de incremento/decremento */
.apple-qty-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    color: #1d1d1f;
    font-size: 14px;
    font-weight: 500;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    transition: background-color 0.15s ease, transform 0.15s ease;
    line-height: 1;
}

.apple-qty-btn:hover {
    background-color: rgba(0, 0, 0, 0.08);
    color: var(--apple-accent);
}

.apple-qty-btn:active {
    background-color: rgba(0, 0, 0, 0.15);
    transform: scale(0.92);
}

/* ==========================================================================
   CATÁLOGO / SHOP ARCHIVE
   ========================================================================== */

.apple-shop-container {
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

.apple-shop-header {
    text-align: center;
    padding: 40px 0 30px;
}

.apple-shop-title {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--apple-text-main);
    margin-bottom: 12px;
}

.apple-shop-subtitle {
    font-size: 19px;
    color: var(--apple-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.apple-shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 20px;
}

.apple-categories-pills {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.apple-category-pill {
    background-color: var(--apple-card-bg);
    color: var(--apple-text-main);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.apple-category-pill:hover,
.apple-category-pill.active {
    background-color: var(--apple-text-main);
    color: var(--apple-bg);
}

.woocommerce-ordering select {
    background-color: var(--apple-card-bg) !important;
    color: var(--apple-text-main) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    outline: none !important;
}

.apple-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.apple-product-card {
    background-color: var(--apple-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    will-change: transform;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, background-color 0.3s ease;
}

.apple-product-card:hover {
    transform: translateY(-4px);
    background-color: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.apple-product-card:active {
    transform: scale(0.98);
}

.apple-product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 12px;
}

.apple-product-card .woocommerce-loop-product__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--apple-text-main);
    margin-bottom: 8px;
    line-height: 1.3;
}

.apple-product-card .price {
    font-size: 16px;
    color: var(--apple-text-secondary);
    margin-bottom: 16px;
    display: block;
}

.apple-product-card .price del {
    color: var(--apple-text-secondary);
    margin-right: 8px;
    opacity: 0.6;
}

.apple-product-card .price ins {
    text-decoration: none;
    color: var(--accent-green);
    font-weight: 600;
}

.apple-product-card .button {
    background-color: var(--apple-accent) !important;
    color: #ffffff !important;
    text-align: center;
    border-radius: 980px !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border: none !important;
    text-decoration: none !important;
    display: block;
    margin-top: auto;
    transition: opacity 0.2s;
}

.apple-product-card .button:hover {
    opacity: 0.88;
}

.woocommerce-pagination {
    margin-top: 60px;
    text-align: center;
}

.woocommerce-pagination ul {
    display: inline-flex;
    gap: 8px;
    border: none !important;
    list-style: none;
    padding: 0;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    background-color: var(--apple-card-bg) !important;
    color: var(--apple-text-main) !important;
    border: 1px solid var(--border-color) !important;
    padding: 10px 16px !important;
    border-radius: 12px !important;
    text-decoration: none;
}

.woocommerce-pagination ul li span.current {
    background-color: var(--apple-accent) !important;
    border-color: var(--apple-accent) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   HEADER / CABECERA
   ========================================================================== */

.falabella-header {
    background-color: #f7f7f7;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
    position: relative;
    z-index: 1000;
}

.falabella-header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo img {

    height: 32px;

    width: auto;
    display: block;
}

.header-menu-dropdown-wrapper {
    position: relative;
}

.header-menu-btn {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--apple-text-main) !important;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
}

.header-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.header-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 12px 0;
    margin-top: 8px;
    z-index: 1001;
}

.header-dropdown-menu.active {
    display: block;
}

.header-dropdown-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-dropdown-menu ul li a {
    display: block;
    padding: 10px 20px;
    color: #333333;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s;
}

.header-dropdown-menu ul li a:hover {
    background-color: #f2f2f2;
    color: var(--apple-accent);
}

.header-search-bar {
    flex: 1;
}

.header-search-bar .search-form {
    display: flex;
    align-items: center;
    border: 1px solid #b3b3b3;
    border-radius: 980px;
    background-color: #ffffff;
    padding: 3px 4px 3px 18px;
    transition: border-color 0.2s;
}

.header-search-bar .search-form:focus-within {
    border-color: var(--apple-accent);
}

.header-search-bar .search-field {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
    outline: none;
    color: #333;
}

.header-search-bar .search-submit {
    background-color: var(--apple-accent) !important;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.header-user-account a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-greeting {
    font-size: 12px;
    color: var(--apple-text-secondary);
}

.user-action {
    font-size: 14px;
    font-weight: 700;
    color: var(--apple-text-main);
}

.header-wishlist a,
.header-cart a {
    color: var(--apple-text-main);
    display: flex;
    align-items: center;
    position: relative;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: var(--apple-accent);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* ==========================================================================
   OCULTAR CABECERA / MENÚ MÓVIL DUPLICADO EN ESCRITORIO
   ========================================================================== */

@media screen and (min-width: 769px) {

    /* Oculta los controles nativos móviles que aparecen debajo del header */
    .mobile-header,
    .header-mobile-layout,
    .handheld-navigation,
    .site-header-cart,
    .mobile-top-bar,
    .mobile-search-bar {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }

}
/* ==========================================================================
   COMPONENTES GLOBALES Y FORMULARIOS
   ========================================================================== */

.apple-page-title,
.apple-cart-title,
.apple-checkout-title,
.apple-shop-title {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 30px auto 20px;
    color: var(--text-primary);
    text-align: center !important;
}

.apple-bento-card,
.apple-cart-items,
.apple-cart-totals,
.apple-checkout-box,
.apple-product-full-description {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--apple-radius) !important;
    padding: 24px;
    box-shadow: var(--apple-shadow);
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
textarea,
select {
    background-color: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    outline: none !important;
    box-shadow: none !important;
    transition: var(--apple-transition);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--apple-accent) !important;
}

input[type="radio"],
input[type="checkbox"] {
    accent-color: var(--apple-accent) !important;
}

.button,
.single_add_to_cart_button,
.apple-checkout-button,
#place_order,
.cta-button {
    background-color: var(--apple-accent) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    padding: 14px 28px !important;
    border-radius: 980px !important;
    border: none !important;
    cursor: pointer;
    text-align: center;
    text-decoration: none !important;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.button:hover,
.single_add_to_cart_button:hover,
#place_order:hover {
    opacity: 0.88;
}

/* ==========================================================================
   CARRITO Y CHECKOUT EN ESCRITORIO
   ========================================================================== */

.apple-cart-layout,
.apple-checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 30px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto 60px;
}

.apple-cart-table,
.woocommerce-checkout-review-order-table,
table.shop_table {
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: auto !important;
}

.apple-cart-table th,
.apple-cart-table td {
    padding: 16px 12px !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    vertical-align: middle;
    text-align: left;
}

.apple-cart-table th {
    color: var(--text-secondary) !important;
    font-size: 12px;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: center;
}

/* Anchos fijos por columna: evita que "Precio"/"Subtotal" se
   compriman y WooCommerce corte las palabras a la mitad */
.apple-cart-table thead th:nth-child(2),
.apple-cart-item-price {
    width: 110px;
    white-space: nowrap !important;
}

.apple-cart-table thead th:nth-child(3),
.apple-cart-item-quantity {
    width: 140px;
}

.apple-cart-table thead th:nth-child(4),
.apple-cart-item-subtotal {
    width: 110px;
    white-space: nowrap !important;
}

.apple-cart-table thead th:nth-child(5),
.apple-cart-remove {
    width: 44px;
}

.apple-cart-item-thumbnail {
    width: 80px;
    text-align: center;
}

.apple-cart-item-price,
.apple-cart-item-subtotal,
.apple-cart-item-quantity {
    text-align: center;
}

.apple-cart-item-name {
    text-align: left;
}

.apple-cart-item-name a {
    display: inline-block;
    word-break: normal;
    overflow-wrap: break-word;
}

/* ícono de tacho de basura (reemplaza la "×") */
.apple-cart-remove a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary) !important;
    transition: color 0.2s ease, transform 0.15s ease;
}

.apple-cart-remove a:hover {
    color: #ff3b30 !important;
    transform: scale(1.1);
}

.apple-cart-remove a svg {
    width: 18px;
    height: 18px;
    display: block;
}

.apple-cart-item-name a,
.product-name a {
    color: #1d1d1f !important;
    text-decoration: none !important;

    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.price, .amount {
    color: var(--text-primary) !important;
    font-weight: 600;
}

.price del {
    color: var(--text-secondary) !important;
    opacity: 0.6;
}

.price ins {
    color: var(--accent-green) !important;
    text-decoration: none;
}

/* Wrapper de cantidad en el Carrito */
.apple-cart-qty-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f5f5f7;
    border: 1px solid #e5e5e7;
    border-radius: 980px;
    padding: 2px 4px;
    width: 96px;
    height: 32px;
    margin: 0 auto;
    box-sizing: border-box;
}

.apple-cart-qty-wrapper input.qty {
    width: 32px;
    height: 26px;
    border: none !important;
    background: transparent !important;
    text-align: center;
    font-size: 13px !important;
    font-weight: 600;
    color: #1d1d1f !important;
    padding: 0 !important;
    margin: 0;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 0 !important;
    -moz-appearance: textfield;
}

/* Ocultar flechas por defecto del navegador */
.apple-cart-qty-wrapper input.qty::-webkit-outer-spin-button,
.apple-cart-qty-wrapper input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.apple-cart-qty-wrapper .apple-qty-btn {
    width: 26px !important;
    height: 26px !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 50% !important;
    color: var(--apple-text-main) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease !important;
}

.apple-cart-qty-wrapper .apple-qty-btn:hover {
    background-color: rgba(0, 0, 0, 0.08) !important;
    color: var(--apple-accent) !important;
}

.apple-cart-qty-wrapper .apple-qty-btn:active {
    background-color: rgba(0, 0, 0, 0.15) !important;
    transform: scale(0.92) !important;
}

.coupon,
.apple-coupon-box {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
}

#coupon_code {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 980px !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    height: 44px !important;
}

#shipping_method {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

#shipping_method li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
}

/* Resumen de Compra (Totales del carrito / checkout) */
.apple-cart-totals table.shop_table,
.woocommerce-checkout-review-order-table {
    table-layout: fixed !important;
}

.apple-cart-totals table.shop_table th,
.woocommerce-checkout-review-order-table th {
    width: 100px !important;
    min-width: 100px !important;
    white-space: nowrap !important;
    text-align: left !important;
    vertical-align: top;
    padding-top: 18px !important;
}

.apple-cart-totals table.shop_table td,
.woocommerce-checkout-review-order-table td {
    text-align: left !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

/* ==========================================================================
   CHECKOUT ESTRUCTURA 2 COLUMNAS (ESCRITORIO - CORREGIDO)
   ========================================================================== */

@media screen and (min-width: 769px) {

    /* Grilla Principal */
    .apple-checkout-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 420px !important;
        gap: 32px !important;
        align-items: start !important;
        max-width: 1100px !important;
        margin: 0 auto 60px !important;
        width: 100% !important;
    }

    /* Columna Izquierda: Apila Facturación y Envío verticalmente */
    .apple-checkout-fields {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Forzar a WooCommerce a usar el 100% dentro de la tarjeta */
    .apple-checkout-fields .col2-set,
    .apple-checkout-fields .col-1,
    .apple-checkout-fields .col-2,
    .apple-checkout-fields #customer_details {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
    }

    /* Columna Derecha */
    .apple-checkout-summary {
        width: 100% !important;
        min-width: 0 !important;
    }
}
/* ==========================================================================
   ESTILOS RESPONSIVOS MÓVIL UNIFICADOS (HASTA 768px)
   ========================================================================== */

/* ==========================================================================
   PAGINACIÓN DEFINITIVA (MÓVIL Y ESCRITORIO UNIFICADO)
   ========================================================================== */

/* 1. Contenedor principal */
html body nav.apple-pagination,
html body .woocommerce nav.apple-pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 40px 0 !important;
    float: none !important;
    clear: both !important;
}

/* 2. Lista horizontal forzada sin viñetas */
html body nav.apple-pagination ul.apple-pagination-list,
html body .woocommerce nav.apple-pagination ul.apple-pagination-list,
html body ul.apple-pagination-list {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 3. Anulación estricta de viñetas y saltos en <li> */
html body nav.apple-pagination ul.apple-pagination-list li,
html body .woocommerce nav.apple-pagination ul.apple-pagination-list li,
html body li.apple-pagination-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

/* Eliminate viñetas nativas o pseudo-elementos del tema */
html body nav.apple-pagination ul.apple-pagination-list li::before,
html body nav.apple-pagination ul.apple-pagination-list li::after {
    content: none !important;
    display: none !important;
}

/* 4. Estilos de botones y círculos */
html body .apple-pagination-item a,
html body .apple-pagination-item span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 8px !important;
    border-radius: 50% !important;
    background-color: #ffffff !important;
    color: #1d1d1f !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
}

/* Flechas e iconos */
html body .apple-pagination-item a.prev,
html body .apple-pagination-item a.next {
    width: 36px !important;
    padding: 0 !important;
}

/* Estado activo */
html body .apple-pagination-item span.current {
    background-color: #350e3b !important;
    color: #ffffff !important;
    border-color: #350e3b !important;
    font-weight: 600 !important;
}

/* Hover */
html body .apple-pagination-item a:hover {
    background-color: #f2f2f7 !important;
    border-color: rgba(0, 0, 0, 0.25) !important;
}

/* Puntos suspensivos */
html body .apple-pagination-item span.dots {
    border: none !important;
    background: transparent !important;
    padding: 0 2px !important;
    min-width: auto !important;
    color: #86868b !important;
}

/* Guión separador (si existiera) */
html body .apple-pagination-separator {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #86868b !important;
    font-size: 14px !important;
    user-select: none !important;
    padding: 0 2px !important;
    list-style: none !important;
}
/* ==========================================================================
   1. SECCIÓN DE MARCAS (CORREGIDO Y SINCRONIZADO CON PHP)
   ========================================================================== */

.apple-brands-wrapper {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 15px auto 25px !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.apple-brands-scroll {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 18px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding-bottom: 10px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.apple-brands-scroll::-webkit-scrollbar {
    display: none;
}

.apple-brand-item {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    text-decoration: none !important;
    color: var(--apple-text-main, #1d1d1f) !important;
    transition: transform 0.2s ease;
}

.apple-brand-item:hover {
    transform: translateY(-2px);
}

.apple-brand-avatar {
    width: 68px !important;
    height: 68px !important;
    border-radius: 50% !important;
    background-color: #ffffff !important;
    border: 1px solid var(--border-color, #e2e8f0) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    margin-bottom: 6px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.apple-brand-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.apple-brand-avatar span {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: var(--apple-accent, #350e3b) !important;
}

.apple-brand-name {
    font-size: 11px !important;
    font-weight: 500 !important;
    text-align: center !important;
    max-width: 75px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

@media screen and (max-width: 768px) {

    html, body {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .hide-on-mobile {
        display: none !important;
    }


    /* Grilla de Productos en 2 Columnas */
    .woocommerce ul.products,
    ul.products,
    .apple-products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
        width: 100% !important;
        list-style: none !important;
    }

    .woocommerce ul.products li.product,
    ul.products li.product,
    .apple-product-card {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin: 0 !important;
        padding: 10px !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 12px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    .apple-product-card .button {
        padding: 8px 14px !important;
        font-size: 13px !important;
        box-shadow: 0 2px 8px rgba(53, 14, 59, 0.2);
    }

    .woocommerce ul.products li.product img {
        width: 100% !important;
        height: auto !important;
        border-radius: 8px !important;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 12px !important;
        line-height: 1.3 !important;
        margin: 8px 0 4px !important;
        color: var(--apple-accent) !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* ==========================================================================
       FICHA DE PRODUCTO INDIVIDUAL (MÓVIL)
       ========================================================================== */

    .apple-product-container {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin: 20px auto !important;
        padding: 0 16px !important;
    }

    .apple-product-title {
        font-size: 26px !important;
        margin-bottom: 8px !important;
    }

    .apple-product-short-desc {
        font-size: 14px !important;
        margin-bottom: 18px !important;
        padding-bottom: 18px !important;
    }

    .apple-product-details .single_add_to_cart_button {
        font-size: 15px !important;
        padding: 14px 24px !important;
    }

    .apple-product-full-description {
        margin: 24px 16px 40px !important;
        padding: 20px !important;
        border-radius: 18px !important;
    }

    .apple-product-full-description h2 {
        font-size: 20px !important;
    }

    .apple-related-products {
        padding: 0 16px !important;
        margin: 40px auto 50px !important;
    }

    .apple-related-products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .apple-section-title {
        font-size: 20px !important;
    }

    /* Header Móvil */
    .falabella-header {
        background-color: #ffffff !important;
        border-bottom: 1px solid #e2e8f0;
        position: sticky;
        top: 0;
        z-index: 999;
        width: 100%;
        box-sizing: border-box;
    }

    .header-mobile-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding: 10px 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .mobile-top-bar {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }

    .mobile-left-group,
    .mobile-right-group {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .mobile-menu-trigger {
        background: transparent !important;
        border: none !important;
        padding: 4px !important;
        cursor: pointer;
        display: flex;
        align-items: center;
    }

    .mobile-logo img {
        max-height: 28px !important;
        width: auto !important;
        display: block;
    }

    .mobile-account-link {
        font-size: 13px !important;
        font-weight: 600 !important;
        color: var(--apple-text-main) !important;
        text-decoration: none !important;
        white-space: nowrap;
    }

    .mobile-cart .cart-contents {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        text-decoration: none !important;
    }

    .mobile-cart .cart-count {
        position: absolute !important;
        top: -6px !important;
        right: -8px !important;
        background-color: var(--apple-accent) !important;
        color: #ffffff !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        width: 18px !important;
        height: 18px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .mobile-search-bar {
        width: 100% !important;
    }

    .mobile-search-form {
        position: relative !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
    }

    .mobile-search-input {
        width: 100% !important;
        height: 40px !important;
        background-color: #f1f5f9 !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 980px !important;
        padding: 0 45px 0 16px !important;
        font-size: 14px !important;
        color: #1e293b !important;
        outline: none !important;
        box-sizing: border-box !important;
    }

    .mobile-search-input:focus {
        border-color: var(--apple-accent) !important;
        background-color: #ffffff !important;
    }

    .mobile-search-btn {
        position: absolute !important;
        right: 4px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        background-color: var(--apple-accent) !important;
        border: none !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer;
    }
/* ==========================================================================
   ESTILOS RESPONSIVOS MÓVIL UNIFICADOS (HASTA 768px) - FIX GRILLA Y ANCHO
   ========================================================================== */

    /* Prevenir cualquier desbordamiento horizontal en el body/contenedor */
    html, body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .apple-shop-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 12px !important;
        margin: 10px 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Encabezado centrado y sin desbordar */
    .apple-shop-header {
        padding: 10px 0 15px !important;
        text-align: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .apple-shop-title {
        font-size: 22px !important;
        margin: 5px 0 !important;
        text-align: center !important;
    }

    .apple-shop-subtitle {
        font-size: 12px !important;
        line-height: 1.3 !important;
        text-align: center !important;
        padding: 0 10px !important;
    }

    /* Toolbar y Píldoras con Scroll Limpio */
    .apple-shop-toolbar {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-bottom: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

.apple-categories-pills {
    display: flex !important;
    justify-content: center !important; /* Centra las píldoras horizontalmente */
    gap: 8px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding-bottom: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    .apple-categories-pills::-webkit-scrollbar {
        display: none;
    }

    .apple-category-pill {
        padding: 6px 14px !important;
        font-size: 12px !important;
        flex-shrink: 0 !important;
        border-radius: 980px !important;
    }

    .apple-shop-ordering,
    .woocommerce-ordering,
    .woocommerce-ordering select {
        width: 100% !important;
        font-size: 13px !important;
        box-sizing: border-box !important;
    }

    /* --- GRILLA DE PRODUCTOS (FORZAR 2 COLUMNAS SIN OVERFLOW) --- */
    .woocommerce ul.products,
    ul.products,
    ul.apple-products-grid,
    .apple-products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important; /* minmax evita que el contenido empuje la columna */
        gap: 10px !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        list-style: none !important;
    }

    /* --- TARJETA DE PRODUCTO --- */
    .woocommerce ul.products li.product,
    ul.products li.product,
    li.apple-product-card,
    .apple-product-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important; /* Importante para prevenir desbordamientos dentro de grid */
        float: none !important;
        margin: 0 !important;
        padding: 10px !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        border: 1px solid var(--border-color, #e2e8f0) !important;
        border-radius: 12px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    /* Imagen proporcional dentro de la tarjeta */
    .woocommerce ul.products li.product img,
    .apple-product-card img {
        width: 100% !important;
        height: 120px !important;
        object-fit: contain !important;
        border-radius: 8px !important;
        margin: 0 auto 8px auto !important;
        display: block !important;
    }

    /* Título limitado a 2 líneas */
    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .apple-product-card .woocommerce-loop-product__title {
        font-size: 12px !important;
        line-height: 1.3 !important;
        margin: 4px 0 !important;
        color: var(--apple-text-main, #1d1d1f) !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        word-break: break-word !important;
    }

    /* Precio */
    .woocommerce ul.products li.product .price,
    .apple-product-card .price {
        font-size: 13px !important;
        font-weight: 700 !important;
        margin-bottom: 8px !important;
        display: block !important;
    }

    /* Botón añadir al carrito */
    .apple-product-card .button,
    .woocommerce ul.products li.product .button {
        width: 100% !important;
        padding: 8px 6px !important;
        font-size: 12px !important;
        text-align: center !important;
        border-radius: 980px !important;
        margin-top: auto !important;
        box-shadow: 0 2px 8px rgba(53, 14, 59, 0.15) !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

/* ==========================================================================
   2. GRILLA RESPONSIVA MÓVIL Y TIENDA (HASTA 768px)
   ========================================================================== */

    .apple-shop-container {
        width: 100% !important;
        padding: 0 12px !important;
        margin: 10px 0 !important;
        box-sizing: border-box !important;
    }

    /* Grilla de Productos en 2 Columnas */
    .woocommerce ul.products,
    ul.apple-products-grid,
    .apple-products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
        width: 100% !important;
        list-style: none !important;
    }

    .woocommerce ul.products li.product,
    li.apple-product-card,
    .apple-product-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 10px !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        border: 1px solid var(--border-color, #e2e8f0) !important;
        border-radius: 12px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    .apple-product-card img,
    .woocommerce ul.products li.product img {
        width: 100% !important;
        height: 120px !important;
        object-fit: contain !important;
        margin-bottom: 8px !important;
    }

    .apple-product-card .woocommerce-loop-product__title {
        font-size: 12px !important;
        line-height: 1.3 !important;
        margin: 4px 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .apple-product-card .apple-product-card-action a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        width: 100% !important;
        padding: 8px 6px !important;
        font-size: 12px !important;
        border-radius: 980px !important;
        background-color: var(--apple-accent, #350e3b) !important;
        color: #ffffff !important;
        text-decoration: none !important;
    }
/* ==========================================================================
       CARRITO MÓVIL (LÍNEAS LIMPIAS Y SIN DESFASE)
       ========================================================================== */
    .apple-cart-layout,
    .apple-checkout-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .apple-cart-table,
    .apple-cart-table thead,
    .apple-cart-table tbody {
        display: block !important;
        width: 100% !important;
    }

    .apple-cart-table thead {
        display: none !important;
    }

    /* ELIMINAR BORDES INTERNOS DE CADA CELDA */
    .apple-cart-table td,
    .apple-cart-table tr.cart_item td {
        border: none !important;
        border-bottom: none !important;
        box-shadow: none !important;
    }

    /* Tarjeta del producto: única responsable de la línea divisoria inferior */
    .apple-cart-table tr.cart_item {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        padding: 16px 0 !important;
        border-bottom: 1px solid var(--border-color, #e5e5e5) !important;
        position: relative !important;
        box-sizing: border-box !important;
    }

    /* FILA 1: Imagen */
    .apple-cart-item-thumbnail {
        display: block !important;
        width: 50px !important;
        max-width: 50px !important;
        flex: 0 0 50px !important;
        padding: 0 !important;
        margin-right: 12px !important;
    }

    .apple-cart-item-thumbnail img {
        width: 50px !important;
        height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
        object-fit: contain !important;
        display: block !important;
    }

    /* FILA 1: Nombre */
    .apple-cart-item-name {
        display: block !important;
        width: calc(100% - 95px) !important;
        flex: 1 1 auto !important;
        padding: 0 35px 0 0 !important;
        box-sizing: border-box !important;
    }

    /* FILA 1: Botón Eliminar (Tacho) */
    .apple-cart-remove {
        position: absolute !important;
        top: 16px !important;
        right: 0 !important;
        width: 30px !important;
        display: block !important;
        text-align: right !important;
        padding: 0 !important;
    }

    /* FILA 2: Precio */
    .apple-cart-item-price {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        width: 50% !important;
        flex: 0 0 50% !important;
        margin-top: 12px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* FILA 2: Selector de cantidad */
    .apple-cart-item-quantity {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        width: 50% !important;
        flex: 0 0 50% !important;
        margin-top: 12px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* Ocultar Subtotal y elementos innecesarios */
    .apple-cart-item-subtotal,
    .apple-cart-table td.product-subtotal,
    .apple-cart-table td[data-title="Subtotal"] {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Etiqueta PRECIO */
    .apple-cart-item-price::before {
        content: "PRECIO" !important;
        color: var(--text-secondary, #86868b) !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        letter-spacing: 0.02em !important;
    }

    .apple-cart-item-quantity::before {
        display: none !important;
    }

    .apple-categories-pills {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        width: 100% !important;
    }
   
}
/* ==========================================================================
   BOTONES DE CUPÓN Y ACTUALIZAR CARRITO (ESTILO APPLE)
   ========================================================================== */

/* Botón "Aplicar cupón" */
.coupon button[name="apply_coupon"],
.apple-cart-table button[name="apply_coupon"],
.woocommerce-cart-form button[name="apply_coupon"] {
    background-color: var(--apple-accent) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 0 22px !important;
    height: 44px !important;
    border-radius: 980px !important;
    border: none !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease, transform 0.15s ease !important;
    line-height: 44px !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}

.coupon button[name="apply_coupon"]:hover,
.woocommerce-cart-form button[name="apply_coupon"]:hover {
    opacity: 0.88 !important;
}

.coupon button[name="apply_coupon"]:active,
.woocommerce-cart-form button[name="apply_coupon"]:active {
    transform: scale(0.96) !important;
}

/* Botón "Actualizar Carrito" */
button[name="update_cart"],
.apple-cart-table button[name="update_cart"],
.woocommerce-cart-form button[name="update_cart"] {
    background-color: transparent !important;
    color: var(--apple-accent) !important;
    border: 1px solid var(--apple-accent) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 10px 22px !important;
    border-radius: 980px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease !important;
    margin-top: 12px !important;
    display: inline-block !important;
    box-shadow: none !important;
}

button[name="update_cart"]:hover,
.woocommerce-cart-form button[name="update_cart"]:hover {
    background-color: var(--apple-accent) !important;
    color: #ffffff !important;
}

/* Estado deshabilitado del botón "Actualizar Carrito" */
button[name="update_cart"]:disabled,
button[name="update_cart"][disabled] {
    opacity: 0.4 !important;
    border-color: var(--apple-text-secondary, #86868b) !important;
    color: var(--apple-text-secondary, #86868b) !important;
    background-color: transparent !important;
    cursor: not-allowed !important;
}

/* Separación respecto a la tabla de productos */
.apple-cart-table td.actions,
.woocommerce-cart-form td.actions,
.apple-cart-table tr:last-child td {
    padding-top: 32px !important;
    padding-bottom: 12px !important;
}

/* Espacio superior para el contenedor del cupón */
.coupon,
.apple-coupon-box {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 8px !important;
    margin-bottom: 16px !important;
}

/* Separación del botón Actualizar Carrito respecto al cupón */
button[name="update_cart"],
.apple-cart-table button[name="update_cart"],
.woocommerce-cart-form button[name="update_cart"] {
    margin-top: 16px !important;
}

/* ==========================================================================
   AJUSTES DE MARGENCIS, BREADCRUMBS Y METADATOS DE PRODUCTO INDIVIDUAL
   ========================================================================== */

/* Solución para textos y títulos pegados al borde del teléfono */
.apple-product-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px; /* Otorga un margen de respiro con respecto al borde lateral */
    box-sizing: border-box;
}

/* Caja superior de la columna derecha: fondo gris claro con las migas
   cortas (Inicio / Tienda) + marca destacada + categorías secundarias */
.apple-product-meta-box {
    background-color: #f5f5f5;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.apple-breadcrumbs {
    font-size: 12px;
    color: var(--apple-text-secondary, #86868b);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.apple-breadcrumbs a {
    color: var(--apple-text-secondary, #86868b);
    text-decoration: none;
    transition: color 0.2s ease;
}

.apple-breadcrumbs a:hover {
    color: var(--apple-accent, #350e3b);
}

.apple-breadcrumbs .sep {
    font-size: 11px;
    opacity: 0.6;
}

/* Marca y Categorías */
.apple-product-meta-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    flex-wrap: wrap;
}

.apple-brand-badge a {
    background-color: var(--apple-card-bg, #ffffff);
    color: var(--apple-accent, #350e3b);
    padding: 3px 10px;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.apple-category-links a {
    color: var(--apple-text-secondary, #86868b);
    text-decoration: none;
}

.apple-category-links a:hover {
    text-decoration: underline;
}

.apple-meta-divider {
    color: var(--apple-text-secondary, #86868b);
    font-size: 10px;
}

/* Ajustes adicionales para responsivo en móviles */
@media screen and (max-width: 768px) {
    .apple-product-wrapper {
        padding: 0 18px !important;
    }

    .apple-product-container {
        padding: 0 !important;
    }

    .apple-product-details {
        padding: 0 4px !important; /* Espaciado extra para textos largos */
    }
}
/* ==========================================================================
   FIX DEFINITIVO DE ANCHO Y GRILLA: PRODUCTOS SUGERIDOS
   ========================================================================== */

/* 1. Contenedor principal limitado y centrado para evitar desborde en PC */
.apple-related-products {
    width: 100% !important;
    max-width: 1200px !important; /* Limita el ancho máximo en PC */
    margin: 0 auto !important;     /* Centra el bloque en la pantalla */
    padding: 0 20px !important;    /* Espaciado de seguridad en bordes */
    box-sizing: border-box !important;
}

.apple-related-products .related.products,
.apple-related-products .upsells.products,
.apple-related-products div.products {
    width: 100% !important;
    float: none !important;
    clear: both !important;
}


/* 2. Grilla principal de 4 columnas (Escritorio) */
.apple-related-products ul.products,
.apple-related-products .products ul {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 20px 0 0 0 !important;
    list-style: none !important;
}

/* Eliminación estricta de floats y pseudo-elementos conflictivos */
.apple-related-products ul.products::before,
.apple-related-products ul.products::after {
    display: none !important;
    content: none !important;
}

/* 3. Tarjeta de producto */
.apple-related-products ul.products li.product,
.apple-related-products ul.products li.apple-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
    border: 1px solid #e5e5e7 !important;
    border-radius: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

/* Ajustes visuales del contenido */
.apple-related-products ul.products li.product img {
    width: 100% !important;
    max-width: 150px !important;
    height: 150px !important;
    object-fit: contain !important;
    margin: 0 auto 12px auto !important;
    display: block !important;
}

/* Quita el subrayado azul por defecto del navegador en los enlaces
   que envuelven la imagen y el título del producto */
.apple-related-products ul.products li.product a,
.apple-related-products ul.products li.product a:hover,
.apple-related-products ul.products li.product a:visited,
.apple-related-products ul.products li.product .woocommerce-loop-product__title,
.apple-related-products ul.products li.product .woocommerce-loop-product__title a {
    text-decoration: none !important;
}

/* Título ajustado para evitar que el texto se corte por la mitad */
.apple-related-products ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    margin: 8px 0 !important;

    /* Solo parte una palabra si es imposible que quepa entera;
       prioriza siempre romper por espacios, nunca a la mitad de una palabra normal */
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;

    /* Recorte multilínea limpio: se amplía a 3 líneas para que nombres
       largos (ej. "Absolut Repair Molecular Shampoo") quepan completos
       sin forzar un corte a mitad de palabra */
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;

    /* Espacio para 3 líneas completas */
    min-height: 4.05em !important;
    max-height: 4.05em !important;
    height: auto !important;
}

.apple-related-products ul.products li.product .price {
    font-size: 14px !important;
    margin: 6px 0 12px 0 !important;
}

.apple-related-products ul.products li.product .button {
    width: 100% !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    border-radius: 20px !important;
    margin-top: auto !important;
}

/* ==========================================================================
   CARRITO: "VOLVER A LA TIENDA" Y "PRODUCTOS VISTOS RECIENTEMENTE"
   ========================================================================== */

.apple-cart-continue-shopping {
    margin-top: 32px;
    text-align: center;
}

.apple-continue-shopping-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 980px;
    border: 1px solid var(--apple-accent);
    color: var(--apple-accent);
    background-color: transparent;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: var(--apple-transition);
}

.apple-continue-shopping-btn:hover {
    background-color: var(--apple-accent);
    color: #ffffff;
}

.apple-recently-viewed {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

@media screen and (max-width: 768px) {
    .apple-cart-continue-shopping {
        margin-top: 24px;

    }

    .apple-continue-shopping-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .apple-recently-viewed {
        margin-top: 40px;
        padding-top: 24px;
    }
}

/* 4. Disposición Responsiva en Móvil (2 Columnas) */
@media screen and (max-width: 768px) {
    .apple-related-products {
        padding: 0 12px !important;
    }

    .apple-related-products ul.products,
    .apple-related-products .products ul {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .apple-related-products ul.products li.product {
        padding: 12px 8px !important;
    }

    .apple-related-products ul.products li.product img {
        height: 110px !important;
        max-width: 110px !important;
    }

    .apple-related-products ul.products li.product .woocommerce-loop-product__title {
        font-size: 12px !important;
        line-height: 1.35 !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        hyphens: none !important;
        -webkit-line-clamp: 3 !important;
        min-height: 3.65em !important;
        max-height: 3.65em !important;
    }

    .apple-related-products ul.products li.product .button {
        padding: 8px 4px !important;
        font-size: 11px !important;
    }
}

/* ==========================================================================
   PÁGINA DE INICIO (FRONT PAGE) — SUZATA
   ========================================================================== */

.apple-home {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

/* ---------- 1. Hero Slider ---------- */
.apple-hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    border-radius: var(--apple-radius);
    overflow: hidden;
    box-shadow: var(--apple-shadow);
    background-color: var(--apple-card-bg);
}

.apple-hero-slider__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.apple-hero-slide {
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #e5e5e7; /* Marcador de posición mientras no hay imagen real */
}

.apple-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: var(--apple-text-main);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--apple-transition);
    z-index: 2;
}

.apple-hero-arrow:hover {
    background: #ffffff;
}

.apple-hero-arrow.prev {
    left: 16px;
}

.apple-hero-arrow.next {
    right: 16px;
}

.apple-hero-slider__dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.apple-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    transition: var(--apple-transition);
}

.apple-hero-dot.is-active {
    background: #ffffff;
    width: 22px;
    border-radius: 4px;
}

/* ---------- 2. Marcas ---------- */
.apple-brands-row {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    padding: 4px 4px 12px;
    scrollbar-width: none;
}

.apple-brands-row::-webkit-scrollbar {
    display: none;
}

.apple-brand-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex: 0 0 auto;
    width: 84px;
}

.apple-brand-circle__img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background-color: var(--apple-card-bg);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: var(--apple-accent);
    transition: var(--apple-transition);
}

.apple-brand-circle:hover .apple-brand-circle__img {
    transform: translateY(-3px);
    box-shadow: var(--apple-shadow-hover);
}

.apple-brand-circle__name {
    font-size: 12px;
    font-weight: 500;
    color: var(--apple-text-main);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 84px;
}

/* ---------- 3 y 7. Banner de imagen única ---------- */
.apple-single-banner {
    border-radius: var(--apple-radius);
    overflow: hidden;
    box-shadow: var(--apple-shadow);
}

.apple-single-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- 5. Categorías en slider ---------- */
.apple-category-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.apple-category-slider__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 4 * 20px) / 5); /* 5 tarjetas visibles en escritorio */
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    scrollbar-width: none;
}

/* Solo se centra cuando el JS detecta que TODAS las tarjetas caben
   sin necesidad de scroll (si no, centrar cortaría tarjetas en los bordes) */
.apple-category-slider__track.is-centered {
    justify-content: center;
}

.apple-category-slider__track::-webkit-scrollbar {
    display: none;
}

.apple-category-card {
    scroll-snap-align: start;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.apple-category-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--apple-radius);
    background-size: cover;
    background-position: center;
    background-color: var(--apple-card-bg);
    transition: var(--apple-transition);
}

.apple-category-card:hover .apple-category-card__image {
    transform: translateY(-3px);
    box-shadow: var(--apple-shadow-hover);
}

.apple-category-card__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--apple-text-main);
    text-align: center;
}

.apple-cat-arrow {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--apple-text-main);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--apple-transition);

}

.apple-cat-arrow:hover {
    background: var(--apple-accent);
    color: #ffffff;
    border-color: var(--apple-accent);
}

/* ---------- Responsivo ---------- */
@media screen and (max-width: 1024px) {
    .apple-category-slider__track {
        grid-auto-columns: calc((100% - 2 * 20px) / 3); /* 3 visibles en tablet */
    }
}

@media screen and (max-width: 768px) {
    .apple-home {
        gap: 48px;
        padding: 24px 16px 56px;
    }

    .apple-hero-slider {
        aspect-ratio: 4 / 3;
        border-radius: 14px;
    }

    .apple-hero-arrow {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .apple-category-slider__track {
        grid-auto-columns: calc((100% - 20px) / 2); /* 2 visibles en móvil */
    }

    .apple-cat-arrow {
        display: none; /* en móvil se navega deslizando con el dedo */
    }
}
/* ==========================================================================
   PÁGINA DE CONFIRMACIÓN DE COMPRA (THANK YOU PAGE)
   ========================================================================== */

/* Contenedor principal */
.woocommerce-order {
    max-width: 850px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Mensaje principal de confirmación */
.woocommerce-notice--success {
    background-color: #f8f3f9 !important;
    border: 1px solid rgba(110, 0, 126, 0.15) !important;
    border-left: 5px solid var(--apple-accent, #6e007e) !important;
    color: var(--apple-accent, #6e007e) !important;
    padding: 18px 24px !important;
    border-radius: 12px;
    font-size: 16px !important;
    font-weight: 700;
    margin-bottom: 28px !important;
    display: flex;
    align-items: center;
}

.woocommerce-notice--success::before {
    content: "?";
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 26px;
    height: 26px;
    background-color: var(--apple-accent, #6e007e);
    color: #ffffff;
    border-radius: 50%;
    margin-right: 12px;
    font-size: 13px;
    font-weight: 900;
    flex-shrink: 0;
}

/* Resumen del pedido: Cuadrícula limpia y perfectamente alineada */
.woocommerce-order-overview {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 12px !important;
    background: #ffffff;
    padding: 20px !important;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    border: 1px solid #eaeaea;
    margin-bottom: 28px !important;
    list-style: none !important;
}

.woocommerce-order-overview li {
    border: none !important;
    padding: 14px 16px !important;
    margin: 0 !important;
    background: #fafafa;
    border-radius: 10px;
    font-size: 11px;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    word-break: break-word;
}

.woocommerce-order-overview li strong {
    margin-top: 6px;
    font-size: 14px;
    color: #1d1d1f;
    text-transform: none;
    font-weight: 700;
    line-height: 1.3;
}

/* Tarjeta de Datos Bancarios */
.woocommerce-bacs-bank-details {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    border: 1px solid #eaeaea;
    margin-bottom: 28px;
}

.wc-bacs-bank-details-heading {
    font-size: 18px !important;
    color: var(--apple-accent, #6e007e) !important;
    margin-bottom: 12px !important;
    font-weight: 700;
}

.woocommerce-bacs-bank-details h3 {
    font-size: 14px;
    color: #1d1d1f;
    margin-bottom: 16px;
    font-weight: 600;
}

.woocommerce-bacs-bank-details .wc-bacs-bank-details-account-name {
    margin-bottom: 12px;
}

.woocommerce-bacs-bank-details ul.wc-bacs-bank-details {
    display: flex !important;
    flex-wrap: wrap;
    gap: 20px;
    background: #fafafa;
    padding: 16px 20px !important;
    border-radius: 10px;
    border: 1px solid #f0f0f2;
    list-style: none !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.woocommerce-bacs-bank-details ul.wc-bacs-bank-details li {
    border: none !important;
    padding: 0 !important;
    margin: 0 20px 0 0 !important;
    font-size: 11px;
    color: #86868b;
    text-transform: uppercase;
}

.woocommerce-bacs-bank-details ul.wc-bacs-bank-details li strong {
    display: block;
    font-size: 14px;
    color: #1d1d1f;
    text-transform: none;
    font-weight: 700;
    margin-top: 4px;
}

/* Tabla de Detalles del Pedido */
.woocommerce-table--order-details {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    border: 1px solid #eaeaea !important;
    margin-bottom: 28px !important;
}

.woocommerce-table--order-details th,
.woocommerce-table--order-details td {
    padding: 14px 20px !important;
    border-bottom: 1px solid #f2f2f5 !important;
    font-size: 14px;
}

.woocommerce-table--order-details thead th {
    background-color: #fafafa;
    color: #1d1d1f;
    font-weight: 700;
}

.woocommerce-table--order-details tfoot th {
    font-weight: 600;
    color: #6e6e73;
}

.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-table--order-details tfoot tr:last-child td {
    font-weight: 700;
    font-size: 16px;
    color: var(--apple-accent, #6e007e);
    border-bottom: none !important;
}

/* Botones dentro del detalle (Ej. Factura) */
.woocommerce-table--order-details .button,
.woocommerce-order-details .button {
    background-color: var(--apple-accent, #6e007e) !important;
    color: #ffffff !important;
    padding: 8px 20px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    text-decoration: none;
    font-size: 13px !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.woocommerce-table--order-details .button:hover,
.woocommerce-order-details .button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Sección de Direcciones de Facturación y Envío */
.woocommerce-customer-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.woocommerce-column--billing-address,
.woocommerce-column--shipping-address {
    background: #ffffff;
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    border: 1px solid #eaeaea;
}

.woocommerce-column__title {
    font-size: 16px !important;
    color: #1d1d1f;
    margin-bottom: 12px !important;
    font-weight: 700;
}

address {
    font-style: normal;
    line-height: 1.6;
    color: #6e6e73;
    font-size: 13px;
}
/* ==========================================================================
   PÁGINA MI CUENTA (DASHBOARD WOOCOMMERCE)
   ========================================================================== */

/* Contenedor principal de la cuenta */
.woocommerce-account .woocommerce {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
}

/* --------------------------------------------------------------------------
   1. NAVEGACIÓN LATERAL (MENÚ DE PESTAÑAS)
   -------------------------------------------------------------------------- */
.woocommerce-MyAccount-navigation {
    flex: 0 0 260px;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f2;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.woocommerce-MyAccount-navigation ul li {
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--apple-text-secondary, #6e6e73);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.25s ease;
}

/* Efecto Hover en el menú */
.woocommerce-MyAccount-navigation ul li a:hover {
    background-color: #f8f3f9;
    color: var(--apple-accent, #6e007e);
    transform: translateX(3px);
}

/* Estado Activo en el menú */
.woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: var(--apple-accent, #6e007e);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(110, 0, 126, 0.25);
}

/* Iconos dinámicos usando códigos Unicode seguros */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--dashboard a::before { content: "\1F3E0"; margin-right: 10px; font-size: 15px; }
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--orders a::before { content: "\1F4E6"; margin-right: 10px; font-size: 15px; }
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--downloads a::before { content: "\1F4E5"; margin-right: 10px; font-size: 15px; }
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-address a::before { content: "\1F4CD"; margin-right: 10px; font-size: 15px; }
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-account a::before { content: "\1F464"; margin-right: 10px; font-size: 15px; }
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a::before { content: "\1F6AA"; margin-right: 10px; font-size: 15px; }

/* --------------------------------------------------------------------------
   2. CONTENIDO PRINCIPAL (DASHBOARD CONTENT)
   -------------------------------------------------------------------------- */
.woocommerce-MyAccount-content {
    flex: 1;
    min-width: 300px;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f2;
}

/* Mensaje de bienvenida */
.woocommerce-MyAccount-content p {
    font-size: 15px;
    color: var(--apple-text-main, #1d1d1f);
    line-height: 1.6;
    margin-bottom: 20px;
}

.woocommerce-MyAccount-content p a {
    color: var(--apple-accent, #6e007e);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.woocommerce-MyAccount-content p a:hover {
    border-bottom-color: var(--apple-accent, #6e007e);
}

/* Tablas dentro de Mi Cuenta (Ej. Pedidos) */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f2 !important;
    margin-top: 15px;
}

.woocommerce-orders-table th,
.woocommerce-orders-table td {
    padding: 14px 18px !important;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f2 !important;
}

.woocommerce-orders-table th {
    background-color: #fafafa;
    color: var(--apple-text-main, #1d1d1f);
    font-weight: 700;
}

/* Botones dentro de Mi Cuenta (Ver pedido, Guardar cambios, etc.) */
.woocommerce-MyAccount-content .button,
.woocommerce-orders-table__cell-order-actions .button {
    background-color: var(--apple-accent, #6e007e) !important;
    color: #ffffff !important;
    padding: 8px 18px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.woocommerce-MyAccount-content .button:hover,
.woocommerce-orders-table__cell-order-actions .button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Formularios de edición de cuenta y direcciones */
.woocommerce-EditAccountForm fieldset,
.woocommerce-address-fields {
    border: none;
    padding: 0;
    margin-top: 20px;
}

.woocommerce-form-row input.input-text {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.woocommerce-form-row input.input-text:focus {
    outline: none;
    border-color: var(--apple-accent, #6e007e);
    box-shadow: 0 0 0 3px rgba(110, 0, 126, 0.1);
}

/* Adaptación para pantallas móviles */
@media screen and (max-width: 768px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
    }
    
    .woocommerce-MyAccount-navigation {
        width: 100%;
        flex: none;
    }

    .woocommerce-MyAccount-content {
        width: 100%;
        padding: 20px;
    }
}
/* ==========================================================================
   CENTRADOS Y ENCABEZADO DE MI CUENTA
   ========================================================================== */

/* Centrar la sección del título y subtítulo general */
.woocommerce-account .page-title,
.woocommerce-account h1,
.woocommerce-account .entry-title {
    text-align: center !important;
    font-size: 32px !important;
    color: var(--apple-text-main, #1d1d1f);
    font-weight: 700;
    margin-top: 10px !important;
    margin-bottom: 6px !important;
}

/* Centrar el texto 'Nos agrada que seas parte de nosotros' */
.woocommerce-account p:has(+ .woocommerce) {
    text-align: center !important;
    color: var(--apple-text-secondary, #6e6e73);
    font-size: 15px !important;
    margin-bottom: 30px !important;
}

/* Estilizar y centrar el saludo interno del panel */
.woocommerce-MyAccount-content p:first-child {
    background-color: #f8f3f9;
    border: 1px solid rgba(110, 0, 126, 0.12);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center !important;
    font-size: 15px;
    color: var(--apple-text-main, #1d1d1f);
    margin-bottom: 24px;
}

/* Centrar texto explicativo de las opciones del escritorio */
.woocommerce-MyAccount-content p:nth-child(2) {
    text-align: center !important;
    color: var(--apple-text-secondary, #6e6e73);
    line-height: 1.7;
}
/* ==========================================================================
   FORMULARIO DE ACCESO CON REGISTRO DESPLEGABLE (ESTILO APPLE)
   ========================================================================== */

/* Contenedor general en columna centrada */
.woocommerce-account #customer_login {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    max-width: 420px !important;
    margin: 20px auto 50px auto !important;
    float: none !important;
}

/* Ocultar el t?tulo 'Acceder' externo */
.woocommerce-account #customer_login > h2 {
    display: none !important;
}

/* Estructura de las columnas */
.woocommerce-account #customer_login .u-column1,
.woocommerce-account #customer_login .u-column2,
.woocommerce-account #customer_login .col-1,
.woocommerce-account #customer_login .col-2 {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ocultar la columna de registro por defecto */
.woocommerce-account #customer_login .u-column2,
.woocommerce-account #customer_login .col-2 {
    display: none !important;
    margin-top: 25px !important;
    opacity: 0;
    transition: opacity 0.3s ease-in-out !important;
}

/* Mostrar registro cuando se active el bot?n */
.woocommerce-account #customer_login .u-column2.suzata-visible,
.woocommerce-account #customer_login .col-2.suzata-visible {
    display: block !important;
    opacity: 1 !important;
}

/* Tarjeta contenedora de estilo Apple */
.woocommerce-form-login,
.woocommerce-form-register {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 34px 28px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #f0f0f2 !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* T?tulos dentro de las tarjetas */
.woocommerce-form-login h2,
.woocommerce-form-register h2,
.woocommerce-account .u-column1 h2,

.woocommerce-account .u-column2 h2 {
    display: block !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--apple-text-main, #1d1d1f) !important;
    text-align: center !important;
    margin-bottom: 22px !important;
}

/* Campos de entrada */
.woocommerce-form-login .form-row,
.woocommerce-form-register .form-row {
    margin-bottom: 14px !important;
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
}

.woocommerce-form-login label,
.woocommerce-form-register label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--apple-text-secondary, #6e6e73) !important;
    margin-bottom: 6px !important;
    display: block !important;
}

.woocommerce-form-login input.input-text,
.woocommerce-form-register input.input-text {
    width: 100% !important;
    height: 44px !important;
    padding: 0 14px !important;
    background-color: #f5f5f7 !important;
    border: 1px solid #e5e5ea !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    color: var(--apple-text-main, #1d1d1f) !important;
    box-sizing: border-box !important;
}

.woocommerce-form-login input.input-text:focus,
.woocommerce-form-register input.input-text:focus {
    outline: none !important;
    background-color: #ffffff !important;
    border-color: var(--apple-accent, #6e007e) !important;
    box-shadow: 0 0 0 3px rgba(110, 0, 126, 0.12) !important;
}

/* Casilla Recu?rdame */
.woocommerce-form-login .woocommerce-form-login__rememberme {
    display: flex !important;
    align-items: center !important;
    font-size: 13px !important;
    color: var(--apple-text-secondary, #6e6e73) !important;
    margin-top: 8px !important;
    margin-bottom: 14px !important;
    cursor: pointer !important;
}

.woocommerce-form-login__rememberme input[type="checkbox"] {
    accent-color: var(--apple-accent, #6e007e) !important;
    margin-right: 8px !important;
    width: 16px !important;
    height: 16px !important;
}

/* Botones principales de env?o */
.woocommerce-form-login .button,
.woocommerce-form-register .button,
.woocommerce-form-login button[type="submit"],
.woocommerce-form-register button[type="submit"] {
    display: block !important;
    width: 100% !important;
    height: 46px !important;
    line-height: 46px !important;
    padding: 0 !important;
    background-color: var(--apple-accent, #6e007e) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 23px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
}

.woocommerce-form-login .button:hover,
.woocommerce-form-register .button:hover {
    opacity: 0.92 !important;
    transform: translateY(-1px) !important;
}

/* Enlace Olvidaste Contrase?a */
.woocommerce-LostPassword {
    text-align: center !important;
    margin-top: 14px !important;
    margin-bottom: 0 !important;
}

.woocommerce-LostPassword a {
    color: var(--apple-accent, #6e007e) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* Secciones del bot?n 'Crear una cuenta' */
.suzata-toggle-register-wrapper {
    text-align: center !important;
    margin-top: 20px !important;
    padding-top: 16px !important;
    border-top: 1px solid #f0f0f2 !important;
}

.suzata-toggle-text {
    font-size: 13px !important;
    color: #86868b !important;
    margin-bottom: 10px !important;
}

.suzata-btn-secondary {
    width: 100% !important;
    height: 42px !important;
    background-color: #f5f5f7 !important;
    color: #1d1d1f !important;
    border: 1px solid #e5e5ea !important;
    border-radius: 21px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

.suzata-btn-secondary:hover {
    background-color: #e8e8ed !important;
}
/* ==========================================================================
   OCULTAR 'ACCEDER' Y REDUCIR ESPACIO SUPERIOR
   ========================================================================== */

/* 1. Ocultar el título 'Acceder' en todas sus variantes */
.woocommerce-account #customer_login h2,
.woocommerce-account .u-column1 h2,
.woocommerce-account .u-column2 h2,

.woocommerce-account h2 {
    display: none !important;
}

/* 2. Reducir el margen superior del contenedor principal */
.woocommerce-account #customer_login,
.woocommerce-account .u-columns {
    margin-top: 10px !important;
    margin-bottom: 40px !important;
    padding-top: 0 !important;
}

/* 3. Reducir el margen inferior del subtítulo/encabezado 'Mi Cuenta' */
.woocommerce-account .entry-header,
.woocommerce-account .page-header {
    margin-bottom: 10px !important;
    padding-bottom: 0 !important;
}

.woocommerce-account .page-title,
.woocommerce-account h1.entry-title {
    margin-bottom: 5px !important;
}

/* 4. Asegurar que la tarjeta quede centrada y sin márgenes extra */
.woocommerce-form-login {
    margin-top: 0 !important;
}
/* ==========================================================================
   REDUCCI?N DE ESPACIOS EN LA P?GINA "MI CUENTA" (ESPECIAL PARA M?VIL)
   ========================================================================== */

/* 1. Reducir m?rgenes e interlineado del encabezado principal */
.woocommerce-account .entry-header,
.woocommerce-account .page-header,
.woocommerce-account header.entry-header {
    margin-bottom: 10px !important;
    padding-bottom: 0 !important;
}

.woocommerce-account h1.entry-title,
.woocommerce-account .page-title {
    margin-top: 10px !important;
    margin-bottom: 5px !important;
    font-size: 26px !important;
}

/* Reducir espacio del subt?tulo (Nos agrada que seas parte de nosotros) */
.woocommerce-account .entry-content > p:first-child,
.woocommerce-account p.subtitle {
    margin-top: 0 !important;
    margin-bottom: 15px !important;
}

/* 2. Ajuste del contenedor principal del formulario */
.woocommerce-account .woocommerce,
.woocommerce-account #customer_login {
    margin-top: 5px !important;
    padding-top: 0 !important;
}

/* 3. Ajustes espec?ficos para pantallas peque?as (M?viles) */
@media (max-width: 768px) {
    /* Pegar m?s arriba el t?tulo Mi Cuenta */
    .woocommerce-account .entry-header,
    .woocommerce-account .page-header {
        margin-top: 10px !important;
        margin-bottom: 5px !important;
    }

    /* Reducir espacio superior de la tarjeta blanca */
    .woocommerce-account #customer_login {
        margin-top: 5px !important;
        margin-bottom: 30px !important;
    }

    /* Padding interno de la tarjeta en celular para ganar espacio */
    .woocommerce-form-login,
    .woocommerce-form-register {
        padding: 24px 20px !important;
    }
}
/* ==========================================================================
   ACTUALIZACIÓN — LOS MÁS VENDIDOS, CTA "IR A LA TIENDA",
   ENLACES DE BANNERS, ANIMACIONES ESTILO APPLE Y BOTÓN "VOLVER ARRIBA"
   ========================================================================== */

/* ---------- Los Más Vendidos: reutiliza .apple-related-products,
   solo agregamos zoom en la imagen del producto al pasar el mouse ---------- */
.apple-related-products ul.products li.product {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.apple-related-products ul.products li.product:hover {
    transform: translateY(-6px);
    box-shadow: var(--apple-shadow-hover);
}

.apple-related-products ul.products li.product img {
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.apple-related-products ul.products li.product:hover img {
    transform: scale(1.08);
}

/* ---------- Botón "Ir a la Tienda" (súper animado y llamativo) ---------- */
.apple-shop-cta-wrap {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.apple-shop-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--apple-accent), #8a1e99, var(--apple-accent));
    background-size: 200% 200%;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(53, 14, 59, 0.35);
    animation: apple-cta-gradient 4s ease infinite, apple-cta-pulse 2.4s ease-in-out infinite;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.3s ease;
}

.apple-shop-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    animation: apple-cta-shine 2.8s ease-in-out infinite;
}

.apple-shop-cta__arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.apple-shop-cta:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 16px 40px rgba(53, 14, 59, 0.45);
}

.apple-shop-cta:hover .apple-shop-cta__arrow {
    transform: translateX(5px);
}

.apple-shop-cta:active {
    transform: translateY(-1px) scale(0.99);
}

@keyframes apple-cta-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes apple-cta-pulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(53, 14, 59, 0.35), 0 0 0 0 rgba(53, 14, 59, 0.28); }
    50% { box-shadow: 0 10px 30px rgba(53, 14, 59, 0.35), 0 0 0 12px rgba(53, 14, 59, 0); }
}

@keyframes apple-cta-shine {
    0% { left: -60%; }
    100% { left: 130%; }
}

/* ---------- Banners: enlace envolvente + zoom en imagen ---------- */
.apple-banner-link {
    display: block;
}

.apple-single-banner {
    overflow: hidden;
}

.apple-zoom-hover {
    transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.apple-banner-link:hover .apple-zoom-hover {
    transform: scale(1.05);
}

/* ---------- Zoom sutil también en marcas y categorías al pasar el mouse ---------- */
.apple-brand-circle:hover .apple-brand-circle__img {
    transform: translateY(-3px) scale(1.06);
}

.apple-category-card:hover .apple-category-card__image {
    transform: translateY(-3px) scale(1.04);
}

/* ---------- Ken Burns sutil en el hero slider (movimiento tipo Apple) ---------- */
.apple-hero-slide {
    transform: scale(1);
    transition: transform 6s ease-out;
}

.apple-hero-slide.is-active {
    transform: scale(1.08);
}

/* ---------- Animación de entrada al desplazarse (estilo apple.com/iphone) ---------- */
.apple-reveal {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.9s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: opacity, transform;
}

.apple-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.apple-reveal--fade {
    transform: scale(0.97);
}

.apple-reveal--fade.is-visible {
    transform: scale(1);
}

/* Efecto cascada: las tarjetas dentro de una sección aparecen escalonadas */
.apple-reveal .products li.product,
.apple-reveal .apple-brand-circle,
.apple-reveal .apple-category-card {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.apple-reveal.is-visible .products li.product,
.apple-reveal.is-visible .apple-brand-circle,
.apple-reveal.is-visible .apple-category-card {
    opacity: 1;
    transform: translateY(0);
}

.apple-reveal.is-visible .products li.product:nth-child(1),
.apple-reveal.is-visible .apple-brand-circle:nth-child(1),
.apple-reveal.is-visible .apple-category-card:nth-child(1) { transition-delay: 0.02s; }
.apple-reveal.is-visible .products li.product:nth-child(2),
.apple-reveal.is-visible .apple-brand-circle:nth-child(2),
.apple-reveal.is-visible .apple-category-card:nth-child(2) { transition-delay: 0.08s; }
.apple-reveal.is-visible .products li.product:nth-child(3),
.apple-reveal.is-visible .apple-brand-circle:nth-child(3),
.apple-reveal.is-visible .apple-category-card:nth-child(3) { transition-delay: 0.14s; }
.apple-reveal.is-visible .products li.product:nth-child(4),
.apple-reveal.is-visible .apple-brand-circle:nth-child(4),
.apple-reveal.is-visible .apple-category-card:nth-child(4) { transition-delay: 0.20s; }
.apple-reveal.is-visible .products li.product:nth-child(5),
.apple-reveal.is-visible .apple-brand-circle:nth-child(5),
.apple-reveal.is-visible .apple-category-card:nth-child(5) { transition-delay: 0.26s; }
.apple-reveal.is-visible .products li.product:nth-child(6),
.apple-reveal.is-visible .apple-brand-circle:nth-child(6),
.apple-reveal.is-visible .apple-category-card:nth-child(6) { transition-delay: 0.32s; }
.apple-reveal.is-visible .products li.product:nth-child(7),
.apple-reveal.is-visible .apple-brand-circle:nth-child(7),
.apple-reveal.is-visible .apple-category-card:nth-child(7) { transition-delay: 0.38s; }
.apple-reveal.is-visible .products li.product:nth-child(8),
.apple-reveal.is-visible .apple-brand-circle:nth-child(8),
.apple-reveal.is-visible .apple-category-card:nth-child(8) { transition-delay: 0.44s; }

/* Respeta a usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .apple-reveal,
    .apple-reveal .products li.product,
    .apple-reveal .apple-brand-circle,
    .apple-reveal .apple-category-card,
    .apple-hero-slide,
    .apple-zoom-hover,
    .apple-shop-cta {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ---------- Botón flotante "Volver arriba" ---------- */
.apple-back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--apple-accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(53, 14, 59, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
    z-index: 999;
}

.apple-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.apple-back-to-top:hover {
    background: #4a1552;
    transform: translateY(-3px);
}

/* ---------- Responsivo: sección Más Vendidos, CTA y botón flotante en móvil ---------- */
@media screen and (max-width: 768px) {
    .apple-shop-cta {
        width: 100%;
        justify-content: center;
        padding: 15px 24px;
        font-size: 15px;
    }

    .apple-shop-cta-wrap {
        margin-top: 28px;
        padding: 0 4px;
    }

    .apple-back-to-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }

    .apple-reveal {
        transform: translateY(28px);
    }
}
/* ==========================================================================
   FOOTER MEJORADO (MARCA + QUICK LINKS + CONTACTO + REDES)
   ========================================================================== */

.suzata-footer {
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.08);
    margin-top: 60px;
    color: var(--apple-text-secondary);
    font-size: 0.9rem;
}

.suzata-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 20px 30px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 40px;
}

.suzata-footer-title {
    color: var(--apple-text-main);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 16px;
}

/* Columna marca */
.suzata-footer-logo {
    height: 32px;
    width: auto;
    margin-bottom: 14px;
}

/* Limitar tamaño del logo en el footer en todas las páginas */
.footer-logo,
.site-footer img,
footer img {
    max-width: 180px !important;
    height: auto !important;
    display: block;
}

.suzata-footer-desc {
    line-height: 1.5;
    margin: 0 0 18px;
    max-width: 320px;
}

.suzata-footer-social {
    display: flex;
    gap: 10px;
}

.suzata-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--apple-bg);
    color: var(--apple-text-main);
    transition: var(--apple-transition);
}

.suzata-footer-social a:hover {
    background: var(--apple-accent);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Quick Links */
.suzata-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.suzata-footer-menu a {
    color: var(--apple-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.suzata-footer-menu a:hover {
    color: var(--apple-accent);
}

/* Contacto */
.suzata-footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suzata-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.suzata-footer-contact svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--apple-accent);
}

.suzata-footer-contact a {
    color: var(--apple-text-secondary);
    text-decoration: none;
}

.suzata-footer-contact a:hover {
    color: var(--apple-accent);
}

/* Barra inferior */
.suzata-footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.06);
    text-align: center;
    padding: 18px 20px;
    font-size: 0.8rem;
}

.suzata-footer-bottom p {
    margin: 4px 0;
}

.suzata-footer-legal a {
    color: inherit;
    text-decoration: none;
    margin: 0 4px;
}

.suzata-footer-legal a:hover {
    color: var(--apple-accent);
}

/* Responsive */
@media (max-width: 768px) {
    .suzata-footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 20px 24px;
        text-align: left;
    }
}
/* ==========================================================================
   VENTANA FLOTANTE "PRODUCTO AÑADIDO AL CARRITO" (single-product.php)
   ========================================================================== */

.apple-cart-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 340px;
    max-width: calc(100vw - 40px);
    background: #ffffff;
    border-radius: var(--apple-radius, 18px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
    padding: 20px 20px 18px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: var(--apple-transition, all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1));
}

.apple-cart-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.apple-cart-toast-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: var(--apple-text-secondary);
    cursor: pointer;
    padding: 6px;
}

.apple-cart-toast-body {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.apple-cart-toast-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(48, 209, 88, 0.12);
    color: var(--accent-green, #30d158);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.apple-cart-toast-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.apple-cart-toast-thumb {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--apple-bg);
}

.apple-cart-toast-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.apple-cart-toast-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.apple-cart-toast-text strong {
    font-size: 0.9rem;
    color: var(--apple-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.apple-cart-toast-text span {
    font-size: 0.8rem;
    color: var(--apple-text-secondary);
}

.apple-cart-toast-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.apple-cart-toast-btn {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--apple-transition, all 0.2s ease);
}

.apple-cart-toast-btn-secondary {
    background: var(--apple-bg);
    color: var(--apple-text-main);
}

.apple-cart-toast-btn-secondary:hover {
    background: #e8e8ed;
}

.apple-cart-toast-btn-primary {
    background: var(--apple-accent, #350e3b);
    color: #ffffff;
}

.apple-cart-toast-btn-primary:hover {
    opacity: 0.9;
}

@media (max-width: 480px) {
    .apple-cart-toast {
        left: 20px;
        right: 20px;
        width: auto;
        bottom: 16px;
    }
}

/* Estado de carga del botón "Añadir al carrito" */
.single_add_to_cart_button.apple-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}
/* ==========================================================================
   PÁGINAS LEGALES Y DE POLÍTICAS (ESTILO APPLE - AISLADO)
   ========================================================================== */

/* Se excluyen explícitamente las páginas de WooCommerce para evitar conflictos */
body:not(.woocommerce-cart):not(.woocommerce-checkout) .apple-legal-page {
    max-width: 1000px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

body:not(.woocommerce-cart):not(.woocommerce-checkout) .apple-legal-card {
    background-color: var(--apple-card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--apple-radius);
    padding: 48px 56px;
    box-shadow: var(--apple-shadow);
}

body:not(.woocommerce-cart):not(.woocommerce-checkout) .apple-legal-card h1 {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--apple-text-main);
    margin-top: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

body:not(.woocommerce-cart):not(.woocommerce-checkout) .apple-legal-card h2 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--apple-text-main);
    margin-top: 36px;
    margin-bottom: 12px;
}

body:not(.woocommerce-cart):not(.woocommerce-checkout) .apple-legal-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--apple-text-main);
    margin-top: 24px;
    margin-bottom: 8px;
}

body:not(.woocommerce-cart):not(.woocommerce-checkout) .apple-legal-card p,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .apple-legal-card li {
    font-size: 15px;
    line-height: 1.65;
    color: var(--apple-text-secondary);
    margin-bottom: 16px;
}

body:not(.woocommerce-cart):not(.woocommerce-checkout) .apple-legal-card ul,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .apple-legal-card ol {
    margin-top: 0;
    margin-bottom: 20px;
    padding-left: 24px;
}

body:not(.woocommerce-cart):not(.woocommerce-checkout) .apple-legal-card li {
    margin-bottom: 8px;
}

body:not(.woocommerce-cart):not(.woocommerce-checkout) .apple-legal-card a {
    color: var(--apple-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

body:not(.woocommerce-cart):not(.woocommerce-checkout) .apple-legal-card a:hover {
    opacity: 0.8;
}

body:not(.woocommerce-cart):not(.woocommerce-checkout) .apple-legal-card blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    background-color: var(--apple-bg);
    border-left: 4px solid var(--apple-accent);
    border-radius: 8px;
    font-style: normal;
}

body:not(.woocommerce-cart):not(.woocommerce-checkout) .apple-legal-card blockquote p {
    margin: 0;
    color: var(--apple-text-main);
}

/* Adaptación para pantallas móviles */
@media screen and (max-width: 768px) {
    body:not(.woocommerce-cart):not(.woocommerce-checkout) .apple-legal-page {
        margin: 20px auto 40px;
        padding: 0 12px;
    }

    body:not(.woocommerce-cart):not(.woocommerce-checkout) .apple-legal-card {
        padding: 24px 20px;
        border-radius: 14px;
    }

    body:not(.woocommerce-cart):not(.woocommerce-checkout) .apple-legal-card h1 {
        font-size: 26px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    body:not(.woocommerce-cart):not(.woocommerce-checkout) .apple-legal-card h2 {
        font-size: 18px;
        margin-top: 24px;
    }

    body:not(.woocommerce-cart):not(.woocommerce-checkout) .apple-legal-card p,
    body:not(.woocommerce-cart):not(.woocommerce-checkout) .apple-legal-card li {
        font-size: 14px;
        line-height: 1.55;
    }
}
/* ==========================================================================
   OCULTAR TÍTULOS PREDETERMINADOS EN TODO EL SITIO
   ========================================================================== */

h1.entry-title,
.entry-title,
header.entry-header,
header.page-header,
.page-title,
.page-title-wrapper {
    display: none !important;
}
/* ==========================================================================
   ESTILOS CONTACTO APPLE GLASSMORPHISM (FORZADO HORIZONTAL)
   ========================================================================== */

.suzata-contact-container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px 10px !important;
    box-sizing: border-box !important;
}

/* Grilla de Canales Horizontal */
.suzata-channels-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 24px !important;
    margin-bottom: 48px !important;
    width: 100% !important;
}

/* Tarjeta Glassmorphic Apple */
.contact-card {
    flex: 1 1 280px !important;
    max-width: 360px !important;
    min-width: 260px !important;
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 24px !important;
    padding: 32px 24px !important;
    text-align: center !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04), 
                inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

.contact-card:hover {
    transform: translateY(-6px) scale(1.02) !important;
    background: rgba(255, 255, 255, 0.65) !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08), 
                inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

/* íconos con resplandor suave */
.contact-card-icon {
    width: 60px !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 20px !important;
    color: #000000 !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04) !important;
}

.contact-card h3 {
    font-size: 20px !important;
    font-weight: 600 !important;
    margin: 0 0 10px 0 !important;
    color: #1d1d1f !important;
    letter-spacing: -0.02em !important;
}

.contact-card p {
    font-size: 14px !important;
    color: #86868b !important;
    line-height: 1.5 !important;
    margin: 0 0 24px 0 !important;
    font-weight: 400 !important;
}

/* Botón con estilo Apple iOS */
.whatsapp-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #25d366 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    border-radius: 980px !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3) !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    max-width: 220px !important;
    box-sizing: border-box !important;
}

.whatsapp-btn:hover {
    transform: scale(1.03) !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45) !important;
    opacity: 0.95 !important;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .suzata-channels-grid {
        flex-direction: column !important;
        align-items: center !important;
    }
    .contact-card {
        width: 100% !important;
        max-width: 100% !important;
    }
}
/* ==========================================================================
   BOTÓN DE GOOGLE Y SEPARADOR (SUZATA STORE)
   ========================================================================== */

/* Separador 'o' */
.suzata-login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #86868b;
    font-size: 13px;
    margin: 16px 0 12px 0;
}

.suzata-login-divider::before,
.suzata-login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e5ea;
}

.suzata-login-divider span {
    padding: 0 10px;
}

/* Contenedor principal de Nextend */
div.nsl-container[data-align="left"],
div.nsl-container {
    margin: 0 auto 12px auto !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Botón de Google */
.nsl-container .nsl-button-google {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 48px !important;
    border-radius: 24px !important;
    background-color: #ffffff !important;
    border: 1px solid #d2d2d7 !important;
    color: #1d1d1f !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.nsl-container .nsl-button-google:hover {
    background-color: #f5f5f7 !important;
    border-color: #86868b !important;
}

/* Ajuste del icono de Google */
.nsl-container .nsl-button-google .nsl-icon {
    margin-right: 10px !important;
}
/* ==========================================================================
   MENÚ "MI CUENTA" (usuario logueado) — header.php
   ========================================================================== */

.user-account-dropdown-wrapper,
.mobile-account-dropdown-wrapper {
    position: relative;
}

.user-account-trigger {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
    font-family: inherit;
}

.user-account-dropdown {
    right: 0;
    left: auto;
}

/* Botón de cuenta en móvil (reutiliza el look de .mobile-account-link) */
.mobile-account-dropdown-wrapper .mobile-account-link {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.mobile-account-dropdown {
    right: 0;
    left: auto;
    width: 200px;
}

/* ==========================================================================
   GALERÍA DE PRODUCTO — construida a mano (sin depender del slider nativo
   de WooCommerce, que peleaba con el CSS al meter estilos por JavaScript)
   ========================================================================== */

.apple-product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0; /* permite que la galería se achique dentro del grid en vez de empujarlo */
    max-width: 100%;
}

.apple-gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border: 1px solid var(--border-color, #e5e5e7);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apple-gallery-main img {
    max-width: 88%;
    max-height: 88%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.apple-gallery-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--apple-accent, #350e3b);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 980px;
    z-index: 2;
}

.apple-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(29, 29, 31, 0.55);
    backdrop-filter: blur(4px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: var(--apple-transition, all 0.2s ease);
    z-index: 3;
}

.apple-gallery-nav:hover {
    background: rgba(29, 29, 31, 0.8);
}

.apple-gallery-prev {
    left: 12px;
}

.apple-gallery-next {
    right: 12px;
}

/* Mini carrusel de miniaturas: SIEMPRE debajo de la imagen principal, en
   fila horizontal con scroll (nunca en columna lateral, para que no se
   desborde ni rompa el encuadre de la galería). */
.apple-gallery-thumbs {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    min-width: 0; /* clave: evita que el flex-item crezca al ancho de todas las miniaturas y desborde la página */
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding: 2px; /* espacio para que el borde de foco/activo no se recorte */
    scrollbar-width: thin;
}

.apple-gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.apple-gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--border-color, #e5e5e7);
    border-radius: 999px;
}

.apple-gallery-thumb {
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 6px;
    background: #ffffff;
    border: 1px solid var(--border-color, #e5e5e7);
    border-radius: 10px;
    overflow: hidden; /* evita que imágenes cuadradas (sin fondo blanco) sobresalgan de las esquinas redondeadas */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--apple-transition, all 0.2s ease);
}

.apple-gallery-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.apple-gallery-thumb:hover {
    border-color: #c9c9cf;
}

.apple-gallery-thumb.is-active {
    border-color: var(--apple-accent, #350e3b);
    box-shadow: 0 0 0 1px var(--apple-accent, #350e3b);
}

/* En escritorio: imagen principal más alta; las miniaturas siguen debajo,
   como tira horizontal de mini carrusel */
@media screen and (min-width: 769px) {
    .apple-gallery-thumb {
        width: 84px;
        height: 84px;
    }

    .apple-gallery-main {
        height: 520px;
    }
}

/* ==========================================================================
   ZOOM DE IMAGEN — lupa al pasar el mouse (escritorio) + lightbox a
   pantalla completa al hacer clic/tap (escritorio y móvil)
   ========================================================================== */

/* Contenedor principal: cursor de "lupa" e imagen que se agranda siguiendo
   el cursor mientras el mouse está encima */
.apple-gallery-main {
    cursor: zoom-in;
}

.apple-gallery-main img#apple-gallery-main-img {
    transition: transform 0.12s ease-out;
    will-change: transform;
}

.apple-gallery-main.is-hover-zoom img#apple-gallery-main-img {
    transform: scale(2);
    transition: none;
}

/* Icono de lupa, siempre visible en la esquina para indicar que se puede
   ampliar la imagen */
.apple-gallery-zoom-icon {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
    color: var(--apple-text-main, #1d1d1f);
    z-index: 3;
    pointer-events: none;
}

/* Lightbox a pantalla completa */
.apple-zoom-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
}

.apple-zoom-lightbox.is-open {
    display: flex;
}

.apple-zoom-lightbox-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: pinch-zoom;
}

.apple-zoom-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.2s ease;
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
}

.apple-zoom-lightbox-img.is-zoomed {
    cursor: zoom-out;
    transform: scale(2.2);
}

.apple-zoom-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: var(--apple-transition, all 0.2s ease);
}

.apple-zoom-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.apple-zoom-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: var(--apple-transition, all 0.2s ease);
}

.apple-zoom-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.22);
}

.apple-zoom-lightbox-prev {
    left: 16px;
}

.apple-zoom-lightbox-next {
    right: 16px;
}

.apple-zoom-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

/* En touch/móvil no tiene sentido el efecto lupa al mover el mouse: se
   desactiva y se deja solo el tap para abrir el lightbox */
@media (hover: none) {
    .apple-gallery-main.is-hover-zoom img#apple-gallery-main-img {
        transform: none;
    }
}

@media screen and (max-width: 768px) {
    .apple-zoom-lightbox-nav {
        width: 40px;
        height: 40px;
    }
}


/* ==========================================================================
   PRECIO ACTUAL + BADGE DE DESCUENTO + PRECIO ANTERIOR TACHADO
   ========================================================================== */
.apple-product-price-block {
    margin-bottom: 14px;
}

.apple-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.apple-price-current {
    font-size: 30px;
    font-weight: 700;
    color: var(--apple-text-main);
    line-height: 1.1;
}

.apple-price-current .woocommerce-Price-amount {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.apple-price-badge {
    background-color: #e53950;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    line-height: 1;
}

.apple-price-original {
    margin-top: 6px;
    font-size: 15px;
    color: var(--apple-text-secondary);
    text-decoration: line-through;
    opacity: 0.8;
}

/* ==========================================================================
   FILA DE COMPRA: cantidad + botón "Agregar al Carro" + favoritos
   ========================================================================== */
.apple-add-to-cart-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.apple-add-to-cart-wrapper form.cart {
    flex: 1;
    min-width: 0;
}

.apple-wishlist-btn {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border-color, #e5e5e7);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--apple-text-main);
    cursor: pointer;
    transition: var(--apple-transition, all 0.2s ease);
}

.apple-wishlist-btn:hover {
    border-color: var(--apple-accent, #350e3b);
    color: var(--apple-accent, #350e3b);
}

/* ==========================================================================
   SELECTOR DE VARIACIONES (Vol10 / Vol20 / Vol30): contenedor gris suave
   con botones tipo swatch. El <select> nativo de WooCommerce se oculta
   visualmente pero permanece en el DOM para no romper el formulario.
   ========================================================================== */
.apple-product-details table.variations {
    background-color: #fafafa;
    border-radius: 14px;
    padding: 12px 14px;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.apple-product-details table.variations tbody,
.apple-product-details table.variations tr,
.apple-product-details table.variations td {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
}

/* La etiqueta del atributo (p. ej. "Volumen") no aparece en el diseño de
   referencia: se oculta para no dejar una celda vacía ocupando espacio. */
.apple-product-details table.variations th {
    display: none;
}

.apple-swatch-hidden-select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.apple-variation-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.apple-swatch-btn {
    background-color: #ffffff;
    border: 1px solid var(--border-color, #e5e5e7);
    color: var(--apple-text-main);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--apple-transition, all 0.2s ease);
}

.apple-swatch-btn:hover {
    border-color: var(--apple-accent, #350e3b);
}

.apple-swatch-btn.is-active {
    background-color: var(--apple-accent, #350e3b);
    border-color: var(--apple-accent, #350e3b);
    color: #ffffff;
}

.apple-swatch-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Link "Limpiar" (reset de variantes) — chip pequeño y clicable, con estilo
   propio en vez del subrayado azul por defecto del navegador */
.apple-product-details a.reset_variations {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--apple-text-secondary, #86868b);
    background: transparent;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    margin-top: 8px;
    padding: 4px 2px;
    cursor: pointer;
    transition: var(--apple-transition, all 0.2s ease);
}

.apple-product-details a.reset_variations:hover {
    color: var(--apple-accent, #350e3b);
    opacity: 1;
}

/* ==========================================================================
   OPCIONES DE ENTREGA (stock en tienda / despacho / retiro)
   ========================================================================== */
.apple-delivery-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color, #e5e5e7);
}

.apple-delivery-item {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 14px;
    color: var(--apple-text-main);
}

.apple-delivery-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--apple-text-secondary);
}

.apple-delivery-text {
    color: var(--apple-text-main);
    text-decoration: none;
    line-height: 1.3;
}

.apple-delivery-text small {
    display: block;
    color: var(--apple-text-secondary);
    font-size: 12px;
    font-weight: 400;
}

a.apple-delivery-text {
    color: var(--apple-accent, #350e3b);
    font-weight: 500;
    text-decoration: underline;
}

a.apple-delivery-text:hover {
    opacity: 0.75;
}

@media screen and (max-width: 768px) {
    .apple-price-current {
        font-size: 24px !important;
    }
}