/* Grafs Custom CSS - Grafs Inspired Header */

/* AÃ±adir Google Font moderna (Montserrat) para dar aspecto cosmÃ©tico premium */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* ════════════════════════════════════════════════════════════════════
   FIX PARPADEO ICONOS (FOUT) — lupa, carrito, etc.
   classic/theme.css declara la fuente de iconos "Material Icons" con
   font-display:swap. Durante la carga, el navegador pinta el TEXTO de
   fallback en Arial (se ve "search" / "shopping_cart") y luego salta al
   glifo → parpadeo visible, sobre todo con latencia (túnel/producción).
   Para una fuente de ICONOS lo correcto es font-display:block: texto
   invisible durante la carga, nunca el ligature en Arial. Como este CSS
   carga DESPUÉS de theme.css (head.tpl: {$smarty.block.parent} y luego
   este link), esta redeclaración de la misma cara (Material Icons / 400 /
   normal) prevalece. Reusa la MISMA fuente auto-alojada de classic con
   ruta relativa al stylesheet → válida en local (/elaceitunero/) y en
   producción (/) por igual, sin hardcodear base. */
@font-face {
    font-family: "Material Icons";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: local("Material Icons"), local("MaterialIcons-Regular"),
         url(../../../classic/assets/css/12a47ed5fd5585f0f4227fa035a1a607.woff2) format("woff2"),
         url(../../../classic/assets/css/f2a0933406f7830651524f477ba2f543.woff) format("woff");
}

/* "Material Icons Outlined" — usada por el icono del carrito (.shopping-cart).
   Antes venía del CDN de Google → tardaba (peor por túnel/latencia) y dejaba
   el carrito invisible un instante mientras llegaba. Ahora AUTO-ALOJADA en el
   tema (mismo origen, rápida) con font-display:block. Ruta relativa al
   stylesheet → válida en local y producción. Elimina la dependencia externa
   y el render-blocking del <link> del CDN. */
@font-face {
    font-family: "Material Icons Outlined";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: local("Material Icons Outlined"), local("MaterialIconsOutlined-Regular"),
         url(../fonts/material-icons-outlined.woff2) format("woff2");
}

/* Variables para mantener los colores de El Aceitunero */
:root {
    --brand-green: #889926;
    /* Verde aceitunero */
    --brand-dark: #333333;
    --bg-light: #f7f7f7;
}

/* =========================================
   AJUSTES GLOBALES
   ========================================= */
body,
#wrapper {
    background-color: #ffffff !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* Prevenir scroll horizontal (100vw + scrollbar) */
html, body {
    overflow-x: hidden;
}

/* Espacio entre header y contenido (páginas internas) */
section#wrapper {
    padding-top: 20px !important;
}

/* Landing page (home): slider pegado al header — eliminar TODOS los espacios posibles
   NOTA: La home en esta tienda es body#category.category-id-2, NO body#index.
   Fuentes identificadas:
   - #wrapper: padding-top 1.563rem (tema clásico) + 20px (nuestra regla global)
   - #notifications (<aside>): puede tener margin aunque esté hidden
   - #header .header-nav: margin-bottom 30px (tema clásico)
   - #header .header-top: padding-bottom 1.25rem (tema clásico)
   - main: puede tener margin/padding en algunos navegadores
*/
body#category.category-id-2 #wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
body#category.category-id-2 #notifications {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}
body#category.category-id-2 #header .header-nav {
    margin-bottom: 0 !important;
}
body#category.category-id-2 #header .header-top {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
body#category.category-id-2 #header,
body#category.category-id-2 header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Gap fix nuclear: eliminar TODOS los espacios en los contenedores internos del home */
body#category.category-id-2 main {
    margin: 0 !important;
    padding: 0 !important;
}
body#category.category-id-2 #wrapper > .container,
body#category.category-id-2 section#wrapper .container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
body#category.category-id-2 #main,
body#category.category-id-2 section#main,
body#category.category-id-2 .page-home,
body#category.category-id-2 section#content,
body#category.category-id-2 .page-content {
    margin: 0 !important;
    padding: 0 !important;
}
body#category.category-id-2 .page-home > *:first-child,
body#category.category-id-2 .ea-slider-wrap,
body#category.category-id-2 .homeslider-container {
    margin-top: 0 !important;
}
/* Slider fuera del .container — quitar float y margen nativo del módulo */
body#category.category-id-2 .homeslider-container,
body#index .homeslider-container {
    float: none !important;
    margin-bottom: 0 !important;
}
/* #wrapper contiene el slider flotante — crear BFC para evitar collapse */
body#category.category-id-2 section#wrapper {
    overflow-x: hidden;
}
/* La fila de círculos va pegada al slider: mismo aire arriba que abajo */
body#category.category-id-2 .ea-cats-row {
    margin-top: 0 !important;
    padding-top: 42px !important;
}
/* Quitar sombra inset del wrapper que puede crear apariencia de separación */
body#category.category-id-2 section#wrapper {
    box-shadow: none !important;
    padding-top: 0 !important;
}
/* Ocultar breadcrumb en la landing (ocupa 24px de margen aunque sea invisible) */
body#category.category-id-2 #wrapper nav.breadcrumb,
body#category.category-id-2 .category-inline-breadcrumb {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}



/* Suprimir banner PayPal Pay Later en la home (se inyecta en displayNavFullWidth dentro del header) */
body#category.category-id-2 #header [paypal-banner-message],
body#category.category-id-2 #header .paypal-installment-banner,
body#category.category-id-2 #header .paypal-banner-container {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* El container vacío de PayPal en displayNavFullWidth */
body#category.category-id-2 #header > .container:not(.grafs-header-container):empty {
    display: none !important;
    height: 0 !important;
}
/* ====================================================================
   HEADER MÓVIL CONSISTENTE EN TODAS LAS PÁGINAS
   La landing (cat 2) ya tenía estas reglas individuales más arriba
   (líneas 52-63 y 119-129). Replicamos el mismo aspecto en categoría,
   producto, checkout, etc., sólo en móvil. Sin esto, en no-landing
   queda margen extra bajo la barra gris + un .container vacío del
   hook displayNavFullWidth (PayPal) que separa header y ticker.
   ==================================================================== */
@media (max-width: 768px) {
    #header .header-nav { margin-bottom: 0 !important; }
    #header .header-top {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    #header,
    header {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    /* PayPal banner + contenedor vacío que separan header del ticker */
    #header [paypal-banner-message],
    #header .paypal-installment-banner,
    #header .paypal-banner-container {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #header > .container:not(.grafs-header-container):empty {
        display: none !important;
        height: 0 !important;
    }
}

/* Mantener por si el body#index se usa en algún otro contexto */
body#index #wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
body#index #notifications {
    display: none !important;
}

/* En la landing, dar al left-column el mismo aire que en categorías */
body#index #left-column {
    margin-top: 8px;
}

h1,
h2,
h3,
h4,
h5,
h6,
a,
p,
span,
div,
button,
input {
    font-family: 'Montserrat', sans-serif;
}

/* Contenedor global */
.container {
    max-width: 1700px !important;
    width: 85% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Header: mismo ancho que el resto del sitio */
#header .container {
    width: 85% !important;
    max-width: 1700px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Página de producto: mismo ancho que el resto del sitio.
   Solo desktop — en móvil head.tpl aplica 92% al .container genérico. */
@media (min-width: 769px) {
    body#product #wrapper .container {
        width: 85% !important;
        max-width: 1700px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}


/* 1. Contenedor Grid Principal */
.grafs-header-container {
    display: grid;
    grid-template-areas:
        "logo search icons"
        "menu menu menu";
    grid-template-columns: 200px 1fr auto;
    /* TamaÃ±o del logo fijo, buscador ancho y auto en iconos */
    align-items: center;
    gap: 18px 20px;
    padding: 18px 0 18px 0;
}

/* 2. Logo */
.grafs-logo-wrapper {
    grid-area: logo;
}

.grafs-logo-wrapper img.logo {
    max-height: 75px;
}

/* 3. MÃ³dulos centrales (Buscador y Menu actÃºan directos en el grid) */
.grafs-top-modules {
    display: contents;
}

/* 4. Barra de bÃºsqueda (Estilo Grafs redonda) */
#search_widget {
    grid-area: search;
    width: 94% !important;
    min-width: 0;
    margin-top: -3px;
}

#search_widget form {
    position: relative;
    width: 90% !important;
    max-width: none !important;
    margin: 0 auto;
}

#search_widget form input[type="text"] {
    border-radius: 8px;
    background-color: var(--bg-light);
    border: 1px solid #e5e5e5;
    padding: 16px 45px 16px 25px;
    width: 94% !important;
    box-shadow: none;
    outline: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

#search_widget form input[type="text"]:focus {
    background-color: #fff;
    border-color: var(--brand-green);
    box-shadow: 0 0 8px rgba(59, 130, 86, 0.1);
}

#search_widget form button[type="submit"] {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 60px;
    background: transparent;
    border: none;
    border-radius: 0 8px 8px 0;
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#search_widget form button[type="submit"] i.search {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    line-height: 1;
    /* CrÃ­tico para no descuadrar */
    height: 100%;
}

/* 5. Iconos derecha (Usuario y Carrito) */
.grafs-nav-icons {
    grid-area: icons;
    display: flex;
    align-items: center;
    gap: 25px;
    /* Espacio entre los iconos */
}

/* Ajustes a los mÃ³dulos por defecto de PrestaShop */
.grafs-nav-icons .user-info,
.grafs-nav-icons .blockcart,
.grafs-nav-icons .language-selector-wrapper,
.grafs-nav-icons .currency-selector-wrapper {
    float: none;
    margin: 0;
    padding: 0;
}

.grafs-nav-icons .material-icons {
    font-size: 28px;
    color: var(--brand-dark);
    transition: color 0.2s;
}

.grafs-nav-icons a:hover .material-icons {
    color: var(--brand-green);
}

/* 6. MenÃº Principal (Estilo Grafs Centrado) */
#_desktop_top_menu {
    grid-area: menu;
    padding-top: 15px;
    margin-bottom: 0;
}

#_desktop_top_menu .top-menu {
    display: flex;
    justify-content: center;
    /* Menu centrado */
    margin: 0;
}

#_desktop_top_menu .top-menu>li>a {
    font-weight: 600;
    text-transform: uppercase;
    color: var(--brand-dark);
    padding: 15px 20px;
    letter-spacing: 0.5px;
    font-size: 14px;
    transition: color 0.2s;
}

#_desktop_top_menu .top-menu>li>a:hover {
    color: var(--brand-green);
    /* Verde al pasar el ratÃ³n */
}

/* Quitar el borde negro asqueroso del menu classic */
#_desktop_top_menu {
    border: none !important;
}

/* --- Ocultar contacto superior solo en escritorio --- */
@media (min-width: 768px) {
    .header-nav {
        display: none !important;
    }
}

/* Eliminar sombra del header (override classic) */
#header,
#header .header-nav,
#header .header-top {
    box-shadow: none !important;
    border-bottom: none !important;
}

/* Fondo gris muy claro del header (estado previo a 2026-05-16) */
#header,
#header .header-top,
#header .header-nav {
    background-color: #fafafa !important;
}

/* Buscador: input con fondo blanco para que destaque sobre el header gris */
#header #search_widget form input[type="text"],
#header #search_widget form input[type="search"] {
    background-color: #ffffff !important;
}

/* Buscador: ancho completo de su columna del grid (mismo margen a izquierda y derecha) */
#header #search_widget,
#header #search_widget form,
#header #search_widget form input[type="text"],
#header #search_widget form input[type="search"] {
    width: 100% !important;
    max-width: none !important;
}

/* Menú principal: bajar items ligeramente respecto a posición previa,
   y subir 5% desde la primera iteración */
#header ul.grafs-menu {
    padding-top: 15px !important;
    padding-bottom: 8px !important;
}

/* Reducir altura del header ~10% recortando paddings del contenedor grid
   (sin tocar tamaño del logo, buscador ni iconos) */
#header .grafs-header-container {
    padding-top: 10px !important;
    padding-bottom: 4px !important;
}

/* Header termina justo en la linea del menu - quitar padding inferior del classic */
#header .header-top {
    padding-bottom: 0 !important;
}

/* Header IGUAL en todas las páginas (como la landing): el classic mete
   margin-bottom ~30px al .header-nav en páginas internas; lo anulamos global
   para que el header termine justo en el menú igual que en la home. */
#header .header-nav { margin-bottom: 0 !important; }
#header .header-top { margin-bottom: 0 !important; }
#header { margin-bottom: 0 !important; padding-bottom: 0 !important; }

/* --- Barra promocional rotativa (ticker) — debajo del header principal --- */
.grafs-promo-bar {
    position: relative;
    background-color: #264934;
    color: #fff;
    height: 34px;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
}

/* Estado: envío gratis conseguido — verde claro (var --brand-green) para destacar */
.grafs-promo-bar--achieved {
    background-color: var(--brand-green, #6a8f2f);
}

/* Importe destacado (umbral y restante) en verde claro */
.grafs-fs-amount {
    color: #a8d44f;
    font-weight: 800;
}

.grafs-ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.grafs-ticker {
    display: inline-block;
    white-space: nowrap;
    animation: grafs-ticker-scroll 32s linear infinite;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #fff;
}

.grafs-ticker-sep {
    margin: 0 20px;
    opacity: 0.5;
}

@keyframes grafs-ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-25%); }
}

/* Marquee con un solo mensaje: sin scroll, centrado en su contenedor */
.grafs-ticker-wrap:has(.grafs-ticker-freeship--single) {
    display: flex;
    justify-content: center;
}
.grafs-ticker:has(.grafs-ticker-freeship--single) {
    animation: none;
    display: inline-block;
}
.grafs-ticker-freeship,
.grafs-ticker-freeship--single {
    display: inline-block;
    padding: 0;
    text-transform: none;
    letter-spacing: 0.2px;
}

/* Móvil: mensaje freeship single en 2 líneas (texto largo se sale en barra 34px) */
@media (max-width: 767px) {
    .grafs-promo-bar:has(.grafs-ticker-freeship--single) {
        height: auto;
        min-height: 34px;
        padding: 6px 12px;
    }
    .grafs-ticker-wrap:has(.grafs-ticker-freeship--single),
    .grafs-ticker:has(.grafs-ticker-freeship--single) {
        white-space: normal;
        overflow: visible;
    }
    .grafs-ticker-freeship--single {
        display: block;
        white-space: normal;
        line-height: 1.3;
        text-align: center;
    }
}

/* --- Iconos y Etiquetas de notificaciones --- */
.grafs-nav-icons {
    grid-area: icons;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Empuja los iconos al final de la columna derecha */
    gap: 25px;
}

.grafs-nav-icons a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grafs-nav-icons a .material-icons {
    font-size: 32px;
    /* Un poco mas grandes */
    color: var(--brand-dark);
}

/* Ocultar texto de "Iniciar sesiÃ³n" o "Carrito" antiguo por si persiste fuera del tpl */
.grafs-nav-icons .hidden-sm-down {
    display: none !important;
}

/* El numerito del carrito (Badge) */
.grafs-nav-icons .cart-products-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #e53935;
    color: white;
    font-size: 11px;
    font-weight: bold;
    height: 18px;
    min-width: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    padding: 0 4px;
}

/* =========================================
   MEGAMENÃš GRAFS STYLE (Custom HTML)
   ========================================= */

/* Ocultar el menu nativo que se inyecta en displayTop */
#_desktop_top_menu {
    display: none !important;
}

/* El grid de la cabecera necesita relative para anclar el dropdown absoluto */
.grafs-header-container {
    position: relative;
    display: grid;
    grid-template-areas:
        "logo search icons"
        "menu menu menu";
    grid-template-columns: 180px 1fr auto;
    /* Logo fijo, buscador ocupa el espacio disponible, iconos auto */
    align-items: center;
    gap: 0px 40px;
    padding: 18px 0 6px 0;
}

.grafs-logo-wrapper {
    grid-area: logo;
    display: flex;
    justify-content: flex-start;
}

.grafs-logo-wrapper img.logo {
    max-height: 75px;
}

/* 3. MÃ³dulos centrales (Buscador y Menu actÃºan directos en el grid) */
.grafs-top-modules {
    display: contents;
}

/* 4. Barra de bÃºsqueda (Estilo Grafs redonda) */
#search_widget {
    grid-area: search;
    width: 94% !important;
    min-width: 0;
}

ul.grafs-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 10px 24px 10px;
    border-top: 1px solid #e4e4e4;
    border-bottom: none;
}

li.grafs-menu-item {
    position: static;
    /* Vital para que el dropdown baje cubriendo todo el ancho */
}

a.grafs-menu-link,
.grafs-menu-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5px 20px 5px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--brand-dark);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}
/* "Despensa" es un <span> no clicable: mismo estilo que el resto, cursor normal */
.grafs-menu-link--nolink {
    cursor: default;
}

a.grafs-menu-link:hover,
.grafs-menu-link:hover,
.grafs-menu-item:hover > .grafs-menu-link,
li.has-dropdown:hover>a.grafs-menu-link {
    color: var(--brand-green) !important;
}

a.promo-link {
    color: #e53935 !important;
}

/* --- Dropdown (El panel que se abre) --- */
.grafs-megamenu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-top: 3px solid var(--brand-green);
    /* Rayita superior de la marca */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    /* Sombra elegante */
    padding: 35px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
}

li.has-dropdown:hover .grafs-megamenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Grid de columnas dentro del panel */
.grafs-megamenu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1600px;
    margin: 0 auto;
    gap: 40px;
    padding: 0 20px;
}

.grafs-menu-col .grafs-menu-title {
    font-weight: bold;
    font-size: 15px;
    text-transform: uppercase;
    color: var(--brand-dark);
    display: block;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.grafs-menu-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.grafs-menu-col ul li {
    margin-bottom: 10px;
}

.grafs-menu-col ul li a {
    color: #555;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.grafs-menu-col ul li a:hover {
    color: var(--brand-green);
    padding-left: 5px;
    /* Animacion de flechita estilo Premium */
}

/* Etiquetas dentro del menu */
.grafs-menu-col .badge {
    background: #e67e22;
    color: white;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: text-top;
    font-weight: 600;
}

.grafs-menu-col .badge.sale {
    background: #c90062;
}

/* El Megamenu pertenece a su Grid Area */
.grafs-custom-menu-wrapper {
    grid-area: menu;
    width: 100%;
    margin-top: 0;
    padding-top: 0;
    display: flex;
    justify-content: center;
}

/* =========================================
   RESPONSIVE & MÃ“VIL (Grafs Style)
   ========================================= */
@media (max-width: 767px) {

    /* ── Subheader/barra promocional: -30% altura ── */
    .grafs-promo-bar {
        height: 24px;
        font-size: 9px;
        padding: 0;
    }
    .grafs-promo-bar .material-icons { font-size: 13px !important; }

    /* ── Header nav móvil ── */
    .header-nav {
        background: #fff;
        padding: 0;
        border-bottom: 1px solid #ebebeb;
        box-shadow: 0 2px 8px rgba(0,0,0,.07);
    }

    /* Contenedor — mismo ancho que el resto de páginas en móvil */
    #header .header-nav .container {
        width: 92% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Fila única: [hamburguesa + logo] izq — iconos der. Centrado vertical */
    .header-nav .mobile {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap;
        gap: 6px;
        padding: 13px 0;
        min-height: 66px;
    }

    /* Hamburguesa — extremo izquierdo */
    #menu-icon {
        float: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: center !important;
        cursor: pointer;
        flex-shrink: 0;
        order: 1;
        width: 32px;
        height: 40px;
    }
    /* Hamburguesa CSS personalizada — 3 líneas idénticas, simétricas */
    .ea-hamburger {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: center !important;
        gap: 4px !important;
        width: 20px !important;
        height: 16px !important;
        padding: 0 !important;
        box-sizing: content-box !important;
    }
    .ea-hamburger span,
    .ea-hamburger > span:nth-child(1),
    .ea-hamburger > span:nth-child(2),
    .ea-hamburger > span:nth-child(3) {
        display: block !important;
        width: 20px !important;
        min-width: 20px !important;
        max-width: 20px !important;
        height: 2px !important;
        margin: 0 !important;
        background: var(--brand-dark) !important;
        border-radius: 2px !important;
        flex: 0 0 2px !important;
    }

    /* Logo — izquierda, junto a la hamburguesa, alineado con iconos */
    .header-nav .top-logo {
        flex: 0 0 auto;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        align-self: center !important;
        order: 2;
        margin: 0 0 0 -3% !important;
        padding: 0 !important;
        line-height: 1 !important;
    }
    .header-nav .top-logo a,
    .header-nav .top-logo .logo {
        display: flex !important;
        align-items: center !important;
        line-height: 1 !important;
    }
    .header-nav .top-logo img {
        max-height: 52px !important;
        height: 52px !important;
        width: auto !important;
        display: block !important;
        vertical-align: middle !important;
    }

    /* Iconos — extremo derecho. padding-right da espacio al badge del carrito */
    .grafs-mobile-right-icons {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 4px !important;
        flex-shrink: 0;
        order: 3;
        margin-left: auto;
        padding-right: 10px;
    }

    /* Botón de búsqueda (nuevo) */
    .grafs-mobile-search-btn {
        background: transparent;
        border: none;
        cursor: pointer;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0;
        width: 40px;
        height: 40px;
        color: var(--brand-dark);
        flex-shrink: 0;
    }
    .grafs-mobile-search-btn .material-icons {
        font-size: 30px;
        color: var(--brand-dark);
        line-height: 1 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: auto !important;
    }

    .grafs-mobile-right-icons a {
        position: relative;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .grafs-mobile-right-icons .material-icons {
        font-size: 26px;
        color: var(--brand-dark);
    }

    /* display:contents en toda la cadena PS del carrito */
    .grafs-mobile-right-icons #_mobile_user_info,
    .grafs-mobile-right-icons #_mobile_user_info .user-info,
    .grafs-mobile-right-icons #_mobile_cart,
    .grafs-mobile-right-icons #_mobile_cart #_desktop_cart,
    .grafs-mobile-right-icons #_mobile_cart .blockcart,
    .grafs-mobile-right-icons #_mobile_cart .header {
        display: contents !important;
    }

    /* Icono del carrito */
    .grafs-mobile-right-icons #_mobile_cart a {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        color: var(--brand-dark) !important;
        text-decoration: none;
    }
    .grafs-mobile-right-icons #_mobile_cart .shopping-cart {
        font-family: 'Material Icons Outlined', 'Material Icons' !important;
        font-size: 30px !important;
        color: var(--brand-dark) !important;
        line-height: 1 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: auto !important;
    }

    /* Badge del carrito — círculo moderno */
    .grafs-mobile-right-icons .cart-products-count {
        position: absolute;
        top: 2px;
        right: 2px;
        background-color: var(--brand-green);
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        height: 17px;
        min-width: 17px;
        line-height: 17px;
        text-align: center;
        border-radius: 50%;
        padding: 0 3px;
    }

    /* Ocultar bloque desktop */
    .grafs-logo-wrapper,
    .grafs-nav-icons,
    .grafs-custom-menu-wrapper { display: none !important; }

    /* ── Barra de búsqueda fija: oculta — se accede por icono lupa ── */
    .grafs-mobile-search { display: none !important; }

    /* ── Overlay de búsqueda ── */
    .header-nav { position: relative; overflow: visible; }

    .grafs-search-overlay {
        position: absolute;
        inset: 0;
        background: #fff;
        display: flex;
        align-items: center;
        padding: 0 12px;
        gap: 10px;
        z-index: 200;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease;
    }
    .header-nav.search-open .grafs-search-overlay {
        opacity: 1;
        pointer-events: all;
    }
    .grafs-search-overlay form {
        flex: 1;
        display: flex;
        align-items: center;
        background: #f7f7f7;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        overflow: hidden;
        height: 38px;
    }
    .grafs-search-overlay input[type="text"] {
        flex: 1;
        border: none;
        background: transparent;
        padding: 0 8px 0 14px;
        font-size: 15px;
        outline: none;
        height: 100%;
    }
    .grafs-search-overlay form button[type="submit"] {
        background: transparent;
        border: none;
        padding: 0 10px;
        cursor: pointer;
        display: flex;
        align-items: center;
        color: var(--brand-dark);
        height: 100%;
    }
    .grafs-search-close {
        background: transparent;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        padding: 4px;
        color: #888;
        flex-shrink: 0;
    }
    .grafs-search-close .material-icons { font-size: 24px; }

    /* ══════════════════════════════════════════
       DRAWER / PANEL MENÚ HAMBURGUESA
       ══════════════════════════════════════════ */

    /* Panel fijo que desliza desde la izquierda, BAJO el header-nav */
    #mobile_top_menu_wrapper {
        position: fixed !important;
        top: var(--ea-header-h, 56px);
        left: 0;
        width: 100% !important;
        max-width: 100% !important;
        height: calc(100vh - var(--ea-header-h, 56px));
        overflow-y: auto;
        overflow-x: hidden;
        background: #fff;
        z-index: 1060;
        box-shadow: 4px 0 24px rgba(0,0,0,0.18);
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        padding: 0 !important;
        margin: 0 !important;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    }
    #mobile_top_menu_wrapper.ea-menu-open {
        transform: translateX(0);
    }

    /* Bloquear scroll del body cuando el menú está abierto */
    body.ea-menu-active { overflow: hidden; }

    /* Backdrop semitransparente, también bajo el header */
    #ea-menu-backdrop {
        position: fixed;
        top: var(--ea-header-h, 56px);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.48);
        z-index: 1050;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
    }
    body.ea-menu-active #ea-menu-backdrop {
        opacity: 1;
        pointer-events: all;
    }

    /* ── Cabecera del panel ── */
    .ea-menu-panel-header {
        display: flex;
        align-items: center;
        padding: 10px 14px;
        border-bottom: 1px solid #f0f0f0;
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 10;
        gap: 8px;
    }
    .ea-menu-close-btn {
        background: none;
        border: none;
        padding: 4px;
        cursor: pointer;
        display: flex;
        align-items: center;
        flex-shrink: 0;
        color: #333;
    }
    .ea-menu-close-btn .material-icons { font-size: 26px; }
    .ea-menu-panel-logo {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .ea-menu-panel-logo img { max-height: 40px; }
    .ea-menu-panel-search {
        display: flex;
        align-items: center;
        color: #333;
        text-decoration: none;
        flex-shrink: 0;
        padding: 4px;
    }
    .ea-menu-panel-search .material-icons { font-size: 24px; }
    .ea-menu-panel-cart {
        display: flex;
        align-items: center;
        color: #333;
        text-decoration: none;
        flex-shrink: 0;
        padding: 4px;
    }
    .ea-menu-panel-cart .material-icons { font-size: 24px; }

    /* ── Accesos destacados (Ofertas, Hostelería, Favoritos) — sin círculo ── */
    .ea-menu-special { padding: 0; }
    .ea-menu-special-item {
        display: flex !important;
        align-items: center;
        padding: 16px 20px !important;
        font-size: 17px !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        gap: 14px;
        line-height: 1.3;
        border-bottom: 1px solid #ebebeb;
        color: #2a2a2a !important;
    }
    .ea-menu-special-item:hover { text-decoration: none !important; }
    .ea-menu-special-icon {
        width: 24px;
        height: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: transparent !important;
        border-radius: 0 !important;
        font-size: 22px !important;
        font-weight: 700;
        flex-shrink: 0;
    }
    /* Ofertas — rojo de las fichas de producto */
    .ea-menu-special-sale,
    .ea-menu-special-sale .ea-menu-special-icon { color: #f36767 !important; }
    .ea-menu-special-sale .ea-menu-special-icon { font-size: 20px !important; }
    /* Hostelería — verde marca */
    .ea-menu-special-pro .ea-menu-special-icon  { color: var(--brand-green, #889926) !important; }
    /* Favoritos — gris neutro como helpers */
    .ea-menu-special-fav .ea-menu-special-icon  { color: #777 !important; }

    /* ── Helper Identifícate ── */
    .ea-menu-helpers { padding: 0 0 24px; }
    .ea-menu-helper-item {
        display: flex !important;
        align-items: center;
        padding: 16px 20px !important;
        font-size: 17px !important;
        font-weight: 500 !important;
        color: #2a2a2a !important;
        text-decoration: none !important;
        gap: 14px;
        line-height: 1.3;
        border-bottom: 1px solid #ebebeb;
    }
    .ea-menu-helper-item:hover { text-decoration: none !important; background: #f7f7f7; }
    .ea-menu-helper-item .material-icons {
        font-size: 22px;
        color: #777;
    }

    /* ══════════════════════════════════════════
       Menú móvil acordeón custom (.ea-mobile-nav)
       Espejo del megamenú desktop con misma división
       ══════════════════════════════════════════ */
    #mobile_top_menu_wrapper .ea-mobile-nav {
        background: #fff;
        padding: 0;
        margin: 0;
        width: 100%;
    }
    .ea-mnav-item,
    .ea-mnav-toggle {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 16px 20px;
        font-size: 15px;
        font-weight: 500;
        color: var(--brand-dark);
        background: #fff;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        text-align: left;
        cursor: pointer;
        text-decoration: none;
        font-family: inherit;
        line-height: 1.3;
    }
    .ea-mnav-item:active,
    .ea-mnav-toggle:active,
    .ea-mnav-item:hover,
    .ea-mnav-toggle:hover {
        background: #f8f8f6;
        color: var(--brand-dark);
        text-decoration: none;
    }
    .ea-mnav-toggle .material-icons {
        font-size: 22px;
        color: #999;
        transition: transform 0.25s, color 0.2s;
        flex-shrink: 0;
        margin-left: 8px;
    }
    .ea-mnav-toggle[aria-expanded="true"] {
        color: var(--brand-green);
        background: #fafaf8;
    }
    .ea-mnav-toggle[aria-expanded="true"] .material-icons {
        transform: rotate(180deg);
        color: var(--brand-green);
    }
    .ea-mnav-sub {
        max-height: 0;
        overflow: hidden;
        background: #fafaf8;
        transition: max-height 0.3s ease;
    }
    .ea-mnav-sub.open {
        max-height: 80vh;
        overflow-y: auto;
    }
    .ea-mnav-sub a {
        display: block;
        padding: 14px 20px 14px 36px;
        font-size: 14px;
        color: #444;
        text-decoration: none;
        border-bottom: 1px solid #ececec;
    }
    .ea-mnav-sub a:last-child {
        border-bottom: none;
    }
    .ea-mnav-sub a:hover,
    .ea-mnav-sub a:active {
        color: var(--brand-green);
        background: #fff;
        text-decoration: none;
    }

    /* Marcas: logo pequeño + texto */
    .ea-mnav-sub.ea-mnav-marcas {
        padding: 0;
    }
    .ea-mnav-marca-item {
        display: flex !important;
        align-items: center;
        gap: 12px;
        padding: 10px 20px 10px 36px !important;
    }
    .ea-mnav-marca-item img {
        width: 32px;
        height: 32px;
        object-fit: contain;
        flex-shrink: 0;
        filter: grayscale(30%);
        opacity: 0.9;
    }
    .ea-mnav-marca-item:hover img,
    .ea-mnav-marca-item:active img {
        filter: grayscale(0);
        opacity: 1;
    }
    .ea-mnav-marca-item span {
        font-size: 13px;
        color: #444;
    }

    /* ── Items del menú principal ── */
    #mobile_top_menu_wrapper ul.top-menu {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100%;
    }
    #mobile_top_menu_wrapper ul.top-menu li {
        border-bottom: 1px solid #ebebeb;
    }
    /* El DOM pone el .float-xs-right (chevron) ANTES del texto.
       Solución: flex-direction normal + order:1 en el chevron lo manda al final.
       El texto (anonymous flex item, order:0) queda a la izquierda automáticamente.
       Funciona tanto con chevron (ítems con hijos) como sin él (ítems hoja). */
    #mobile_top_menu_wrapper ul.top-menu li a.dropdown-item {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 16px 20px !important;
        font-size: 17px !important;
        font-weight: 500 !important;
        color: #2a2a2a !important;
        white-space: normal !important;
        background: transparent !important;
        text-decoration: none !important;
        border-radius: 0 !important;
        line-height: 1.3;
        text-transform: none !important;
        letter-spacing: 0;
    }
    /* Subcategorías (popovers anidados) — un poco más pequeñas pero misma escala +1 */
    #mobile_top_menu_wrapper .popover.sub-menu ul.top-menu li a.dropdown-item {
        font-size: 16px !important;
        padding-left: 40px !important;
        font-weight: 500 !important;
        color: #2a2a2a !important;
    }
    /* Estado expandido: fondo gris + borde marcado (estilo Planeta Huerto) */
    #mobile_top_menu_wrapper ul.top-menu li.expanded > a.dropdown-item,
    #mobile_top_menu_wrapper ul.top-menu li > a.dropdown-item[aria-expanded="true"] {
        background: #f7f7f7 !important;
        box-shadow: inset 0 0 0 2px #2a2a2a;
        font-weight: 600 !important;
        color: #1a1a1a !important;
    }
    /* Chevron rotado al expandir */
    #mobile_top_menu_wrapper ul.top-menu li.expanded > a.dropdown-item .float-xs-right,
    #mobile_top_menu_wrapper ul.top-menu li > a.dropdown-item[aria-expanded="true"] .float-xs-right {
        transform: rotate(180deg);
        transition: transform 0.2s;
    }
    #mobile_top_menu_wrapper ul.top-menu li > a.dropdown-item .float-xs-right {
        transition: transform 0.2s;
    }
    #mobile_top_menu_wrapper ul.top-menu li a.dropdown-item:active,
    #mobile_top_menu_wrapper ul.top-menu li a.dropdown-item:focus {
        background: #f5f5f5 !important;
        color: var(--brand-green) !important;
    }

    /* Chevron: order:1 lo empuja al final; margin-left:auto lo alinea al extremo derecho */
    #mobile_top_menu_wrapper .float-xs-right {
        float: none !important;
        order: 1;
        margin-left: auto;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }
    #mobile_top_menu_wrapper .collapse-icons .material-icons {
        font-size: 20px;
        color: #bbb;
    }

    /* ── Submenú indentado ── */
    #mobile_top_menu_wrapper .popover.sub-menu {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        background: #fff;
    }
    #mobile_top_menu_wrapper .popover.sub-menu ul.top-menu li {
        border-bottom: 1px solid #ebebeb;
        background: #fff;
    }
    #mobile_top_menu_wrapper .popover.sub-menu ul.top-menu li a.dropdown-item {
        padding: 13px 20px 13px 32px !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        color: #2a2a2a !important;
    }

    /* ── Sección cuenta (al fondo del panel) ── */
    .grafs-mobile-menu-account {
        display: flex;
        flex-direction: column;
        border-top: 1px solid #f2f2f2;
        padding: 0 !important;
        gap: 0 !important;
    }
    /* Fila: icono + texto */
    .grafs-mmenu-user-wrap .user-info a,
    .grafs-mmenu-wishlist {
        display: flex !important;
        align-items: center !important;
        gap: 14px !important;
        padding: 16px 20px !important;
        font-size: 13px !important;
        font-weight: 400 !important;
        color: #555 !important;
        text-decoration: none !important;
        text-transform: uppercase !important;
        letter-spacing: 0.02em;
        border-bottom: 1px solid #f2f2f2 !important;
    }
    .grafs-mmenu-wishlist { border-bottom: none !important; }
    .grafs-mmenu-wishlist .material-icons,
    .grafs-mmenu-user-wrap .material-icons {
        font-size: 22px !important;
        color: #999 !important;
        flex-shrink: 0;
    }
    /* Texto "Identifícate" / "Mi cuenta" via CSS (el template solo muestra el icono) */
    .grafs-mmenu-user-wrap .user-info a::after {
        content: "Identifícate";
    }
    .grafs-mmenu-user-wrap .user-info a.account::after {
        content: "Mi cuenta";
    }
}

/* =========================================
   DISEÃ‘O DE PASTILLAS Y PRECIOS (Pure CSS)
   ========================================= */

/* =========================================
   ESTRUCTURA DE LA TARJETA (Anulando Theme Classic)
   ========================================= */

/* Liberar a la tarjeta de alturas fijas o absolutas del theme classic */
#products .product-miniature,
.featured-products .product-miniature,
.product-accessories .product-miniature {
    height: auto !important;
    margin-bottom: 30px;
}

.grafs-cat-products-grid .product-miniature {
    height: auto !important;
    margin-bottom: 0;
}

#products .product-miniature .thumbnail-container,
.featured-products .product-miniature .thumbnail-container,
.product-accessories .product-miniature .thumbnail-container,
.grafs-cat-products-grid .product-miniature .thumbnail-container {
    height: 100% !important;
    width: 94% !important;
    min-height: unset !important;
    display: flex;
    flex-direction: column;
    background: #fff;
    position: relative;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    box-shadow: none !important;
    /* Sombra oculta de base */
    transition: box-shadow 0.3s ease;
    overflow: hidden;
    /* Para respetar el redondeo */
}

#products .product-miniature .thumbnail-container:hover,
.featured-products .product-miniature .thumbnail-container:hover,
.product-accessories .product-miniature .thumbnail-container:hover,
.grafs-cat-products-grid .product-miniature .thumbnail-container:hover {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08) !important;
    /* Sombra solo al pasar ratÃ³n */
}

/* Contenedor de la Imagen */
#products .product-miniature .thumbnail-container .thumbnail.product-thumbnail,
.featured-products .product-miniature .thumbnail-container .thumbnail.product-thumbnail,
.product-accessories .product-miniature .thumbnail-container .thumbnail.product-thumbnail,
.grafs-cat-products-grid .product-miniature .thumbnail-container .thumbnail.product-thumbnail {
    position: relative;
    display: block;
    height: auto !important;
    background: #fff;
    padding: 15px;
}

#products .product-miniature .thumbnail-container img,
.featured-products .product-miniature .thumbnail-container img,
.product-accessories .product-miniature .thumbnail-container img,
.grafs-cat-products-grid .product-miniature .thumbnail-container img {
    position: static !important;
    /* Anular absolute nativo si lo hubiera */
    width: 100%;
    max-height: 220px;
    /* Limite de alto para la foto */
    object-fit: contain;
    display: block;
    /* Centrado */
    margin: 0 auto;
}

/* Ãrea Blanca Descriptiva (Datos de Texto) */
#products .product-miniature .product-description,
.featured-products .product-miniature .product-description,
.product-accessories .product-miniature .product-description,
.grafs-cat-products-grid .product-miniature .product-description {
    position: static !important;
    height: auto !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left !important;
    padding: 12px 16px 10px !important;
    background: #fff !important;
    box-shadow: none !important;
}

#products .product-miniature .product-description::after,
.featured-products .product-miniature .product-description::after,
.product-accessories .product-miniature .product-description::after,
.grafs-cat-products-grid .product-miniature .product-description::after {
    content: none !important;
}

/* Accesorios: 4 columnas igual que la cuadrícula de categoría */
.product-accessories .products.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}
.product-accessories .product-miniature {
    width: 25%;
    padding: 0 10px;
    box-sizing: border-box;
}
@media (max-width: 991px) {
    .product-accessories .product-miniature { width: 33.33%; }
}
@media (max-width: 767px) {
    .product-accessories .product-miniature { width: 50%; }
}

/* Eliminar linea separadora entre marca y titulo */
.product-miniature .product-description::after,
.product-miniature .product-description::before {
    display: none !important;
    content: none !important;
    border: none !important;
}

.grafs-product-header,
#products .product-miniature .product-title,
.featured-products .product-miniature .product-title {
    border: none !important;
}

/* HEADER (Marca + CorazÃ³n) */
.grafs-product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0;
}

.product-brand {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #888;
    text-align: left !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0;
    height: 18px;
    overflow: hidden;
}

.product-brand a {
    color: inherit;
    text-decoration: none;
}

.product-brand a:hover {
    color: var(--brand-green);
}

.grafs-wishlist-btn {
    color: var(--brand-dark);
    line-height: 1;
}

.grafs-wishlist-btn i {
    font-size: 20px;
}

.grafs-wishlist-btn:hover {
    color: var(--brand-green);
}

/* Titulo del producto */
#products .product-miniature .product-title,
.featured-products .product-miniature .product-title,
.grafs-cat-products-grid .product-miniature .product-title,
#js-product-list .product-miniature .product-title {
    text-align: left !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #2c2c2c;
    margin-top: 3px !important;
    margin-bottom: 10px;
    height: 55px;
    overflow: hidden;
    line-height: 1.4;
    white-space: normal !important;
    word-break: break-word !important;
}

#products .product-miniature .product-title a,
.featured-products .product-miniature .product-title a,
.grafs-cat-products-grid .product-miniature .product-title a,
#js-product-list .product-miniature .product-title a {
    text-align: left !important;
}

/* Estrellas */
.grafs-stars {
    margin-bottom: 15px;
    text-align: left !important;
}

/* Bloque Precio: altura fija para que todos los cards sean iguales */
#products .product-miniature .product-price-and-shipping,
.featured-products .product-miniature .product-price-and-shipping,
.grafs-cat-products-grid .product-miniature .product-price-and-shipping {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-end;
    justify-content: flex-start;
    gap: 5px 8px;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    min-height: unset !important;
    text-align: left !important;
}

/* Pastilla de descuento (-12%) estilo Grafs pero en Verde */
#products .product-miniature .discount-percentage,
.featured-products .product-miniature .discount-percentage,
#products .product-miniature .discount-product,
.featured-products .product-miniature .discount-product,
.grafs-cat-products-grid .product-miniature .discount-percentage,
.grafs-cat-products-grid .product-miniature .discount-product {
    background-color: #fde8e8 !important;
    border: none !important;
    border-radius: 20px !important;
    color: #f36767 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 3px 10px !important;
    margin: 0 !important;
    display: inline-block !important;
    order: 1;
    /* Primero a la izquierda */
}

/* Precio Antiguo Tachado */
#products .product-miniature .regular-price,
.featured-products .product-miniature .regular-price,
.grafs-cat-products-grid .product-miniature .regular-price {
    font-size: 13px !important;
    color: #999 !important;
    text-decoration: line-through !important;
    margin: 0 !important;
    order: 2;
    /* Medio */
}

/* Precio Actual Negrita */
#products .product-miniature .price,
.featured-products .product-miniature .price,
.grafs-cat-products-grid .product-miniature .price {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #000 !important;
    margin: 0 !important;
    order: 3;
    /* Derecha */
}

/* =========================================
   ANIMACIÃ“N MORPH: AÃ‘ADIR AL CARRITO
   ========================================= */
.grafs-grid-cart-section {
    padding: 0;
    background: #fff;
    border-top: 1px solid #eaeaea;
    margin-top: auto;
}

.grafs-grid-cart-section form {
    margin: 0;
}

.grafs-cart-interaction {
    position: relative;
    width: 100%;
    height: 48px;
    overflow: hidden;
    border-radius: 0 0 8px 8px;
}

/* Frontend: BotÃ³n principal */
.grafs-add-btn-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--brand-green) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 0 8px 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s, color 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: none;
}

.grafs-add-btn-main:hover {
    background: #1a3324 !important;
}

/* Efecto de cargando (Opcional, se pulsa) */
.grafs-add-btn-main.loading {
    background: var(--brand-green) !important;
    color: #fff !important;
}

/* Backend: Selector de Cantidad */
.grafs-qty-reveal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transform: translateY(100%);
    /* Oculto abajo */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
}

/* Disparador de la animaciÃ³n CSS */
.grafs-cart-interaction.morphed .grafs-add-btn-main {
    transform: translateY(-100%);
    /* Sube y desaparece */
}

.grafs-cart-interaction.morphed .grafs-qty-reveal {
    transform: translateY(0);
    /* Entra por debajo */
}

/* DiseÃ±o interno del Qty Reveal */
.grafs-qty-reveal .grafs-qty-group {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    border: none;
    border-right: 1px solid #eaeaea;
    /* LÃ­nea separadora vertical */
    height: 48px;
}

.grafs-qty-group .btn-qty {
    background: transparent;
    color: #666;
    border: none;
    width: 35px;
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grafs-qty-group .btn-qty:hover {
    color: var(--brand-green);
}

.grafs-qty-group .input-qty {
    width: 40px;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    color: var(--brand-dark);
    -moz-appearance: textfield;
    appearance: textfield;
}

.grafs-qty-group .input-qty::-webkit-outer-spin-button,
.grafs-qty-group .input-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Botoncito mini de refrescar aÃ±adir extra */
.grafs-qty-reveal .grafs-add-btn-small {
    width: 60px;
    height: 48px;
    background: transparent !important;
    color: var(--brand-green) !important;
    border: none !important;
    border-radius: 0 0 8px 0;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.grafs-qty-reveal .grafs-add-btn-small:hover {
    background: var(--brand-green) !important;
    color: #fff !important;
}

/* =========================================
   BANDERAS RESTAURADAS Y REDISEÃ‘ADAS
   ========================================= */

/* Contenedor padre como capa invisible superpuesta al 100% */
#products .product-miniature .thumbnail-container .product-flags,
.featured-products .product-miniature .thumbnail-container .product-flags,
.grafs-cat-products-grid .product-miniature .thumbnail-container .product-flags {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* No bloquear clics a la foto */
    margin: 0;
    padding: 0;
    z-index: 2;
    display: block !important;
    /* Quitamos flex para moverlas sueltas */
}

/* Estilo base unificado: pastilla ovalada compacta arriba-izquierda
   Selectores múltiples para vencer al tema padre classic en TODOS los contextos:
   .featured-products / .product-accessories / .grafs-cat-products-grid / #products / body#product */
.product-flags li.product-flag,
.product-flags .product-flag,
#products .product-miniature .product-flags li.product-flag,
.featured-products .product-miniature .product-flags li.product-flag,
.product-accessories .product-miniature .product-flags li.product-flag,
.grafs-cat-products-grid .product-miniature .product-flags li.product-flag,
.ea-carousel-slide .product-miniature .product-flags li.product-flag,
body#product .product-flags li.product-flag {
    position: absolute !important;
    pointer-events: auto !important;
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    margin: 0 !important;
    background: var(--brand-green) !important;
    color: #fff !important;
    border: none !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    padding: 3px 9px !important;
    border-radius: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2px !important;
    line-height: 1.3 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08) !important;
    white-space: normal !important;
    /* Permite que textos largos como "TEMPORALMENTE FUERA DE STOCK" salten a 2 líneas */
    max-width: calc(100% - 60px) !important;
    /* Reserva espacio para el corazón a la derecha */
    overflow: hidden !important;
    text-align: center !important;
    word-break: break-word !important;
    /* Anular min-width/min-height del tema classic (50×30px) */
    min-width: 0 !important;
    min-height: 0 !important;
    width: auto !important;
    height: auto !important;
}

/* Ocultar pastilla -20% duplicada arriba de la foto (solo sale la del precio) */
.product-flags .product-flag.discount,
.product-flags .product-flag.discount-percentage,
.product-flags .product-flag.discount-amount {
    display: none !important;
}

/* Variantes de color por tipo (misma forma, distinto significado).
   Selectores multi-contexto para vencer al tema padre classic en featured/accessories/etc */
.product-flags li.product-flag.new,
.featured-products .product-miniature .product-flags li.product-flag.new,
.product-accessories .product-miniature .product-flags li.product-flag.new,
.grafs-cat-products-grid .product-miniature .product-flags li.product-flag.new,
.ea-carousel-slide .product-miniature .product-flags li.product-flag.new,
body#product .product-flags li.product-flag.new {
    background: var(--brand-green) !important;
}
.product-flags li.product-flag.online-only,
.featured-products .product-miniature .product-flags li.product-flag.online-only,
.product-accessories .product-miniature .product-flags li.product-flag.online-only,
.grafs-cat-products-grid .product-miniature .product-flags li.product-flag.online-only,
body#product .product-flags li.product-flag.online-only {
    background: #4a4a4a !important;
    /* Anular top:25rem/13.1rem que classic le pone para empujar online-only al fondo */
    top: 12px !important;
    right: auto !important;
    font-size: 9px !important;
}
.product-flags li.product-flag.online-only::before {
    display: none !important;
    /* Quitar el icono Material que classic mete con content "\E30A" */
}
.product-flags li.product-flag.on-sale,
.featured-products .product-miniature .product-flags li.product-flag.on-sale,
.product-accessories .product-miniature .product-flags li.product-flag.on-sale,
.grafs-cat-products-grid .product-miniature .product-flags li.product-flag.on-sale,
body#product .product-flags li.product-flag.on-sale {
    background: #c0392b !important;
    /* Anular el order:-1 y width:100% del tema classic que lo hacen banner */
    order: 0 !important;
    width: auto !important;
    text-align: center !important;
    margin-top: 0 !important;
}
.product-flags li.product-flag.pack,
.featured-products .product-miniature .product-flags li.product-flag.pack,
.product-accessories .product-miniature .product-flags li.product-flag.pack,
.grafs-cat-products-grid .product-miniature .product-flags li.product-flag.pack,
body#product .product-flags li.product-flag.pack {
    background: #8a6d3b !important;
}
/* Out of stock: AZUL — selectores hiper-específicos con body+atributo
   para vencer cualquier regla con class .new o base */
body .product-flags li.product-flag.out_of_stock,
body .product-flags li.product-flag.out-of-stock,
body .product-flags li.product-flag[class*="out_of_stock"],
body .product-flags li.product-flag[class*="out-of-stock"],
body .featured-products .product-miniature .product-flags li.product-flag.out_of_stock,
body .product-accessories .product-miniature .product-flags li.product-flag.out_of_stock,
body .grafs-cat-products-grid .product-miniature .product-flags li.product-flag.out_of_stock,
body .ea-carousel-slide .product-miniature .product-flags li.product-flag.out_of_stock,
body#product .product-flags li.product-flag.out_of_stock {
    background: #2563eb !important;
    /* Azul — comunica indisponibilidad de forma clara y neutra */
}

/* Si coinciden 2 flags, apila la segunda */
.product-flags li.product-flag + li.product-flag,
.product-flags .product-flag + .product-flag {
    top: 30px !important;
}

/* Mobile: reducir aún más para que textos largos como
   "TEMPORALMENTE FUERA DE STOCK" no se corten en cards pequeños */
@media (max-width: 768px) {
    .product-flags li.product-flag,
    .product-flags .product-flag,
    body .product-flags li.product-flag,
    body#product .product-flags li.product-flag {
        font-size: 8px !important;
        padding: 2px 7px !important;
        top: 8px !important;
        left: 8px !important;
        letter-spacing: 0.15px !important;
        max-width: calc(100% - 50px) !important;
    }
    .product-flags li.product-flag + li.product-flag,
    .product-flags .product-flag + .product-flag {
        top: 26px !important;
    }
}


/* =========================================
   AUTOCOMPLETADO BÃšSQUEDA (Jquery UI)
   ========================================= */
.ui-autocomplete {
    font-family: 'Montserrat', sans-serif !important;
    border: 1px solid #eaeaea !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    padding: 10px !important;
    background: #fff !important;
    z-index: 9999 !important;
}

.ui-autocomplete .ui-menu-item {
    margin-bottom: 2px;
}

.ui-autocomplete .ui-menu-item a {
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    font-family: 'Montserrat', sans-serif !important;
    color: var(--brand-dark) !important;
    border: none !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    display: block;
}

.ui-autocomplete .ui-menu-item a:hover,
.ui-autocomplete .ui-menu-item a.ui-state-active {
    background: #f7f9f7 !important;
    color: var(--brand-green) !important;
    border: none !important;
}

/* =========================================
   ADAPTACIÃ“N MÃ“VIL (Ficha de Producto)
   ========================================= */
@media (max-width: 768px) {

    #products .product-miniature .thumbnail-container .thumbnail.product-thumbnail,
    .featured-products .product-miniature .thumbnail-container .thumbnail.product-thumbnail {
        padding: 5px;
        /* Menos padding gris interno para ganar foto */
    }

    #products .product-miniature .thumbnail-container img,
    .featured-products .product-miniature .thumbnail-container img {
        max-height: 160px;
        /* Reducir altura en mÃ³viles */
    }

    #products .product-miniature .product-description,
    .featured-products .product-miniature .product-description {
        padding: 10px !important;
        /* Aprovechar bloque blanco */
    }

    .product-brand {
        font-size: 11px !important;
    }

    #products .product-miniature .product-title,
    .featured-products .product-miniature .product-title {
        font-size: 12px !important;
        margin-bottom: 5px;
        min-height: 32px;
    }

    #products .product-miniature .price,
    .featured-products .product-miniature .price {
        font-size: 16px !important;
    }

    /* Botón en móvil: centrado vertical + tamaño */
    .grafs-cart-interaction,
    .grafs-qty-reveal .grafs-qty-group,
    .grafs-qty-reveal .grafs-add-btn-small {
        height: 42px;
    }
    .grafs-add-btn-main {
        height: 40px !important;
        font-size: 13px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 8px !important;
        line-height: 1 !important;
    }

    /* ── Grid de categorías: 2 columnas en móvil ── */
    /* Sin márgenes negativos: el container ya da 4px exteriores simétricos.
       padding:0 en .product-miniature anula el column-padding de Bootstrap. */
    #js-product-list {
        margin: 0 !important;
        padding: 0 !important;
    }
    #js-product-list .products.row {
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-content: flex-start !important;
        row-gap: 16px !important;
        column-gap: 16px !important;
    }
    #js-product-list .products.row .product-miniature {
        flex: 0 0 calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
        width: calc(50% - 8px) !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    /* Kill explícito del margin-bottom: 30px global (línea 1070) — redundante con
       margin:0 de arriba, pero asegura que ningún ancestro o regla con mayor
       especificidad pueda reintroducirlo en móvil. */
    #products .product-miniature,
    #products .product-miniature.grafs-product-card {
        margin-bottom: 0 !important;
    }
    /* Ajuste de contenido para tarjeta de 50% ancho */
    #js-product-list .product-miniature .thumbnail-container img {
        max-height: 160px !important;
    }
    #js-product-list .product-miniature .thumbnail-container .thumbnail.product-thumbnail {
        padding: 12px !important;
    }
    #js-product-list .product-miniature .product-description {
        padding: 12px 16px 10px !important;
        flex-grow: 1 !important;
    }
    #js-product-list .product-miniature .product-title {
        font-size: 12px !important;
        height: calc(12px * 1.4 * 4) !important;
        margin-bottom: 6px !important;
        white-space: normal !important;
        word-break: break-word !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
    #js-product-list .product-miniature .price {
        font-size: 17px !important;
    }
    #js-product-list .product-miniature .product-price-and-shipping {
        margin-top: auto !important;
    }
}

/* =========================================
   RESTORE: BOTÃ“N HEADER ÃREA PROFESIONALES
   ========================================= */
.btn-area-profesionales {
    color: var(--brand-green) !important;
    border: 1px solid var(--brand-green) !important;
    border-radius: 8px !important;
    padding: 7px 14px !important;
    margin-left: 16px;
    text-transform: uppercase;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 0.4px;
    transition: all 0.2s;
    background: #eef5ef !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-area-profesionales .material-icons {
    font-size: 15px !important;
    vertical-align: middle;
}

.btn-area-profesionales:hover {
    background: var(--brand-green) !important;
    color: #fff !important;
}

/* El botón pro también lleva la clase .grafs-menu-link, cuyo hover global
   fuerza color verde (a.grafs-menu-link:hover = especificidad 0,2,1). Sobre el
   fondo verde del botón en hover quedaba texto verde sobre verde (invisible).
   Esta regla (0,3,0) gana y mantiene el texto blanco legible. */
.grafs-menu-link.btn-area-profesionales:hover {
    color: #fff !important;
}

/* ════════════════════════════════════════════════════════════════════
   Caja "Paga en 3 plazos con PayPal" (grafs-pay3) — ficha producto + carrito.
   Estilo azulado acorde a la marca PayPal, sobrio e informativo. */
.grafs-pay3 {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 10px 0;
    padding: 11px 14px;
    background: #f2f8ff;
    border: 1px solid #cfe5fb;
    border-radius: 9px;
    line-height: 1.4;
    color: #33475b;
}
.grafs-pay3-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.grafs-pay3-pp {
    font-weight: 800;
    font-style: italic;
    color: #003087;
    background: #ffc439;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 12px;
    letter-spacing: -0.3px;
}
.grafs-pay3-title {
    font-weight: 700;
    color: #0070ba;
    font-size: 13px;
}
.grafs-pay3-text {
    margin: 6px 0 0;
    font-size: 10.5px;
    text-align: left;
}
.grafs-pay3-text a {
    color: #0070ba;
    text-decoration: underline;
    font-weight: 600;
    white-space: nowrap;
}

/* El li que contiene el botón pro en el menú no tiene padding estándar */
.grafs-menu-pro-btn {
    margin-left: auto;
}

/* Megamenu grid variants */
.grafs-megamenu-grid--narrow {
    display: grid;
    grid-template-columns: 260px;
    justify-content: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.grafs-megamenu-grid--2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   FOOTER (Estilo Grafs)
   ========================================= */

/* Override del fondo negro del classic theme */
#footer {
    background: #f5f5f5 !important;
    color: #333 !important;
    border-top: none;
    padding: 0;
}

/* Ocultar el footer nativo de PS (linklist, etc.) — excluimos nuestros bloques propios */
#footer > *:not(.grafs-footer):not(.grafs-footer-bottom):not(.newsletter-subfooter) {
    display: none !important;
}

.grafs-footer {
    background: #f5f5f5;
    padding: 53px 0 0;
    border-top: none;
    margin-top: 0;
    font-family: 'Montserrat', sans-serif;
}

.grafs-footer .footer-payments-wrap {
    text-align: center;
    margin: 24px auto 0;
    padding: 0;
}
.grafs-footer .footer-payments-title {
    font-size: 13px;
    font-weight: 700;
    color: #777;
    margin: 0 0 12px;
    letter-spacing: .5px;
    line-height: 1.2;
}
.grafs-footer .footer-payments-logos {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}
.grafs-footer .footer-payments-logos li {
    margin: 0;
    line-height: 0;
}
.grafs-footer .footer-payments-logos img {
    height: 26px;
    width: auto;
    display: block;
}

/* Columna 1: Branding */
.footer-branding .footer-logo img {
    max-width: 216px;
    margin-top: -12px;
    margin-bottom: 25px;
}

.footer-branding .footer-region {
    font-size: 14px;
    /* +1px */
    font-weight: 500;
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
}

.footer-branding .fake-badge {
    border: 1px solid #eaeaea;
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
    text-align: center;
    font-size: 13px;
    /* +1px */
    color: #333;
}

.footer-branding .fake-badge strong {
    font-size: 16px;
    /* +1px */
    color: var(--brand-dark);
}

/* Columnas de Links */
.footer-links {
    margin-bottom: 30px;
}

.footer-links .footer-title {
    font-size: 15px;
    /* +1px */
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 20px;
    text-transform: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links .footer-title i {
    font-size: 19px;
    /* +1px */
    color: var(--brand-dark);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #666;
    font-size: 14px;
    /* +1px */
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links ul li a:hover {
    color: var(--brand-green);
    text-decoration: none;
}

/* Footer Bottom (Copyright) */
.grafs-footer-bottom {
    background: #f5f5f5;
    border-top: 1px solid #e4e4e4;
    padding: 12px 0;
    margin-top: 20px;
}

.grafs-footer-bottom .copyright-text {
    margin: 0;
    font-size: 13px;
    /* +1px */
    color: #888;
    text-align: left;
    font-weight: 500;
}

.grafs-footer-bottom .copyright-text a {
    color: #888;
    transition: color 0.2s;
    text-decoration: none;
}

.grafs-footer-bottom .copyright-text a:hover {
    color: var(--brand-green);
}

/* =========================================
   ALINEACIÃ“N DEL ICONO DEL CARRITO NATIVO
   ========================================= */
#_desktop_cart .header {
    position: relative;
    display: inline-flex;
}

#_desktop_cart a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--brand-dark);
    text-decoration: none;
    transition: color 0.2s;
    box-shadow: none;
}

#_desktop_cart a:hover {
    color: var(--brand-green);
}

#_desktop_cart .shopping-cart {
    font-size: 26px;
}

#_desktop_cart .cart-products-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #f36767;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* =========================================
   PÁGINA DE PRODUCTO - ESTILO GRAFS VERDE
   ========================================= */

/* Espaciado entre migas y contenido del producto */
body#product #main {
    padding-top: 6px;
}

/* Quitar el padding extra del col-md-12 para que el producto ocupe el mismo ancho que el header */
body#product #content-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Esconder molestias visuales */
.social-sharing {
    display: none !important;
}

/* ── Layout general ── */
.grafs-product-layout {
    margin-top: 0;
    display: flex !important;
    align-items: stretch;
    flex-wrap: wrap;
}

/* Columna izquierda se estira para ocupar toda la altura de la columna derecha */
body#product .product-left-col {
    display: flex;
    flex-direction: column;
}

body#product .product-left-col .page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body#product .product-left-col .product-cover {
    flex: 1;
}

/* Proporciones de columnas: imagen 30% más ancha que col-md-5 original (41.67% → 54%) */
body#product .product-left-col {
    width: 54% !important;
}
body#product .grafs-product-right-col {
    width: 46% !important;
}

/* ── Columna izquierda: imágenes ── */
.product-left-col .images-container {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.product-left-col .product-cover {
    border: 1px solid #eaeaea !important;
    background: #fff !important;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none !important;
    padding: 20px;
    min-height: 350px;
    max-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 94% !important;
}

.product-left-col .product-cover img {
    max-height: 380px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.product-left-col .product-cover img {
    background: transparent !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    max-width: 94% !important;
    max-height: 560px !important;
    object-fit: contain;
    display: block;
}

.product-left-col .product-images > li.thumb-container > .thumb {
    border: 1px solid #eaeaea !important;
    border-radius: 6px;
    background: #fff !important;
    padding: 4px;
    box-shadow: none !important;
    transition: border-color 0.2s;
}

.product-left-col .product-images > li.thumb-container > .thumb.selected,
.product-left-col .product-images > li.thumb-container > .thumb:hover {
    border-color: var(--brand-green) !important;
}

/* ── Columna derecha: info ── */
.grafs-product-right-col {
    padding-left: 24px;
    padding-right: 0 !important;
}

/* Forzar ancho completo en todos los elementos de la columna derecha */
body#product .grafs-product-right-col .product-add-to-cart,
body#product .grafs-product-right-col #add-to-cart-or-refresh,
body#product .grafs-product-right-col .product-actions,
body#product .grafs-product-right-col .grafs-tabs,
body#product .grafs-product-right-col .product-discounts,
body#product .grafs-product-right-col .b2b-prompt-banner,
body#product .grafs-product-right-col .grafs-qty-wrapper {
    width: 94% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

/* Marca + estrellas en línea */
.grafs-product-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.grafs-brand-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    text-decoration: underline;
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

.grafs-brand-link:hover {
    color: var(--brand-green);
}

.grafs-product-stars {
    display: flex;
    align-items: center;
}

/* Título del producto */
.grafs-product-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--brand-dark);
    line-height: 1.3;
    margin: 0 0 14px 0;
    text-transform: none;
}

/* ── Precios (alineados a la derecha) ── */
.grafs-price-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 10px;
}

/* Fila principal de precio: badge izquierda — precios derecha */
.grafs-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.grafs-price-value {
    font-size: 40px;
    font-weight: 700;
    color: #222;
    line-height: 1;
}

/* Rojo cuando hay precio tachado (oferta activa) */
.grafs-price-row:has(.grafs-regular-price) .grafs-price-value {
    color: #f36767;
}

.grafs-regular-price {
    font-size: 16px;
    color: #aaa;
    text-decoration: line-through;
    font-weight: 400;
}

/* Pill de descuento — compacta, inline */
.grafs-discount-badge {
    background: #fde8e8;
    color: #f36767;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 700;
    padding: 3px 10px;
    line-height: 1.4;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
}

/* IVA inline — pequeño, gris, centrado verticalmente */
.grafs-tax-inline {
    font-size: 11px;
    color: #aaa;
    font-weight: 400;
    align-self: center;
}

/* Compatibilidad: si algún sitio aún usa grafs-tax-label, lo mantenemos */
.grafs-tax-label {
    display: none;
}


.grafs-unit-price {
    font-size: 13px;
    color: #888;
    margin: 2px 0 0 0;
}

.grafs-tax-info {
    font-size: 12px;
    color: #bbb;
    margin-top: 4px;
}

/* B2B price */
.grafs-b2b-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}
.grafs-b2b-label {
    font-size: 13px;
    color: #888;
}
.grafs-b2b-with-tax {
    font-size: 13px;
    color: #555;
    width: 100%;
    margin-top: 4px;
}

/* ── Descripción corta ── */
.grafs-short-desc {
    color: #555;
    font-size: 14px;
    margin-top: 16px;
    margin-bottom: 20px;
    line-height: 1.7;
}
.grafs-short-desc p {
    margin-bottom: 0;
}

/* ── Etiqueta ahorro bajo precio ── */
.grafs-savings-label {
    color: #f36767;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    text-align: right;
}

/* ── Cantidad (ancho completo) + Botón + Disponibilidad debajo ── */
.grafs-qty-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Fila qty — ancho completo */
.grafs-qty-full-row {
    width: 100%;
}

.grafs-qty-stock-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.grafs-inline-availability {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #3c8c3c;
}

.grafs-inline-availability .material-icons {
    font-size: 16px;
    color: #3c8c3c;
}

/* Control qty personalizado: [−][n][+] — ancho completo, fino */
.grafs-qty-control {
    display: flex;
    align-items: stretch;
    width: 100% !important;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    height: 40px;
    flex-shrink: 0;
    background: #fff;
}

.grafs-qty-btn {
    background: transparent;
    border: none;
    width: 32px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    transition: color 0.15s, background 0.15s;
    padding: 0;
    flex-shrink: 0;
}

.grafs-qty-btn:hover {
    color: var(--brand-green);
    background: #f5f5f5;
}

.grafs-qty-btn i.material-icons {
    font-size: 16px;
    pointer-events: none;
}

.grafs-qty-input {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 100% !important;
    border: none !important;
    border-left: 1px solid #eee !important;
    border-right: 1px solid #eee !important;
    background: #fff !important;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-dark);
    box-shadow: none !important;
    padding: 0 !important;
    -moz-appearance: textfield;
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
}
.grafs-qty-input::-webkit-outer-spin-button,
.grafs-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* El touchspin de PS envuelve el input — usar display:contents para que no rompa el flex */
.grafs-qty-control .bootstrap-touchspin,
.grafs-qty-control .input-group.bootstrap-touchspin {
    display: contents !important;
}
/* Ocultar SOLO los botones nativos del touchspin */
.grafs-qty-control .bootstrap-touchspin .input-group-btn,
.grafs-qty-control .bootstrap-touchspin .input-group-btn-vertical,
.grafs-qty-wrapper .input-group-btn-vertical {
    display: none !important;
}
/* Estilo del input real dentro del touchspin wrapper */
.grafs-qty-control .bootstrap-touchspin input,
.grafs-qty-control #quantity_wanted {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 40px !important;
    border: none !important;
    border-left: 1px solid #eee !important;
    border-right: 1px solid #eee !important;
    background: #fff !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--brand-dark) !important;
    box-shadow: none !important;
    padding: 0 !important;
    -moz-appearance: textfield;
    -webkit-appearance: none;
    flex-shrink: 0;
}

.grafs-add-to-cart-container {
    width: 100%;
    display: flex;
    align-items: stretch;
}

.grafs-add-to-cart-container .grafs-single-add-btn {
    width: 94% !important;
}

/* Disponibilidad — debajo del botón añadir */
.grafs-availability-below {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #3c8c3c;
    text-align: center;
    min-height: 20px;
}

.grafs-avail-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.grafs-avail-ok   { background: #3c8c3c; }
.grafs-avail-warn { background: #e8a020; }
.grafs-avail-no   { background: #c0392b; }

/* B2B banner en columna de imagen */
.b2b-prompt-banner.grafs-b2b-img-col {
    margin-top: 14px;
}

/* PayPal Trust Badge */
.grafs-paypal-badge {
    margin-top: 22px;
    margin-bottom: 0;
}

/* Si el módulo de PS inyecta algo, lo mostramos; si no, mostramos el estático */
.grafs-paypal-badge .grafs-paypal-static {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid #e0e8f5;
    border-radius: 8px;
    background: #f4f8ff;
}

/* Ocultar static si el módulo de PS ya inyectó contenido */
.grafs-paypal-badge:not(:empty) .grafs-paypal-static {
    display: flex;
}

.grafs-paypal-static span {
    font-size: 12px;
    color: #555;
    font-weight: 500;
}

/* B2B Prompt Banner */
.b2b-prompt-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    padding: 14px 16px;
    background: #f0f7f8;
    border: 1px solid #e0eef0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    width: 100%;
    box-sizing: border-box;
}
.b2b-prompt-banner i.material-icons {
    color: #176571;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}
.b2b-prompt-banner p {
    margin: 0;
}
.b2b-prompt-banner a {
    color: #176571;
    font-weight: 700;
    text-decoration: underline;
}

/* Botón Añadir al carrito */
.grafs-single-add-btn {
    width: 100%;
    height: 50px !important;
    background: var(--brand-green) !important;
    border: 2px solid var(--brand-green) !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em;
    color: #fff !important;
    text-transform: none;
    transition: all 0.25s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: none !important;
    cursor: pointer;
}

.grafs-single-add-btn:hover {
    background: #6b7a1e !important;
    border-color: #6b7a1e !important;
    box-shadow: 0 4px 14px rgba(136,153,38,0.25) !important;
}

/* Corazón favoritos — overlay dentro del área de imagen, esquina superior derecha */
body#product .product-left-col .page-content {
    position: relative;
}

.grafs-wishlist-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grafs-wishlist-overlay .wishlist-button-add {
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.grafs-wishlist-overlay .wishlist-button-add button,
.grafs-wishlist-overlay .wishlist-button-add a {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    color: #bbb !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: color 0.2s;
}

.grafs-wishlist-overlay .wishlist-button-add button:hover,
.grafs-wishlist-overlay .wishlist-button-add a:hover,
.grafs-wishlist-overlay .wishlist-button-add button.active,
.grafs-wishlist-overlay .wishlist-button-add a.active {
    color: #e63946 !important;
    background: transparent !important;
}

.grafs-wishlist-overlay .wishlist-button-add button i,
.grafs-wishlist-overlay .wishlist-button-add button svg,
.grafs-wishlist-overlay .wishlist-button-add a i,
.grafs-wishlist-overlay .wishlist-button-add a svg {
    font-size: 22px;
    pointer-events: none;
}

/* Banner Pagos 100% seguros */
.grafs-secure-payment {
    margin-top: 18px;
    padding: 0;
    background: none;
    border: none;
}

.grafs-secure-payment-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #444;
    margin: 0 0 8px 0;
}

.grafs-secure-payment-title .material-icons {
    font-size: 14px;
    color: var(--brand-green);
}

.grafs-secure-payment-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* 3.5 Breadcrumbs Styles */
#wrapper nav.breadcrumb {
    margin-top: 12px;
    margin-bottom: 12px;
    padding-left: 0 !important;
}
#wrapper ol.breadcrumb {
    padding-left: 0 !important;
    margin: 0;
}

#wrapper .breadcrumb li {
    font-size: 12px;
}

#wrapper .breadcrumb a {
    color: #666;
    transition: color 0.2s;
}

#wrapper .breadcrumb a:hover {
    color: var(--brand-green);
}

/* Categoría/página actual en migas: negrita + verde */
#wrapper .breadcrumb li:last-child a {
    color: var(--brand-green);
}
#wrapper .breadcrumb li:last-child span[itemprop="name"] {
    font-weight: 700;
}

/* Nueva corrección global para compensar CSS nativo y alinear con sidebar */
.block-category.card-block h1 {
    padding-left: 15px !important;
}

/* Hacer un layout de 2 columnas más estrecho y unido como Grafs
   (excluimos la ficha de producto — tiene su propio layout de 3 cols) */
@media (min-width: 992px) {
    body:not(#product) #left-column {
        width: 22% !important;
        flex: 0 0 22% !important;
        max-width: 22% !important;
        padding-right: 35px !important;
    }
    body:not(#product) #content-wrapper.left-column.right-column,
    body:not(#product) #content-wrapper {
        width: 78% !important;
        flex: 0 0 78% !important;
        max-width: 78% !important;
        padding-left: 0 !important;
    }
}

/* Página de producto: sin sidebar, content-wrapper ocupa el 100% del container */
body#product #left-column {
    display: none !important;
    width: 0 !important;
    flex: 0 0 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

body#product #content-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    float: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Fila de tabs — ancho col1+col2 (75% del layout) */
.grafs-product-tabs-row {
    width: 75%;
    margin-top: 0;
}

/* 5. TABS Limpias */
.grafs-tabs.tabs {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    margin-top: 40px;
    padding: 0;
}

.grafs-tabs .nav-tabs {
    border-bottom: 1px solid #eaeaea !important;
    background: transparent !important;
}

.grafs-tabs .nav-tabs .nav-item {
    margin-bottom: -1px;
}

.grafs-tabs .nav-tabs .nav-link {
    border: none !important;
    background: transparent !important;
    color: #888;
    font-size: 16px;
    font-weight: 600;
    padding: 15px 30px 15px 0;
    margin-right: 20px;
}

.grafs-tabs .nav-tabs .nav-link.active {
    color: var(--brand-dark) !important;
    border-bottom: 2px solid var(--brand-green) !important;
}

.grafs-tabs .nav-tabs .nav-link:focus,
.grafs-tabs .nav-tabs .nav-link:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.grafs-tabs .tab-content {
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Modificadores de Componentes Variables y Reassurance */
.product-variants select {
    border-radius: 8px;
    border: 1px solid #eaeaea;
    box-shadow: none;
}

.grafs-reassurance-wrapper {
    margin-top: 20px;
}

/* Ocultar el bloque de reassurance del lado derecho (solo mostramos en columna izquierda) */
.grafs-reassurance-wrapper .blockreassurance_product {
    display: none !important;
}

/* ── Trust icons horizontales (bajo botón añadir al carrito) ── */
.grafs-trust-reassurance {
    margin-top: 11px;
    padding: 10px 8px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #ebebeb;
}

/* Lista horizontal — HTML directo */
.grafs-trust-reassurance ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 6px;
}

.grafs-trust-reassurance li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    gap: 4px;
}

.grafs-trust-reassurance li .material-icons {
    font-size: 20px;
    color: var(--brand-green);
}

.grafs-trust-reassurance li span {
    font-size: 10px;
    color: #555;
    font-weight: 500;
    line-height: 1.3;
}

/* Eliminar estilos por defecto del módulo */
.grafs-trust-reassurance .blockreassurance_product {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Lista horizontal */
.grafs-trust-reassurance .blockreassurance_product ul {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: flex-start;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 8px;
}

.grafs-trust-reassurance .blockreassurance_product li {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    flex: 1;
    gap: 5px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Imagen del módulo */
.grafs-trust-reassurance .blockreassurance_product li img {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain;
    flex-shrink: 0;
}

/* Icono SVG/i del módulo */
.grafs-trust-reassurance .blockreassurance_product li i {
    font-size: 24px;
    color: var(--brand-green);
}

/* Título de cada bloque */
.grafs-trust-reassurance .blockreassurance_product .block-title,
.grafs-trust-reassurance .blockreassurance_product span {
    font-size: 11px !important;
    color: #555 !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    display: block !important;
}

/* Ocultar título del contenedor general si lo hay */
.grafs-trust-reassurance .blockreassurance_product > h3,
.grafs-trust-reassurance .blockreassurance_product > .title_block {
    display: none !important;
}

/* ── Combínalo con (sidebar izquierdo) ── */
.grafs-accessories-sidebar {
    margin-top: 4rem;
}

.grafs-accessories-title {
    font-size: 17px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: #999;
    margin: 0 0 12px 0;
}

.grafs-accessories-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.grafs-accessory-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #ebebeb;
    background: #fff;
    transition: border-color 0.2s, transform 0.15s;
}

.grafs-accessory-item:hover {
    border-color: var(--brand-green);
    transform: translateY(-1px);
}

/* Link dentro del item (imagen + info) */
.grafs-accessory-link {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
}

.grafs-accessory-link:hover {
    text-decoration: none;
}

/* Botón añadir al carrito del accesorio */
.grafs-accessory-cart-btn {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    background: var(--brand-green);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
    padding: 0;
    box-shadow: none;
}

.grafs-accessory-cart-btn:hover {
    background: #6b7a1e;
    box-shadow: 0 5px 14px rgba(136,153,38,0.5);
    transform: translateY(-1px);
}

.grafs-accessory-cart-btn .material-icons {
    font-size: 20px;
    line-height: 1;
}

.grafs-accessory-img {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grafs-accessory-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.grafs-accessory-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.grafs-accessory-name {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grafs-accessory-price {
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.grafs-trust-badges .blockreassurance_product {
    display: block !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Lista de items del módulo blockreassurance */
.grafs-trust-badges .blockreassurance_product ul,
.grafs-trust-badges .blockreassurance_product .block-reassurance-item {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.grafs-trust-badges .blockreassurance_product li,
.grafs-trust-badges .blockreassurance_product .item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #555;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.grafs-trust-badges .blockreassurance_product li img,
.grafs-trust-badges .blockreassurance_product .item img,
.grafs-trust-badges .blockreassurance_product li i,
.grafs-trust-badges .blockreassurance_product .item i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--brand-green);
    font-size: 20px;
}

/* Ocultar título del bloque */
.grafs-trust-badges .blockreassurance_product .block-title,
.grafs-trust-badges .blockreassurance_product h3,
.grafs-trust-badges .blockreassurance_product .title_block {
    display: none !important;
}

/* =========================================
   PRODUCTOS EN LA MISMA CATEGORÍA (5 columnas)
   ========================================= */
.grafs-cat-products {
    margin-top: 40px;
    margin-bottom: 60px;
}

.grafs-cat-products h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 20px;
}

.grafs-cat-products-grid {
    display: flex !important;
    flex-wrap: wrap;
    gap: 16px;
}

.grafs-cat-products-grid .product-miniature {
    width: calc(20% - 13px) !important;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

@media (max-width: 1024px) {
    .grafs-cat-products-grid .product-miniature {
        width: calc(25% - 6px) !important;
    }
}

@media (max-width: 768px) {
    .grafs-cat-products {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .grafs-cat-products-grid {
        gap: 16px !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .grafs-cat-products-grid .product-miniature {
        width: calc(50% - 8px) !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    /* Anular el 94% global en TODAS las parrillas en móvil para que
       (margen izq | gap entre tarjetas | margen dcha) sean simétricos a ~16px.
       Hay DOS reglas globales con 94% que afectan estas tarjetas:
         1) línea 1078-1096: #products/.featured-products/.product-accessories/.grafs-cat-products-grid .product-miniature .thumbnail-container
         2) línea 7479-7483: #products .grafs-product-card .thumbnail-container
       Como el <article> tiene ambas clases (product-miniature + grafs-product-card),
       usamos selectores combinados que aumentan la especificidad y ganan a ambas. */
    #products .product-miniature.grafs-product-card .thumbnail-container,
    .featured-products .product-miniature.grafs-product-card .thumbnail-container,
    .product-accessories .product-miniature.grafs-product-card .thumbnail-container,
    .grafs-cat-products-grid .product-miniature.grafs-product-card .thumbnail-container {
        width: 100% !important;
        /* Anular margin-bottom: 1.563rem (~25px) heredado de classic/theme.css.
           Sin esto, cada tarjeta arrastra 25px adicionales bajo el border, que se
           SUMAN al row-gap del grid → filas visualmente muy separadas. */
        margin-bottom: 0 !important;
    }
}

/* =========================================
   H1 A ANCHO COMPLETO (ENCIMA DEL GRID)
   ========================================= */

/* Fila del título de categoría: ancho 100% del container, antes del grid */
.category-title-row {
    width: 100%;
    padding: 0 0 10px 0;
    margin-bottom: 5px;
}

.category-page-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: var(--brand-dark);
    margin: 8px 0 20px 0 !important;
    line-height: 1.2;
    text-transform: none;
    padding-left: 0 !important;
}

/* Eliminar el H1 antiguo de .block-category.card-block (ya no se usa) */
.block-category.card-block h1 {
    display: none !important;
}

/* [secciones antiguas sidebar eliminadas - ver Sección 4 al final] */


/* =========================================
   DISEÑO PÁGINAS DE CATEGORÍA / MARCAS (legacy cleanup)
   ========================================= */

/* Ocultar Listado de Subcategorías en la cabecera */
#subcategories {
    display: none !important;
}

/* Rediseño Cabecera de Categoría (Solo título H1) */
.block-category.card-block {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 30px;
}
.block-category.card-block h1 {
    font-size: 28px !important;
    font-weight: 600 !important;
    color: var(--brand-dark);
    margin: 0;
    text-align: left;
}
.block-category .category-cover {
    display: none !important; /* Por si el TPL no bloqueó la imagen */
}

/* Contenedor SEO al fondo (Footer Description) */
.seo-description {
    background: #fff;
    padding: 25px 0;
    margin-top: 40px;
    border-top: 1px solid #eaeaea;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}
.seo-description p {
    margin-bottom: 15px;
}

/* Tag Cloud pill-style para Enlaces (.btn-silo) */
.seo-description a.btn-silo {
    display: inline-block;
    border: 1px solid var(--brand-green);
    color: var(--brand-green);
    border-radius: 20px;
    padding: 6px 16px;
    margin: 4px 6px 4px 0;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    transition: all 0.3s ease;
}
.seo-description a.btn-silo:hover {
    background: var(--brand-green);
    color: #fff;
}

/* Enlaces Clásicos subrayados (.link-subrayado) */
.seo-description a.link-subrayado {
    color: var(--brand-green);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}
.seo-description a.link-subrayado:hover {
    color: var(--brand-dark);
}

/* =========================================
   DISEÑO ORDENACION Y PAGINACION
   ========================================= */

/* Caja Filtro Ordenar Por Limpia */
.products-sort-order .select-title {
    background: transparent !important;
    border: 1px solid #ddd !important;
    border-radius: 10px !important;
    padding: 7px 14px !important;
    color: #555 !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: space-between;
    width: 220px !important;
    white-space: nowrap;
    cursor: pointer;
}
.products-sort-order .select-title .sort-selected-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.products-sort-order .select-title i.material-icons {
    margin-left: 8px;
    font-size: 18px;
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 6px;
}
.products-sort-order {
    background: transparent !important;
}
.products-sort-order .dropdown-menu {
    min-width: 0 !important;
    width: auto !important;
    border-radius: 10px !important;
    border: 1px solid #eee !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
    padding: 6px 0 !important;
    background: #fff !important;
}
/* Sort: nth-child(2) = columna correcta (hay 3 hijos en products-selection) */
#js-product-list-top > .col-md-6:nth-child(2) {
    text-align: right !important;
}
/* sort-by-row: display:flex con margenes Bootstrap reseteados */
.sort-by-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
    width: 94% !important;
}
.sort-by-row .sort-by,
.sort-by-row .products-sort-order {
    float: none !important;
    width: auto !important;
    padding: 0 !important;
    flex-shrink: 0;
}
.sort-by-row .sort-by {
    white-space: nowrap !important;
    font-size: 14px;
    font-weight: 400;
    color: #555;
    margin-right: 4px;
    flex-shrink: 0;
}
/* Dropdown menu: ancho suficiente para opciones largas */
.products-sort-order .dropdown-menu {
    min-width: 200px !important;
}
/* Opciones del dropdown: estilo moderno (igual que filtros sidebar) */
.products-sort-order .select-list {
    display: block !important;
    padding: 8px 18px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-family: 'Montserrat', sans-serif !important;
    color: var(--brand-dark) !important;
    background: transparent !important;
    border: none !important;
    transition: color 0.15s, background 0.15s;
}
.products-sort-order .select-list:hover,
.products-sort-order .select-list:focus {
    color: var(--brand-green) !important;
    background: #f7f7f7 !important;
    text-decoration: none !important;
}
.products-sort-order .select-title:hover {
    border-color: var(--brand-green) !important;
}

/* Paginacion Moderna */
.grafs-pagination {
    margin-top: 32px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
}
.grafs-pagination .pagination-summary {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #555;
    float: none !important;
    padding: 0 !important;
}
.grafs-pagination .pagination-pages {
    float: none !important;
    padding: 0 !important;
    display: flex;
    justify-content: flex-end;
}
.grafs-pagination .page-list {
    background: transparent !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.grafs-pagination .page-list li {
    display: flex;
}
.grafs-pagination .page-list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    background: transparent !important;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.18s ease;
}
.grafs-pagination .page-list li a:hover {
    color: var(--brand-dark);
    background: #f5f5f5 !important;
    border-color: #eee;
}
.grafs-pagination .page-list li.current a {
    color: var(--brand-green) !important;
    background: transparent !important;
    border-color: transparent !important;
    font-weight: 700 !important;
}
.grafs-pagination .page-list li .prev-btn,
.grafs-pagination .page-list li .next-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd !important;
    color: #555;
    background: transparent !important;
}
.grafs-pagination .page-list li .prev-btn:hover,
.grafs-pagination .page-list li .next-btn:hover {
    border-color: var(--brand-green) !important;
    color: var(--brand-green);
    background: transparent !important;
}
.grafs-pagination .page-list li .prev-btn i.material-icons,
.grafs-pagination .page-list li .next-btn i.material-icons {
    font-size: 18px;
    line-height: 1;
}
.grafs-pagination .page-list li .spacer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #aaa;
    font-size: 14px;
}
.grafs-pagination .page-list li .disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* Escalar logo de la tienda PRO para que coincida visualmente con el tamao del de B2C */
img.logo.pro-logo {
    transform: scale(1.65);
    transform-origin: left center;
}
@media (max-width: 767px) {
    img.logo.pro-logo {
        transform-origin: center center;
    }
}

/* =========================================
   PÁGINA DE CATEGORÍA — TÍTULO + BANNER PANORÁMICO
   ========================================= */

/* Ocultar el contenedor card por defecto del tema */
.block-category.card.card-block {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Ocultar cualquier card de PS que envuelva el header antiguo */
#js-product-list-header .block-category {
    display: none;
}

/* H1 de categoría */
.category-page-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 12px 0 16px 0;
    padding-left: 0;
    line-height: 1.2;
}

/* Banner panorámico */
.cat-banner-wide {
    width: 100%;
    margin-top: 0;
    margin-bottom: 24px;
    border-radius: 10px;
    overflow: hidden;
}

.cat-banner-wide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Slider */
.cat-banner-wide.gcb-slider {
    position: relative;
    overflow: hidden;
}
.gcb-slider .gcb-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    transition: transform 0.5s ease;
    will-change: transform;
}
.gcb-slider .gcb-slide {
    overflow: hidden;
}
.gcb-prev,
.gcb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.80);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease;
    font-size: 0;
}
.gcb-prev:hover,
.gcb-next:hover { background: rgba(255, 255, 255, 0.97); }
.gcb-prev::after,
.gcb-next::after {
    font-size: 18px;
    line-height: 1;
    color: #444;
    font-weight: 400;
    display: block;
}
.gcb-prev::after { content: '‹'; margin-right: 2px; }
.gcb-next::after { content: '›'; margin-left: 2px; }
.gcb-prev { left: 8px; }
.gcb-next { right: 8px; }
.gcb-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.gcb-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: background 0.2s;
}
.gcb-dot.active { background: #fff; }

/* Tablet */
@media (max-width: 992px) {
    .category-page-title {
        font-size: 22px;
    }
}

/* Móvil */
@media (max-width: 767px) {
    .category-page-title {
        font-size: 18px;
        margin: 8px 0 12px 0;
    }
}


/* =========================================
   SECCIÓN 4 — COLUMNA IZQUIERDA (CATEGORÍAS, MARCAS, FACETAS)
   ========================================= */

/* ---- Contenedor ---- */
#left-column {
    padding-right: 20px;
    margin-top: 15px;
}

/* ---- Reset wrappers de PS que añaden fondo gris ---- */
/* ps_categorytree envuelve .category-tree en un contenedor con clase block_content */
#left-column .block_content,
#left-column .block-category {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

/* ---- Card base filtros ---- */
#left-column .category-tree,
#left-column #search_filters {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 18px 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* ---- Card subcategorías — recuadro grisáceo ---- */
#left-column .block-categories {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 24px;
    margin-bottom: 16px;
}

/* ---- Subcategorías: selector real del template grafs ----
   HTML: div.block-categories > ul.category-top-menu > li > ul.category-sub-menu > li[data-depth="0"] > a */
.block-categories .category-sub-menu li[data-depth="0"] > a {
    border-bottom: none !important;
    font-size: 14px !important;
    padding: 7.7px 0 !important;
    display: block;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    transition: color 0.18s;
}
.block-categories .category-sub-menu li[data-depth="0"] > a:hover {
    color: var(--brand-green);
}

/* ========================================
   ÁRBOL DE CATEGORÍAS (ps_categorytree)
   HTML: div.category-tree > ul > li > a (raíz)
         div.category-tree > ul > li > div > ul > li > a (hijos)
   ======================================== */

.category-tree ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Nombre de categoría raíz — título de la card */
.category-tree > ul > li:first-child > a {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-dark);
    text-decoration: none;
    padding-bottom: 12px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--brand-green);
    pointer-events: none;
    cursor: default;
}

/* Categorías hermanas al mismo nivel */
.category-tree > ul > li + li > a {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    padding: 7px 0;
    text-decoration: none;
    border-bottom: 1px solid #f4f4f4;
    transition: color 0.18s;
    line-height: 1.4;
}

.category-tree > ul > li + li > a:hover {
    color: var(--brand-green);
}

/* Subcategorías del nivel expandido */
.category-tree ul ul li {
    border-bottom: none !important;
    border-top: none !important;
}
.category-tree ul ul li a {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #555;
    padding: 6.6px 0 6.6px 4px;
    text-decoration: none;
    border-bottom: none !important;
    border-top: none !important;
    transition: color 0.18s;
    line-height: 1.4;
    position: relative;
}

.category-tree ul ul li a::before {
    content: 'o';
    margin-right: 6px;
    font-size: 9px;
    color: #bbb;
    vertical-align: middle;
}

.category-tree ul ul li a:hover {
    color: var(--brand-green);
}

.category-tree ul ul li a:hover::before {
    color: var(--brand-green);
}

/* Categoría activa */
.category-tree ul li.current > a {
    color: var(--brand-green) !important;
    font-weight: 600;
}

.category-tree ul ul li.current > a::before {
    color: var(--brand-green) !important;
}

/* Scrollbar si hay muchos elementos */
.category-tree > ul > li > div {
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-green) #f0f0f0;
}

.category-tree > ul > li > div::-webkit-scrollbar { width: 3px; }
.category-tree > ul > li > div::-webkit-scrollbar-thumb { background: var(--brand-green); border-radius: 4px; }


/* ========================================
   FACETAS (ps_facetedsearch v3.7)
   HTML: div#search_filters > section.facet >
     p.h6.facet-title.hidden-sm-down (desktop) |
     div.title.hidden-md-up (mobile accordion) >
     ul.collapse > li > label.facet-label >
       span.custom-checkbox > input[checkbox] + span > i.checkbox-checked
       a.search-link
       span.magnitude
   ======================================== */

/* Ocultar el título generico "Filter By" */
#search_filters > p.h6 {
    display: none;
}

/* Titulo de cada grupo (desktop) */
#search_filters .facet .facet-title.hidden-sm-down {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-dark);
    padding: 14px 0 8px 0;
    margin: 0 0 4px 0;
    border-top: 1px solid #f0f0f0;
    display: block;
}

#search_filters .facet:first-of-type .facet-title.hidden-sm-down {
    border-top: none;
    padding-top: 0;
}

/* Lista de opciones */
#search_filters .facet ul {
    list-style: none;
    padding: 0;
    margin: 0 0 4px 0;
}

#search_filters .facet ul li { margin-bottom: 1px; }

/* Label de opcion */
#search_filters .facet-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 0;
    line-height: 1.4;
    transition: color 0.15s;
}

#search_filters .facet-label:hover { color: var(--brand-green); }

#search_filters .facet-label.active {
    color: var(--brand-green);
    font-weight: 600;
}

/* ---- Checkbox (markup PS): span.custom-checkbox > input + span > i ---- */

#search_filters .custom-checkbox {
    position: relative;
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

#search_filters .custom-checkbox input[type="checkbox"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
    cursor: pointer;
    z-index: 1;
    width: 100%;
    height: 100%;
}

/* El span es el cuadro visual */
#search_filters .custom-checkbox > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1.5px solid #d0d0d0;
    border-radius: 4px;
    background: #fff;
    transition: background 0.2s, border-color 0.2s;
    pointer-events: none;
    flex-shrink: 0;
}

/* Checkmark oculto por defecto */
#search_filters .custom-checkbox > span i.checkbox-checked {
    font-size: 13px;
    color: transparent;
    transition: color 0.15s;
}

/* Estado marcado */
#search_filters .custom-checkbox input:checked + span {
    background: var(--brand-green);
    border-color: var(--brand-green);
}

#search_filters .custom-checkbox input:checked + span i.checkbox-checked {
    color: #fff;
}

/* Enlace del filtro */
#search_filters .facet-label .search-link {
    color: #444;
    text-decoration: none;
    font-size: 13px;
    flex: 1;
    transition: color 0.15s;
}

#search_filters .facet-label:hover .search-link { color: var(--brand-green); }

/* Contador */
#search_filters .facet-label .magnitude {
    font-size: 11px;
    color: #aaa;
    margin-left: auto;
    white-space: nowrap;
}

/* Input busqueda dentro de faceta */
#search_filters input[type="text"],
#search_filters .search-box input {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 12px;
    color: var(--brand-dark);
    outline: none;
    margin-bottom: 10px;
    transition: border-color 0.2s;
    background: #f9f9f9;
}

#search_filters input[type="text"]:focus,
#search_filters .search-box input:focus {
    border-color: var(--brand-green);
    background-color: #fff;
}

/* Boton limpiar filtros */
.clear-all-wrapper { margin-bottom: 10px; }

.js-search-filters-clear-all {
    font-size: 12px;
    color: #888;
    background: none;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 4px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s, border-color 0.2s;
}

.js-search-filters-clear-all:hover { color: #c0392b; border-color: #c0392b; }
.js-search-filters-clear-all .material-icons { font-size: 13px; }

/* Contador "Hay X productos en Categoría": número y categoría en verde+bold */
.total-products .grafs-count-num {
    color: var(--brand-green, #889926);
    font-weight: 700;
}

/* Filtros activos: estilo moderno (pills, sin sombra) */
.active_filters {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin-bottom: 10px;
}
.active_filters .active-filter-title {
    font-size: 12px !important;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 8px;
    display: block !important;
    margin-bottom: 8px;
}
.active_filters ul {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}
.active_filters li {
    display: flex !important;
}
.active_filters .filter-block {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    background: #fff !important;
    border: 1px solid var(--brand-green) !important;
    color: var(--brand-dark) !important;
    border-radius: 20px !important;
    padding: 4px 10px 4px 12px !important;
    font-size: 12px !important;
    font-weight: 500;
    box-shadow: none !important;
    transition: background 0.15s;
}
.active_filters .filter-block:hover {
    background: #f0faf4 !important;
}
.active_filters .filter-block .close {
    color: var(--brand-green) !important;
    font-size: 14px !important;
    opacity: 0.8 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    float: none !important;
}
.active_filters .filter-block .close:hover {
    opacity: 1 !important;
    color: #c0392b !important;
}
/* Pill Eliminar todos: quitar borde verde del li padre */
.active_filters .grafs-clear-all-pill.filter-block {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}
.active_filters .grafs-clear-all-pill .grafs-clear-all-link {
    display: inline-flex !important;
    align-items: center;
    gap: 3px;
    color: #888 !important;
    font-size: 12px !important;
    font-weight: 600;
    text-decoration: none !important;
    border: 1px solid #ddd !important;
    border-radius: 20px !important;
    padding: 4px 10px 4px 8px !important;
    background: transparent !important;
    transition: all 0.15s;
}
.active_filters .grafs-clear-all-pill .grafs-clear-all-link:hover {
    color: #c0392b !important;
    border-color: #c0392b !important;
    background: #fff5f5 !important;
}
.active_filters .grafs-clear-all-pill .grafs-clear-all-link .material-icons {
    font-size: 13px !important;
}

/* Slider precio */
.faceted-slider { padding: 8px 4px 4px; }

/* Acordeon movil */
#search_filters .facet .title.hidden-md-up {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
}

#search_filters .facet .title.hidden-md-up .facet-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    padding: 0;
    border: none;
}

/* ---- RESPONSIVE movil ---- */
@media (max-width: 767px) {
    #left-column {
        padding-right: 0;
        margin-bottom: 16px;
    }

    #left-column .category-tree,
    #left-column #search_filters {
        border-radius: 8px;
        padding: 14px 12px;
        margin-bottom: 12px;
    }

    .category-tree > ul > li + li > a,
    .category-tree ul ul li a {
        font-size: 14px;
        padding: 9px 0;
    }

    #search_filters .facet-label {
        font-size: 14px;
        padding: 7px 0;
    }

    #search_filters .custom-checkbox,
    #search_filters .custom-checkbox > span {
        width: 20px;
        height: 20px;
    }
}

/* ── Rappel / descuentos por volumen ── */
.grafs-volume-discounts {
    margin: 12px 0;
}

.grafs-volume-discounts .product-discounts-title {
    color: var(--brand-green);
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 7px;
}

.volume-discounts-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
}

.discount-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.discount-row:hover {
    border-color: var(--brand-green);
    background: #f7fbf4;
}

.discount-row.active {
    border-color: var(--brand-green);
    background: #f7fbf4;
    font-weight: 700;
}

.discount-qty {
    font-weight: 700;
    color: #333;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.discount-price {
    color: #555;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.discount-save {
    background: #e8e8e8;
    color: #333;
    padding: 1px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
}


/* ── Logo fabricante en Detalles del producto ── */
.product-manufacturer .manufacturer-logo {
    max-width: 95px !important;
    max-height: 95px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

/* ═══════════════════════════════════════════════════
   CARRITO — Diseño plano moderno
   ═══════════════════════════════════════════════════ */

/* Layout principal: lista izquierda + sidebar derecho */
.grafs-cart-grid {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    padding: 8px 0 24px;
}
.grafs-cart-body {
    flex: 1;
    min-width: 0;
}
.grafs-cart-sidebar {
    width: 380px;
    flex-shrink: 0;
}

/* Header del carrito */
.grafs-cart-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}
.grafs-cart-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--brand-dark, #1a1a1a);
    margin: 0;
}
.grafs-continue-link {
    font-size: 13px;
    color: #888;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 2px;
}
.grafs-continue-link:hover { color: var(--brand-green); text-decoration: none; }
.grafs-continue-link .material-icons { font-size: 16px; }

/* Cabecera de columnas */
/* padding-left: 20px → "PRODUCTO" arranca en la misma x que las imágenes */
.cart-columns-header {
    display: flex;
    align-items: center;
    padding: 8px 20px 8px 20px;
    border-top: 2px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #bbb;
}
.cart-col-product { flex: 1; }
.cart-col-qty     { width: 120px; text-align: center; }
/* cart-col-total abarca precio(100px) + icono-borrar(40px), texto alineado a la derecha del precio */
.cart-col-total   { width: 140px; text-align: right; padding-right: 40px; }

/* Lista */
.cart-items { list-style: none; margin: 0; padding: 0; }
.cart-item { border-bottom: 1px solid #f0f0f0; background: #fff; }
.cart-item:last-child { border-bottom: none; }

/* ── Fila de producto ── */
.cart-item-line {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 12px 20px 20px;
}

/* Imagen */
.cart-item-img-link { flex-shrink: 0; }
.cart-item-img-link img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #ebebeb;
    background: #fafafa;
}

/* Cuerpo */
.cart-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.cart-item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-dark, #1a1a1a);
    line-height: 1.35;
    text-decoration: none;
}
.cart-item-name:hover { color: var(--brand-green); text-decoration: none; }

/* Precio unitario */
.cart-item-unit-price { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.cart-current-price   { font-size: 15px; font-weight: 700; color: #1a1a1a; }
.cart-item-unit-price.has-discount .cart-current-price { color: #f36767; }
.cart-regular-price   { font-size: 12px; color: #bbb; text-decoration: line-through; }
.cart-discount-badge  {
    font-size: 11px; font-weight: 700; color: #f36767;
    background: #fde8e8;
    border-radius: 20px; padding: 2px 8px;
}
.cart-unit-price-full { font-size: 11px; color: #aaa; }

/* Atributos */
.cart-item-attribute { font-size: 12px; color: #888; }
.cart-item-attribute .label { font-weight: 600; }

/* Rappels en carrito — pills apiladas a ancho completo, badge verde claro a la derecha */
.cart-rappels-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    width: 100%;
}
.cart-rappel-pill {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    width: 100%;
    box-sizing: border-box;
}
.cart-rappel-pill:hover { border-color: var(--brand-green); background: #f7fbf4; }
.cart-rappel-pill.active { border-color: var(--brand-green); background: #f7fbf4; }
.cart-rappel-sep { display: none; }
.cart-rappel-qty { font-weight: 700; color: #1a1a1a; font-size: 13px; white-space: nowrap; }
.cart-rappel-price { color: #555; font-size: 13px; white-space: nowrap; }

/* Toggle abreviatura unidades — desktop muestra largo, móvil muestra corto */
.rappel-unit-short { display: none; }
@media (max-width: 767px) {
    .rappel-unit-full  { display: none; }
    .rappel-unit-short { display: inline; }
    .cart-rappel-qty   { font-size: 13px; }
    .cart-rappel-price { font-size: 13px; }
    .cart-rappel-badge { font-size: 11px; padding: 2px 10px; }
    .cart-rappel-pill  { padding: 3px 12px; gap: 10px; }
}
.cart-rappel-badge {
    margin-left: auto;
    background: #eaf3dc;
    color: var(--brand-green, #3d7a3a);
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 11px;
    white-space: nowrap;
}

/* ── Totales (móvil): regular tachado + total línea — oculto en desktop ── */
.cart-item-totals {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    gap: 2px;
    min-width: 78px;
}
.cart-totals-strike {
    font-size: 13px;
    color: #aaa;
    text-decoration: line-through;
    line-height: 1.2;
}
.cart-totals-final {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-dark, #1a1a1a);
    line-height: 1.2;
}

/* ── Derecha: qty + delete (pills separadas) ── */
.cart-item-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Qty control — pill con esquinas suaves (mismo radio que el resto de pills del sitio) */
.cart-qty-control {
    display: flex;
    align-items: center;
    width: 132px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.cart-qty-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    transition: background 0.15s, color 0.15s;
}
.cart-qty-btn:hover { background: var(--brand-green, #3d7a3a); color: #fff; }
.cart-qty-btn .material-icons { font-size: 18px; }

.grafs-cart-qty {
    flex: 1;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-dark, #1a1a1a);
    background: #fff;
    -moz-appearance: textfield;
    cursor: default;
    min-width: 0;
}
/* Ocultar flecha nativa del browser en input type=number */
.grafs-cart-qty::-webkit-inner-spin-button,
.grafs-cart-qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.grafs-cart-qty::-webkit-outer-spin-button,
.grafs-cart-qty::-webkit-inner-spin-button { -webkit-appearance: none !important; margin: 0; }

/* Total línea (desktop) — restaurado dentro de .cart-item-right */
.cart-item-total {
    width: 100px;
    text-align: right;
    font-size: 15px;
    font-weight: 600;
    color: var(--brand-dark, #1a1a1a);
    padding-right: 4px;
}

/* Eliminar — pill cuadrada al lado del qty */
.cart-item-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    color: #888;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    cursor: pointer;
}
.cart-item-remove:hover {
    color: #e74c3c;
    border-color: #f3c5c0;
    background: #fdf3f2;
    text-decoration: none;
}
.cart-item-remove .material-icons { font-size: 18px; }

/* ── Sidebar resumen ── */
.grafs-cart-summary-box {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 22px 20px 18px;
}

/* ─ PRECIO header ─ */
.grafs-price-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #aaa;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

/* ─ Filas subtotales ─ */
.grafs-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 5px 0;
    font-size: 14px;
    color: #555;
}
.grafs-total-row .grafs-total-value { font-weight: 600; color: #333; }
.grafs-discount-row .grafs-total-value { color: var(--brand-green); }
.grafs-shipping-pending {
    font-size: 12px;
    color: #aaa;
    margin: 0 0 6px;
}
.grafs-shipping-detail {
    font-size: 12px;
    color: #aaa;
    margin: 0 0 6px;
}

/* ─ Total grande ─ */
.grafs-grand-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 0 8px;
    margin-top: 10px;
    border-top: 2px solid var(--brand-green);
}
.grafs-grand-label {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}
.grafs-grand-label-small {
    font-size: 12px;
    font-weight: 400;
    color: #888;
}
.grafs-grand-value {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
}
.grafs-tax-note {
    font-size: 12px;
    color: #aaa;
    margin: 0 0 4px;
    text-align: right;
}

/* ─ Cupón ─ */
.grafs-coupon-section {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}
.grafs-coupon-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
}
.grafs-coupon-applied {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--brand-green);
    padding: 4px 0;
}
.grafs-coupon-remove {
    color: #bbb;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.grafs-coupon-remove:hover { color: #e74c3c; text-decoration: none; }
.grafs-coupon-remove .material-icons { font-size: 16px; }
.grafs-coupon-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    padding: 4px 0;
    user-select: none;
}
.grafs-coupon-toggle:hover { color: var(--brand-green); }
.grafs-coupon-chevron { font-size: 18px; transition: transform 0.2s; }
.grafs-coupon-toggle[aria-expanded="true"] .grafs-coupon-chevron { transform: rotate(180deg); }
.grafs-coupon-form {
    display: flex;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}
.grafs-coupon-input {
    flex: 1;
    border: 0 !important;
    padding: 10px 12px !important;
    font-size: 13px;
    font-family: inherit;
    outline: 0 !important;
    background: #fff !important;
    min-width: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}
.grafs-coupon-input:focus {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
}
.grafs-coupon-form:focus-within {
    border-color: #264934 !important;
    box-shadow: 0 0 0 2px rgba(38,73,52,.10);
}
.grafs-coupon-input::placeholder { color: #bbb; }
.grafs-coupon-btn {
    background: transparent;
    border: none;
    border-left: 1px solid #ddd;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-green);
    cursor: pointer;
    white-space: nowrap;
}
.grafs-coupon-btn:hover { background: #f7fbf4; }

/* ─ Cart actions ─ */
.grafs-cart-actions { margin-top: 16px; }
.grafs-gift-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #555;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    cursor: pointer;
    margin-bottom: 4px;
}
.grafs-gift-check {
    width: 15px;
    height: 15px;
    accent-color: var(--brand-green);
    cursor: pointer;
    flex-shrink: 0;
}
.grafs-gift-row .material-icons { font-size: 18px; color: #bbb; margin-left: auto; }
.grafs-checkout-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background: var(--brand-green);
    color: #fff !important;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.2s;
    margin-top: 10px;
}
.grafs-checkout-btn:hover { background: #2d6440; color: #fff !important; }
.grafs-checkout-btn[disabled],
.grafs-checkout-btn:disabled { background: #ccc; cursor: default; pointer-events: none; }

/* ============================================================
   CARRITO VACÍO — tarjeta amigable + CTA
   Reemplaza el "no-items" + botón disabled "Revisar" del classic.
   ============================================================ */

/* Ocultar sidebar de resumen cuando el carrito está vacío
   (PS añade body.cart-empty automáticamente) */
body.cart-empty .grafs-cart-sidebar { display: none !important; }
body.cart-empty .grafs-cart-grid {
    display: block;
}

.grafs-empty-cart {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 48px 40px;
    text-align: center;
    max-width: 560px;
    margin: 24px auto;
}
.grafs-empty-cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f7fbf4;
    color: var(--brand-green);
    margin-bottom: 18px;
}
.grafs-empty-cart-icon .material-icons {
    font-size: 40px;
}
.grafs-empty-cart-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.3;
}
.grafs-empty-cart-sub {
    font-size: 14px;
    color: #777;
    margin: 0 0 28px;
    line-height: 1.5;
}
.grafs-empty-cart-btn {
    display: inline-block;
    width: 100%;
    max-width: 320px;
    padding: 14px 28px;
    background: var(--brand-green);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    border-radius: 8px;
    text-decoration: none !important;
    letter-spacing: 0.04em;
    transition: background 0.2s;
}
.grafs-empty-cart-btn:hover {
    background: #2d6440;
    color: #fff !important;
}

@media (max-width: 768px) {
    .grafs-empty-cart {
        padding: 40px 20px;
        margin: 16px auto;
    }
    .grafs-empty-cart-icon { width: 60px; height: 60px; margin-bottom: 14px; }
    .grafs-empty-cart-icon .material-icons { font-size: 30px; }
    .grafs-empty-cart-title { font-size: 18px; }
    .grafs-empty-cart-sub { font-size: 13px; margin-bottom: 22px; }
    .grafs-empty-cart-btn { max-width: 100%; }
}

/* ─ Trust badges (debajo del sidebar) ─ */
.grafs-trust-badges-cart {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    background: #fff;
}
.grafs-trust-badges-cart .blockreassurance_product {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.grafs-trust-badges-cart .blockreassurance_product > div:not(.clearfix) {
    display: flex;
    align-items: center;
    gap: 10px;
}
.grafs-trust-badges-cart .blockreassurance_product .item-product {
    display: flex;
    align-items: center;
    width: 22px;
    flex-shrink: 0;
}
.grafs-trust-badges-cart .blockreassurance_product .item-product img,
.grafs-trust-badges-cart .blockreassurance_product img.svg {
    width: 20px !important;
    height: 20px !important;
    visibility: visible !important;
    object-fit: contain;
}
.grafs-trust-badges-cart .blockreassurance_product p.block-title,
.grafs-trust-badges-cart .blockreassurance_product span.block-title {
    font-size: 13px;
    color: #555;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}
.grafs-trust-badges-cart .blockreassurance_product .clearfix { display: none; }

/* ─ Subtotal count (N artículos) ─ */
.grafs-subtotal-count {
    font-weight: 400;
    font-size: 13px;
    color: #999;
}

/* ─ Sección pagos seguros ─ */
.grafs-payment-section {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    background: #fff;
    text-align: center;
}
.grafs-payment-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 10px;
    width: 100%;
}
.grafs-payment-title .material-icons {
    font-size: 15px;
    color: var(--brand-green);
}
.grafs-payment-banner {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 991px) {
    .grafs-cart-grid { flex-direction: column; }
    .grafs-cart-sidebar { width: 100%; }
}
@media (max-width: 767px) {
    /* Cabecera columnas (solo Producto + Total — Cantidad va en su propia fila) */
    .cart-columns-header {
        display: flex;
        padding: 8px 14px;
        font-size: 10px;
    }
    .cart-col-qty { display: none; }
    .cart-col-total { width: auto; padding-right: 0; min-width: 78px; }

    .cart-item-line {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 2px 12px;
        padding: 18px 14px;
    }

    /* display:contents promueve los hijos del body al nivel del .cart-item-line
       para poder ordenar qty/eliminar ANTES de los rappels */
    .cart-item-body {
        display: contents;
    }

    .cart-item-img-link {
        order: 1;
        flex: 0 0 70px;
    }
    .cart-item-img-link img { width: 70px; height: 70px; }

    .cart-item-name {
        order: 2;
        flex: 1 1 0;
        min-width: 0;
    }
    .cart-item-totals {
        display: flex;
        order: 3;
        align-self: flex-start;
        min-width: auto;
    }
    .cart-totals-final { font-size: 17px; }

    /* Fila qty + eliminar — indentada bajo el nombre del producto (alineada con la columna del cuerpo, no desde la imagen) */
    .cart-item-right {
        order: 4;
        flex: 0 0 calc(100% - 82px);
        margin-left: 82px;
        justify-content: flex-start;
        gap: 10px;
        margin-top: 0;
    }

    /* Rappels y atributos debajo de qty, mismo indentado */
    .cart-rappels-block {
        order: 5;
        flex: 0 0 calc(100% - 82px);
        margin-left: 82px;
        width: auto;
        /* Separación visible respecto a la pill de cantidad — ~2× la gap interna entre rappels (6px) */
        margin-top: 14px;
    }
    .cart-item-attribute {
        order: 6;
        flex: 0 0 calc(100% - 82px);
        margin-left: 82px;
    }

    /* Móvil: el total de línea (desktop) y el precio unitario quedan ocultos
       — la línea de totales (.cart-item-totals) ya muestra todo */
    .cart-item-total { display: none !important; }
    .cart-item-unit-price { display: none !important; }
}

/* ═══════════════════════════════════════════════════
   CARRITO — Full-width via contenedor propio
   ═══════════════════════════════════════════════════ */

/* Quitar fondo gris del wrapper solo en carrito */
body#cart #wrapper {
    background: #fff;
    box-shadow: none;
    padding-top: 0;
}

/* Contenedor carrito — mismo ancho que el header custom (85vw, max 1700px) */
.grafs-container-fluid {
    width: 85%;
    max-width: 1700px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}
@media (max-width: 768px) { .grafs-container-fluid { width: 100%; padding: 0 12px; } }

/* En el carrito, márgenes ligeramente menores para aprovechar más espacio (solo desktop) */
@media (min-width: 769px) {
    body#cart #wrapper .container {
        width: 90% !important;
    }

    /* El content-wrapper ocupa todo el ancho del grafs-container-fluid (mismo ancho que el header) */
    body#cart #content-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none;
    }
}

/* Móvil: usar el mismo 92% que el resto del sitio */
@media (max-width: 768px) {
    body#cart #content-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none;
    }
}
body#cart .grafs-cart-grid {
    width: 100%;
}

/* =========================================
   CHECKOUT (order page) — body#checkout
   ========================================= */

/* Fondo blanco — el classic hereda un fondo gris en el wrapper */
body#checkout,
body#checkout #wrapper,
body#checkout section#wrapper,
body#checkout #content,
body#checkout .checkout-step .content {
    background: #fff !important;
}

/* Montserrat en todo el checkout — excepto Material Icons */
body#checkout,
body#checkout *:not(.material-icons):not(i.material-icons) {
    font-family: 'Montserrat', sans-serif !important;
}
/* Restaurar Material Icons en checkout */
body#checkout .material-icons,
body#checkout i.material-icons {
    font-family: 'Material Icons' !important;
}

/* Container — más estrecho que el carrito, checkout es una vista enfocada (solo desktop) */
@media (min-width: 769px) {
    body#checkout #wrapper .container {
        width: 72% !important;
    }
}

/* Grid principal: steps + sidebar */
.grafs-order-grid {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 24px 0;
}
.grafs-order-steps {
    flex: 1;
    min-width: 0;
    /* anular clases Bootstrap del classic */
    width: auto !important;
    float: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.grafs-order-sidebar {
    width: 380px;
    flex-shrink: 0;
    /* anular Bootstrap */
    float: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ── Checkout steps ── */
.checkout-step {
    background: #fff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    margin-bottom: 12px !important;
    overflow: hidden !important;
}

/* h1.step-title.h3 — anular h1/h3 defaults del classic */
.checkout-step .step-title,
.checkout-step h1.step-title {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px 20px !important;
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: #aaa !important;
    background: #fafafa !important;
    border-bottom: 0 !important;
    cursor: default !important;
    line-height: 1 !important;
}
.checkout-step.-current .step-title,
.checkout-step.-current h1.step-title {
    color: #1a1a1a !important;
    background: #fff !important;
}
.checkout-step.-complete .step-title,
.checkout-step.-complete h1.step-title {
    color: var(--brand-green) !important;
    cursor: pointer !important;
}
.checkout-step.-complete .step-title:hover { background: #f7fbf4 !important; }

/* Número del paso — círculo */
.checkout-step .step-title .step-number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background: #ccc !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}
.checkout-step.-current .step-title .step-number {
    background: var(--brand-green) !important;
}
.checkout-step.-complete .step-title .step-number {
    display: none !important;
}
/* Check en pasos completos */
.checkout-step .step-title .done {
    display: none !important;
}
.checkout-step.-complete .step-title .done {
    display: inline !important;
    color: var(--brand-green) !important;
    font-size: 20px !important;
}

/* Editar paso */
.checkout-step .step-edit {
    margin-left: auto !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--brand-green) !important;
    display: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.checkout-step.-complete .step-edit {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
}

/* Contenido del paso */
.checkout-step .content {
    padding: 24px 20px !important;
    background: #fff !important;
}
.checkout-step:not(.-current):not(.-complete) .content,
.checkout-step.-complete .content { display: none !important; }
.checkout-step.-current .content { display: block !important; }

/* ── Formularios — labels ── */
body#checkout label,
body#checkout .form-control-label,
body#checkout .label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #444 !important;
    margin-bottom: 5px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    background: none !important;
    padding: 0 !important;
}

/* ── Inputs: selectores amplios para ganar al classic compilado ── */
body#checkout input[type="text"],
body#checkout input[type="email"],
body#checkout input[type="password"],
body#checkout input[type="tel"],
body#checkout input[type="date"],
body#checkout input[type="number"],
body#checkout select,
body#checkout textarea,
body#checkout .form-control {
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    height: 40px !important;
    padding: 0 12px !important;
    color: #1a1a1a !important;
    background-color: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
body#checkout textarea,
body#checkout textarea.form-control {
    height: auto !important;
    padding: 10px 12px !important;
}
body#checkout input[type="text"]:focus,
body#checkout input[type="email"]:focus,
body#checkout input[type="password"]:focus,
body#checkout input[type="tel"]:focus,
body#checkout input[type="date"]:focus,
body#checkout select:focus,
body#checkout textarea:focus,
body#checkout .form-control:focus {
    border-color: var(--brand-green) !important;
    box-shadow: 0 0 0 3px rgba(59,130,86,0.1) !important;
    outline: none !important;
}
body#checkout select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 32px !important;
}
/* Input groups (ej: contraseña + MOSTRAR) */
body#checkout .input-group input {
    border-right: none !important;
    border-radius: 8px 0 0 8px !important;
}
body#checkout .input-group-btn .btn {
    border: 1px solid #ddd !important;
    border-left: none !important;
    border-radius: 0 8px 8px 0 !important;
    background: #f7f7f7 !important;
    color: #555 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 0 14px !important;
    height: 40px !important;
    box-shadow: none !important;
}
body#checkout .input-group-btn .btn:hover {
    background: #efefef !important;
    color: #1a1a1a !important;
}

/* ── Botones principales ── */
body#checkout .btn-primary,
body#checkout button[data-link-action],
body#checkout .continue,
body#checkout [name="confirmDeliveryOption"],
body#checkout [name="confirmAddresses"] {
    background: var(--brand-green) !important;
    border-color: var(--brand-green) !important;
    color: #fff !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    padding: 12px 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.2s;
}
body#checkout .btn-primary:hover,
body#checkout .continue:hover {
    background: #2d6440 !important;
    border-color: #2d6440 !important;
}

/* ── Radio buttons (transporte, pago) ── */
body#checkout .radio-block {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
body#checkout .radio-block:hover { border-color: var(--brand-green); background: #f7fbf4; }
body#checkout .radio-block input[type="radio"]:checked + label,
body#checkout .radio-block.selected { border-color: var(--brand-green); background: #f7fbf4; }
body#checkout .carrier-name,
body#checkout .payment-option label span { font-weight: 600; font-size: 14px; color: #1a1a1a; }
body#checkout .carrier-delay { font-size: 12px; color: #888; }
body#checkout .carrier-price { font-weight: 700; color: var(--brand-green); }

/* ── Sección "Olvida de tu contraseña" / login ── */
body#checkout .login-form-footer a { color: var(--brand-green); }

/* ── Sidebar: product summary toggle ── */
.grafs-summary-products {
    margin-bottom: 14px;
}
.grafs-summary-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-green);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.grafs-summary-toggle:hover { text-decoration: none; color: #2d6440; }
.grafs-chevron { font-size: 18px; transition: transform 0.2s; }
.grafs-summary-toggle[aria-expanded="true"] .grafs-chevron { transform: rotate(180deg); }

/* Lista de productos en sidebar */
.grafs-summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.grafs-summary-item {
    border-bottom: 1px solid #f0f0f0;
}
.grafs-summary-item:last-child { border-bottom: none; }
.grafs-sumprod-line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}
.grafs-sumprod-img {
    position: relative;
    flex-shrink: 0;
}
.grafs-sumprod-img img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border: 1px solid #ebebeb;
    border-radius: 6px;
    background: #fafafa;
}
.grafs-sumprod-qty {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--brand-green);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.grafs-sumprod-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.grafs-sumprod-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.grafs-sumprod-attr {
    font-size: 11px;
    color: #888;
}
.grafs-sumprod-price {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    flex-shrink: 0;
}

/* Subtotales en sidebar */
.grafs-summary-subtotals {
    margin-bottom: 4px;
}

@media (max-width: 991px) {
    .grafs-order-grid { flex-direction: column; }
    .grafs-order-sidebar { width: 100%; }
}

/* Quitar outline al hacer click en iconos del header checkout */
body#checkout .grafs-nav-icons a:focus,
body#checkout .grafs-nav-icons button:focus,
body#checkout .grafs-nav-icons a:active,
body#checkout #header a:focus,
body#checkout #header button:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* ============================================================
   CHECKOUT HEADER — logo blanco arriba + barra verde tipo subheader
   ============================================================ */
body#checkout #header {
    border-bottom: none !important;
    box-shadow: none !important;
    background: #fff;
}
body#checkout .grafs-checkout-header {
    background: #fff !important;
    padding: 18px 0 0 !important;
}
.grafs-checkout-header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 17px;
    text-align: center;
}
.grafs-checkout-logo img {
    max-height: 48px;
    width: auto;
    display: block;
}
/* Tagline tipo subheader verde — barra full-width fuera del .container */
.grafs-checkout-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 17px 0 0 !important;
    width: 100%;
    padding: 14px 16px;
    background: #264934;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-sizing: border-box;
}
.grafs-checkout-trust .material-icons {
    font-size: 18px;
    color: #fff;
}
/* Ocultar promo bar y nav antiguos si se cuelan por hooks */
body#checkout .grafs-promo-bar,
body#checkout .header-nav,
body#checkout .grafs-mobile-right-icons,
body#checkout #_mobile_user_info,
body#checkout #_mobile_cart {
    display: none !important;
}

/* ============================================================
   CHECKOUT — refinamiento estético (alineado con login/register)
   ============================================================ */

/* Tarjeta del step más suave, mismo lenguaje que .grafs-auth-card */
.checkout-step {
    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06) !important;
    margin-bottom: 16px !important;
}
.checkout-step .step-title,
.checkout-step h1.step-title {
    background: #fff !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 18px 24px !important;
    font-size: 13px !important;
}
.checkout-step .content {
    padding: 24px !important;
}

/* Inputs alineados con auth (44px en lugar de 42px, mismo focus verde) */
body#checkout input[type="text"],
body#checkout input[type="email"],
body#checkout input[type="password"],
body#checkout input[type="tel"],
body#checkout input[type="date"],
body#checkout input[type="number"],
body#checkout select,
body#checkout .form-control {
    height: 42px !important;
}
body#checkout .input-group-btn .btn {
    height: 42px !important;
}

/* Botón principal del paso — pill verde tipo auth */
body#checkout .btn-primary,
body#checkout button[data-link-action],
body#checkout .continue,
body#checkout [name="confirmDeliveryOption"],
body#checkout [name="confirmAddresses"] {
    height: 46px !important;
    padding: 0 28px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
}

/* ============================================================
   CHECKOUT — móvil
   ============================================================ */
@media (max-width: 768px) {
    /* Container del checkout: 92% global ya da márgenes simétricos.
       Quitar el 72% desktop. */
    body#checkout #wrapper .container {
        width: 92% !important;
        max-width: 92% !important;
    }

    /* Grid apila: steps arriba, sidebar (resumen + pago seguro) debajo */
    .grafs-order-grid {
        flex-direction: column !important;
        gap: 16px !important;
        padding: 12px 0 !important;
    }
    .grafs-order-steps,
    .grafs-order-sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Header móvil compacto — mismo lenguaje que desktop, ligeramente reducido */
    body#checkout .grafs-checkout-header { padding: 14px 0 0 !important; }
    .grafs-checkout-header-inner { gap: 12px; }
    .grafs-checkout-logo img { max-height: 40px; }
    .grafs-checkout-trust { font-size: 13px; padding: 11px 14px !important; }
    .grafs-checkout-trust .material-icons { font-size: 16px; }

    /* Móvil — sin contenedor doble: la tarjeta del step se aplana
       (igual patrón que login/register: padding 0, sin sombra, sin borde,
       sin radio). El container de la página ya da los márgenes. */
    .checkout-step {
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        margin-bottom: 18px !important;
        overflow: visible !important;
    }
    .checkout-step .step-title,
    .checkout-step h1.step-title {
        background: transparent !important;
        border-bottom: 1px solid #f0f0f0 !important;
        padding: 0 0 12px !important;
        margin: 0 0 18px !important;
    }
    .checkout-step .content {
        background: transparent !important;
        padding: 0 !important;
    }

    /* Inputs/select 100% ancho — el classic mete col-md-* que estrechan en móvil */
    body#checkout .form-group,
    body#checkout .form-group > .row,
    body#checkout .form-group [class*="col-"],
    body#checkout .checkout-step .row,
    body#checkout .checkout-step [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    body#checkout input[type="text"],
    body#checkout input[type="email"],
    body#checkout input[type="password"],
    body#checkout input[type="tel"],
    body#checkout input[type="date"],
    body#checkout input[type="number"],
    body#checkout select,
    body#checkout textarea,
    body#checkout .form-control,
    body#checkout .input-group {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Botón continuar a 100% en móvil */
    body#checkout .btn-primary,
    body#checkout button[data-link-action],
    body#checkout .continue,
    body#checkout [name="confirmDeliveryOption"],
    body#checkout [name="confirmAddresses"] {
        width: 100% !important;
    }

    /* Radio blocks (transporte/pago) con padding más generoso al toque */
    body#checkout .radio-block {
        padding: 16px 14px !important;
    }
}

/* =========================================
   LOGIN — body#authentication
   ========================================= */

/* Fondo blanco — login (auth), registro y "olvidé contraseña" comparten estética */
body#authentication,
body#password {
    background: #fff !important;
}
body#authentication #wrapper,
body#authentication section#wrapper,
body#password #wrapper,
body#password section#wrapper {
    background: #fff !important;
    min-height: 80vh;
    padding: 60px 20px 80px !important;
    display: block !important;
}
/* Anular Bootstrap grid — content-wrapper ocupa todo */
body#authentication #wrapper .container,
body#password #wrapper .container {
    width: 94% !important;
    max-width: 94% !important;
    padding: 0 !important;
}
body#authentication #content-wrapper,
body#authentication #columns,
body#password #content-wrapper,
body#password #columns {
    width: 94% !important;
    float: none !important;
    max-width: 94% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}
/* Solo resetear las filas Bootstrap dentro del contenido, no las del header */
body#authentication #content-wrapper .row,
body#authentication #columns .row,
body#password #content-wrapper .row,
body#password #columns .row {
    margin: 0 !important;
    padding: 0 !important;
}
/* Eliminar caja gris del classic */
body#authentication .page-content,
body#authentication section#content,
body#authentication #content,
body#password .page-content,
body#password section#content,
body#password #content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 94% !important;
    max-width: 94% !important;
    float: none !important;
}

/* Página de auth — flex centrado */
.grafs-auth-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Fila: login + beneficios lado a lado */
.grafs-auth-row {
    display: flex;
    align-items: stretch;
    gap: 24px;
    width: 100%;
    max-width: 960px;
}

/* Tarjeta login */
.grafs-auth-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 44px 44px 40px;
    flex: 0 0 580px;
    width: 580px;
}

/* ── Bloque beneficios ── */
.grafs-auth-benefits {
    flex: 1;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 44px 40px 40px;
    display: flex;
    flex-direction: column;
}
.grafs-benefits-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 6px !important;
    line-height: 1.2 !important;
}
.grafs-benefits-subtitle {
    font-size: 13px;
    color: #888;
    margin: 0 0 24px;
}
.grafs-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.grafs-benefits-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.grafs-benefits-list .material-icons {
    color: var(--brand-green);
    font-size: 20px;
    flex-shrink: 0;
}
.grafs-benefits-btn {
    display: block;
    width: 100%;
    background: transparent;
    border: 2px solid var(--brand-green) !important;
    color: var(--brand-green) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: 'Montserrat', sans-serif !important;
    border-radius: 8px !important;
    height: 46px !important;
    line-height: 42px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    box-sizing: border-box;
}
.grafs-benefits-btn:hover {
    background: var(--brand-green) !important;
    color: #fff !important;
    text-decoration: none;
}

@media (max-width: 768px) {
    /* Más separación entre tarjeta login y bloque "¿Aún no tienes cuenta?" */
    .grafs-auth-row { flex-direction: column; align-items: stretch; gap: 52px; }

    /* Anular el width:94% desktop de #content (que dejaba 6% vacío a la derecha
       por estar alineado a la izquierda sin margin auto). En móvil debe ocupar
       todo el ancho del padre para que la simetría izq/der sea real.
       Aplica tanto a login como a registro (body id puede ser authentication
       o registration según el controller). */
    body#authentication #content-wrapper,
    body#authentication #columns,
    body#authentication .page-content,
    body#authentication section#content,
    body#authentication #content,
    body#registration #content-wrapper,
    body#registration #columns,
    body#registration .page-content,
    body#registration section#content,
    body#registration #content,
    body#password #content-wrapper,
    body#password #columns,
    body#password .page-content,
    body#password section#content,
    body#password #content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    /* No tocar el .container — su 92% global ya da los márgenes simétricos.
       Sólo importan los descendientes (#content) que iban al 94% asimétrico. */

    /* Subtítulo más cerca del primer campo */
    .grafs-auth-subtitle { margin-bottom: 14px !important; }

    /* Móvil — formulario plano sin tarjeta. El ancho lo dicta el contenedor global (92%),
       los campos llegan de borde a borde dentro de él (mismo ancho que título y botones) */
    .grafs-auth-card,
    .grafs-auth-benefits,
    .grafs-register-card {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }

    /* Separación vertical de campos consistente entre login y registro
       (acumulado -20% extra: 10→8, 3→3) */
    .grafs-auth-fields .form-group { margin-bottom: 8px !important; }
    .grafs-field-label-row { margin-bottom: 3px !important; }

    /* Tratamiento (radio Sr./Sra.): -10% arriba, -20% abajo */
    .grafs-auth-fields .form-group:has(.grafs-radio-group) {
        margin-top: -1px !important;
        margin-bottom: 6px !important;
    }

    /* Página de auth — mismo margen superior con el header que carrito/categorías (≈8px) */
    body#authentication #wrapper,
    body#authentication section#wrapper,
    body#password #wrapper,
    body#password section#wrapper {
        padding: 8px 0 40px !important;
    }
    /* Margen lateral común login↔registro: 12px dentro del container 92%.
       Los campos llegan a esos bordes (simetría izq/der) */
    .grafs-auth-page {
        padding: 0 12px !important;
        box-sizing: border-box !important;
    }
    /* Wrapper móvil del registro — sin padding propio (lo da .grafs-auth-page) */
    .grafs-register-wrapper { max-width: 100%; }

    /* Inputs y filas a 100% (override del 94% desktop) */
    .grafs-auth-fields .form-group > .row,
    .grafs-auth-fields .form-group .col-sm-3,
    .grafs-auth-fields .form-group .col-sm-9,
    .grafs-auth-fields .form-group [class*="col-"],
    .grafs-auth-fields input[type="email"],
    .grafs-auth-fields input[type="password"],
    .grafs-auth-fields input[type="text"],
    .grafs-auth-fields .form-control,
    .grafs-auth-fields .input-group {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Título e intro */
.grafs-auth-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 6px !important;
    line-height: 1.2 !important;
}
.grafs-auth-subtitle {
    font-size: 13px;
    color: #888;
    margin: 0 0 24px;
}

/* Campos del formulario — layout vertical, ancho completo */
.grafs-auth-fields .form-group {
    margin-bottom: 14px !important;
    /* Romper el layout horizontal Bootstrap (col-sm-3 / col-sm-9) */
    display: block !important;
}
.grafs-auth-fields .form-group > .row,
.grafs-auth-fields .form-group .col-sm-3,
.grafs-auth-fields .form-group .col-sm-9,
.grafs-auth-fields .form-group [class*="col-"] {
    display: block !important;
    width: 94% !important;
    max-width: 94% !important;
    padding: 0 !important;
    float: none !important;
    flex: none !important;
}
.grafs-auth-fields label,
.grafs-auth-fields .form-control-label {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #555 !important;
    margin-bottom: 5px !important;
    display: block !important;
    text-align: left !important;
}
.grafs-auth-fields input[type="email"],
.grafs-auth-fields input[type="password"],
.grafs-auth-fields input[type="text"],
.grafs-auth-fields .form-control {
    width: 94% !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    height: 42px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    color: #1a1a1a !important;
    background: #fff !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.grafs-auth-fields input:focus,
.grafs-auth-fields .form-control:focus {
    border-color: var(--brand-green) !important;
    box-shadow: 0 0 0 3px rgba(59,130,86,0.1) !important;
    outline: none !important;
}
/* Input group (contraseña + MOSTRAR) */
.grafs-auth-fields .input-group {
    display: flex !important;
    width: 94% !important;
    align-items: stretch !important;
}
.grafs-auth-fields .input-group input {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    border-right: none !important;
    border-radius: 8px 0 0 8px !important;
    width: auto !important;
}
.grafs-auth-fields .input-group-btn {
    flex-shrink: 0 !important;
    width: auto !important;
}
.grafs-auth-fields .input-group-btn .btn {
    border: 1px solid #ddd !important;
    border-left: none !important;
    border-radius: 0 8px 8px 0 !important;
    background: #f7f7f7 !important;
    color: #555 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 0 14px !important;
    height: 42px !important;
    box-shadow: none !important;
    cursor: pointer;
    white-space: nowrap;
}
.grafs-auth-fields .input-group-btn .btn:hover { background: #efefef !important; }

/* Olvidé contraseña */
.grafs-auth-forgot {
    display: block;
    text-align: right;
    font-size: 12px;
    color: var(--brand-green);
    text-decoration: none;
    margin: 10px 0 22px;
}
.grafs-auth-forgot:hover { text-decoration: underline; color: #2d6440; }

/* Botón principal */
.grafs-auth-btn {
    display: block;
    width: 100%;
    background: var(--brand-green) !important;
    border: none !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: 'Montserrat', sans-serif !important;
    border-radius: 8px !important;
    height: 46px !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s;
}
.grafs-auth-btn:hover { background: #2d6440 !important; }

/* Divisor */
.grafs-auth-divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 24px 0 18px;
}

/* Link registro */
.grafs-auth-register {
    text-align: center;
    font-size: 13px;
}
.grafs-auth-register a {
    color: var(--brand-green);
    text-decoration: none;
    font-weight: 600;
}
.grafs-auth-register a:hover { text-decoration: underline; }

/* ============================================================
   PÁGINA REGISTRO — card centrada, misma estética que login
   ============================================================ */

/* Wrapper — full width dentro del contenedor de página */
.grafs-register-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Desktop-only: si no se acota al viewport > 768px, este 94% gana al
   width:100% del @media móvil por orden de fuente y deja 6% vacío
   a la derecha en móvil (asimetría que el usuario reportó). */
@media (min-width: 769px) {
  .grafs-register-card {
      flex: none !important;
      width: 94% !important;
  }
}

/* Link "inicia sesión" dentro del subtítulo */
.grafs-register-login-link {
    color: var(--brand-green);
    font-weight: 600;
    text-decoration: none;
}
.grafs-register-login-link:hover { text-decoration: underline; }

/* Botón guardar */
#customer-form .grafs-auth-btn {
    margin-top: 10px;
}

/* ── Label row: label + badge "Opcional" en la misma línea ── */
.grafs-field-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.grafs-field-label-row .form-control-label {
    margin-bottom: 0;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* Badge "Opcional" — pequeño, a la derecha del label */
.grafs-optional-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #aaa;
    border-radius: 10px;
    padding: 1px 8px;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Checkboxes modernos ── */
.grafs-field-checkbox {
    margin-bottom: 10px;
}
.grafs-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin: 0;
}
.grafs-checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.grafs-checkbox-box {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 5px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
    margin-top: 1px;
}
.grafs-checkbox-box .material-icons {
    font-size: 14px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.15s;
}
.grafs-checkbox-input:checked ~ .grafs-checkbox-box {
    background: var(--brand-green);
    border-color: var(--brand-green);
}
.grafs-checkbox-input:checked ~ .grafs-checkbox-box .material-icons {
    opacity: 1;
}
.grafs-checkbox-text {
    font-size: 13px;
    color: #444;
    font-weight: 400;
    line-height: 1.5;
}
.grafs-checkbox-text a {
    color: var(--brand-green);
    text-decoration: underline;
}

/* ── Radio buttons modernos (Tratamiento: Sr. / Sra.) ── */
.grafs-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 4px 0;
}
.grafs-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    font-weight: 400;
    margin: 0;
}
.grafs-radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.grafs-radio-dot {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
}
.grafs-radio-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-green);
    opacity: 0;
    transition: opacity 0.15s;
}
.grafs-radio-label input[type="radio"]:checked ~ .grafs-radio-dot {
    border-color: var(--brand-green);
}
.grafs-radio-label input[type="radio"]:checked ~ .grafs-radio-dot::after {
    opacity: 1;
}

/* ── Fecha de nacimiento (3 selects) ── */
.grafs-birthday-selects {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.grafs-birthday-selects select {
    flex: 1;
    min-width: 0;
}

/* ── Fecha de nacimiento (input date) ── */
.grafs-auth-fields input[type="date"] {
    width: 94% !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    height: 42px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    color: #1a1a1a !important;
    background: #fff !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}
.grafs-auth-fields input[type="date"]:focus {
    border-color: var(--brand-green) !important;
    box-shadow: 0 0 0 3px rgba(136,153,38,0.12) !important;
    outline: none !important;
}

/* Texto de ayuda bajo campos */
.grafs-field-comment {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    display: block;
}

/* ── Captcha ── */
.grafs-auth-fields .g-recaptcha,
.grafs-auth-fields .recaptcha-wrapper {
    margin: 8px 0 4px;
}

/* ============================================================
   PÁGINA RESTABLECER CONTRASEÑA — misma estética que login
   ============================================================ */

.grafs-password-wrapper {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
}

/* La tarjeta hereda .grafs-auth-card; .grafs-password-card sólo ajustes finos */
.grafs-password-card {
    flex: none !important;
    width: 100% !important;
}

/* Errores del formulario dentro de la tarjeta */
.grafs-auth-errors {
    list-style: none;
    padding: 12px 14px;
    margin: 0 0 16px;
    background: #fdecea;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #842029;
    font-size: 13px;
}
.grafs-auth-errors .item { margin: 0; }

/* Enlace "Volver a iniciar sesión" debajo del botón */
.grafs-password-back {
    margin: 18px 0 0;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 768px) {
    .grafs-password-wrapper { max-width: 100%; }
    /* Padding lateral movido a .grafs-auth-page para unificar con login */
    .grafs-register-wrapper { padding: 0; }
    .grafs-birthday-selects { flex-direction: column; gap: 6px; }
    .grafs-birthday-selects select { min-width: 100%; }

    /* Input/.form-control desktop tienen width:94% sin media query y aparecen
       después del @media móvil — por orden de fuente ganaban en móvil dejando
       el campo más estrecho que el botón (100%). Re-override aquí, después
       de las reglas desktop, para que campo y botón tengan el mismo ancho. */
    .grafs-auth-fields input[type="email"],
    .grafs-auth-fields input[type="password"],
    .grafs-auth-fields input[type="text"],
    .grafs-auth-fields input[type="date"],
    .grafs-auth-fields .form-control,
    .grafs-auth-fields .input-group {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Botón restablecer contraseña — sin mayúsculas (petición usuario) */
    .grafs-password-card .grafs-auth-btn {
        text-transform: none !important;
        letter-spacing: 0 !important;
    }

    /* Reducir espacio inferior en móvil de la página de contraseña */
    body#password #wrapper,
    body#password section#wrapper {
        padding: 8px 0 16px !important;
    }
}

/* Botón restablecer — también sin mayúsculas en desktop por consistencia */
.grafs-password-card .grafs-auth-btn {
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* ============================================================
   SLIDER PORTADA — ps_imageslider override
   ============================================================ */

/* Wrapper: full-bleed via 100vw + overflow-x:hidden en html,body */
.ea-slider-wrap {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    position: relative;
    display: block;
}

/* El ul.rslides recibe overflow:hidden del módulo — correcto para las slides */
/* Imagen: altura natural según proporción real del archivo */
.ea-slide-img {
    display: block;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    object-fit: unset !important;
}

/* Flechas — generadas por responsiveslides como <a class="homeslider_nav prev/next"> */
.homeslider_nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.80) !important;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-indent: 0 !important;
    overflow: visible !important;
    font-size: 0 !important;          /* oculta texto "Previous/Next" */
    transition: background 0.2s ease;
    margin-top: 0 !important;
    opacity: 1 !important;
    text-decoration: none;
}

.homeslider_nav:hover {
    background: rgba(255, 255, 255, 0.97) !important;
}

.homeslider_nav.prev {
    left: 20px;
    background-image: none !important;
}

.homeslider_nav.next {
    right: 20px;
    left: auto;
    background-image: none !important;
    background-position: unset !important;
}

/* Iconos de flecha via pseudo-elemento */
.homeslider_nav.prev::after,
.homeslider_nav.next::after {
    font-size: 26px;
    line-height: 1;
    color: #444;
    font-weight: 400;
    display: block;
}

.homeslider_nav.prev::after { content: '‹'; margin-right: 2px; }
.homeslider_nav.next::after { content: '›'; margin-left: 2px; }

/* Responsive — móvil */
@media (max-width: 767px) {
    .homeslider_nav {
        width: 34px;
        height: 34px;
    }

    .homeslider_nav.prev { left: 8px; }
    .homeslider_nav.next { right: 8px; }

    /* Ocultar slider de escritorio en móvil (lo reemplaza grafs_mobileslider) */
    .ea-slider-wrap { display: none !important; }

    /* Slider en proporción ~cuadrada (348×358) en móvil */
    .ea-slider-wrap .rslides,
    .ea-slider-wrap .rslides li {
        aspect-ratio: 348 / 358;
        overflow: hidden;
    }
    .ea-slide-img {
        width: 94% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center;
    }
}

/* ============================================================
   MÓDULO: ea-cats — Fila círculos de categorías (portada)
   ============================================================ */

/* ═══════════════════════════════════════════════════════════
   grafs_cats v2 — Sección y grid compartidos por todos los temas
   ═══════════════════════════════════════════════════════════ */
.ea-cats-section {
    padding: 32px 0 40px;
    background: #fff;
}

.ea-cats-grid {
    display: grid;
    grid-template-columns: repeat(var(--gc-cols, 6), 1fr);
    gap: 16px;
}

/* ─── TEMA: circles (diseño original) ─────────────────────── */
.ea-cats-theme-circles .ea-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    gap: 10px;
}
.ea-cats-theme-circles .ea-cat-card:hover {
    border-color: var(--brand-green);
    box-shadow: 0 4px 18px rgba(136,153,38,0.12);
    transform: translateY(-3px);
    text-decoration: none;
}
.ea-cat-card-icon {
    width: 67px;
    height: 67px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ea-cat-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s;
}
.ea-cats-theme-circles .ea-cat-card:hover .ea-cat-card-icon img {
    transform: scale(1.06);
}
.ea-cat-fallback-icon { font-size: 38px !important; color: var(--brand-green); }
.ea-cat-card-icon svg {
    width: 100%;
    height: 100%;
    color: var(--brand-green);
    transition: color 0.2s, transform 0.2s;
}
.ea-cats-theme-circles .ea-cat-card:hover .ea-cat-card-icon svg {
    color: #5d6c19;
    transform: scale(1.06);
}
.ea-cat-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #264934;
    line-height: 1.2;
    display: block;
}
.ea-cat-card-sub {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    margin: 0;
}

/* ─── TEMA: cards (fondo imagen + overlay) ─────────────────── */
.ea-cats-theme-cards .ea-cat-imgcard {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    height: 200px;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    background: linear-gradient(135deg, #3d6218 0%, #8aad42 100%);
    background-size: cover;
    background-position: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.ea-cats-theme-cards .ea-cat-imgcard:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    text-decoration: none;
}
.ea-cat-imgcard-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
}
.ea-cat-imgcard-content {
    position: relative;
    padding: 14px 16px;
    width: 100%;
}
.ea-cat-imgcard-icon { font-size: 20px !important; color: rgba(255,255,255,.85); display: block; margin-bottom: 4px; }
.ea-cat-imgcard-title { font-size: 14px; font-weight: 700; color: #fff; display: block; line-height: 1.2; }
.ea-cat-imgcard-sub   { font-size: 11px; color: rgba(255,255,255,.8); margin: 3px 0 0; line-height: 1.3; }

/* ─── TEMA: minimal (icono + texto) ────────────────────────── */
.ea-cats-theme-minimal .ea-cat-minimal {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 20px 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s;
}
.ea-cats-theme-minimal .ea-cat-minimal:hover { background: #f0f7e6; text-decoration: none; }
.ea-cat-minimal-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #eaf4d8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.ea-cats-theme-minimal .ea-cat-minimal:hover .ea-cat-minimal-icon { background: var(--brand-green); }
.ea-cat-minimal-icon .material-icons { font-size: 26px; color: var(--brand-green); transition: color 0.2s; }
.ea-cats-theme-minimal .ea-cat-minimal:hover .ea-cat-minimal-icon .material-icons { color: #fff; }
.ea-cat-minimal-name { font-size: 13px; font-weight: 700; color: #264934; line-height: 1.2; }
.ea-cat-minimal-sub  { font-size: 11px; color: #888; margin: 0; line-height: 1.3; }

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .ea-cats-grid { grid-template-columns: repeat(min(var(--gc-cols, 6), 4), 1fr); }
    .ea-cats-theme-cards .ea-cat-imgcard { height: 160px; }
}

/* ─── MÓVIL: carrusel deslizable ───────────────────────────── */
@media (max-width: 768px) {
    /* El grid es auto-contenido (overflow-x:scroll); ningún ancestro bloquea el scroll táctil */
    .ea-cats-section .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 92% !important;
        overflow: visible !important;
    }

    /* Grid → flex horizontal con scroll-snap */
    .ea-cats-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: scroll !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding: 4px 0 16px 16px;
        scrollbar-width: none;
        width: 100%;
        box-sizing: border-box;
    }
    .ea-cats-grid::-webkit-scrollbar { display: none; }

    /* ─── circles ─── */
    .ea-cats-theme-circles .ea-cat-card {
        flex: 0 0 145px !important;
        width: 145px;
        scroll-snap-align: start;
        height: 190px;
        padding: 22px 14px;
        gap: 10px;
        justify-content: center;
    }
    .ea-cat-card-icon  { width: 62px; height: 62px; }
    .ea-cat-card-title { font-size: 14px; font-weight: 700; }
    .ea-cat-card-sub   { display: block; font-size: 12px; text-align: center; }

    /* ─── cards: tarjetas grandes, ~85% viewport + peek del siguiente ─── */
    .ea-cats-theme-cards .ea-cat-imgcard {
        flex: 0 0 auto !important;
        width: calc(100vw - 80px) !important;
        scroll-snap-align: start;
        height: 260px !important;
        border-radius: 16px !important;
        align-items: flex-end;
    }
    .ea-cats-theme-cards .ea-cat-imgcard .ea-cat-imgcard-overlay {
        background: linear-gradient(to top,
            rgba(0,0,0,.78) 0%,
            rgba(0,0,0,.22) 55%,
            transparent 100%);
    }
    .ea-cats-theme-cards .ea-cat-imgcard .ea-cat-imgcard-content {
        padding: 16px 18px 18px;
    }
    .ea-cats-theme-cards .ea-cat-imgcard .ea-cat-imgcard-icon {
        font-size: 28px !important;
        margin-bottom: 6px;
    }
    .ea-cats-theme-cards .ea-cat-imgcard .ea-cat-imgcard-title {
        font-size: 20px !important;
        font-weight: 800 !important;
        line-height: 1.15;
        letter-spacing: -0.01em;
        text-transform: uppercase;
    }
    .ea-cats-theme-cards .ea-cat-imgcard .ea-cat-imgcard-sub {
        display: block;
        font-size: 13px;
        color: rgba(255,255,255,.85);
        margin-top: 5px;
        line-height: 1.4;
    }

    /* ─── minimal ─── */
    .ea-cats-theme-minimal .ea-cat-minimal {
        flex: 0 0 120px !important;
        width: 120px;
        scroll-snap-align: start;
        height: 160px;
        justify-content: center;
    }
    .ea-cat-minimal-name { font-size: 12px; }
    .ea-cat-minimal-sub  { display: block; font-size: 10px; }
}

.ea-cats-row {
    padding: 40px 0 48px;
    margin-top: 0 !important;
    background: #fff;
}

/* =========================================
   FEATURED PRODUCTS CAROUSEL
   ========================================= */
.ea-featured-wrap {
    background: #fff;
    padding: 40px 0;
    margin-bottom: 30px;
}

/* Dentro del carrusel no queremos margin-bottom en las cards */
.ea-featured-item.grafs-cat-products-grid .product-miniature {
    margin-bottom: 0 !important;
}

/* Fondo gris en thumbnail — igual que el de la cuadrícula */
.ea-featured-item .thumbnail-container .thumbnail.product-thumbnail {
    background: #fdfdfd !important;
}

.ea-featured-inner {
    position: relative;
    padding: 0 52px;
}

.ea-featured-viewport {
    overflow: hidden;
    width: 100%;
}

.ea-featured-track {
    display: flex;
    gap: 8px;
    transition: transform 0.35s ease;
}

.ea-featured-item {
    flex: 0 0 calc(20% - 7px);
    min-width: 0;
}

/* Forzar 100% del item — anula el calc(25%-12px) del grid padre */
.ea-featured-item .product-miniature {
    width: 94% !important;
    margin: 0 !important;
}

.ea-feat-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: #555;
    transition: all 0.2s;
    padding: 0;
}

.ea-feat-prev { left: 0; }
.ea-feat-next { right: 0; }

.ea-feat-arrow:hover {
    background: var(--brand-green);
    color: #fff;
    border-color: var(--brand-green);
}

.ea-cats-inner {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
    padding: 4px 20px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ea-cats-inner::-webkit-scrollbar { display: none; }

.ea-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    width: 84px;
    transition: transform 0.2s ease;
}

.ea-cat-item:hover {
    transform: translateY(-4px);
    text-decoration: none;
}

/* Squircle — cuadrado redondeado estilo iOS */
.ea-cat-circle {
    width: 61px;
    height: 61px;
    border-radius: 18px;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 13px;
    box-sizing: border-box;
    box-shadow: 0 2px 12px rgba(0,0,0,0.09), 0 1px 3px rgba(0,0,0,0.05);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.ea-cat-item:hover .ea-cat-circle {
    background: var(--brand-green);
    box-shadow: 0 8px 24px rgba(38,73,52,0.22);
}

.ea-cat-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.2s ease;
}

.ea-cat-item:hover .ea-cat-circle img {
    filter: brightness(0) invert(1);
}

.ea-cat-name {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    text-align: center;
    line-height: 1.3;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}

.ea-cat-item:hover .ea-cat-name {
    color: var(--brand-green);
}

@media (max-width: 767px) {
    .ea-cats-inner { justify-content: flex-start; padding: 0 16px; gap: 8px; }
    .ea-cat-item { width: 68px; }
    .ea-cat-circle { width: 62px; height: 62px; border-radius: 18px; padding: 13px; }
    .ea-cat-name { font-size: 10px; }
}

/* =========================================
   GRAFS-STYLE MEGAMENU
   ========================================= */
.grafs-mega-panel {
    position: fixed;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 9000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    border-top: 2px solid var(--brand-green);
    padding: 28px 60px 32px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
    pointer-events: none;
}
.grafs-mega-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
    pointer-events: auto;
}
.grafs-mega-inner {
    display: flex;
    gap: 52px;
}
.grafs-mega-col {
    min-width: 150px;
}
.grafs-mega-col-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--brand-dark);
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.grafs-mega-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.grafs-mega-col ul li {
    margin-bottom: 7px;
}
.grafs-mega-col ul li a {
    font-size: 14px;
    color: #444;
    text-decoration: none;
    transition: color 0.15s, padding-left 0.12s;
    display: block;
}
.grafs-mega-panel .grafs-mega-col ul li a,
.grafs-mega-panel .grafs-mega-col ul li a:link,
.grafs-mega-panel .grafs-mega-col ul li a:visited {
    color: #444 !important;
}
.grafs-mega-panel .grafs-mega-col ul li a:hover,
.grafs-mega-panel .grafs-mega-col ul li a:focus,
.grafs-mega-panel .grafs-mega-col ul li a:active {
    color: var(--brand-green) !important;
    padding-left: 5px;
}
/* Panel Marcas: grid de logos — full-width ignorando padding dinámico del JS */
.grafs-mega-panel--brands {
    padding-left: 60px !important;
    padding-right: 60px !important;
}
.grafs-mega-panel--brands .grafs-mega-inner {
    display: block;
    max-width: 1400px;
    margin: 0 auto;
}
.grafs-mega-panel--brands .grafs-mega-col-title {
    text-align: center;
}
.grafs-mega-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 18px 24px;
    margin-top: 14px;
}
.grafs-mega-brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 12px 8px;
    border-radius: 8px;
    transition: background 0.15s ease, transform 0.15s ease;
    min-height: 110px;
}
.grafs-mega-brand-item:hover {
    background: #f7f7f5;
    transform: translateY(-2px);
}
.grafs-mega-brand-item img {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 6px;
    filter: grayscale(30%);
    transition: filter 0.15s ease;
}
.grafs-mega-brand-item:hover img {
    filter: grayscale(0);
}
.grafs-mega-brand-name {
    font-size: 12px;
    color: #555;
    text-align: center;
    line-height: 1.2;
    margin-top: 4px;
}
.grafs-mega-brand-name--solo {
    font-size: 14px;
    color: var(--brand-dark);
    font-weight: 600;
    margin-top: 0;
}
.grafs-mega-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.25);
    z-index: 8999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.grafs-mega-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
/* Active nav item when megamenu is open */
.grafs-menu-link.mega-active {
    color: var(--brand-green) !important;
}

/* Área Profesional in header (top bar) */
.btn-pro-header {
    margin-left: 0 !important;
    margin-right: 8px;
    font-size: 14px !important;
    padding: 11px 16px !important;
    white-space: nowrap;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

@media (max-width: 1024px) {
    .btn-pro-header { display: none; }
}

/* =========================================
   NEWSLETTER SUBFOOTER
   ========================================= */

.newsletter-subfooter {
    background: #264934;
    padding: 42px 0;
    font-family: 'Montserrat', sans-serif;
}

.newsletter-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
    max-width: 442px;
    margin: 0 auto;
}

.newsletter-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin: 0 0 4px;
}

.newsletter-headline {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin: 0;
}

.newsletter-highlight {
    color: #b8cc44;
}

.newsletter-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin: 4px 0 0;
}

.newsletter-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Formulario */
.newsletter-form-wrap {
    width: 100%;
}

.newsletter-input-row {
    display: flex;
    gap: 0;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.newsletter-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 13px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #333;
    background: transparent;
}

.newsletter-input::placeholder {
    color: #aaa;
}

.newsletter-btn {
    background: #264934;
    color: #fff;
    border: none;
    padding: 13px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.newsletter-btn:hover {
    background: #1a3326;
}

.newsletter-conditions {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 10px;
    text-align: center;
}

/* Mensajes */
.newsletter-msg {
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 12px;
    text-align: center;
}

.newsletter-msg--success {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.newsletter-msg--error {
    background: #f8d7da;
    color: #721c24;
}

/* GDPR consent */
.newsletter-form-wrap .gdpr_consent {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin-top: 10px;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .newsletter-subfooter { padding: 28px 0; }
    .newsletter-headline { font-size: 18px; }
    .newsletter-inner { max-width: 100%; padding: 0 16px; }
    .newsletter-input-row { flex-direction: column; }
    .newsletter-btn { padding: 13px; }
}

/* =========================================
   PÁGINAS CMS (Legales)
   ========================================= */

.cms-page-hero {
    background: #f5f5f5;
    border-bottom: 1px solid #e8e8e8;
    padding: 40px 0 32px;
    margin-bottom: 0;
}

.cms-page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0;
    letter-spacing: -0.3px;
}

.cms-page-wrapper {
    background: #fff;
    padding: 48px 0 64px;
}

.cms-content-card {
    max-width: 820px;
    margin: 0 auto;
}

/* Tipografía del contenido CMS */
.page-cms h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-top: 40px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--brand-green);
    display: inline-block;
}

.page-cms h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-top: 24px;
    margin-bottom: 8px;
}

.page-cms p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 14px;
}

.page-cms ul, .page-cms ol {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    padding-left: 20px;
    margin-bottom: 14px;
}

.page-cms li {
    margin-bottom: 6px;
}

.page-cms a {
    color: var(--brand-green);
    text-decoration: none;
    font-weight: 500;
}

.page-cms a:hover {
    text-decoration: underline;
}

.page-cms strong, .page-cms b {
    font-weight: 700;
    color: var(--brand-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .cms-page-hero { padding: 28px 0 20px; }
    .cms-page-title { font-size: 22px; }
    .cms-page-wrapper { padding: 32px 0 48px; }
    .page-cms p, .page-cms ul, .page-cms ol { font-size: 13px; }
}

/* =========================================
   CMS LANDING — Área Profesionales (págs 11 y 12)
   ========================================= */

/* Oculta la barra gris de título (meta_title) solo en estas landings:
   el hero de marca pasa a ser el único H1, sin cabecera duplicada. */
.cms-id-1 .cms-page-hero,
.cms-id-2 .cms-page-hero,
.cms-id-6 .cms-page-hero,
.cms-id-9 .cms-page-hero,
.cms-id-10 .cms-page-hero,
.cms-id-11 .cms-page-hero,
.cms-id-12 .cms-page-hero { display: none; }

/* Contenedor al ancho del header.
   CAUSA: cms/page.tpl envuelve el contenido en un .container ANIDADO dentro de
   otro .container, y el tema aplica width:85% a TODO .container → 85%×85%≈72%.
   El header solo tiene un .container (85%). Aquí neutralizamos el anidado para
   que el contenido ocupe el ancho del contenedor exterior = ancho del header. */
.cms-id-1 .cms-page-wrapper > .container,
.cms-id-2 .cms-page-wrapper > .container,
.cms-id-6 .cms-page-wrapper > .container,
.cms-id-9 .cms-page-wrapper > .container,
.cms-id-10 .cms-page-wrapper > .container,
.cms-id-11 .cms-page-wrapper > .container,
.cms-id-12 .cms-page-wrapper > .container { width: 100% !important; max-width: 100% !important; }
.cms-id-1 .cms-content-card,
.cms-id-2 .cms-content-card,
.cms-id-6 .cms-content-card,
.cms-id-9 .cms-content-card,
.cms-id-10 .cms-content-card,
.cms-id-11 .cms-content-card,
.cms-id-12 .cms-content-card { max-width: 100%; }

/* #content-wrapper queda ~77% y anclado a la izquierda (col Bootstrap floated).
   Lo centramos dentro del contenedor exterior con márgenes automáticos. */
.cms-id-1 #content-wrapper,
.cms-id-2 #content-wrapper,
.cms-id-6 #content-wrapper,
.cms-id-9 #content-wrapper,
.cms-id-10 #content-wrapper,
.cms-id-11 #content-wrapper,
.cms-id-12 #content-wrapper {
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
/* Ensanchar el content-wrapper (~+17%) para dar más aire a las columnas */
.cms-id-1 #content-wrapper,
.cms-id-2 #content-wrapper,
.cms-id-6 #content-wrapper,
.cms-id-9 #content-wrapper,
.cms-id-10 #content-wrapper,
.cms-id-12 #content-wrapper { width: 90% !important; }

/* Migas: misma separación arriba y abajo (12px). Sin el padding-top del wrapper */
.cms-id-1 .cms-page-wrapper,
.cms-id-2 .cms-page-wrapper,
.cms-id-6 .cms-page-wrapper,
.cms-id-9 .cms-page-wrapper,
.cms-id-10 .cms-page-wrapper,
.cms-id-11 .cms-page-wrapper,
.cms-id-12 .cms-page-wrapper { padding-top: 0; }

/* Sin migas de pan en las CMS rediseñadas (no aportan aquí). */
.cms-id-1 #wrapper nav.breadcrumb,
.cms-id-2 #wrapper nav.breadcrumb,
.cms-id-6 #wrapper nav.breadcrumb,
.cms-id-9 #wrapper nav.breadcrumb,
.cms-id-10 #wrapper nav.breadcrumb,
.cms-id-11 #wrapper nav.breadcrumb,
.cms-id-12 #wrapper nav.breadcrumb { display: none; }
.cms-id-1 .cms-page-wrapper,
.cms-id-2 .cms-page-wrapper,
.cms-id-6 .cms-page-wrapper,
.cms-id-9 .cms-page-wrapper,
.cms-id-10 .cms-page-wrapper,
.cms-id-12 .cms-page-wrapper { padding-top: 8px; }
.cms-id-11 .cms-page-wrapper { padding-top: 14px; }

/* Ocultar newsletter en las CMS legales/info */
.cms-id-1 .newsletter-subfooter,
.cms-id-2 .newsletter-subfooter,
.cms-id-6 .newsletter-subfooter,
.cms-id-9 .newsletter-subfooter,
.cms-id-10 .newsletter-subfooter,
.cms-id-11 .newsletter-subfooter,
.cms-id-12 .newsletter-subfooter { display: none; }

/* =========================================
   CMS legal/info pages — contenido bajo el hero (tipografía consistente)
   Reutilizable en cualquier página que envuelva su contenido con .cms-pro-content.
   ========================================= */
.cms-pro-content {
    color: #2e2e2e;
    font-size: 15px;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px 24px;
}
.cms-pro-content h2 {
    color: #264934;
    font-size: 22px;
    font-weight: 700;
    margin: 36px 0 14px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--brand-green);
    display: inline-block;
    border-bottom-style: solid;
}
.cms-pro-content h2:first-child { margin-top: 0; }
.cms-pro-content h3 {
    color: #264934;
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 8px;
}
.cms-pro-content p { margin: 0 0 14px; }
.cms-pro-content strong { color: #264934; }
.cms-pro-content a { color: var(--brand-green); text-decoration: underline; }
.cms-pro-content ul, .cms-pro-content ol { margin: 0 0 14px 1.2em; padding: 0; }
.cms-pro-content li { margin: 0 0 6px; }
/* Botón "Imprimir esta página" del CMS — oculto en las páginas rediseñadas
   (sibling de .cms-pro-content, no descendiente; por eso scope por cms-id-X) */
.cms-id-1 input[name="printCMSPage"],
.cms-id-2 input[name="printCMSPage"],
.cms-id-6 input[name="printCMSPage"],
.cms-id-9 input[name="printCMSPage"],
.cms-id-10 input[name="printCMSPage"],
.cms-id-11 input[name="printCMSPage"],
.cms-id-12 input[name="printCMSPage"] { display: none !important; }

/* Tablas dentro de cms-pro-content (CMS 1 envíos). */
.cms-pro-content .cms-pro-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 20px;
    font-size: 15px;
}
.cms-pro-content .cms-pro-table th,
.cms-pro-content .cms-pro-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}
.cms-pro-content .cms-pro-table thead th {
    background: #f5f7f2;
    color: #264934;
    font-weight: 700;
    border-bottom: 2px solid var(--brand-green);
}
.cms-pro-content .cms-pro-table tbody tr:hover { background: #fafbf6; }
.cms-pro-content .cms-pro-table td:last-child,
.cms-pro-content .cms-pro-table th:last-child { text-align: right; white-space: nowrap; }

/* Callout destacado (envío gratis, avisos). */
.cms-pro-content .cms-pro-callout {
    background: #f5f7f2;
    border-left: 4px solid var(--brand-green);
    padding: 14px 18px;
    margin: 20px 0 24px;
    border-radius: 4px;
}
.cms-pro-content .cms-pro-callout p { margin: 0; }
.cms-pro-content .cms-pro-callout strong { color: var(--brand-green); font-size: 16px; }

/* =========================================
   Página de Contacto — título simple + grid info/form
   ========================================= */
body#contact .page-header,
body#contact #wrapper nav.breadcrumb,
body#contact .newsletter-subfooter,
body#contact #left-column,
body#contact #right-column { display: none !important; }

body#contact #wrapper > .container { padding-top: 0; }
body#contact #content-wrapper {
    float: none !important;
    width: 100% !important;
    margin: 0 auto !important;
}
body#contact #content-wrapper > #content,
body#contact #main { padding: 0; }

.contact-pro-title {
    text-align: left;
    font-size: 28px;
    font-weight: 700;
    color: #264934;
    margin: 0 0 20px;
    line-height: 1.2;
}

.contact-pro {
    padding: 24px 0 32px;
    max-width: 100%;
}
.contact-pro-grid {
    display: grid;
    grid-template-columns: 30fr 60fr;
    column-gap: 60px;
    row-gap: 32px;
    align-items: start;
}
.contact-pro-info {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 24px;
}
.contact-pro-info h2 {
    margin: 0 0 18px !important;
    font-size: 18px !important;
    padding-bottom: 4px !important;
    line-height: 1.2 !important;
}
.contact-pro-item {
    display: flex;
    gap: 14px;
    margin: 0 0 18px;
    align-items: flex-start;
}
.contact-pro-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #d8e0ce;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-green);
}
.contact-pro-item strong {
    display: block;
    color: #264934;
    margin-bottom: 2px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.contact-pro-item p { margin: 0; line-height: 1.5; color: #1a1a1a; }
.contact-pro-item a { color: #1a1a1a; text-decoration: none; }
.contact-pro-item a:hover { color: var(--brand-green); text-decoration: underline; }
.contact-pro-map {
    margin-top: 18px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #d8e0ce;
}
.contact-pro-map iframe { display: block; width: 100%; }

.contact-pro-form { padding: 0; }
.contact-pro-form > h2 {
    margin-top: 0 !important;
    margin-bottom: 18px !important;
}

/* Reset card y filas del widget de PS — layout vertical estilo registro pro. */
.contact-pro-form .contact-form,
.contact-pro-form #content.page-content,
.contact-pro-form .page-content { background: none !important; box-shadow: none !important; padding: 0 !important; border: 0 !important; }
.contact-pro-form .form-fields { padding: 0; }
.contact-pro-form .form-group.row { display: block; margin: 0 0 16px; }
.contact-pro-form .form-group.row > [class*="col-"] { width: 100%; max-width: 100%; flex: 0 0 100%; padding: 0; margin: 0; }
.contact-pro-form .form-control-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin: 0 0 6px;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
}
.contact-pro-form .form-control-comment { display: none; }
.contact-pro-form .form-group.row > div > h3 { display: none; } /* "Contacte con nosotros" duplicado */

.contact-pro-form .form-control,
.contact-pro-form .form-control-select,
.contact-pro-form input[type="text"],
.contact-pro-form input[type="email"],
.contact-pro-form input[type="tel"],
.contact-pro-form select,
.contact-pro-form textarea {
    width: 100% !important;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 8px;
    height: 42px;
    padding: 0 12px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    color: #1a1a1a;
    background: #fff;
    box-shadow: none;
}
.contact-pro-form textarea {
    height: auto !important;
    min-height: 160px !important;
    padding: 14px 14px !important;
    resize: vertical;
    line-height: 1.5;
}
.contact-pro-form textarea::placeholder { line-height: 1.5; }
.contact-pro-form .form-control:focus,
.contact-pro-form select:focus,
.contact-pro-form textarea:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(58,125,68,.12);
    outline: none;
}

/* File upload — botón dentro del campo, no se desborda. */
.contact-pro-form .bootstrap-filestyle {
    display: flex !important;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.contact-pro-form .bootstrap-filestyle > .form-control[type="text"] {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff;
    height: 40px;
    box-shadow: none;
}
.contact-pro-form .group-span-filestyle {
    display: flex !important;
    flex: 0 0 auto !important;
    min-width: 180px;
}
.contact-pro-form .group-span-filestyle .btn,
.contact-pro-form .group-span-filestyle .btn-default,
.contact-pro-form .group-span-filestyle label,
.contact-pro-form label.btn-default {
    background: #f0f3ea !important;
    color: #264934 !important;
    border: 0 !important;
    border-left: 1px solid #ddd !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 18px !important;
    min-width: 180px !important;
    height: 40px !important;
    line-height: 40px !important;
    margin: 0 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: .3px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    overflow: visible !important;
}
.contact-pro-form .group-span-filestyle .btn:hover,
.contact-pro-form .group-span-filestyle label:hover { background: #e6ecd9 !important; }

/* Botón ENVIAR estilo brand (sustituye el azul). */
.contact-pro-form .form-footer { padding: 0; text-align: right; margin-top: 8px; }
.contact-pro-form .btn-primary,
.contact-pro-form button[type="submit"] {
    background: var(--brand-green) !important;
    border-color: var(--brand-green) !important;
    border-radius: 8px !important;
    padding: 12px 32px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: #fff !important;
    box-shadow: none;
}
.contact-pro-form .btn-primary:hover,
.contact-pro-form button[type="submit"]:hover { background: #2e6638 !important; border-color: #2e6638 !important; }

@media (max-width: 768px) {
    .contact-pro-grid { grid-template-columns: 1fr; column-gap: 0; }
    body#contact #content-wrapper { width: 95% !important; }
    .contact-pro-title { font-size: 26px; }
}

/* =========================================
   PÁG 11 — Formulario registro profesional (estilo login)
   ========================================= */
.cms-pro-formwrap { max-width: 680px; margin: 0 auto; }

.cms-pro-formwrap .cms-pro-form-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #264934;
    text-align: center;
    margin: 0 0 8px;
    display: block;
    border-bottom: none;
    padding-bottom: 0;
}
.cms-pro-formwrap .cms-pro-form-intro {
    text-align: center;
    color: #2e2e2e;
    font-size: 15px;
    margin: 0 0 28px;
}

.cms-pro-form {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
    padding: 36px 36px 32px;
    text-align: left;
}
.cms-pro-field { margin-bottom: 16px; }
.cms-pro-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    text-align: left;
}
.cms-pro-field input[type="text"],
.cms-pro-field input[type="email"],
.cms-pro-field input[type="tel"],
.cms-pro-field select,
.cms-pro-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 8px;
    height: 42px;
    padding: 0 12px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    color: #1a1a1a;
    background: #fff;
}
.cms-pro-field input[type="text"],
.cms-pro-field input[type="email"],
.cms-pro-field input[type="tel"] {
    -webkit-appearance: none;
    appearance: none;
}
.cms-pro-field textarea { height: auto; padding: 10px 12px; resize: vertical; }
.cms-pro-field input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    background: #fafafa;
}
.cms-pro-field input:focus,
.cms-pro-field select:focus,
.cms-pro-field textarea:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(136, 153, 38, .12);
    outline: none;
}
.cms-pro-row2 { display: flex; gap: 16px; }
.cms-pro-row2 > .cms-pro-field { flex: 1; min-width: 0; }
.cms-pro-form-sep { border: none; border-top: 1px solid #eee; margin: 8px 0 20px; }
.cms-pro-form-actions { text-align: center; margin-top: 24px; }
.cms-pro-form-actions .cms-pro-cta { border: none; cursor: pointer; }

@media (max-width: 768px) {
    .cms-pro-row2 { flex-direction: column; gap: 0; }
    .cms-pro-form { padding: 24px 18px; }
}

/* =========================================
   REGISTRO — mismo estilo de presentación que Área Profesionales
   ========================================= */
/* Tarjeta más estrecha (como profesionales, 680px) */
.grafs-register-wrapper { max-width: 680px !important; }

/* Título + subtítulo FUERA de la tarjeta, centrados */
.grafs-register-title-out {
    text-align: center !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #264934 !important;
    margin: 0 0 8px !important;
}
.grafs-register-subtitle-out {
    text-align: center !important;
    font-size: 15px !important;
    color: #2e2e2e !important;
    margin: 0 0 24px !important;
}

/* Campos en 2 columnas (desktop). Radio/checkbox/password/textarea a ancho completo. */
@media (min-width: 769px) {
    .grafs-register-card .grafs-auth-fields {
        display: flex !important;
        flex-wrap: wrap !important;
        column-gap: 16px !important;
        align-items: stretch !important;
    }
    .grafs-register-card .grafs-auth-fields > .form-group {
        flex: 0 0 calc(50% - 8px) !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 12px !important; /* distancia entre campos (compacta) */
    }
    .grafs-register-card .grafs-auth-fields > .form-group:has(input[type="radio"]),
    .grafs-register-card .grafs-auth-fields > .form-group:has(input[type="password"]),
    .grafs-register-card .grafs-auth-fields > .form-group:has(textarea),
    .grafs-register-card .grafs-auth-fields > .grafs-field-checkbox {
        flex: 0 0 100% !important;
    }
    .grafs-register-card .grafs-auth-fields input[type="text"],
    .grafs-register-card .grafs-auth-fields input[type="email"],
    .grafs-register-card .grafs-auth-fields input[type="tel"],
    .grafs-register-card .grafs-auth-fields .form-control {
        width: 100% !important;
    }
    /* Altura fija del label-row (cabe 1 o 2 líneas) → todos los inputs arrancan
       a la misma altura por construcción, sin depender de la fuente ni de flex stretch.
       line-height ajustado + min-height compacto para que no quede tan separado.
       align-items:center → la pill "Opcional" queda a la altura del texto. */
    .grafs-register-card .grafs-field-label-row {
        min-height: 40px !important;
        align-items: center !important;
    }
    .grafs-register-card .grafs-field-label-row .form-control-label {
        line-height: 1.25 !important;
        margin-bottom: 0 !important;
    }
    /* Menos espacio header→título en registro/login (como profesionales ~14px) */
    body#authentication #wrapper,
    body#authentication section#wrapper { padding-top: 14px !important; }
}

/* Ocultar el comentario de ayuda "Only letters and the dot..." bajo Nombre/Apellidos.
   Solo en campos de texto del registro (no afecta el ejemplo de Fecha de nacimiento). */
.grafs-register-card .grafs-auth-fields > .form-group:has(input[type="text"]) .grafs-field-comment {
    display: none !important;
}

/* Tratamiento (Sr./Sra.): label "Tratamiento" a la misma altura que los radios → en línea.
   align-items:baseline iguala las líneas base del texto (12px vs 14px) para que
   "Tratamiento" y "Sr."/"Sra." queden visualmente a la misma altura. */
.grafs-register-card .grafs-auth-fields > .form-group:has(.grafs-radio-group) {
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 24px !important;
}
.grafs-register-card .grafs-auth-fields > .form-group:has(.grafs-radio-group) > .grafs-field-label-row {
    flex: 0 0 auto !important;
    min-height: 0 !important;
}
.grafs-register-card .grafs-auth-fields > .form-group:has(.grafs-radio-group) > .grafs-field-input {
    flex: 1 1 auto !important;
}

/* Checkboxes "Recibir ofertas" / "Suscribirse al boletín": casilla y texto en la misma línea.
   La regla base .grafs-auth-fields label { display:block !important } pisa el flex
   de .grafs-checkbox-label; lo forzamos con más especificidad + !important. */
.grafs-register-card .grafs-field-checkbox .grafs-checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
}
/* Radios "Sr." / "Sra.": dot y texto en la misma línea (mismo motivo que checkbox) */
.grafs-register-card .grafs-radio-group .grafs-radio-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Layout en 2 columnas (debajo del hero) */
.cms-pro-cols {
    display: flex;
    gap: 0;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 0;
}
.cms-pro-col { flex: 0 0 40%; min-width: 0; }
.cms-pro-col > h2:first-child { margin-top: 0; }

.cms-pro-hero {
    background: #fafafa;
    border: 1px solid #ececec;
    color: var(--brand-dark);
    text-align: center;
    padding: 44px 24px;
    border-radius: 14px;
    margin-bottom: 45px;
}

.cms-pro-hero-logo {
    max-width: 110px;
    height: auto;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 50%;
    padding: 14px;
}

.cms-pro-hero .cms-pro-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 27px;
    font-weight: 700;
    color: #264934;
    margin: 0 0 10px;
    line-height: 1.25;
    display: block;
    border-bottom: none;
    padding-bottom: 0;
}

.cms-pro-hero-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #2e2e2e;
    margin: 0;
}

/* Texto de columnas más oscuro (solo en esta landing) */
.cms-id-12 .page-cms p,
.cms-id-12 .page-cms li { color: #2e2e2e; }

/* Mismo tamaño de tipografía en las 3 secciones (Ventajas / Cómo registrarte / Por qué) */
.cms-id-12 .cms-pro-col h2 { font-size: 18px; }
.cms-id-12 .cms-pro-col p,
.cms-id-12 .cms-pro-col ul,
.cms-id-12 .cms-pro-col li { font-size: 15px; }

.cms-pro-cta-wrap {
    text-align: center;
    margin: 40px 0 8px;
}

.cms-pro-cta {
    display: block;
    width: 80%;
    margin: 0 auto;
    box-sizing: border-box;
    text-align: center;
    background: var(--brand-green);
    color: #fff !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background .2s ease, transform .2s ease;
}

.cms-pro-cta:hover {
    background: #6f7d1f;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .cms-pro-hero { padding: 32px 18px; border-radius: 10px; }
    .cms-pro-hero-title { font-size: 21px; }
    .cms-pro-hero-sub { font-size: 14px; }
    .cms-pro-cta { width: 100%; padding: 14px; }
    .cms-pro-cols { flex-direction: column; gap: 0; }
    .cms-pro-col { flex: 1 1 auto; width: 100%; }
    .cms-pro-col > h2:first-child { margin-top: 32px; }
}

/* =========================================
   MÓDULO: grafs_brands — Carrusel de marcas
   ========================================= */

.ea-brands-row {
    background: #fff;
    padding: 48px 0;
    overflow: hidden;
}

.ea-brands-track-wrap {
    position: relative;
    overflow: hidden;
}

/* Máscaras de fade en los extremos */
.ea-brands-track-wrap::before,
.ea-brands-track-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.ea-brands-track-wrap::before {
    left: 0;
    background: linear-gradient(to right, #fff 30%, transparent);
}
.ea-brands-track-wrap::after {
    right: 0;
    background: linear-gradient(to left, #fff 30%, transparent);
}

.ea-brands-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;
    animation: ea-scroll-brands 40s linear infinite;
    will-change: transform;
}

.ea-brands-track:hover {
    animation-play-state: paused;
}

@keyframes ea-scroll-brands {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ea-brand-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 70px;
    padding: 8px;
    transition: transform 0.2s ease;
}

.ea-brand-item:hover {
    transform: scale(1.06);
}

.ea-brand-item img {
    max-width: 100%;
    max-height: 54px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.75;
    transition: opacity 0.3s ease;
    /* Desactivar future grayscale: filter: grayscale(100%); */
}

.ea-brand-item:hover img {
    opacity: 1;
}

@media (max-width: 768px) {
    .ea-brand-item { width: 100px; height: 56px; }
    .ea-brand-item img { max-height: 40px; }
    .ea-brands-track { gap: 24px; }
    .ea-brands-track-wrap::before,
    .ea-brands-track-wrap::after { width: 40px; }
}

/* =========================================
   FICHA TÉCNICA — Feature tags clicables
   ========================================= */

.ficha-tecnica-section {
    margin-top: 1.25rem;
}

.ficha-tecnica-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e8e8e8;
}

.ficha-tecnica-grid {
    border: 1px solid #ebebeb;
    border-radius: 10px;
    overflow: hidden;
}

.ficha-row {
    display: flex;
    align-items: flex-start;
    padding: 0.55rem 0.9rem;
    border-bottom: 1px solid #f0f0f0;
    min-height: 40px;
}

.ficha-row:last-child {
    border-bottom: none;
}

.ficha-row:nth-child(even) {
    background-color: #fafafa;
}

.ficha-label {
    flex: 0 0 38%;
    font-size: 0.8rem;
    color: #9a9a9a;
    font-weight: 500;
    padding-top: 0.22rem;
    padding-right: 0.5rem;
}

.ficha-values {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
}

/* Tag clicable */
.ficha-tag {
    display: inline-block;
    padding: 0.18rem 0.7rem;
    border-radius: 20px;
    font-size: 0.77rem;
    font-weight: 600;
    text-decoration: none !important;
    background-color: #fdeef3;
    color: #c0396a;
    border: 1px solid #f5c6d6;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    cursor: pointer;
    white-space: nowrap;
}

.ficha-tag:hover,
.ficha-tag:focus {
    background-color: #c0396a;
    color: #fff !important;
    border-color: #c0396a;
    text-decoration: none !important;
}

/* Variante estática (sin enlace, fallback) */
.ficha-tag--static {
    cursor: default;
    background-color: #f5f5f5;
    color: #666;
    border-color: #e0e0e0;
}

.ficha-tag--static:hover {
    background-color: #f5f5f5;
    color: #666;
    border-color: #e0e0e0;
}

@media (max-width: 768px) {
    .ficha-label {
        flex: 0 0 42%;
        font-size: 0.75rem;
    }

    .ficha-tag {
        font-size: 0.72rem;
        padding: 0.14rem 0.55rem;
    }

    .ficha-row {
        padding: 0.5rem 0.7rem;
    }
}

/* =========================================
   LAYOUT 3 COLUMNAS — Producto (estilo HSN)
   ========================================= */

/*
 * Layout 3 columnas: 40% imagen | 25% info | 35% buy box
 * ─────────────────────────────────────────────────────────
 * Raíz del problema anterior:
 *   1) .grafs-product-layout tenía flex-wrap:wrap → columnas caían abajo
 *   2) flex: 1 1 auto en centro usaba ancho de contenido como flex-basis
 *      → si col1(36%) + centro(contenido ancho) > 100%, buy box caía
 * Solución: nowrap + flex-basis % explícitos que sumen exactamente 100%
 */
.grafs-product-3col {
    flex-wrap: nowrap !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-items: flex-start !important;
}

/* COL 1 — Imágenes: 35% contenido + 2% separación = 37% */
body#product .grafs-product-3col.grafs-product-layout .product-left-col {
    flex: 0 0 37% !important;
    width: 37% !important;
    max-width: 37% !important;
    min-width: 0 !important;
    padding-right: 2% !important;
    padding-left: 0 !important;
}

/* COL 2 — Info/Accesorios: 33% contenido + 4% separación = 37% */
body#product .grafs-product-3col.grafs-product-layout .grafs-product-center-col {
    flex: 0 0 37% !important;
    width: 37% !important;
    max-width: 37% !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 4% !important;
}

/* COL 3 — Buy box: 26% */
body#product .grafs-product-3col.grafs-product-layout .grafs-product-buybox-col {
    flex: 0 0 26% !important;
    width: 26% !important;
    max-width: 26% !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Elementos dentro del buy box: ancho completo */
body#product .grafs-product-buybox-col .product-add-to-cart,
body#product .grafs-product-buybox-col #add-to-cart-or-refresh,
body#product .grafs-product-buybox-col .product-actions,
body#product .grafs-product-buybox-col .product-discounts,
body#product .grafs-product-buybox-col .b2b-prompt-banner,
body#product .grafs-product-buybox-col .grafs-qty-wrapper {
    width: 94% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

/* ── Columna 2: Info ── */
.grafs-product-center-col {
    display: flex;
    flex-direction: column;
}

.grafs-product-center-col .grafs-product-title {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
    margin-bottom: 0.65rem;
}

.grafs-product-center-col .grafs-short-desc {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.1rem;
}

/* ── Features inline: "Característica: Etiqueta" ── */
.grafs-inline-features {
    margin-top: 0.4rem;
    margin-bottom: 1.25rem;
}

.grafs-inline-features-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #999;
    margin-bottom: 0.9rem;
    padding-bottom: 0;
    border-bottom: none;
}

.grafs-inline-features-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.grafs-feat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.grafs-feat-label {
    font-size: 0.82rem;
    color: #444;
    font-weight: 600;
    white-space: nowrap;
}

.grafs-feat-label::after {
    content: ':';
}

.grafs-feat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
}

.grafs-feat-tag {
    display: inline-block;
    padding: 0.08rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none !important;
    background-color: #fff;
    color: #333;
    border: 1.5px solid #dde0dc;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    white-space: nowrap;
}

.grafs-feat-tag:hover,
.grafs-feat-tag:focus {
    background-color: #f5f5f5;
    color: #264934 !important;
    border-color: #c2d5c7;
    text-decoration: none !important;
}

/* Descripción completa inline */
.grafs-product-desc-full {
    margin-top: 0.5rem;
}

.grafs-product-desc-full .product-description {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.65;
}

/* ── Columna 3: Buy box card ── */
.grafs-product-buybox-col {
    position: relative;
}

.grafs-buybox-card {
    background: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 14px;
    padding: 1.16rem 1.8rem 1.4rem;
    position: sticky;
    top: 90px;
}

/* El precio dentro del buy box: más prominente */
.grafs-buybox-card .product-price {
    font-size: 1.7rem !important;
    font-weight: 800 !important;
    color: #3c7a1e !important;
    margin-bottom: 0.5rem;
}

.grafs-buybox-card .product-discount .regular-price {
    font-size: 1rem;
}

/* Acciones bajo el precio */
.grafs-buybox-card .grafs-product-actions {
    padding-top: 0.5rem;
    margin-top: 0;
}

/* Referencia */
.grafs-buybox-ref {
    margin-top: 0.85rem;
    padding-top: 0.7rem;
    border-top: 1px solid #f0f0f0;
    font-size: 0.76rem;
    color: #bbb;
}

.grafs-buybox-ref-label {
    font-weight: 600;
    margin-right: 4px;
}

/* ── Responsive: tablet y móvil — columnas apiladas ── */
@media (max-width: 991px) {
    .grafs-product-3col {
        flex-wrap: wrap !important;  /* permitir apilado en móvil */
    }

    body#product .grafs-product-3col.grafs-product-layout .product-left-col,
    body#product .grafs-product-3col.grafs-product-layout .grafs-product-center-col,
    body#product .grafs-product-3col.grafs-product-layout .grafs-product-buybox-col {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .grafs-buybox-card {
        position: static;
        margin-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .grafs-product-center-col .grafs-product-title {
        font-size: 1.25rem;
    }

    .grafs-buybox-card {
        padding: 1rem 0.9rem 0.9rem;
    }

    .grafs-buybox-card .product-price {
        font-size: 1.5rem !important;
    }

    .grafs-feat-tag {
        font-size: 0.72rem;
        padding: 0.13rem 0.5rem;
    }
}


/* =========================================
   LANDING — Secciones de productos home
   ========================================= */

.ea-home-section {
    padding: 48px 0 40px;
    background: #fff;
}

.ea-home-section + .ea-home-section {
    border-top: 1px solid #f0f0f0;
}

.ea-home-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 28px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ea-flash-badge {
    display: inline-block;
    background: #f36767;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* ── Banner ps_banner (imagen) ──
   padding-top 32 separa el banner del bloque gris (bestsellers) en desktop.
   En móvil esta regla se sobrescribe en @media (max-width:768px) con
   padding 40 0 0 (evita que se peguen los bloques verticales). */
.ea-banner-wrap {
    padding: 32px 0 32px;
    background: transparent;
}
.ea-banner-link {
    display: block;
    border-radius: 8px;
    overflow: hidden;
}
.ea-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Banner intermedio ── */
.ea-home-banner {
    background: linear-gradient(135deg, #264934 0%, #3d6b4f 100%);
    padding: 56px 24px;
    text-align: center;
    margin: 0 auto 32px;
    border-radius: 8px;
    width: 85%;
    max-width: 1700px;
    box-sizing: border-box;
}

.ea-home-banner-inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.ea-home-banner-tag {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 12px;
}

.ea-home-banner-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 28px;
    line-height: 1.2;
}

.ea-home-banner-btn {
    display: inline-block;
    background: #fff;
    color: #264934;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.ea-home-banner-btn:hover {
    background: #eef5ef;
    color: #264934;
    text-decoration: none;
}

/* ── SEO Landing Section ── */
.ea-seo-section {
    padding: 56px 0 72px;
    background: #f9f9f7;
}

.ea-landing-h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
    line-height: 1.25;
}

.ea-landing-h2 {
    font-size: 18px;
    font-weight: 600;
    color: #444;
    margin: 8px 0 40px;
    line-height: 1.35;
}

/* Slider wrapper */
.ea-seo-slider-outer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ea-seo-track-wrap {
    flex: 1;
    overflow: hidden;
}

.ea-seo-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

/* Each slide: image left + text right */
.ea-seo-slide {
    min-width: 100%;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 0 4px;
    box-sizing: border-box;
}

.ea-seo-img-wrap {
    flex: 0 0 42%;
    max-width: 42%;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #e8e8e4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ea-seo-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CSS placeholder when no real image yet */
.ea-seo-placeholder {
    width: 100%;
    height: 100%;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #999;
    font-style: italic;
    flex-direction: column;
    gap: 10px;
}

.ea-seo-placeholder span {
    font-size: 40px;
    opacity: 0.35;
}

.ea-seo-placeholder-1 { background: linear-gradient(135deg, #c8d89a 0%, #a8bc60 100%); }
.ea-seo-placeholder-2 { background: linear-gradient(135deg, #d4c4a0 0%, #b89870 100%); }
.ea-seo-placeholder-3 { background: linear-gradient(135deg, #a8c4b4 0%, #7a9e8e 100%); }

.ea-seo-text {
    flex: 1;
    padding-top: 4px;
}

.ea-seo-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 14px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.ea-seo-text p {
    font-size: 15px;
    color: #333;
    line-height: 1.75;
    margin: 0 0 14px;
    font-weight: 400;
}

.ea-seo-text p strong {
    font-weight: 600;
    color: #1a1a1a;
}

.ea-seo-text a {
    color: var(--brand-green);
    text-decoration: underline;
    font-weight: 400;
}

.ea-seo-text a strong {
    font-weight: 600;
}

.ea-seo-text a:hover {
    color: #5a6b00;
}

/* Slider arrows (same style as carousels) */
.ea-seo-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #ccc;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    color: #333;
    align-self: center;
}

.ea-seo-arrow:hover {
    border-color: var(--brand-green);
    background: var(--brand-green);
    color: #fff;
}

.ea-seo-arrow .material-icons {
    font-size: 20px;
    line-height: 1;
}

/* Dots navigation */
.ea-seo-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.ea-seo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.ea-seo-dot.active {
    background: var(--brand-green);
    transform: scale(1.35);
}

/* Mobile */
@media (max-width: 768px) {
    .ea-home-banner-title { font-size: 22px; }
    .ea-home-section-title { font-size: 20px; }
    .ea-landing-h1 { font-size: 20px; }
    .ea-landing-h2 { font-size: 13px; margin-bottom: 28px; }
    .ea-seo-slide { flex-direction: column; gap: 20px; }
    .ea-seo-img-wrap { flex: none; max-width: 100%; width: 100%; aspect-ratio: 16/9; }
    .ea-seo-placeholder { min-height: 180px; }
    .ea-seo-text h3 { font-size: 17px; }
    /* Ocultar flechas en móvil — navegación por dots */
    .ea-seo-arrow { display: none !important; }
    /* El track ocupa el ancho completo, igual que los títulos h1/h2 */
    .ea-seo-slider-outer { gap: 0; }
    .ea-seo-track-wrap { width: 100%; }
}

/* =========================================
   CARRUSEL HOME (bestsellers / ofertas)
   ========================================= */

.ea-carousel-section {
    padding: 40px 0;
    background: #fff;
    overflow: hidden;
}

.ea-carousel-title {
    text-align: center;
    justify-content: center;
    margin-bottom: 24px !important;
}

.ea-carousel-outer {
    padding: 0 calc((100% - 85%) / 2);
}

/* Dots solo visibles en móvil (en desktop hay flechas prev/next) */
.ea-carousel-dots { display: none; }

.ea-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.ea-carousel-arrow {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #444;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.ea-carousel-arrow:hover {
    border-color: var(--brand-green);
    color: var(--brand-green);
    background: #eef5ef;
}

.ea-carousel-arrow .material-icons {
    font-size: 22px;
}

.ea-carousel-track {
    flex: 1;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    min-width: 0;
}

.ea-carousel-track::-webkit-scrollbar {
    display: none;
}

.ea-carousel-slide {
    flex: 0 0 calc(20% - 13px);
    scroll-snap-align: start;
    min-width: 180px;
}

@media (max-width: 1024px) {
    .ea-carousel-slide { flex: 0 0 calc(25% - 12px); min-width: 160px; }
}

@media (max-width: 768px) {
    /* Padding secciones carrusel */
    .ea-carousel-section { padding: 24px 0; }

    /* 2 tarjetas por vista — mismo dimensionado que #js-product-list (categoría):
       gap 16px → cada slide (50% - 8px). Asegura paridad visual pixel-perfect. */
    .ea-carousel-slide {
        flex: 0 0 calc(50% - 8px);
        min-width: 0;
        scroll-snap-align: start;
    }
    /* Outer ligeramente más ancho que .container 92% para igualar la apariencia
       del banner mobile (cuyo contenido llega casi al borde). 96% deja ~2% de
       margen a cada lado, dando tarjetas algo más anchas en ambos extremos. */
    .ea-carousel-outer {
        width: 96%;
        margin: 0 auto;
        padding: 0;
        position: relative;
        overflow: visible;
    }
    /* Flechita/gradiente derecho desactivado en móvil — carrusel ya al 92% */
    .ea-carousel-outer::after { display: none !important; content: none !important; }
    .ea-carousel-arrow { display: none; }

    /* Dots paginación carrusel productos — pegadas a las tarjetas, separadas del CTA */
    .ea-carousel-dots {
        display: flex !important;
        justify-content: center;
        gap: 6px;
        margin-top: 10px;
        margin-bottom: 18px;
        padding: 0;
    }
    .ea-carousel-dots .ea-carousel-dot {
        appearance: none;
        -webkit-appearance: none;
        border: 0;
        background: rgba(0,0,0,0.18);
        width: 18px;
        height: 3px;
        border-radius: 2px;
        padding: 0;
        cursor: pointer;
        transition: background 0.25s, width 0.25s;
    }
    .ea-carousel-dots .ea-carousel-dot.is-active {
        background: var(--brand-green, #889926);
        width: 28px;
    }

    .ea-carousel-wrapper { gap: 0; }
    .ea-carousel-track { gap: 16px; padding-bottom: 6px; }

    /* ── Tarjeta compacta para vista 2-en-1 ── */
    .ea-carousel-slide .grafs-product-card .thumbnail.product-thumbnail {
        padding: 10px !important;
    }
    .ea-carousel-slide .grafs-product-card .thumbnail.product-thumbnail img {
        height: 130px !important;
    }
    .ea-carousel-slide .grafs-product-card .product-description {
        padding: 10px 12px 15px !important;
    }
    .ea-carousel-slide .grafs-product-card .product-brand {
        font-size: 9px !important;
        margin-bottom: 3px !important;
    }
    .ea-carousel-slide .grafs-product-card .product-title {
        font-size: 12px !important;
        height: calc(12px * 1.4 * 4) !important;
        margin-bottom: 8px !important;
        line-height: 1.4 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
    .ea-carousel-slide .grafs-product-card .discount-percentage,
    .ea-carousel-slide .grafs-product-card .discount-product {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }
    /* Sin flex-grow la descripción no se estira: el precio queda pegado al título */
    .ea-carousel-slide .grafs-product-card .product-description {
        flex-grow: 0 !important;
    }
    .ea-carousel-slide .grafs-product-card .product-price-and-shipping {
        margin-top: 4px !important;
    }
    .ea-carousel-slide .grafs-product-card .regular-price {
        font-size: 11px !important;
    }
    .ea-carousel-slide .grafs-product-card .price {
        font-size: 17px !important;
    }
    .ea-carousel-slide .grafs-product-card .grafs-add-btn-main,
    .ea-carousel-slide .grafs-product-card .grafs-cart-interaction {
        height: 40px !important;
        font-size: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* =========================================
   TARJETA DE PRODUCTO — selector universal
   Aplica a grids, carruseles y cualquier contexto
   ========================================= */

.grafs-product-card {
    height: auto !important;
    margin-bottom: 0;
}

.grafs-product-card .thumbnail-container {
    height: 100% !important;
    min-height: unset !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    border: 1px solid #eaeaea !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    transition: box-shadow 0.25s ease;
    overflow: hidden !important;
}

.grafs-product-card .thumbnail-container:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
}

/* Imagen */
.grafs-product-card .thumbnail.product-thumbnail {
    display: block !important;
    background: #fff !important;
    padding: 16px !important;
    position: static !important;
    height: auto !important;
}

.grafs-product-card .thumbnail.product-thumbnail img {
    position: static !important;
    width: 94% !important;
    height: 190px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Descripción — crece para empujar el botón abajo */
.grafs-product-card .product-description {
    position: static !important;
    height: auto !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 12px 16px 10px !important;
    background: #fff !important;
    box-shadow: none !important;
    text-align: left !important;
}

.grafs-product-card .product-description::after,
.grafs-product-card .product-description::before {
    display: none !important;
    content: none !important;
}

/* Marca */
.grafs-product-card .product-brand {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #999 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    margin-bottom: 4px !important;
    min-height: 16px !important;
    height: auto !important;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Nombre */
.grafs-product-card .product-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    line-height: 1.4 !important;
    margin: 0 0 10px !important;
    height: auto !important;
    max-height: 58px !important;
    overflow: hidden !important;
    text-align: left !important;
    border: none !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    padding-right: 14px !important;
    box-sizing: border-box !important;
}

.grafs-product-card .product-title a {
    display: block !important;
    width: 94% !important;
    color: inherit !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    text-align: left !important;
}

.grafs-product-card .product-title a:hover {
    color: var(--brand-green) !important;
}

/* Estrellas */
.grafs-product-card .grafs-stars {
    margin-bottom: 6px;
}

/* Precio */
.grafs-product-card .product-price-and-shipping {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 4px 8px !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    min-height: unset !important;
}

.grafs-product-card .price {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    order: 3 !important;
}

.grafs-product-card .regular-price {
    font-size: 13px !important;
    color: #aaa !important;
    text-decoration: line-through !important;
    order: 2 !important;
}

.grafs-product-card .discount-percentage,
.grafs-product-card .discount-product {
    background: #fde8e8 !important;
    color: #f36767 !important;
    border: none !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    order: 1 !important;
}

/* Botón añadir al carrito — siempre visible */
.grafs-product-card .grafs-grid-cart-section {
    padding: 0 !important;
    background: transparent !important;
    border-top: none !important;
    margin-top: 7px;
}

.grafs-product-card .grafs-cart-interaction {
    height: 46px !important;
    border-radius: 0 0 7px 7px !important;
    overflow: hidden !important;
}

.grafs-product-card .grafs-add-btn-main {
    height: 46px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 0 0 8px 8px !important;
    background: var(--brand-green) !important;
    color: #fff !important;
    border: none !important;
}

.grafs-product-card .grafs-add-btn-main:hover {
    background: #1a3324 !important;
    color: #fff !important;
}

/* Flags (Nuevo, Oferta...) — capa transparente al 100%, el flag (li) decide su offset */
.grafs-product-card .product-flags {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 2 !important;
}

/* Mobile */
@media (max-width: 768px) {
    .grafs-product-card .thumbnail.product-thumbnail img {
        height: 140px !important;
    }
    .grafs-product-card .grafs-add-btn-main,
    .grafs-product-card .grafs-cart-interaction {
        height: 40px !important;
    }
}

/* =========================================
   PRECIO EN OFERTA + PILL DESCUENTO
   ========================================= */

/* Pill — igual que ficha de producto */
.product-miniature .discount-product {
    background-color: #fde8e8 !important;
    border: none !important;
    border-radius: 20px !important;
    color: #f36767 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 3px 10px !important;
    margin: 0 !important;
    display: inline-block !important;
}

/* Precio actual en rojo cuando hay descuento
   Selectores con ID para vencer cualquier regla de clase con !important */
#js-product-list .product-price-and-shipping.is-on-sale .price,
#products .product-price-and-shipping.is-on-sale .price,
.grafs-cat-products-grid .product-price-and-shipping.is-on-sale .price,
.featured-products .product-price-and-shipping.is-on-sale .price,
.ea-carousel-slide .product-price-and-shipping.is-on-sale .price,
.product-accessories .product-price-and-shipping.is-on-sale .price {
    color: #e63946 !important;
}

/* =========================================
   ALTURA UNIFORME EN TODOS LOS CONTEXTOS
   Carousel slides y featured items propagan
   la altura al producto-miniature interior
   ========================================= */

/* Hacer que el slide sea flex-column para propagar altura */
.ea-carousel-slide,
.ea-featured-item {
    display: flex;
    flex-direction: column;
}

/* El miniature llena el slide completo */
.ea-carousel-slide .grafs-product-card,
.ea-featured-item .grafs-product-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: auto;
}

/* thumbnail-container ya tiene height:100% via .grafs-product-card,
   pero lo reforzamos para estos contextos */
.ea-carousel-slide .grafs-product-card .thumbnail-container,
.ea-featured-item .grafs-product-card .thumbnail-container {
    flex: 1;
    height: 100% !important;
    width: 94% !important;
}

/* #products (listado de categoría) — mismo tratamiento */
#products .grafs-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#products .grafs-product-card .thumbnail-container {
    flex: 1;
    height: 100% !important;
    width: 94% !important;
}

/* =========================================
   FONDO PATRÓN — OFERTAS FLASH
   ========================================= */
/* Bestsellers — bloque gris */
.ea-bestsellers-section {
    background: #f4f6f8;
}

/* Specials — fondo limpio (se quita el patrón de aceitunas) */
.ea-specials-section {
    background: transparent;
}

/* =========================================
   BOTÓN VER TODAS LAS OFERTAS
   ========================================= */
.ea-specials-cta {
    text-align: center;
    padding: 24px 0 32px;
}

.ea-specials-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-green);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.ea-specials-btn:hover {
    background: #6d7a1e;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.ea-specials-btn .material-icons {
    font-size: 18px;
}

/* =========================================
   BLOQUE RESEÑAS
   ========================================= */
.ea-reviews-section {
    background-image: url('../img/fondoaceitunas.png');
    background-repeat: repeat;
    background-size: 600px 600px;
    background-color: #f4f6f8;
    padding: 56px 0;
}

.ea-reviews-header {
    text-align: center;
    margin-bottom: 40px;
}

.ea-reviews-score {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
}

.ea-reviews-score strong {
    color: #1a1a1a;
}

.ea-reviews-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #888;
    margin: 0;
}

.ea-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ea-review-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.ea-review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 4px;
}

.ea-review-stars {
    color: #889926;
    font-size: 16px;
    letter-spacing: 1px;
}

.ea-review-meta {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ea-review-google {
    color: #555;
    font-weight: 700;
}

.ea-review-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
}

.ea-review-body {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 1024px) {
    .ea-reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .ea-reviews-grid { grid-template-columns: 1fr; }
    .ea-reviews-section { padding: 40px 0; }
    .ea-reviews-score  { font-size: 20px; line-height: 1.25; }
    .ea-reviews-sub    { font-size: 12px; line-height: 1.4; padding: 0 12px; }
    .ea-reviews-header { margin-bottom: 22px; }
}

/* =========================================
   BLOQUE CONFIANZA
   ========================================= */
.ea-trust-section {
    background: #fff;
    padding: 48px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.ea-trust-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    text-align: center;
}

.ea-trust-item {
    flex: 0 0 auto;
    width: calc(33.333% - 22px);
    max-width: 280px;
}

.ea-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ea-trust-icon {
    font-size: 40px !important;
    color: #889926;
}

.ea-trust-svg {
    width: 64px;
    height: 64px;
}

.ea-trust-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.ea-trust-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #777;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 1024px) {
    .ea-trust-grid { gap: 24px 20px; }
    .ea-trust-item { width: calc(50% - 12px); }
}

@media (max-width: 640px) {
    .ea-trust-grid { gap: 20px; }
    .ea-trust-item { width: 100%; max-width: 320px; }
    .ea-trust-section { padding: 40px 0; }
}

/* =========================================
   BLOQUE PERFILES DE CLIENTE
   ========================================= */
.ea-profiles-section {
    background: #f4f6f8;
    padding: 56px 0;
}

.ea-profiles-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #888;
    text-align: center;
    margin: -12px 0 32px;
}

.ea-profiles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ea-profile-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    height: 220px;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    transition: transform 0.2s;
}

.ea-profile-card:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

.ea-profile-hosteleria  { background: linear-gradient(135deg, #2d5016 0%, #5a8a28 100%); }
.ea-profile-granformato { background: linear-gradient(135deg, #1a3a5c 0%, #2e6da4 100%); }
.ea-profile-regalo      { background: linear-gradient(135deg, #7b2d00 0%, #c96a2e 100%); }
.ea-profile-aperitivos  { background: linear-gradient(135deg, #4a1a6b 0%, #8e44ad 100%); }

.ea-profile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 55%);
}

.ea-profile-content {
    position: relative;
    z-index: 1;
    padding: 20px 18px;
    color: #fff;
}

.ea-profile-content .material-icons {
    font-size: 28px;
    margin-bottom: 6px;
    display: block;
}

.ea-profile-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.25;
}

.ea-profile-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.82);
    margin: 0;
    line-height: 1.4;
}

/* Grid de tarjetas-imagen (desktop + responsive) */
.ea-profiles-mgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.ea-mprofile-card {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    text-decoration: none;
    aspect-ratio: 600 / 440;
    transition: transform 0.2s, box-shadow 0.2s;
}
.ea-mprofile-card:hover {
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.16);
}
.ea-mprofile-card picture,
.ea-mprofile-card img {
    width: 100%;
    height: 100%;
    display: block;
}
.ea-mprofile-card img { object-fit: cover; }
.ea-mprofile-info {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 14px 16px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.35) 65%, transparent 100%);
    color: #fff;
}
.ea-mprofile-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 3px;
    line-height: 1.2;
}
.ea-mprofile-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    margin: 0;
    line-height: 1.35;
}

@media (max-width: 1024px) {
    .ea-profiles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .ea-profiles-section .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
        max-width: 100% !important;
    }
    .ea-profiles-mgrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .ea-mprofile-card {
        aspect-ratio: 1 / 1;
        border-radius: 16px;
    }
    .ea-mprofile-info {
        padding: 12px 12px 10px;
    }
    .ea-mprofile-title { font-size: 13px; }
    .ea-mprofile-desc  { font-size: 11px; }

    .ea-profiles-section {
        padding: 32px 0 40px;
        overflow: hidden;
    }
    .ea-profiles-section .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 92% !important;
    }
    .ea-profiles-sub {
        padding-left: 16px;
        padding-right: 16px;
    }
    .ea-profiles-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: scroll !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding: 4px 16px 16px;
        scrollbar-width: none;
        width: 100%;
        box-sizing: border-box;
    }
    .ea-profiles-grid::-webkit-scrollbar { display: none; }
    .ea-profile-card {
        flex: 0 0 auto !important;
        width: calc(100vw - 108px) !important;
        min-width: 0 !important;
        height: calc(100vw - 108px) !important;
        scroll-snap-align: start;
        border-radius: 18px !important;
    }
}

/* =========================================
   PADDING UNIFORME MÓVIL — todas las secciones home
   Normaliza el espaciado vertical para ≤768px
   ========================================= */
@media (max-width: 768px) {
    /* Padding vertical uniforme para todas las secciones-bloque de la home */
    .ea-cats-section,
    .ea-carousel-section,
    .ea-profiles-section,
    .ea-seo-section,
    .ea-reviews-section,
    .ea-trust-section { padding: 40px 0 !important; }

    /* Banner intermedio — separación arriba para no pegarse al bloque gris */
    .ea-banner-wrap { padding: 40px 0 0 !important; }

    /* Título "¿Qué estás buscando?" centrado en móvil
       NB: .ea-home-section-title es display:flex → text-align no centra el texto;
       hay que usar justify-content sobre el contenedor flex. */
    .ea-profiles-section .ea-home-section-title,
    .ea-profiles-section p.ea-home-section-title {
        text-align: center !important;
        justify-content: center !important;
    }

    /* CTA "Ver todas las ofertas" dentro de specials */
    .ea-specials-cta { padding: 12px 0 16px; }
}

/* =========================================
   EA-CAT-NAV — Columna izquierda categorías
   Ref: diseño farmacia con bullets ○ y activo en verde
   ========================================= */

.ea-cat-nav {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 18px 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.ea-cat-nav-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0 0 12px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brand-green);
    line-height: 1.3;
}

.ea-cat-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ea-cat-nav-link {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #444;
    padding: 5px 0 5px 6px;
    text-decoration: none;
    border-bottom: 1px solid #f2f2f2;
    transition: color 0.15s;
    line-height: 1.4;
}

.ea-cat-nav-item:last-child > .ea-cat-nav-link {
    border-bottom: none;
}

.ea-cat-nav-link::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    min-width: 6px;
    border: 1.5px solid #333;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.ea-cat-nav-link:hover { color: var(--brand-green); }
.ea-cat-nav-link:hover::before { color: var(--brand-green); }

.ea-cat-nav-item.active > .ea-cat-nav-link {
    color: var(--brand-green);
    font-weight: 600;
    border-left: 3px solid var(--brand-green);
    padding-left: 10px;
}

.ea-cat-nav-item.active > .ea-cat-nav-link::before {
    display: none;
}

/* Cabecera inline dentro de la columna de contenido */
.category-content-header {
    margin-bottom: 14px;
}
/* Mobile back-link sólo visible en móvil — en desktop usamos la migra real */
.category-content-header .category-mobile-breadcrumb { display: none; }

/* ── Botón "Volver arriba" (PS .up): reestilizado a la estética de la web ── */
.up .btn,
.up .btn-secondary,
.up a.btn,
.up a {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: #fff !important;
    border: 1px solid #c8ccca !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #6e7170 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transition: border-color .15s, color .15s, background .15s;
}
.up .btn:hover,
.up a:hover {
    background: #fff !important;
    border-color: var(--brand-green) !important;
    color: var(--brand-green) !important;
}
.up .btn .material-icons,
.up a .material-icons {
    font-size: 18px !important;
    color: inherit !important;
}
.up { margin: 16px 0 !important; }
.category-content-header .breadcrumb {
    margin-bottom: 6px;
    font-size: 13px;
}
.category-page-title-inline {
    font-size: 22px;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0 0 10px 0;
    line-height: 1.2;
}

@media (max-width: 767px) {
    .category-content-header { margin-bottom: 10px; }
    .category-page-title-inline { font-size: 20px; }
}
/* =========================================
   TARJETA DE PRODUCTO MOVIL - rediseno limpio
   ========================================= */
@media (max-width: 768px) {

    /* DESCRIPCION: contener hijos en layout flex-column.
       Sin overflow:hidden y min-width:0 los hijos flex se ensanchan
       mas alla del padding y el texto toca el borde de la tarjeta. */
    .product-miniature .product-description,
    .ea-carousel-slide .grafs-product-card .product-description {
        overflow: hidden !important;
        min-width: 0 !important;
        padding: 10px 12px 15px !important;
        box-sizing: border-box !important;
    }

    /* TITULO: eliminar alturas fijas y usar max-height.
       El problema anterior era display:-webkit-box que, si
       -webkit-box-orient:vertical no se aplica, pone el texto
       en linea horizontal y overflow:hidden lo corta a la derecha.
       Solucion: max-height calculado (3 lineas) sin -webkit-box. */
    .product-miniature .product-title,
    .ea-carousel-slide .grafs-product-card .product-title,
    #js-product-list .product-miniature .product-title,
    #products .product-miniature .product-title,
    .featured-products .product-miniature .product-title {
        display: block !important;
        height: calc(12px * 1.4 * 4) !important;
        overflow: hidden !important;
        min-width: 0 !important;
        width: 94% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
        margin-top: 1px !important;
        padding-right: 0 !important;
    }

    /* padding-right del titulo: el root cause fix hace que .product-description
       tenga width:100% correcto, dando 16px de margen en ambos lados. Sin extra. */

    /* BOTON "Anadir al carrito":
       responsive-master.css aplica .add-to-cart { min-height:52px !important }
       lo que hace el boton mas alto (52px) que su contenedor (42px).
       El texto flex-centrado en 52px queda a 26px del top = 62% visible
       en los 42px del contenedor -> parece desplazado abajo.
       Fix: min-height:0 con mayor especificidad. */
    .grafs-product-card .grafs-add-btn-main,
    .grafs-add-btn-main {
        min-height: 0 !important;
        height: 40px !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 13px !important;
    }

    .grafs-add-btn-main .btn-text {
        display: block !important;
        line-height: 1 !important;
        pointer-events: none;
    }

    /* Contenedor del boton: mismo alto, sin gap visual.
       margin-top:7px crea hueco blanco que hace el boton parecer fuera de la tarjeta. */
    .grafs-product-card .grafs-cart-interaction,
    .grafs-cart-interaction {
        height: 40px !important;
        min-height: 0 !important;
    }

    .grafs-product-card .grafs-grid-cart-section {
        margin-top: 8px !important;
    }

    /* Carrusel: alineado pixel-perfect con .container 92% — sin padding extra
       (alinea las tarjetas con el bloque ¿Qué estás buscando? y categorías) */
    .ea-carousel-outer {
        padding: 0 !important;
    }

    /* Anular el 94% del thumbnail-container en el carrusel (línea 8217) para
       que la tarjeta llene el slide igual que en la página de categoría
       (donde ya se anula a 100% — línea 3123-3127). Sin esto, queda un
       hueco lateral que hace ver la tarjeta visualmente más estrecha. */
    .ea-carousel-slide .grafs-product-card .thumbnail-container {
        width: 100% !important;
    }
}

/* =========================================
   BANNER CATEGORÍA — overrides móvil
   - Aceitunas (cat 131) en móvil: oculta el slider y muestra una imagen única
   - Resto de categorías y desktop: comportamiento original
   ========================================= */
.cat-banner-mobile-only { display: none; }

@media (max-width: 768px) {
    body.category-id-131 .cat-banner-wide.gcb-slider { display: none !important; }
    body.category-id-131 .cat-banner-aceitunas {
        display: block !important;
        width: 100%;
        /* 20px arriba/abajo = mismo margen que .grafs-subcat-pills (línea 9436)
           respecto al título y a la parrilla */
        margin: 20px auto !important;
        /* Radio coherente con slider móvil y tarjetas (14px) */
        border-radius: 14px;
        overflow: hidden;
    }
    body.category-id-131 .cat-banner-aceitunas img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 14px;
    }
}

/* TARJETA MOVIL — fix <a> inline overflow y thumbnail overflow */
@media (max-width: 768px) {
    .product-miniature .product-title a,
    .ea-carousel-slide .grafs-product-card .product-title a {
        display: block !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        width: 94% !important;
    }
    .grafs-product-card .thumbnail-container {
        overflow: hidden !important;
        min-width: 0 !important;
    }
}

/* ===== PÁGINA 404 / NO ENCONTRADO ===== */
/* Mismo ancho que grafs-container-fluid (homepage) */
#pagenotfound #wrapper > .container {
    width: 94% !important;
    max-width: 1700px !important;
}

#pagenotfound #wrapper {
    text-align: center;
}

#pagenotfound #wrapper .page-header h1 {
    text-align: center;
}

#pagenotfound #wrapper .page-not-found {
    background: none !important;
    box-shadow: none !important;
    max-width: none !important;
    padding: 2rem 1rem;
    text-align: center;
}

#pagenotfound #wrapper .page-not-found #search_widget {
    display: flex !important;
    justify-content: center !important;
    grid-area: unset !important;
    width: 94% !important;
    min-width: 0 !important;
}

#pagenotfound #wrapper .page-not-found #search_widget form {
    width: 480px !important;
    max-width: 94% !important;
    margin: 0 auto !important;
    position: relative !important;
    display: flex !important;
}

#pagenotfound #wrapper .page-not-found #search_widget form input[type="text"] {
    flex: 1 !important;
    width: 94% !important;
}

@media (max-width: 768px) {
    #pagenotfound #wrapper .page-not-found #search_widget form {
        width: 94% !important;
    }
}

/* ============================================================
   TITLE: word-wrap y overflow — padding lo gestiona el container
   ============================================================ */
#products .grafs-product-card .product-title,
#js-product-list .grafs-product-card .product-title,
.featured-products .grafs-product-card .product-title,
.ea-carousel-slide .grafs-product-card .product-title {
    box-sizing: border-box !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    overflow: hidden !important;
}

#products .grafs-product-card .product-title a,
#js-product-list .grafs-product-card .product-title a,
.featured-products .grafs-product-card .product-title a,
.ea-carousel-slide .grafs-product-card .product-title a {
    display: block !important;
    width: 94% !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    text-align: left !important;
}

/* ============================================================
   ROOT CAUSE FIX: Classic parent theme hardcodea width:250px
   en .product-description (sin box-sizing ni override de width).
   En mobile las tarjetas miden ~180px → el product-description
   (250px contenido + 32px padding = 282px total) desborda la
   tarjeta. overflow:hidden del thumbnail-container recorta el
   padding derecho → texto toca el borde derecho, margen izq OK.
   Solución: width:100% + border-box para que el padding quede
   DENTRO del ancho de la tarjeta en todos los contextos.
   ============================================================ */
#products .product-miniature .product-description,
.featured-products .product-miniature .product-description,
.product-accessories .product-miniature .product-description,
.grafs-cat-products-grid .product-miniature .product-description,
.ea-carousel-slide .grafs-product-card .product-description {
    width: 94% !important;
    box-sizing: border-box !important;
}

/* ============================================================
   CATEGORY / LISTING PAGE — 4 columnas en escritorio y tablet
   ============================================================ */
@media (min-width: 769px) {
    #js-product-list .products.row {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 16px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #js-product-list .products.row .product-miniature {
        flex: 0 0 calc(25% - 12px) !important;
        max-width: calc(25% - 12px) !important;
        width: calc(25% - 12px) !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* ============================================================
   PRECIO MOBILE — precio alineado a la izquierda, 16px
   ============================================================ */
@media (max-width: 768px) {
    /* Precio sin oferta: alineado a la izquierda */
    .product-miniature .product-price-and-shipping {
        justify-content: flex-start !important;
        text-align: left !important;
        padding-top: 5px !important;
    }

    /* Precio en oferta: [pill] izq | [tachado arriba / precio abajo] izq
       CSS grid: col1 pill span-2-filas, col2 precios apilados alineados a la izquierda */
    .product-miniature .product-price-and-shipping.is-on-sale {
        display: grid !important;
        grid-template-columns: auto 1fr !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;
        column-gap: 6px !important;
        row-gap: 0 !important;
        justify-items: start !important;
    }
    .product-miniature .product-price-and-shipping.is-on-sale .discount-product {
        grid-column: 1 !important;
        grid-row: 1 / 3 !important;
        align-self: center !important;
        justify-self: start !important;
    }
    .product-miniature .product-price-and-shipping.is-on-sale .regular-price {
        grid-column: 2 !important;
        grid-row: 1 !important;
        display: block !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
        text-align: left !important;
    }
    .product-miniature .product-price-and-shipping.is-on-sale .price {
        grid-column: 2 !important;
        grid-row: 2 !important;
        line-height: 1.2 !important;
        text-align: left !important;
    }

    /* Márgenes laterales: iguales a la ficha de producto.
       Sin .row bootstrap que cancele el padding, hay que ponerlo explícito. */
    body#category #content-wrapper,
    body#categories #content-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* ============================================================
   FICHA DE PRODUCTO — LAYOUT MÓVIL
   Orden de elementos (column flex):
     0  .product-mobile-breadcrumb   "< Categoría"
     1  .product-left-col            imágenes (swiper)
     2  .grafs-product-col2-top      marca + título + desc corta
     3  .grafs-product-buybox-col    precio + rappels + carrito
     4  .grafs-product-col2-bottom   desc larga + características + accesorios
   ============================================================ */

/* ── Desktop: esconder el swiper móvil y elementos exclusivos mobile ── */
@media (min-width: 769px) {
    .product-mobile-swiper                  { display: none !important; }
    .product-mobile-breadcrumb              { display: none !important; }
    .product-b2b-mobile-only                { display: none !important; }
    .grafs-product-details-inline-mobile    { display: none !important; }
    /* Descripción larga en col2-bottom: solo móvil. En desktop ya aparece en el tab Descripción */
    .grafs-product-col2-bottom .grafs-product-desc-full { display: none !important; }
}

/* ── Móvil: layout en columna única ── */
@media (max-width: 768px) {

    /* Ocultar estructura desktop de imágenes (cover grande + tira de miniaturas) */
    body#product .product-left-col .images-container { display: none !important; }

    /* Ocultar botones prev/next del carrusel desktop */
    body#product .scroll-box-arrows { display: none !important; }

    /* ── SWIPER MÓVIL ── */
    .product-mobile-swiper {
        display: flex !important;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
        width: 100%;
        background: #fff;
        border-radius: 10px;
        border: 1px solid #e8e8e8;
    }
    .product-mobile-swiper::-webkit-scrollbar { display: none; }

    .product-mobile-swiper-slide {
        flex: 0 0 100%;
        width: 100%;
        scroll-snap-align: start;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 260px;
        max-height: 360px;
        background: #fff;
        border-radius: 10px;
    }
    .product-mobile-swiper-slide img {
        max-height: 320px;
        width: auto;
        max-width: 92%;
        object-fit: contain;
        display: block;
    }

    /* ── BREADCRUMB MÓVIL ── */
    .product-mobile-breadcrumb {
        display: block !important;
        order: 0;
        width: 100%;
        flex: 0 0 100%;
        margin-bottom: 8px;
    }
    .product-mobile-back-link {
        display: inline-flex;
        align-items: center;
        gap: 2px;
        font-size: 13px;
        font-weight: 500;
        color: #555;
        text-decoration: none;
        line-height: 1;
    }
    .product-mobile-back-link:hover { color: var(--brand-green); }
    .product-mobile-back-link .material-icons {
        font-size: 18px;
        line-height: 1;
        vertical-align: middle;
    }

    /* ── LAYOUT: row → column ── */
    body#product .grafs-product-3col {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
    }

    /* COL 1 — imágenes: posición 1 */
    body#product .grafs-product-3col .product-left-col {
        order: 1;
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    /* COL 2 — info: display:contents hace que col2-top y col2-bottom
       sean flex items directos del .grafs-product-3col para poder ordenarlos */
    body#product .grafs-product-3col .grafs-product-center-col {
        display: contents !important;
    }

    /* col2-top: marca + título + desc corta — posición 2 */
    body#product .grafs-product-col2-top {
        order: 2;
        flex: 0 0 auto;
        width: 100%;
        padding: 16px 0 0;
    }

    /* COL 3 — buy box: precio + rappels + carrito — posición 3 */
    body#product .grafs-product-3col .grafs-product-buybox-col {
        order: 3;
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin-top: 16px;
    }

    /* Quitar card box en móvil: layout plano, sin borde ni sombra */
    body#product .grafs-buybox-card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }

    /* Precio prominente en móvil */
    body#product .grafs-price-container {
        margin-bottom: 0;
    }
    body#product .grafs-price-value {
        font-size: 1.9rem !important;
    }

    /* "Compra más, paga menos" — separación equivalente al resto de bloques */
    body#product .product-discounts {
        margin-top: 16px;
        margin-bottom: 8px;
    }

    /* Qty pill: ancho completo */
    body#product .grafs-qty-full-row,
    body#product .grafs-qty-control {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    body#product .grafs-qty-control {
        display: flex !important;
    }
    body#product .grafs-qty-input {
        flex: 1 1 auto !important;
        width: auto !important;
    }

    /* Botón añadir al carrito: ancho completo */
    body#product .grafs-add-to-cart-container,
    body#product .grafs-single-add-btn {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Ocultar elementos de confianza (PayPal badge, tarjetas) en la ficha
       en móvil — aparecerán en el checkout, no aquí */
    body#product .grafs-paypal-badge,
    body#product .grafs-secure-payment {
        display: none !important;
    }

    /* col2-bottom: desc larga + características + accesorios — posición 4 */
    body#product .grafs-product-col2-bottom {
        order: 4;
        flex: 0 0 auto;
        width: 100%;
        margin-top: 8px;
    }

    /* B2B banner: oculto en móvil (decisión cliente) */
    .product-b2b-mobile-only {
        display: none !important;
    }

    /* Desc corta: solo en col2-bottom en móvil — ocultar si quedara en col2-top */
    body#product .grafs-product-col2-top .grafs-short-desc { display: none !important; }
    body#product .grafs-product-col2-bottom .grafs-short-desc { display: block !important; margin-bottom: 12px; }

    /* ── Reordenar contenido de col2-bottom en móvil ─────────────────
       Orden deseado:
       1) Descripción corta (short-desc)
       2) Descripción larga (desc-full)
       3) Comprados juntos habitualmente (accessories)
       4) Características (inline-features)
       5) Detalles del producto (inline mobile)
       6) Personalización (si la hay)
       Espaciado uniforme entre bloques con margin-bottom 20px. */
    body#product .grafs-product-col2-bottom {
        display: flex !important;
        flex-direction: column !important;
    }
    body#product .grafs-product-col2-bottom .grafs-short-desc          { order: 1; margin-bottom: 20px !important; }
    body#product .grafs-product-col2-bottom .grafs-product-desc-full   { order: 2; margin-bottom: 20px; }
    body#product .grafs-product-col2-bottom .grafs-accessories-sidebar { order: 3; margin-bottom: 20px; }
    body#product .grafs-product-col2-bottom .grafs-inline-features     { order: 4; margin-bottom: 20px; }
    body#product .grafs-product-col2-bottom .grafs-product-details-inline-mobile {
        order: 5;
        display: block !important;
        margin-bottom: 20px;
    }
    body#product .grafs-product-col2-bottom .product-customization     { order: 6; }
    /* Eliminar el último margin-bottom para no acumular hueco al final */
    body#product .grafs-product-col2-bottom > *:last-child { margin-bottom: 0 !important; }

    /* Detalles inline: usa misma rejilla que .grafs-inline-features para consistencia */
    .grafs-product-details-inline-mobile__body {
        display: grid;
        gap: 8px;
    }

    /* Tabs (Descripción/Detalles/Adjuntos) — ocultos en móvil:
       la descripción y los detalles ya se muestran inline arriba */
    body#product .grafs-product-tabs-row { display: none !important; }

    /* Tipografía */
    body#product .grafs-product-title {
        font-size: 1.35rem !important;
        line-height: 1.35;
        margin-bottom: 6px;
    }
    body#product .grafs-short-desc {
        font-size: 0.85rem;
        color: #555;
    }
    body#product .grafs-brand-link {
        font-size: 0.9rem;
        font-weight: 600;
        letter-spacing: 0.03em;
    }
    body#product .product-flags {
        margin-bottom: 4px;
    }

    /* Anular la regla global de 94% del buybox — misma especificidad, gana por cascade */
    body#product .grafs-product-buybox-col .product-add-to-cart,
    body#product .grafs-product-buybox-col #add-to-cart-or-refresh,
    body#product .grafs-product-buybox-col .product-actions,
    body#product .grafs-product-buybox-col .product-discounts,
    body#product .grafs-product-buybox-col .grafs-qty-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Rappels: ancho completo */
    body#product .grafs-volume-discounts,
    body#product .volume-discounts-grid,
    body#product .discount-row {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Qty control + botón: ancho completo garantizado */
    body#product .grafs-qty-full-row,
    body#product .grafs-qty-control,
    body#product .grafs-add-to-cart-container,
    body#product .grafs-single-add-btn,
    body#product .product-quantity,
    body#product .product-add-to-cart {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE — Subcategory pills + Filter drawer (categoría / búsqueda)
   ═══════════════════════════════════════════════════════════════════ */
.grafs-subcat-pills,
.grafs-filter-bar,
#grafs-filter-overlay,
#grafs-filter-drawer { display: none; }

@media (max-width: 768px) {

    /* ── Ocultar #left-column en móvil (filtros van al drawer) ── */
    body:not(#product) #left-column {
        display: none !important;
    }

    /* ── Breadcrumb móvil: ocultar la completa, usar back-link "< Padre" ── */
    .category-content-header .breadcrumb { display: none !important; }
    .category-mobile-breadcrumb {
        display: block;
        margin: 0 0 2px;
        line-height: 1;
    }
    .category-mobile-back-link {
        display: inline-flex;
        align-items: center;
        gap: 2px;
        font-size: 13px;
        font-weight: 500;
        color: #555;
        text-decoration: none;
        line-height: 1;
    }
    .category-mobile-back-link:hover { color: var(--brand-green); }
    .category-mobile-back-link .material-icons {
        font-size: 18px;
        line-height: 1;
        vertical-align: middle;
    }
    /* Apretar el header: H1 pegado al back-link */
    .category-content-header,
    body#category .category-content-header,
    body#manufacturer .category-content-header,
    body#search .category-content-header,
    body#prices-drop .category-content-header,
    body#new-products .category-content-header,
    body#best-sales .category-content-header {
        padding: 0 !important;
        margin: 8px 0 20px 0 !important;
    }
    /* Categorías cuyo #wrapper tiene padding-top:0 (raíz, etc.):
       compensar para que la miga no quede pegada al header */
    body#category.category-id-2 .category-content-header {
        margin-top: 20px !important;
    }
    .category-content-header > * {
        margin-top: 0 !important;
    }
    .category-content-header .category-mobile-breadcrumb {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }
    .category-content-header .category-mobile-back-link {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }
    .category-content-header > h1.category-page-title-inline,
    body#category .category-content-header > h1,
    body#manufacturer .category-content-header > h1,
    body#search .category-content-header > h1,
    body#prices-drop .category-content-header > h1,
    body#new-products .category-content-header > h1,
    body#best-sales .category-content-header > h1 {
        margin: 20px 0 0 0 !important;
        padding: 0 !important;
        line-height: 1.15 !important;
    }

    /* ── Subcategory pills bar ──────────────────────────────────── */
    .grafs-subcat-pills {
        display: block !important;
        margin: 20px 0 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .grafs-subcat-pills::-webkit-scrollbar { display: none; }
    .grafs-subcat-pills__list {
        list-style: none;
        margin: 0; padding: 0 2px;
        display: flex;
        gap: 8px;
        white-space: nowrap;
    }
    .grafs-subcat-pills__item { flex: 0 0 auto; }
    .grafs-subcat-pills__link,
    .grafs-subcat-pills__link:link,
    .grafs-subcat-pills__link:visited {
        display: inline-flex;
        align-items: center;
        padding: 6px 14px;
        background: #f3f5f4;
        border: 1px solid #e6e8e7;
        border-radius: 999px;
        font-size: 12.5px;
        line-height: 1.3;
        color: #2b2b2b !important;
        text-decoration: none !important;
        transition: background .15s, border-color .15s, color .15s;
    }
    .grafs-subcat-pills__link:hover,
    .grafs-subcat-pills__link:focus,
    .grafs-subcat-pills__link:active {
        background: var(--brand-green) !important;
        border-color: var(--brand-green) !important;
        color: #fff !important;
        text-decoration: none !important;
        outline: none;
    }

    /* ── Separación del banner respecto a pills y a la parrilla ── */
    .cat-banner-wide {
        margin-top: 22px !important;
        margin-bottom: 22px !important;
    }

    /* ── Paginación móvil: stack limpio ──────────────────────────── */
    body#category .grafs-pagination,
    body#search   .grafs-pagination,
    body#manufacturer .grafs-pagination {
        flex-direction: column !important;
        gap: 14px;
        margin-top: 24px !important;
        padding-top: 18px !important;
        border-top: 1px solid #eee !important;
        align-items: center !important;
    }
    .grafs-pagination .pagination-summary {
        text-align: center;
        font-size: 13px !important;
        color: #6e7170 !important;
        max-width: 100%;
    }
    .grafs-pagination .pagination-pages {
        width: 100%;
        justify-content: center !important;
    }
    .grafs-pagination .page-list {
        gap: 6px !important;
    }
    .grafs-pagination .page-list li a {
        width: 38px !important;
        height: 38px !important;
        font-size: 14px !important;
    }

    /* ── Back-to-top: rediseño moderno ────────────────────────── */
    #back-to-top {
        width: 42px !important;
        height: 42px !important;
        bottom: 84px !important;     /* deja sitio al sticky cart */
        right: 16px !important;
        background: #fff !important;
        color: var(--brand-green) !important;
        border: 1px solid #e0e0e0 !important;
        box-shadow: 0 4px 14px rgba(0,0,0,.12) !important;
        font-size: 0 !important;     /* oculta cualquier carácter/tooltip */
        line-height: 0 !important;
        z-index: 9990;
    }
    #back-to-top::before {
        content: "keyboard_arrow_up";
        font-family: 'Material Icons';
        font-size: 26px;
        line-height: 1;
        color: var(--brand-green);
        font-weight: 400;
        font-style: normal;
        letter-spacing: normal;
        text-transform: none;
        display: inline-block;
        white-space: nowrap;
        word-wrap: normal;
        direction: ltr;
        -webkit-font-feature-settings: 'liga';
        -webkit-font-smoothing: antialiased;
    }

    /* ── Hide PS default filter UI in its original position ──────── */
    body#category #js-product-list-top,
    body#search   #js-product-list-top,
    body#manufacturer #js-product-list-top,
    body#prices-drop #js-product-list-top,
    body#new-products #js-product-list-top,
    body#best-sales #js-product-list-top,
    body#category .products-selection,
    body#search   .products-selection,
    body#manufacturer .products-selection,
    body#prices-drop .products-selection,
    body#new-products .products-selection,
    body#best-sales .products-selection {
        display: none !important;
    }

    /* ── Wrapper de la lista: usa flex+order para colocar filter-bar
         (insertado por JS antes de #js-product-list) sobre los pills,
         luego el contador y al final la parrilla.
         filter-bar(order:1) → pills+count(order:2) → grid(order:3) ── */
    .grafs-product-list-wrap {
        display: flex !important;
        flex-direction: column !important;
    }
    .grafs-product-list-wrap .grafs-filter-bar { order: 1; }
    .grafs-product-list-wrap .grafs-active-filters-wrap { order: 2; }
    .grafs-product-list-wrap #js-product-list { order: 3; }

    /* Pills + contador móvil: separación uniforme con la barra de filtrar y la parrilla */
    .grafs-active-filters-wrap {
        margin: 0 0 16px 0;
    }
    .grafs-count-mobile {
        font-size: 13px;
        color: #6e7170;
        margin: 10px 0 0;
        line-height: 1.4;
    }
    /* Si no hay pills, el .active_filters tiene clase hide → el contador queda primero */
    .grafs-active-filters-wrap .active_filters.hide + .grafs-count-mobile {
        margin-top: 0;
    }

    /* ── Custom "Filtrar y ordenar" button + Ordenar inline ─────── */
    .grafs-filter-bar {
        display: flex !important;
        align-items: stretch;
        justify-content: center;
        gap: 10px;
        margin: 6px 0 16px;
    }
    .grafs-sort-inline {
        display: flex;
        align-items: stretch;
        flex: 1 1 0;
        width: 0;
        min-width: 0;
    }
    .grafs-sort-inline .products-sort-order {
        padding: 0 !important;
        width: 100% !important;
        max-width: none !important;
        flex: 1 1 auto !important;
    }
    .grafs-sort-inline .products-sort-order .select-title {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 100% !important;
        height: 40px !important;
        background: #fff !important;
        border: 1px solid #c8ccca !important;
        border-radius: 8px !important;
        padding: 0 16px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        color: #6e7170 !important;
        cursor: pointer;
        text-transform: none !important;
        margin: 0 !important;
    }
    .grafs-sort-inline .products-sort-order .select-title .sort-selected-label,
    .grafs-sort-inline .products-sort-order .select-title .sort-prefix {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .grafs-sort-inline .products-sort-order .select-title i {
        color: #6e7170 !important;
        font-size: 18px !important;
        margin-left: auto;
        float: none !important;
    }
    .grafs-filter-bar .grafs-filter-btn {
        flex: 1 1 0;
        width: 0;
        min-width: 0;
        justify-content: center;
        height: 42px;
        background: #fff;
        border: 1px solid #c8ccca;
        border-radius: 8px;
        padding: 0 16px;
        font-size: 14px;
        font-weight: 500;
        color: #6e7170;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
    .grafs-filter-btn .material-icons { font-size: 18px; color: #6e7170; }
    .grafs-filter-bar--no-filters .grafs-sort-inline { flex: 1 1 100%; width: 100%; }
    .grafs-filter-count { font-weight: 500; }

    /* ── Drawer overlay + panel ────────────────────────────────── */
    #grafs-filter-overlay {
        display: block !important;
        position: fixed; inset: 0;
        background: rgba(0,0,0,.45);
        opacity: 0; visibility: hidden;
        transition: opacity .25s, visibility 0s linear .25s;
        z-index: 9998;
    }
    #grafs-filter-overlay.is-open {
        opacity: 1; visibility: visible;
        transition: opacity .25s;
    }

    #grafs-filter-drawer {
        display: flex !important;
        flex-direction: column;
        position: fixed; top: 0; right: 0; bottom: 0;
        width: 88%; max-width: 380px;
        background: #fff;
        transform: translateX(100%);
        transition: transform .3s ease;
        z-index: 9999;
        box-shadow: -2px 0 12px rgba(0,0,0,.18);
    }
    #grafs-filter-drawer.is-open { transform: translateX(0); }

    .grafs-filter-drawer__header {
        display: flex; align-items: center; justify-content: space-between;
        padding: 16px 18px 12px;
        border-bottom: 1px solid #eee;
        flex-shrink: 0;
    }
    .grafs-filter-drawer__title {
        flex: 1; text-align: center;
    }
    .grafs-filter-drawer__title strong {
        display: block; font-size: 16px; color: #2b2b2b;
    }
    .grafs-filter-drawer__title small {
        display: block; font-size: 12px; color: #6e7170; margin-top: 2px;
    }
    .grafs-filter-drawer__close {
        background: none; border: 0; padding: 0;
        width: 32px; height: 32px;
        display: flex; align-items: center; justify-content: center;
        cursor: pointer; color: #2b2b2b;
    }
    .grafs-filter-drawer__close .material-icons { font-size: 24px; }

    .grafs-filter-drawer__body {
        flex: 1 1 auto;
        overflow-y: auto;
        padding: 0;
        -webkit-overflow-scrolling: touch;
    }

    /* Forzar visibilidad del wrapper PS dentro del drawer */
    #grafs-filter-drawer #search_filters_wrapper {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }
    #grafs-filter-drawer #search_filters_wrapper *,
    #grafs-filter-drawer #search_filters_wrapper::before,
    #grafs-filter-drawer #search_filters_wrapper::after {
        box-shadow: none !important;
    }
    #grafs-filter-drawer #search_filter_controls { display: none !important; }
    #grafs-filter-drawer #search_filters {
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
    }
    #grafs-filter-drawer #search_filters .facet {
        border: 0 !important;
        border-top: 0 !important;
        border-bottom: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
        padding: 14px 20px !important;
        margin: 0 !important;
    }
    #grafs-filter-drawer #search_filters .facet::before,
    #grafs-filter-drawer #search_filters .facet::after,
    #grafs-filter-drawer #search_filters .title.hidden-md-up {
        border: 0 !important;
        box-shadow: none !important;
    }
    #grafs-filter-drawer #search_filters .facet > *,
    #grafs-filter-drawer #search_filters .collapse,
    #grafs-filter-drawer #search_filters .collapse.in,
    #grafs-filter-drawer #search_filters .faceted-slider {
        border: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    /* Slider: padding simétrico arriba/abajo */
    #grafs-filter-drawer #search_filters .faceted-slider {
        padding: 12px 6px 18px !important;
        margin: 0 !important;
    }
    #grafs-filter-drawer #search_filters .faceted-slider li {
        padding: 0 !important;
        margin: 0 !important;
    }
    #grafs-filter-drawer #search_filters .faceted-slider p {
        margin: 0 0 14px 0 !important;
    }
    /* Ocultar facets vacíos (los marca el JS con data-empty) */
    #grafs-filter-drawer #search_filters .facet[data-empty="1"] { display: none !important; }
    /* Ocultar todo elemento .hidden-sm-down dentro del drawer (titulares desktop, "Filtrar por") */
    #grafs-filter-drawer .hidden-sm-down { display: none !important; }

    /* Título desktop oculto en móvil */
    #grafs-filter-drawer #search_filters .facet-title.hidden-sm-down {
        display: none !important;
    }

    /* Fila accordion (Bootstrap collapse nativo de PS) */
    #grafs-filter-drawer #search_filters .title.hidden-md-up {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        padding: 0;
        margin: 0;
    }
    #grafs-filter-drawer #search_filters .title .facet-title {
        font-size: 14px; font-weight: 600; color: #2b2b2b;
        text-transform: none;
        margin: 0;
        flex: 1;
    }
    /* Ocultar los dos iconos add/remove de PS */
    #grafs-filter-drawer #search_filters .collapse-icons { display: none !important; }
    /* Chevron único que rota según aria-expanded */
    #grafs-filter-drawer #search_filters .title.hidden-md-up::after {
        content: "expand_more";
        font-family: 'Material Icons';
        font-size: 22px;
        color: #888;
        transition: transform .25s;
        flex-shrink: 0;
    }
    #grafs-filter-drawer #search_filters .title.hidden-md-up[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
    #grafs-filter-drawer #search_filters .facet .facet-dropdown,
    #grafs-filter-drawer #search_filters .facet .collapse {
        margin-top: 8px;
    }

    /* Bloque sort dentro del drawer */
    .grafs-drawer-sort {
        display: flex; align-items: center; justify-content: space-between;
        padding: 14px 0;
        border-top: 1px solid #eee;
    }
    .grafs-drawer-sort > .grafs-drawer-sort__label {
        font-size: 14px; font-weight: 600; color: #2b2b2b;
    }
    .grafs-drawer-sort .products-sort-order {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: 60% !important;
        padding: 0 !important;
    }
    .grafs-drawer-sort .products-sort-order .select-title {
        color: #6f4ea0;
        font-size: 14px;
        background: transparent;
        border: 0;
        padding: 0;
    }

    /* Footer (Limpiar / Aplicar) */
    .grafs-filter-drawer__footer {
        flex-shrink: 0;
        display: flex;
        border-top: 1px solid #eee;
    }
    .grafs-filter-drawer__footer button {
        flex: 1;
        height: 56px;
        border: 0;
        background: #fff;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
    }
    .grafs-filter-drawer__apply {
        background: var(--brand-green) !important;
        color: #fff !important;
    }
    .grafs-filter-drawer__clear {
        color: var(--brand-green);
    }

    body.grafs-drawer-open { overflow: hidden; }
}

/* ============================================================
   FICHA DE PRODUCTO — DESKTOP (NO afecta a móvil)
   - Tipografía título y precio un pelín más pequeñas
   - Reducir el aire entre col1 (imagen) y col2 (info)
   - Layout precio: pill izquierda · tachado/precio apilados derecha
   - "Te ahorras X €" debajo del precio
   - Botones, rappels, qty al 100% del ancho del card
   ============================================================ */
@media (min-width: 769px) {
    /* Tipografía un pelín más pequeña */
    body#product .grafs-product-center-col .grafs-product-title {
        font-size: 1.5rem !important;
    }
    body#product .grafs-buybox-card .product-price {
        font-size: 2.2rem !important;
    }

    /* Reducir el aire entre la imagen (col1) y el bloque de info (col2):
       col1 padding-right 2% → 0.5%; col2 padding-left 0 (queda igual). */
    body#product .grafs-product-3col.grafs-product-layout .product-left-col {
        padding-right: 0.5% !important;
    }
    body#product .grafs-product-3col.grafs-product-layout .grafs-product-center-col {
        padding-left: 0.5% !important;
    }

    /* PRICE ROW: stack vertical — tachado arriba, precio grande abajo,
       pill al lado del tachado, IVA debajo de todo. */
    body#product .grafs-buybox-card .grafs-price-row {
        display: grid !important;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "strike pill"
            "price  price"
            "tax    tax";
        align-items: center;
        column-gap: 10px;
        row-gap: 4px;
    }
    body#product .grafs-buybox-card .grafs-price-row .grafs-regular-price {
        grid-area: strike;
        justify-self: start;
        font-size: 1rem;
    }
    body#product .grafs-buybox-card .grafs-price-row .grafs-discount-badge {
        grid-area: pill;
        justify-self: end;
    }
    body#product .grafs-buybox-card .grafs-price-row .grafs-price-value {
        grid-area: price;
        justify-self: start;
        font-size: 2.2rem !important;
        line-height: 1.05;
    }
    body#product .grafs-buybox-card .grafs-price-row .grafs-tax-inline {
        grid-area: tax;
        font-size: 0.78rem;
        color: #888;
        margin-top: 2px;
    }

    /* "¡Te ahorras X €!" — debajo del bloque de precios.
       Mismo rojo que el precio en oferta (#f36767). */
    body#product .grafs-buybox-card .grafs-savings-amount {
        margin: 6px 0 0 0;
        font-size: 0.95rem;
        font-weight: 700;
        color: #f36767;
    }

    /* Wishlist heart anclado a la esquina sup. dcha. de la tarjeta de
       imagen del producto. .grafs-image-wrap es position:relative en
       desktop; el overlay sale en la esquina del .product-cover. */
    body#product .grafs-image-wrap {
        position: relative;
    }
    body#product .grafs-image-wrap .grafs-wishlist-overlay {
        position: absolute;
        top: 14px;
        right: 10%;
        width: 36px;
        height: 36px;
        z-index: 10;
    }
    body#product .grafs-wishlist-overlay .wishlist-btn {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin: 0 !important;
    }

    /* Buybox: todos los bloques internos al 100% del ancho del card
       (anula la regla previa de 94%). */
    body#product .grafs-product-buybox-col .product-add-to-cart,
    body#product .grafs-product-buybox-col #add-to-cart-or-refresh,
    body#product .grafs-product-buybox-col .product-actions,
    body#product .grafs-product-buybox-col .product-discounts,
    body#product .grafs-product-buybox-col .grafs-qty-wrapper,
    body#product .grafs-product-buybox-col .grafs-add-to-cart-container,
    body#product .grafs-product-buybox-col .grafs-single-add-btn,
    body#product .grafs-product-buybox-col .grafs-volume-discounts,
    body#product .grafs-product-buybox-col .volume-discounts-grid,
    body#product .grafs-product-buybox-col .discount-row {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* "Te ahorras X €" oculto en móvil — la ficha móvil quedó cerrada con
   el precio en línea. Sólo aparece en desktop. */
@media (max-width: 768px) {
    .grafs-savings-amount { display: none !important; }
}

/* ============================================================
   HEADER DESKTOP — ajustes finos (NO afecta a móvil)
   - Buscador 10% más estrecho
   - Padding superior + gap entre filas para que el buscador tenga
     mismo aire arriba (top del header) que abajo (separador del menú)
   - Logo +5%
   - Iconos en estilo "Outlined" y tamaño uniforme
   - Fila de categorías ~10% más compacta + texto centrado
   ============================================================ */
@media (min-width: 769px) {
    /* padding-top: 18 (igual que el original).
       grid-row-gap: 18 → crea 18px entre la fila del buscador y la fila
       del menú; sumado al hueco que ya hay dentro de la fila 1
       (align-items:center reparte el sobrante alrededor del buscador),
       da el mismo aire arriba que abajo de la barra de búsqueda. */
    .grafs-header-container {
        padding-top: 18px !important;
        padding-bottom: 0 !important;
        gap: 18px 40px !important;
        align-items: center !important;
    }

    /* PayPal banner + contenedor vacío del hook displayNavFullWidth:
       hasta ahora se ocultaban sólo en la landing (cat 2). En otras
       páginas en desktop seguían visibles y metían un hueco visible
       entre el menú y la barra verde. Lo ocultamos globalmente. */
    #header [paypal-banner-message],
    #header .paypal-installment-banner,
    #header .paypal-banner-container {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #header > .container:not(.grafs-header-container):empty {
        display: none !important;
        height: 0 !important;
    }
    /* Por si el container del hook lleva un único hijo vacío o sólo
       espacios — colapsamos su altura igualmente. */
    #header .header-top > .container > .container:empty,
    #header .header-top + .container:empty {
        display: none !important;
        height: 0 !important;
    }

    /* Logo 5% más grande (75 → 79) */
    .grafs-logo-wrapper img.logo {
        max-height: 79px !important;
    }

    /* Buscador 10% más estrecho (94 → 84) */
    #search_widget {
        width: 84% !important;
    }

    /* Iconos del header en "Outlined" + tamaño uniforme 32px.
       Antes el carrito estaba a 26px (línea 2037) → forzamos 32px en
       todos los iconos del nav para que sean coherentes con el corazón. */
    .grafs-nav-icons .material-icons,
    .grafs-nav-icons a .material-icons,
    .grafs-nav-icons .blockcart .material-icons,
    .grafs-nav-icons #_desktop_cart .shopping-cart,
    .header-wishlist .material-icons {
        font-family: 'Material Icons Outlined', 'Material Icons' !important;
        font-weight: normal !important;
        font-size: 32px !important;
        line-height: 1 !important;
    }
    /* Persona: 3pt más grande que el resto del nav */
    .grafs-nav-icons .user-info .material-icons,
    .grafs-nav-icons #_desktop_user_info .material-icons {
        font-family: 'Material Icons Outlined', 'Material Icons' !important;
        font-weight: normal !important;
        font-size: 35px !important;
        line-height: 1 !important;
    }
    /* Lupa del buscador (era 24px → 25px, +1pt) */
    #search_widget form button[type="submit"] i.search,
    #search_widget form button[type="submit"] .material-icons {
        font-family: 'Material Icons Outlined', 'Material Icons' !important;
        font-weight: normal !important;
        font-size: 25px !important;
    }

    /* Fila de categorías — padding mínimo arriba/abajo iguales para
       que los textos queden centrados entre el separador y la barra
       verde, y NO haya un colchón gris excesivo.
       Mantenemos la simetría: link 2/2 + menu 4/4 → 6px arriba y 6px abajo.
       border-top: ninguna (línea separadora removida por petición). */
    ul.grafs-menu {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
        border-top: 0 !important;
    }
    a.grafs-menu-link {
        padding-top: 2px !important;
        padding-bottom: 2px !important;
        line-height: 1.4 !important;
    }
}

/* ═════════════════════════════════════════════════════════════════
   ALINEAR ANCHO CON EL HEADER en páginas internas
   El header usa #header .container { width: 85%; max-width: 1700px }
   Estas páginas tenían contenedores a 94% que quedaban más estrechos
   o desalineados con el header. Aquí las igualamos.
   ═════════════════════════════════════════════════════════════════ */
@media (min-width: 769px) {
    body#authentication #wrapper > .container,
    body#registration #wrapper > .container,
    body#password #wrapper > .container,
    body#pagenotfound #wrapper > .container,
    body[id^="module-grafs_wishlist"] #wrapper > .container,
    body[id^="module-blockwishlist"] #wrapper > .container {
        width: 85% !important;
        max-width: 1700px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    /* Blog: margen izquierdo alineado con header (7.5vw o (100vw-1700)/2 según
       cuál sea mayor), margen derecho = 0 → contenido se extiende hasta el filo
       derecho del viewport. Mantiene ancho amplio + margen normal a la izquierda. */
    body[id^="module-grafs_blog"] #wrapper > .container {
        width: auto !important;
        max-width: none !important;
        margin-left: max(7.5vw, calc((100vw - 1700px) / 2)) !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body#authentication #content-wrapper,
    body#authentication #columns,
    body#registration #content-wrapper,
    body#registration #columns,
    body#password #content-wrapper,
    body#password #columns,
    body#pagenotfound #content-wrapper,
    body#pagenotfound #columns,
    body[id^="module-grafs_wishlist"] #content-wrapper,
    body[id^="module-grafs_wishlist"] #columns,
    body[id^="module-blockwishlist"] #content-wrapper,
    body[id^="module-blockwishlist"] #columns,
    body[id^="module-grafs_blog"] #content-wrapper,
    body[id^="module-grafs_blog"] #columns {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        float: none !important;
    }
    /* Blog: la inner .container del template (dentro de #grafs-blog) NO debe
       re-aplicar 85% sobre el outer — quedaría 85% × 85% ≈ 72% (el bug que
       producía .grafs-blog-layout = 1170px en lugar de ~1500). Colapsada a 100%. */
    body[id^="module-grafs_blog"] #grafs-blog > .container {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body#authentication .page-content,
    body#authentication section#content,
    body#authentication #content,
    body#password .page-content,
    body#password section#content,
    body#password #content {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ═════════════════════════════════════════════════════════════════
   Legibilidad: oscurecer texto de párrafos en zonas con WYSIWYG.
   - Categoría: #category-description (clase seo-description)
   - Ficha producto: .grafs-short-desc (descripción corta)
   El WYSIWYG insertaba <p style="color: rgb(85,85,85)..."> que daba
   contraste pobre. Forzamos #1a1a1a con !important para ganarle a
   los inline styles del editor. NO toca títulos, links ni precios.
   ═════════════════════════════════════════════════════════════════ */
#category-description,
#category-description p,
#category-description li,
#category-description span,
.grafs-short-desc,
.grafs-short-desc p,
.grafs-short-desc li,
.grafs-short-desc span {
    color: #1a1a1a !important;
}

/* ═════════════════════════════════════════════════════════════════
   Banner de cookies — rediseño con paleta tema grafs (verde aceitunero).
   Sustituye visualmente el estilo NovoMilenio (negro+amarillo 2022).
   Mantiene el HTML del módulo intacto, solo overridea CSS.
   ═════════════════════════════════════════════════════════════════ */
#infocookie {
    /* Reset estilos NovoMilenio */
    background: #ffffff !important;
    color: var(--brand-dark) !important;
    border-top: 3px solid var(--brand-green) !important;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    padding: 16px 0 !important;
}

#infocookie p,
#infocookie #textocookie,
#infocookie .pading_inside {
    color: var(--brand-dark) !important;
}

#infocookie .container_info {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
}

#infocookie #textocookie {
    width: 100% !important;
    float: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
}

#infocookie .pading_inside {
    flex: 1 1 auto !important;
}

#infocookie .pading_inside {
    padding: 0 !important;
    font-size: 13.5px !important;
}

#infocookie .pading_inside a,
#header #textocookie .pading_inside a {
    color: var(--brand-green) !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
    font-weight: 500 !important;
}

#infocookie .pading_inside a:hover,
#header #textocookie .pading_inside a:hover {
    color: #6e7a1f !important;
    text-decoration: underline !important;
}

#infocookie em,
#infocookies em {
    color: var(--brand-green) !important;
    font-style: normal !important;
    font-weight: 600 !important;
}

/* Caja de botones */
#infocookie .caja_botones {
    flex: 0 0 auto !important;
    float: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    text-align: right !important;
}

/* Botones — neutralizar estilo amarillo NovoMilenio */
#infocookie .botoncookie,
#infocookie a.botoncookie,
#infocookie button.botoncookie,
#header #textocookie a.botoncookie,
#header #textocookie .botoncookie,
#header #textocookie button.botoncookie {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    color: var(--brand-dark) !important;
    border: 1.5px solid #d4d4d4 !important;
    border-radius: 999px !important;
    padding: 9px 22px !important;
    margin: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    line-height: 1 !important;
    min-height: 38px !important;
}

#infocookie .botoncookie:hover,
#header #textocookie a.botoncookie:hover,
#header #textocookie .botoncookie:hover {
    background: #f7f7f7 !important;
    color: var(--brand-dark) !important;
    border-color: #b8b8b8 !important;
}

/* Botón "Aceptar" — el <button> es el principal, fondo verde */
#infocookie button.botoncookie,
#header #textocookie button.botoncookie {
    background: var(--brand-green) !important;
    color: #ffffff !important;
    border-color: var(--brand-green) !important;
}

#infocookie button.botoncookie:hover,
#header #textocookie button.botoncookie:hover {
    background: #6e7a1f !important;
    color: #ffffff !important;
    border-color: #6e7a1f !important;
}

/* Móvil */
@media (max-width: 767px) {
    #infocookie {
        padding: 14px 0 !important;
    }
    #infocookie .container_info {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 0 16px !important;
    }
    #infocookie .caja_botones {
        justify-content: flex-end !important;
        flex-wrap: wrap !important;
    }
    #infocookie .pading_inside {
        font-size: 13px !important;
    }
    #infocookie .botoncookie,
    #infocookie button.botoncookie {
        padding: 8px 18px !important;
        font-size: 12.5px !important;
        flex: 1 1 auto !important;
    }
}

/* =========================================
   MI CUENTA — Wrapper hero + dashboard + sub-páginas
   ========================================= */

/* Fix #content-wrapper (col Bootstrap floated left) — mismo patrón que CMS 11/12.
   Scopeo por ID de body (PS asigna body id={$page.page_name}) Y por :has() como fallback. */
body#my-account #content-wrapper,
body#identity #content-wrapper,
body#addresses #content-wrapper,
body#address #content-wrapper,
body#history #content-wrapper,
body#order-detail #content-wrapper,
body#order-slip #content-wrapper,
body#discount #content-wrapper,
body#order-follow #content-wrapper,
body#order-return #content-wrapper,
body#password #content-wrapper,
body.page-customer-account #content-wrapper,
#content-wrapper:has(> .grafs-account),
#content-wrapper:has(.grafs-account) {
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 90% !important;
    max-width: 1200px !important;
}

.grafs-account {
    max-width: 1240px;
    margin: 20px auto 40px;
    padding: 0 16px;
    color: #2e2e2e;
    font-size: 15px;
    line-height: 1.6;
}

.grafs-account-hero {
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 14px;
    text-align: center;
    padding: 24px;
    margin-bottom: 36px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grafs-account-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #264934;
    margin: 0;
    padding: 0;
    line-height: 1.25;
    white-space: normal;
}

.grafs-account-body {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 32px;
}

/* ---- Dashboard: grid de tarjetas ---- */

.grafs-account-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 18px;
    margin: 0;
    list-style: none;
    padding: 0;
}

/* Hijo .link-item (ps_emailalerts classic override) — stackear icono + texto */
.grafs-account-grid .link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.grafs-account-grid .link-item i.material-icons {
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #264934;
    font-size: 28px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
}

.grafs-account-grid > div,
.grafs-account-grid > li {
    /* Hooks de módulos (wishlist <div col-*>, ps_emailalerts <li>) — reset wrapper */
    width: calc(33.333% - 12px) !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 0 0 calc(33.333% - 12px) !important;
    list-style: none;
    display: block;
}

.grafs-account-card,
.grafs-account-grid > a,
.grafs-account-grid .account-list-item,
.grafs-account-grid > div > a,
.grafs-account-grid > li > a {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #f0f3ea;
    border: 1px solid #e1e6d4;
    border-radius: 12px;
    padding: 28px 18px;
    text-align: center;
    color: #264934 !important;
    text-decoration: none !important;
    min-height: 140px;
    width: 100%;
    box-sizing: border-box;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

/* Cuando es un <a> directo (sin wrapper) ocupa el ancho de una columna */
.grafs-account-grid > a,
.grafs-account-card {
    width: calc(33.333% - 12px) !important;
    max-width: calc(33.333% - 12px) !important;
    flex: 0 0 calc(33.333% - 12px) !important;
    float: none !important;
}

/* Label dentro de Mis alertas (.link-item) */
.grafs-account-grid .link-item {
    color: #264934 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: .02em;
    text-transform: uppercase;
    line-height: 1.3;
}


.grafs-account-card:hover,
.grafs-account-grid > a:hover,
.grafs-account-grid > li > a:hover,
.grafs-account-grid .account-list-item:hover,
.grafs-account-grid > div > a:hover {
    background: #e8ecdc;
    border-color: #cbd3b5;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(38, 73, 52, .08);
    text-decoration: none !important;
}

.grafs-account-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #264934;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
}

.grafs-account-card-label,
.grafs-account-grid .account-list-item span,
.grafs-account-grid > div > a span,
.grafs-account-grid > li > a {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #264934;
    line-height: 1.3;
}

/* ps_emailalerts <li><a>Mis alertas</a></li> — añadimos icono via :before */
.grafs-account-grid > li > a::before {
    content: '';
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='28' height='28'><path fill='%23264934' d='M12 22a2 2 0 0 0 2-2h-4a2 2 0 0 0 2 2zm6-6V11a6 6 0 0 0-5-5.9V4a1 1 0 0 0-2 0v1.1A6 6 0 0 0 6 11v5l-2 2v1h16v-1z'/></svg>") center/28px no-repeat;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
    display: inline-block;
    margin-bottom: 4px;
}

.grafs-account-grid .account-list-item i.material-icons,
.grafs-account-grid > div > a i.material-icons {
    font-size: 28px;
    color: #264934;
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
}

/* ---- Botón cerrar sesión ---- */

.grafs-account-logout {
    text-align: center;
    margin: 28px 0 0;
}

.grafs-account-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #264934 !important;
    border: 1.5px solid #264934;
    border-radius: 999px;
    padding: 10px 22px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    text-decoration: none !important;
    transition: background .15s ease, color .15s ease;
}

.grafs-account-logout-btn:hover {
    background: #264934;
    color: #fff !important;
}

/* ---- Sub-páginas: tipografía contenido ---- */

.grafs-account-body h6,
.grafs-account-body > h2,
.grafs-account-body > h3 {
    color: #264934;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin: 0 0 20px;
}

.grafs-account-body h6 {
    font-size: 15px;
    color: #555;
    font-weight: 500;
}

/* ---- Sub-páginas: formularios (identity, address) ---- */

.grafs-account-body form .form-group {
    margin-bottom: 18px;
}

.grafs-account-body form label,
.grafs-account-body form .form-control-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #264934;
    margin-bottom: 6px;
    text-transform: none;
    letter-spacing: 0;
}

.grafs-account-body form .form-control,
.grafs-account-body form input[type="text"],
.grafs-account-body form input[type="email"],
.grafs-account-body form input[type="password"],
.grafs-account-body form input[type="tel"],
.grafs-account-body form select,
.grafs-account-body form textarea {
    width: 100%;
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 14px;
    background: #fff;
    color: #2e2e2e;
    transition: border-color .15s ease, box-shadow .15s ease;
    box-shadow: none;
}

.grafs-account-body form textarea {
    height: auto;
    min-height: 120px;
    padding: 12px 14px;
    line-height: 1.5;
}

.grafs-account-body form .form-control:focus,
.grafs-account-body form input:focus,
.grafs-account-body form select:focus,
.grafs-account-body form textarea:focus {
    border-color: #264934;
    box-shadow: 0 0 0 3px rgba(38, 73, 52, .12);
    outline: none;
}

.grafs-account-body form .form-control-comment,
.grafs-account-body form .help-block {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.grafs-account-body form .radio-inline,
.grafs-account-body form .checkbox label {
    font-size: 14px;
    color: #2e2e2e;
    font-weight: 400;
    text-transform: none;
}

/* Botones submit del formulario — verde marca */
.grafs-account-body form .btn-primary,
.grafs-account-body form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #264934 !important;
    border: 0 !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 12px 28px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: .03em;
    box-shadow: none !important;
    transition: background .15s ease;
    height: auto !important;
    line-height: 1.2 !important;
    margin-top: 8px;
}

.grafs-account-body form .btn-primary:hover,
.grafs-account-body form button[type="submit"]:hover {
    background: #1e3a29 !important;
}

.grafs-account-body .form-footer {
    margin-top: 16px;
}

/* ---- Sub-páginas: tablas (history, discount, order-slip) ---- */

.grafs-account-body .table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #ececec;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    margin: 0 0 16px;
}

.grafs-account-body .table thead th {
    background: #f0f3ea;
    color: #264934;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 12px 14px;
    border: 0;
    text-align: left;
}

.grafs-account-body .table tbody td,
.grafs-account-body .table tbody th {
    padding: 14px;
    font-size: 14px;
    color: #2e2e2e;
    border: 0;
    border-top: 1px solid #f0f0f0;
    vertical-align: middle;
}

.grafs-account-body .table tbody tr:first-child td,
.grafs-account-body .table tbody tr:first-child th {
    border-top: 0;
}

.grafs-account-body .table tbody tr:hover {
    background: #fafbf6;
}

.grafs-account-body .label.label-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.grafs-account-body .order-actions a,
.grafs-account-body td a {
    color: #264934;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.grafs-account-body .order-actions {
    white-space: nowrap;
}

.grafs-account-body .order-actions a + a {
    margin-left: 10px;
}

.grafs-account-body .order-actions a:hover,
.grafs-account-body td a:hover {
    text-decoration: underline;
}

/* Página order-detail: botón "Reorder" / Pedir de nuevo */
.grafs-account-body .button-primary,
.grafs-account-body a.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f0f3ea !important;
    color: #264934 !important;
    border: 1.5px solid #264934 !important;
    border-radius: 999px !important;
    padding: 8px 18px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: .03em;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background .15s ease, color .15s ease;
}

.grafs-account-body .button-primary:hover,
.grafs-account-body a.button-primary:hover {
    background: #264934 !important;
    color: #fff !important;
}

/* ---- Sub-página: addresses (tarjetas dirección) ---- */

.grafs-account-body .address {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    margin-bottom: 18px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.grafs-account-body .address:hover {
    border-color: #cbd3b5;
    box-shadow: 0 4px 12px rgba(38, 73, 52, .06);
}

.grafs-account-body .address h4 {
    color: #264934;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
}

.grafs-account-body .address-body address {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 14px;
}

.grafs-account-body .address-footer {
    display: flex;
    gap: 14px;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.grafs-account-body .address-footer a {
    color: #264934;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.grafs-account-body .address-footer a:hover {
    text-decoration: underline;
}

.grafs-account-body .addresses-footer {
    margin-top: 12px;
}

.grafs-account-body .addresses-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #264934;
    color: #fff !important;
    border-radius: 999px;
    padding: 10px 22px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    text-decoration: none !important;
    width: auto !important;
    line-height: 1;
}

.grafs-account-body .addresses-footer a i.material-icons {
    font-size: 18px;
    line-height: 1;
    color: #fff;
    vertical-align: middle;
}

.grafs-account-body .addresses-footer a span {
    line-height: 1;
    vertical-align: middle;
    color: #fff !important;
    text-transform: uppercase;
    font-family: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    font-size: inherit;
}

.grafs-account-body .addresses-footer a:hover {
    background: #1e3a29;
}

/* ---- Footer links "Volver a tu cuenta" / "Inicio" ---- */

.grafs-account ~ .page-footer,
.account-link {
    text-align: center;
}

.grafs-account ~ .page-footer .account-link,
body.page-customer-account .page-footer .account-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #264934;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin: 6px 10px;
}

.grafs-account ~ .page-footer .account-link:hover,
body.page-customer-account .page-footer .account-link:hover {
    text-decoration: underline;
}

/* ---- Notificaciones dentro del wrapper ---- */

.grafs-account-body .notifications-container {
    margin-bottom: 18px;
}

/* ---- Responsive ---- */

@media (max-width: 992px) {
    .grafs-account-grid > div,
    .grafs-account-grid > li,
    .grafs-account-grid > a,
    .grafs-account-card {
        width: calc(50% - 9px);
        flex: 0 0 calc(50% - 9px);
    }
}

@media (max-width: 600px) {
    .grafs-account {
        padding: 0 12px;
        margin: 16px auto 28px;
    }
    .grafs-account-hero {
        padding: 26px 16px;
        border-radius: 10px;
        margin-bottom: 22px;
    }
    .grafs-account-hero-title {
        font-size: 20px;
    }
    .grafs-account-body {
        padding: 20px 16px;
        border-radius: 10px;
    }
    .grafs-account-grid {
        gap: 14px;
    }
    .grafs-account-grid > div,
    .grafs-account-grid > li,
    .grafs-account-grid > a,
    .grafs-account-card {
        width: 100%;
        flex: 0 0 100%;
    }
    .grafs-account-card,
    .grafs-account-grid > a,
    .grafs-account-grid > li > a,
    .grafs-account-grid .account-list-item,
    .grafs-account-grid > div > a {
        padding: 22px 16px;
        min-height: 0;
        flex-direction: row;
        justify-content: flex-start;
        gap: 16px;
        text-align: left;
    }
    .grafs-account-card-icon {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
    }
    .grafs-account-card-icon svg {
        width: 22px;
        height: 22px;
    }
    .grafs-account-grid .account-list-item i.material-icons,
    .grafs-account-grid > div > a i.material-icons {
        width: 44px;
        height: 44px;
        font-size: 22px;
        flex: 0 0 44px;
    }
    .grafs-account-card-label,
    .grafs-account-grid .account-list-item span,
    .grafs-account-grid > div > a span {
        font-size: 13px;
        text-align: left;
    }
    .grafs-account-body .table thead {
        display: none;
    }
    .grafs-account-body .table,
    .grafs-account-body .table tbody,
    .grafs-account-body .table tr,
    .grafs-account-body .table td {
        display: block;
        width: 100%;
    }
    .grafs-account-body .table tr {
        border-bottom: 1px solid #f0f0f0;
        padding: 12px 0;
    }
    .grafs-account-body .table td {
        padding: 6px 14px;
        border: 0;
    }
}

/* =========================================
   CHECKOUT — Retoques 2026-06-01
   ========================================= */

/* Links dentro del contenido de un step → verde marca (no azul Bootstrap) */
body#checkout .checkout-step .content a,
body#checkout .checkout-step .content a:visited {
    color: #264934 !important;
}
body#checkout .checkout-step .content a:hover {
    color: #1e3a29 !important;
    text-decoration: underline;
}

/* Excepción: botones que ya tienen color propio (no los repintamos) */
body#checkout .checkout-step .content a.btn,
body#checkout .checkout-step .content a.button-primary,
body#checkout .checkout-step .content .address-item .address-footer a {
    color: #264934 !important;
}

/* (Nota: el template grafs usa .grafs-coupon-* — no .promo-*. Estilos del cupón están arriba en la sección grafs-coupon-form, no aquí.) */

/* ── Tarjetas dirección modernas ── */
body#checkout .address-selector,
body#checkout .js-address-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
    background: transparent !important;
    padding: 0 !important;
}

body#checkout .address-item {
    flex: 0 0 calc(50% - 7px);
    max-width: calc(50% - 7px);
    background: #fff !important;
    border: 1.5px solid #e8e8e8 !important;
    border-radius: 12px !important;
    padding: 18px !important;
    margin: 0 !important;
    box-shadow: none !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}

body#checkout .address-item.selected {
    border-color: #264934 !important;
    box-shadow: 0 0 0 3px rgba(38,73,52,.10);
}

body#checkout .address-item header,
body#checkout .address-item > header,
body#checkout .address-item .h4,
body#checkout .address-item h4,
body#checkout .address-item .radio-block,
body#checkout .address-item label,
body#checkout .address-item .address {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

body#checkout .address-item .radio-block {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    cursor: pointer;
}

body#checkout .address-item .address-alias {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #264934 !important;
    margin: 0 0 6px !important;
    display: block;
}

body#checkout .address-item .address {
    color: #2e2e2e !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

body#checkout .address-item hr {
    border: 0 !important;
    border-top: 1px solid #f0f0f0 !important;
    margin: 14px 0 10px !important;
}

body#checkout .address-item .address-footer {
    display: flex !important;
    gap: 18px !important;
    background: transparent !important;
    padding: 0 !important;
}

body#checkout .address-item .address-footer a {
    color: #264934 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

body#checkout .address-item .address-footer a:hover {
    text-decoration: underline !important;
}

body#checkout .address-item .address-footer a i.material-icons {
    font-size: 16px;
}

/* Radio button verde marca */
body#checkout .address-item .custom-radio {
    border: 2px solid #ccc !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #fff !important;
    margin-top: 2px;
    flex: 0 0 18px;
}

body#checkout .address-item.selected .custom-radio {
    border-color: #264934 !important;
}

body#checkout .address-item .custom-radio span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    display: block;
}

body#checkout .address-item.selected .custom-radio span,
body#checkout .address-item .custom-radio input[type="radio"]:checked + span {
    background: #264934 !important;
}

/* "+ Añadir nueva dirección" link */
body#checkout .add-address a {
    color: #264934 !important;
    font-weight: 600 !important;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

body#checkout .add-address a:hover {
    text-decoration: underline;
}

body#checkout .add-address a i.material-icons {
    font-size: 18px;
}

/* Títulos "Dirección de envío" / "Su dirección de facturación" */
body#checkout .js-address-form h2.h4 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #264934 !important;
    margin: 18px 0 12px !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Responsive móvil: tarjetas en columna */
@media (max-width: 768px) {
    body#checkout .address-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* =========================================
   PRODUCTOS RECOMENDADOS (cross-selling carrito)
   Bloque ps_crossselling con diseño grafs. Reutiliza las tarjetas horizontales
   de los accesorios ("Te recomendamos" de la ficha → .grafs-accessory-*),
   título al tamaño del H1 "Carrito" y lista en grid de 2 columnas.
   ========================================= */
.grafs-recommended {
    margin-top: 28px;
    clear: both;
}
.grafs-recommended-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--brand-dark, #1a1a1a);
    margin: 0 0 18px 0;
}
/* Tarjetas horizontales (mismas clases .grafs-accessory-* que "Te recomendamos").
   En grid de 2 columnas; 1 en móvil. El nº de tarjetas lo limita CROSSSELLING_NBR. */
.grafs-recommended-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media (max-width: 768px) {
    .grafs-recommended-list {
        grid-template-columns: 1fr;
    }
}

