/* ═══════════════════════════════════════════════════
   SMARTDEAL — LAYOUT CSS (Header + Footer)
   Light Theme · Back Market inspired · Clean & Sober
   ═══════════════════════════════════════════════════ */

/* ── GLOBAL FOCUS-VISIBLE (a11y) ──
   Garantiza un anillo de foco visible en toda la app para navegación por teclado,
   sin afectar el foco provocado por mouse. Es alto específico para sobrescribir
   reglas puntuales de `outline:none` heredadas en checkout/account. */
*:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid #C5FF3E !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 2px rgba(26,26,26,0.15) !important;
    border-radius: 2px;
}
/* Cuando el fondo es claro, el verde pierde contraste — refuerza con sombra oscura */
@media (prefers-contrast: more) {
    *:focus-visible { outline-color: #1A1A1A !important; }
}

/* ── SKIP LINK (a11y) ── */
.sd-skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 10000;
    background: #1A1A1A;
    color: #fff;
    padding: 12px 20px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 6px 0;
    transition: top .15s ease;
}
.sd-skip-link:focus,
.sd-skip-link:focus-visible {
    top: 0;
    outline: 3px solid #C5FF3E;
    outline-offset: 2px;
}

/* ── VARIABLES ── */
:root {
    --sd-vibrant-green: #C5FF3E;
    /* Variante contrast-safe (AA ≥4.5:1) para usar como TEXTO sobre fondos claros.
       No usar --sd-vibrant-green como color de texto sobre blanco (ratio ~1.07:1). */
    --sd-accent-dark: #4B7C00;
    --sd-petroleum-black: #1A1A1A;
    --sd-bg: #FFFFFF;
    --sd-bg-alt: #F5F5F5;
    --sd-bg-alt2: #EDEDEC;
    --sd-text: #1A1A1A;
    --sd-text-muted: #5C5C5C;
    --sd-text-faint: #9A9A9A;
    --sd-border: #E5E5E5;
    --sd-white: #FFFFFF;
    --sd-font-headline: 'Compacta BT', 'Impact', 'Arial Narrow', sans-serif;
    --sd-font-subtitle: 'Degular', 'Montserrat', sans-serif;
    --sd-font-body: 'Ubuntu', 'Segoe UI', sans-serif;
    --sd-header-height: 120px;
    --sd-announce-height: 36px;
    /* Shadows (ecommerce-ui skill) */
    --shadow-card: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-card-hover: 0 10px 25px rgba(0,0,0,0.10), 0 4px 10px rgba(0,0,0,0.06);
    /* Condition palette */
    --color-condition-premium:  #065F46;
    --color-condition-a:        #1E40AF;
    --color-condition-a-:       #5B21B6;
    --color-condition-b:        #92400E;
}

/* ── FUENTES ── */
@font-face {
    font-family: 'Compacta BT';
    src: url('../assets/fonts/CompactaBT.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Degular';
    src: url('../assets/fonts/DegularDemo-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Degular';
    src: url('../assets/fonts/DegularDemo-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Degular';
    src: url('../assets/fonts/DegularDemo-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

/* ── RESET BASE ── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--sd-font-body);
    margin: 0;
    padding: 0;
    background: var(--sd-bg);
    color: var(--sd-text);
}

/* Espacio para header sticky */
body:not(.sd-no-header-offset) {
    padding-top: calc(var(--sd-announce-height) + var(--sd-header-height));
}
/* No cambiar padding-top al colapsar — evita content shift al scroll */

/* ═══════════════════════════════════════
   UTILITY BAR
   ═══════════════════════════════════════ */
.sd-utility {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    height: var(--sd-announce-height);
    background: var(--sd-vibrant-green);
    border-bottom: none;
    display: flex;
    align-items: center;
}

.sd-utility__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Grupo de items centrados */
.sd-utility__items {
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: center;
}

.sd-utility__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--sd-font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--sd-petroleum-black);
    white-space: nowrap;
    padding: 0 10px;
}
.sd-utility__item svg {
    flex-shrink: 0;
    opacity: 0.75;
}

.sd-utility__sep {
    color: rgba(26, 26, 26, 0.35);
    font-size: 12px;
    flex-shrink: 0;
    font-weight: 400;
}

.sd-utility__spacer { flex: 1; }

/* Links dentro de la utility bar (reseñas, dirección) */
a.sd-utility__link {
    text-decoration: none;
    color: var(--sd-petroleum-black);
    transition: opacity 0.2s;
}
a.sd-utility__link:hover {
    opacity: 0.65;
    color: var(--sd-petroleum-black);
}

.sd-utility__close {
    position: absolute;
    right: 20px;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--sd-petroleum-black);
    opacity: 0.5;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}
.sd-utility__close:hover { opacity: 1; }

/* Dismissed by close button */
.sd-announce--hidden { display: none !important; }

/* Scroll-hidden: slides up, header follows */
.sd-utility {
    transition: transform 0.3s ease, opacity 0.2s ease, height 0.3s ease;
}
.sd-utility--scroll-hidden {
    height: 0 !important;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}
.sd-utility--scroll-hidden ~ .sd-header {
    top: 0 !important;
}
/* Fondo extendido que cubre cualquier gap durante la transición */
.sd-utility--scroll-hidden ~ .sd-header::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--sd-bg, #fff);
    z-index: -1;
}
body.admin-bar .sd-utility--scroll-hidden ~ .sd-header {
    top: 32px !important;
}
@media screen and (max-width: 782px) {
    body.admin-bar .sd-utility--scroll-hidden ~ .sd-header {
        top: 0 !important;
    }
}

/* ═══════════════════════════════════════
   HEADER PRINCIPAL
   ═══════════════════════════════════════ */
.sd-header {
    position: fixed;
    top: var(--sd-announce-height);
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--sd-bg);
    border-bottom: 1px solid var(--sd-border);
    transition: top 0.3s ease, box-shadow 0.3s ease;
}

.sd-announce--hidden ~ .sd-header { top: 0; }

.sd-header.sd-header--scrolled {
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    border-bottom-color: transparent;
}

/* Header inner */
.sd-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: height 0.3s ease;
}

/* Compact on scroll */
.sd-header--compact .sd-header__inner {
    height: 58px;
}

/* Logo */
.sd-header__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}
.sd-header__logo img {
    height: 36px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}
.sd-header--compact .sd-header__logo img {
    height: 30px;
}
.sd-header--compact .sd-header__search {
    height: 34px;
}

/* Search */
.sd-header__search {
    flex: 1;
    max-width: 520px;
    height: 42px;
    position: relative;
    align-self: center;
}

.sd-search {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #E0E0E0;
    border-radius: 9999px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.sd-search:focus-within {
    border-color: #ADADAD;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.sd-search__btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 10px 0 16px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
}
.sd-search__btn:hover { color: #111; }

.sd-search__input {
    flex: 1;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    outline: none;
    padding: 0 16px 0 0;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    color: #111 !important;
    min-width: 0;
    height: 100%;
    -webkit-appearance: none;
    -webkit-font-smoothing: antialiased;
}
.sd-search__input::placeholder { color: rgba(0,0,0,0.40) !important; font-style: normal !important; opacity: 1 !important; }
.sd-search__input::-webkit-input-placeholder { color: rgba(0,0,0,0.40) !important; font-style: normal !important; opacity: 1 !important; }
.sd-search__input::-moz-placeholder { color: rgba(0,0,0,0.40) !important; font-style: normal !important; opacity: 1 !important; }

/* Fake animated placeholder */
.sd-search__fake-placeholder {
    position: absolute;
    left: 0; right: 16px;
    top: 50%; transform: translateY(-50%);
    display: flex;
    align-items: center;
    pointer-events: none;
    overflow: hidden;
    white-space: nowrap;
    padding-left: 44px; /* align with input text start (icon 16px + icon 18px + gap 10px) */
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    color: rgba(0,0,0,0.40);
}
.sd-search__fp-prefix {
    flex-shrink: 0;
    margin-right: 4px;
}
.sd-search__fp-word {
    display: inline;
    white-space: nowrap;
    /* AI shimmer gradient — igual técnica que Back Market */
    background: linear-gradient(90deg,
        rgba(0,0,0,0.40) 0%,
        rgba(0,0,0,0.40) 20%,
        #6D28D9 38%,
        #2563EB 48%,
        rgba(0,0,0,0.70) 60%,
        rgba(0,0,0,0.40) 80%,
        rgba(0,0,0,0.40) 100%
    );
    background-size: 300% 100%;
    background-position: 140% 0%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: sd-ai-shimmer 3.08s linear infinite;
}
/* Cursor separado — fuera del background-clip */
.sd-search__fp-cursor {
    display: inline-block;
    margin-left: 1px;
    color: rgba(0,0,0,0.45);
    animation: sd-cursor-blink 0.85s step-end infinite;
    font-weight: 300;
    vertical-align: baseline;
}
/* Hide fake placeholder when input has focus or value */
.sd-search__input:focus ~ .sd-search__fake-placeholder,
.sd-search__input:not(:placeholder-shown) ~ .sd-search__fake-placeholder {
    display: none;
}

@keyframes sd-ai-shimmer {
    0%   { background-position: 140% 0%; }
    100% { background-position: -80% 0%; }
}
@keyframes sd-cursor-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Header actions */
.sd-header__actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}

.sd-header__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--sd-text-muted);
    font-family: var(--sd-font-body);
    font-size: 11px;
    border-radius: 0;
    transition: color 0.2s;
    cursor: pointer;
    background: none;
    border: none;
    position: relative;
}
.sd-header__btn:hover { color: var(--sd-petroleum-black); }
.sd-header__btn--wa:hover { color: #25D366; }
.sd-header__btn svg { width: 20px; height: 20px; }

/* Cart badge */
.sd-cart-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sd-cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--sd-petroleum-black);
    color: var(--sd-white);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: var(--sd-font-body);
}
.sd-cart-badge[data-count="0"] { display: none; }

/* Burger */
.sd-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    background: none;
    border: none;
}
.sd-burger__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--sd-petroleum-black);
    transition: all 0.3s;
}
.sd-burger.sd-burger--open .sd-burger__bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.sd-burger.sd-burger--open .sd-burger__bar:nth-child(2) { opacity: 0; }
.sd-burger.sd-burger--open .sd-burger__bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── NAVEGACIÓN ── */
.sd-nav {
    border-top: 1px solid var(--sd-border);
    background: var(--sd-bg);
}

.sd-nav__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.sd-nav__list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sd-nav__link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 48px;
    font-family: var(--sd-font-subtitle);
    font-size: 13px;
    font-weight: 400;
    color: var(--sd-text-muted);
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.sd-nav__link:hover,
.sd-nav__link:focus {
    color: var(--sd-petroleum-black);
    border-bottom-color: var(--sd-petroleum-black);
}

/* Highlight "Ofertas" */
.sd-nav__link--oferta {
    color: var(--sd-petroleum-black) !important;
    font-weight: 600;
    font-family: var(--sd-font-body);
}
.sd-nav__link--oferta:hover {
    border-bottom-color: var(--sd-vibrant-green) !important;
}

/* Trust badges en nav */
.sd-nav__trust {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    white-space: nowrap;
}
.sd-nav__trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--sd-font-body);
    font-size: 12px;
    color: var(--sd-text-muted);
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--sd-bg-alt);
    border: 1px solid var(--sd-border);
    transition: border-color 0.2s, color 0.2s;
    text-decoration: none;
    line-height: 1;
}
.sd-nav__trust-badge strong {
    font-weight: 700;
    color: var(--sd-text);
}
.sd-nav__trust-badge svg {
    flex-shrink: 0;
}
a.sd-nav__trust-badge:hover {
    border-color: var(--sd-petroleum-black);
    color: var(--sd-petroleum-black);
}
.sd-nav__trust-badge--reviews {
    background: #fffbeb;
    border-color: #fde68a;
}
.sd-nav__trust-badge--reviews:hover {
    background: #fef3c7;
    border-color: #f59e0b;
}
.sd-nav__trust-sep {
    width: 1px;
    height: 14px;
    background: var(--sd-border);
    flex-shrink: 0;
}

/* ── Chevron en nav links con mega ── */
.sd-nav__chevron {
    display: inline-block;
    vertical-align: middle;
    margin-left: 2px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.sd-nav__item--has-mega.sd-mega--active .sd-nav__chevron { transform: rotate(180deg); }

/* ── MEGA-MENÚ ── */
.sd-nav { position: relative; }

.sd-mega {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 2px solid var(--sd-vibrant-green);
    border-bottom: 1px solid var(--sd-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.09);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    pointer-events: none;
}
.sd-mega.sd-mega--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.sd-mega__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 24px;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* Sidebar */
.sd-mega__sidebar {
    width: 180px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-right: 1px solid var(--sd-border);
    padding-right: 28px;
}

.sd-mega__sidebar-title {
    font-family: var(--sd-font-subtitle);
    font-size: 13px;
    font-weight: 600;
    color: var(--sd-text);
    margin-bottom: 16px;
    letter-spacing: 0;
}

.sd-mega__sidebar-trust {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.sd-mega__trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--sd-font-body);
    font-size: 12px;
    color: var(--sd-text-muted);
}
.sd-mega__trust-item svg { flex-shrink: 0; color: var(--sd-petroleum-black); }

.sd-mega__see-all {
    display: inline-flex;
    align-items: center;
    font-family: var(--sd-font-body);
    font-size: 12px;
    font-weight: 500;
    color: var(--sd-petroleum-black);
    text-decoration: none;
    padding: 8px 14px;
    background: var(--sd-vibrant-green);
    border-radius: 4px;
    transition: background 0.2s, opacity 0.2s;
    align-self: flex-start;
}
.sd-mega__see-all:hover { opacity: 0.85; }

/* Área derecha: header + fila de cards */
.sd-mega__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sd-mega__main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sd-mega__main-label {
    font-family: var(--sd-font-body);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--sd-text-faint);
}

.sd-mega__main-seeall {
    font-family: var(--sd-font-body);
    font-size: 12px;
    font-weight: 500;
    color: var(--sd-text-muted);
    text-decoration: none;
    transition: color 0.15s;
}
.sd-mega__main-seeall:hover { color: var(--sd-petroleum-black); }

/* ── Carrusel desktop ── */
.sd-mega__carousel {
    position: relative;
    overflow: visible; /* NO clipear las flechas */
}
/* Fade gradient derecho — indica más contenido */
.sd-mega__carousel::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 4px;
    width: 56px;
    background: linear-gradient(to right, transparent, #fff);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.2s;
}
.sd-mega__carousel--end::after { opacity: 0; }

/* Flechas del carrusel */
.sd-mega__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(calc(-50% - 14px)); /* -14px = mitad del label debajo */
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 20; /* encima de todo dentro del mega */
    transition: opacity 0.15s, box-shadow 0.15s;
    padding: 0;
    pointer-events: auto !important;
}
.sd-mega__arrow:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.22); }
.sd-mega__arrow--prev { left: 6px; }
.sd-mega__arrow--next { right: 6px; }
/* Nunca usar disabled → pointer-events:none deja pasar clicks a los cards */
/* En su lugar, clase visual que sólo cambia opacidad */
.sd-mega__arrow--hidden { opacity: 0 !important; pointer-events: none !important; }
.sd-mega__arrow--at-edge { opacity: 0.25; cursor: default; }

/* Fila horizontal de cards — igual que Back Market */
.sd-mega__cats {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.sd-mega__cats::-webkit-scrollbar { display: none; }

.sd-mega__cat {
    flex: 0 0 168px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--sd-text);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.18s, box-shadow 0.18s;
    background: #fff;
}
.sd-mega__cat:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}

/* Fondo de color para la imagen — igual que Back Market */
.sd-mega__cat-img {
    width: 100%;
    height: 155px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #F0F0F0;
    flex-shrink: 0;
}
/* Colores de fondo cíclicos — se repiten automáticamente sin importar cuántas cards haya */
.sd-mega__cat:nth-child(6n+1) .sd-mega__cat-img { background: #FFF0F0; }
.sd-mega__cat:nth-child(6n+2) .sd-mega__cat-img { background: #F0F7FF; }
.sd-mega__cat:nth-child(6n+3) .sd-mega__cat-img { background: #F0FFF4; }
.sd-mega__cat:nth-child(6n+4) .sd-mega__cat-img { background: #FFFBF0; }
.sd-mega__cat:nth-child(6n+5) .sd-mega__cat-img { background: #F5F0FF; }
.sd-mega__cat:nth-child(6n+6) .sd-mega__cat-img { background: #F0FFFD; }

.sd-mega__cat-img img {
    --sd-img-scale: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    mix-blend-mode: multiply; /* elimina el fondo blanco del PNG sobre el color de fondo */
    transform: scale(var(--sd-img-scale));
    transition: transform 0.18s ease;
}
/* Algunas thumbs (ej. Gamer) llegan al borde y se ven más grandes que sus
   pares — escalamos visualmente para nivelar el peso visual. Usamos selector
   por alt porque el render es por taxonomía y no podemos meter una clase. */
.sd-mega__cat-img img[alt="Gamer"],
.sd-mega__cat-img img[alt^="Lenovo Legion"] {
    --sd-img-scale: 0.82;
}

.sd-mega__cat-name {
    font-family: var(--sd-font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--sd-text);
    padding: 10px 12px 6px;
    line-height: 1.3;
}

.sd-mega__cat-price {
    font-family: var(--sd-font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--sd-text-muted);
    padding: 0 12px 10px;
}

/* ═══════════════════════════════════════
   MOBILE OVERLAY
   ═══════════════════════════════════════ */
.sd-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s;
}
.sd-mobile-overlay--visible {
    display: block;
    opacity: 1;
}

/* ═══════════════════════════════════════
   MOBILE MENU (dark drawer — contrasta bien)
   ═══════════════════════════════════════ */
.sd-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: #ffffff;
    z-index: 10002;
    overflow: hidden; /* clips the subpanel horizontal slide */
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0,0,0,0.10);
}
.sd-mobile-menu--open { left: 0; }

/* Compensar la barra de admin de WP */
body.admin-bar .sd-mobile-menu {
    top: 32px;
    height: calc(100% - 32px);
}
@media screen and (max-width: 782px) {
    body.admin-bar .sd-mobile-menu {
        top: 46px;
        height: calc(100% - 46px);
    }
}

.sd-mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.sd-mobile-menu__header img { height: 28px; width: auto; }

.sd-mobile-menu__close {
    background: none;
    border: none;
    color: rgba(0,0,0,0.40);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.sd-mobile-menu__close:hover { color: #111; }

.sd-mobile-menu__search {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}
.sd-mobile-menu__search form {
    display: flex;
    border: 1.5px solid rgba(0,0,0,0.14);
    border-radius: 9999px;
    overflow: hidden;
}
.sd-mobile-menu__search input[type="search"] {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    padding: 10px 12px;
    font-size: 13px;
    color: #111;
    font-family: var(--sd-font-body);
}
.sd-mobile-menu__search input::placeholder { color: rgba(0,0,0,0.35); }
.sd-mobile-menu__search button {
    background: none;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    color: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
}
.sd-mobile-menu__search button:hover { color: #111; }

.sd-mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    flex: 1;
    overflow-y: auto;
}
.sd-mobile-menu__list li a {
    display: block;
    padding: 14px 20px;
    font-family: var(--sd-font-body);
    font-size: 15px;
    font-weight: 400;
    color: rgba(0,0,0,0.75);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: color 0.2s, background 0.2s;
}
.sd-mobile-menu__list li a:hover {
    color: #111;
    background: rgba(0,0,0,0.03);
}
.sd-mobile-menu__oferta a { color: #16a34a !important; font-weight: 500; }

/* Botón de categoría con flecha (para items con sub) */
.sd-mobile-menu__cat-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    font-family: var(--sd-font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--sd-text);
    background: none;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}
.sd-mobile-menu__cat-btn:hover { background: rgba(0,0,0,0.03); }

/* ── Subpanel mobile con fotos ── */
.sd-mobile-subpanel {
    position: absolute;
    inset: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    overflow: hidden; /* el scroll va solo en el grid, no aquí */
}
.sd-mobile-subpanel--open {
    transform: translateX(0);
}

.sd-mobile-subpanel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    flex-shrink: 0; /* nunca se comprime — siempre visible */
    background: #fff;
}
.sd-mobile-subpanel__back,
.sd-mobile-subpanel__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--sd-text);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s;
}
.sd-mobile-subpanel__back:hover,
.sd-mobile-subpanel__close:hover { background: rgba(0,0,0,0.06); }

.sd-mobile-subpanel__title {
    font-family: var(--sd-font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--sd-text);
}

/* Zona scrolleable: grid + ver todos */
.sd-mobile-subpanel__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Grid 2 columnas de fotos */
.sd-mobile-subpanel__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
}
.sd-mobile-subpanel__cat {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--sd-text);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.18s, box-shadow 0.18s;
    align-self: start; /* no estirarse en el grid */
}
.sd-mobile-subpanel__cat:active { transform: scale(0.97); }

.sd-mobile-subpanel__img {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.sd-mobile-subpanel__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    mix-blend-mode: multiply;
}
.sd-mobile-subpanel__name {
    font-family: var(--sd-font-body);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 10px 10px;
    line-height: 1.3;
}
.sd-mobile-subpanel__see-all {
    display: block;
    text-align: center;
    padding: 14px;
    font-family: var(--sd-font-body);
    font-size: 14px;
    font-weight: 600;
    /* Fondo claro → verde contrast-safe (AA) */
    color: var(--sd-accent-dark);
    text-decoration: none;
    border-top: 1px solid rgba(0,0,0,0.07);
}

.sd-mobile-menu__trust {
    padding: 16px 20px;
    border-top: 1px solid rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sd-mobile-menu__trust-item {
    font-size: 12px;
    color: rgba(0,0,0,0.45);
    font-family: var(--sd-font-body);
}

/* ═══════════════════════════════════════
   TRUST BAR
   ═══════════════════════════════════════ */
.sd-trust-bar {
    background: var(--sd-bg-alt);
    border-top: 1px solid var(--sd-border);
    border-bottom: 1px solid var(--sd-border);
}

.sd-trust-bar__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 16px;
}

.sd-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
}
.sd-trust-item + .sd-trust-item {
    border-left: 1px solid var(--sd-border);
}

.sd-trust-item__icon {
    flex-shrink: 0;
    color: var(--sd-petroleum-black);
}

.sd-trust-item__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.sd-trust-item__text strong {
    font-family: var(--sd-font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--sd-text);
    text-transform: none;
    letter-spacing: 0;
}
.sd-trust-item__text span {
    font-family: var(--sd-font-body);
    font-size: 11px;
    color: var(--sd-text-faint);
    line-height: 1.3;
}

/* ═══════════════════════════════════════
   FOOTER PRINCIPAL — v2
   ═══════════════════════════════════════ */
.sd-footer {
    background: #1A1A1A;
    color: #e0e0e0;
}

/* ── NEWSLETTER ── */
.sd-footer__newsletter {
    background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 100%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sd-footer__newsletter-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.sd-footer__newsletter-text h3 {
    font-family: var(--sd-font-headline);
    text-transform: uppercase;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: #fff;
    margin: 0 0 4px;
    letter-spacing: 0.02em;
    line-height: 1.1;
}
.sd-footer__newsletter-text p {
    font-family: var(--sd-font-body);
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin: 0;
}
.sd-footer__newsletter-form {
    display: flex;
    gap: 0;
    flex-shrink: 0;
}
.sd-footer__newsletter-field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-right: none;
    border-radius: 0;
    padding: 0 14px;
    transition: border-color 0.2s;
}
.sd-footer__newsletter-field:focus-within {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.12);
}
.sd-footer__newsletter-field svg {
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
}
.sd-footer__newsletter-field input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--sd-font-body);
    font-size: 14px;
    padding: 12px 0;
    width: 220px;
}
.sd-footer__newsletter-field input::placeholder { color: rgba(255,255,255,0.35); }
.sd-footer__newsletter-btn {
    background: var(--sd-vibrant-green);
    color: var(--sd-petroleum-black);
    border: none;
    padding: 14px 28px;
    font-family: var(--sd-font-subtitle);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    border-radius: 0;
    white-space: nowrap;
    transition: background 0.2s;
}
.sd-footer__newsletter-btn:hover { background: #b8f032; }
.sd-footer__newsletter-field input:focus { color: #fff !important; }

/* ── TRUST BADGES (grandes) ── */
.sd-footer__trust {
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sd-footer__trust-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}
.sd-footer__trust-badge {
    display: flex;
    align-items: center;
    gap: 14px;
}
.sd-footer__trust-icon {
    color: rgba(255,255,255,0.7);
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
}
.sd-footer__trust-icon--star { background: rgba(250,204,21,0.12); }
.sd-footer__trust-text strong {
    display: block;
    font-family: var(--sd-font-body);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}
.sd-footer__trust-text span {
    font-family: var(--sd-font-body);
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}
.sd-footer__trust-sep {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.1);
}

/* ── COLUMNAS ── */
.sd-footer__cols {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sd-footer__cols-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 36px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
}

/* Footer links siempre visibles en desktop */
@media (min-width: 769px) {
    .sd-footer__accordion-body,
    .sd-footer__col .sd-footer__links,
    .sd-footer__col .sd-footer__contact,
    .sd-footer__col .sd-footer__wa-btn {
        max-height: none !important;
        overflow: visible !important;
    }
}

/* Columna marca */
.sd-footer__col--brand img { height: 32px; width: auto; filter: brightness(10); }

.sd-footer__tagline {
    font-family: var(--sd-font-body);
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    margin: 14px 0 18px;
    line-height: 1.6;
}

.sd-footer__social { display: flex; gap: 8px; }

.sd-footer .sd-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 6px;
    color: rgba(255,255,255,0.6) !important;
    text-decoration: none !important;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.sd-footer .sd-footer__social-link svg {
    color: rgba(255,255,255,0.6) !important;
}
/* Instagram/Facebook use stroke, TikTok/WhatsApp use fill */
.sd-footer .sd-footer__social-link svg[fill="none"] {
    stroke: rgba(255,255,255,0.6) !important;
}
.sd-footer .sd-footer__social-link svg[fill="currentColor"] {
    fill: rgba(255,255,255,0.6) !important;
}
.sd-footer .sd-footer__social-link:hover {
    border-color: rgba(255,255,255,0.4) !important;
    color: #fff !important;
    background: rgba(255,255,255,0.08);
}
.sd-footer .sd-footer__social-link:hover svg {
    color: #fff !important;
}
.sd-footer .sd-footer__social-link:hover svg[fill="none"] {
    stroke: #fff !important;
}
.sd-footer .sd-footer__social-link:hover svg[fill="currentColor"] {
    fill: #fff !important;
}

/* Título columna */
.sd-footer__title {
    font-family: var(--sd-font-body);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    margin: 0 0 16px;
}

/* Links */
.sd-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sd-footer .sd-footer__links a {
    font-family: var(--sd-font-body);
    font-size: 13px;
    color: rgba(255,255,255,0.6) !important;
    text-decoration: none !important;
    transition: color 0.2s;
}
.sd-footer .sd-footer__links a:hover { color: #fff !important; }
.sd-footer .sd-footer__link--highlight { color: #f59e0b !important; font-weight: 500; }

/* Contacto */
.sd-footer__contact {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sd-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--sd-font-body);
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
}
.sd-footer .sd-footer__contact li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: rgba(255,255,255,0.4) !important;
    stroke: rgba(255,255,255,0.4) !important;
}
.sd-footer .sd-footer__contact a { color: rgba(255,255,255,0.6) !important; text-decoration: none !important; }
.sd-footer .sd-footer__contact a:hover { color: #fff !important; }

/* WA button footer */
.sd-footer__wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    background: #25D366;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-family: var(--sd-font-body);
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}
.sd-footer .sd-footer__wa-btn { color: #fff !important; }
.sd-footer .sd-footer__wa-btn:hover { background: #128C7E; color: #fff !important; }

/* ── FOOTER BOTTOM ── */
.sd-footer__bottom {
    background: rgba(0,0,0,0.2);
}

.sd-footer__bottom-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.sd-footer__legal {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--sd-font-body);
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    flex-wrap: wrap;
}
.sd-footer .sd-footer__legal a {
    color: rgba(255,255,255,0.5) !important;
    text-decoration: none !important;
    transition: color 0.2s;
}
.sd-footer .sd-footer__legal a:hover { color: #fff !important; }
.sd-footer__made {
    width: 100%;
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    margin-top: 8px;
}

.sd-footer__payments {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sd-payment-badge {
    display: inline-flex;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.sd-payment-badge:hover { opacity: 1; }

.sd-payment-badge--text {
    gap: 4px;
    font-family: var(--sd-font-body);
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    padding: 4px 8px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .sd-nav__trust { display: none; }
    .sd-footer__cols-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .sd-footer__newsletter-inner { flex-direction: column; text-align: center; gap: 20px; }
    .sd-footer__newsletter-form { width: 100%; max-width: 420px; }
    .sd-footer__newsletter-field input { width: 100%; }
    .sd-footer__trust-inner { gap: 24px; }
    .sd-trust-bar__inner { padding: 0 16px; gap: 0; }
    .sd-trust-item { padding: 0 12px; }
}

@media (max-width: 1023px) {
    .sd-utility__item--hide-md { display: none !important; }
    .sd-utility__sep--hide-md { display: none !important; }
}

@media (max-width: 768px) {
    :root { --sd-header-height: 100px; --sd-announce-height: 36px; }
    /* .sd-utility se muestra como ticker en mobile (ver layout.js) */
    .sd-header { top: var(--sd-announce-height); }
    /* admin-bar en mobile es position:absolute — se va al scroll.
       El offset 46px es solo necesario antes de scroll, scroll-hidden lo resuelve. */
    body.admin-bar .sd-header { top: calc(46px + var(--sd-announce-height)) !important; }

    /* Fila 1: [☰] [Logo centrado] [Cuenta][Carrito] | Fila 2: buscador */
    .sd-header__inner {
        flex-wrap: wrap;
        align-items: center;
        height: auto !important;
        gap: 0;
        padding: 0 12px 6px;
    }
    /* Burger a la izquierda */
    .sd-burger { display: flex; order: 1; }
    /* Logo centrado (flex:1 con justify-content center) */
    .sd-header__logo { order: 2; flex: 1; height: 50px; display: flex; align-items: center; justify-content: center; }
    .sd-header__logo img { height: 26px; }
    /* Acciones a la derecha */
    .sd-header__actions { order: 3; height: 50px; display: flex; align-items: center; gap: 4px; }

    /* Search: segunda fila full-width, fondo gris redondeado */
    .sd-header__search {
        display: block;
        order: 10;
        flex-basis: 100%;
        max-width: none;
        height: 42px;
        background-color: #EAEAEF !important;
        border: 1px solid #D4D4D9 !important;
        border-radius: 8px !important;
        overflow: hidden;
    }
    .sd-header__search *,
    .sd-header__search .dgwt-wcas-search-wrapp,
    .sd-header__search form.dgwt-wcas-search-form,
    .sd-header__search .dgwt-wcas-sf-wrapp,
    .sd-header__search input.dgwt-wcas-search-input,
    .sd-header__search .sd-search__fake-placeholder {
        background-color: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
    }

    .sd-header__btn > span:last-child { display: none; }
    .sd-header__btn { padding: 8px 2px; }
    .sd-nav { display: none; }
    /* ── Ticker mobile (puro CSS + JS para animación) ── */
    .sd-utility__items {
        position: relative;
        height: var(--sd-announce-height);
        overflow: hidden;
        width: 100%;
    }
    .sd-utility__sep { display: none !important; }
    .sd-utility__item,
    .sd-utility__item--hide-sm,
    .sd-utility__item--hide-md {
        position: absolute !important;
        inset: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0 12px;
        font-size: 11px;
        white-space: nowrap;
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        pointer-events: none;
    }
    /* Primer item visible por defecto (antes de que JS arranque) */
    .sd-utility__item:first-child {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    /* Cuando JS activa el ticker, controla cuál se ve */
    .sd-utility--ticker .sd-utility__item:first-child {
        opacity: 0;
        transform: translateY(8px);
        pointer-events: none;
    }
    .sd-utility__item--ticker-active {
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto;
    }
    .sd-utility__item--ticker-exit {
        opacity: 0 !important;
        transform: translateY(-8px) !important;
    }

    .sd-trust-bar__inner { height: auto; padding: 12px 16px; flex-wrap: wrap; justify-content: flex-start; gap: 10px; }
    .sd-trust-item { justify-content: flex-start; flex: auto; border-left: none !important; padding: 0; }
    .sd-trust-item__text span { display: none; }

    .sd-footer__cols-inner { grid-template-columns: 1fr; gap: 0; padding: 0 0 28px; }
    .sd-footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    .sd-footer__newsletter-inner { padding: 32px 16px; }
    .sd-footer__newsletter-form { flex-direction: column; }
    .sd-footer__newsletter-field { border-right: 1px solid rgba(255,255,255,0.12); border-radius: 0; }
    .sd-footer__newsletter-btn { border-radius: 0; padding: 14px; }
    .sd-footer__trust-inner { flex-direction: column; gap: 16px; padding: 24px 16px; align-items: flex-start; }
    .sd-footer__trust-sep { width: 100%; height: 1px; }

    /* Marca column: padding */
    .sd-footer__col--brand { padding: 28px 16px 20px; }

    /* Accordion columns — CSS-first: links ocultos por defecto en mobile */
    .sd-footer__cols-inner .sd-footer__col:not(.sd-footer__col--brand) {
        border-top: 1px solid rgba(255,255,255,0.08);
        padding: 0 16px;
    }

    /* Título como botón accordion */
    .sd-footer__cols-inner .sd-footer__col:not(.sd-footer__col--brand) .sd-footer__title {
        cursor: pointer;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 16px 0 !important;
        margin: 0 !important;
        -webkit-tap-highlight-color: transparent;
    }
    .sd-footer__cols-inner .sd-footer__col:not(.sd-footer__col--brand) .sd-footer__title::after {
        content: '';
        width: 8px;
        height: 8px;
        border-right: 2px solid rgba(255,255,255,0.4);
        border-bottom: 2px solid rgba(255,255,255,0.4);
        transform: rotate(45deg);
        transition: transform 0.25s ease;
        flex-shrink: 0;
    }

    /* Links y contacto ocultos por defecto en mobile (CSS puro) */
    .sd-footer__cols-inner .sd-footer__col:not(.sd-footer__col--brand) .sd-footer__links,
    .sd-footer__cols-inner .sd-footer__col:not(.sd-footer__col--brand) .sd-footer__contact,
    .sd-footer__cols-inner .sd-footer__col:not(.sd-footer__col--brand) .sd-footer__wa-btn {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    /* Cuando JS marca aria-expanded=true, se despliegan */
    .sd-footer__cols-inner .sd-footer__col:not(.sd-footer__col--brand) .sd-footer__title[aria-expanded="true"] ~ .sd-footer__links,
    .sd-footer__cols-inner .sd-footer__col:not(.sd-footer__col--brand) .sd-footer__title[aria-expanded="true"] ~ .sd-footer__contact,
    .sd-footer__cols-inner .sd-footer__col:not(.sd-footer__col--brand) .sd-footer__title[aria-expanded="true"] ~ .sd-footer__wa-btn {
        max-height: 300px !important;
        overflow: visible !important;
        padding-bottom: 16px;
    }
    .sd-footer__title[aria-expanded="true"]::after {
        transform: rotate(-135deg) !important;
    }

    /* Si JS creó accordion-body wrapper, respetar su inline style */
    .sd-footer__accordion-body {
        padding-bottom: 0;
    }
    .sd-footer__accordion-body .sd-footer__links,
    .sd-footer__accordion-body .sd-footer__contact {
        max-height: none;
        overflow: visible;
        padding-bottom: 16px;
    }
    .sd-footer__accordion-body .sd-footer__wa-btn {
        max-height: none;
        overflow: visible;
        margin-bottom: 16px;
    }

    /* Compat: si JS agregó la clase --accordion al título */
    .sd-footer__title--accordion {
        cursor: pointer;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 16px 0 !important;
        margin: 0 !important;
        -webkit-tap-highlight-color: transparent;
    }
    .sd-footer__title--accordion::after {
        content: '';
        width: 8px;
        height: 8px;
        border-right: 2px solid rgba(255,255,255,0.4);
        border-bottom: 2px solid rgba(255,255,255,0.4);
        transform: rotate(45deg);
        transition: transform 0.25s ease;
        flex-shrink: 0;
    }
    .sd-footer__title--accordion[aria-expanded="true"]::after {
        transform: rotate(-135deg);
    }
}

@media (max-width: 480px) {
    .sd-trust-bar { display: none; }
    .sd-footer__payments { gap: 6px; }
}



/* ═══════════════════════════════════════
   STOREFRONT — OCULTAR ELEMENTOS NATIVOS
   ═══════════════════════════════════════ */
.storefront-primary-navigation,
.storefront-header-cart,
.site-header { display: none !important; }

/* ── Eliminar sidebar en todas las páginas ── */
.widget-area,
.sidebar,
#secondary {
    display: none !important;
}

/* Full width content area */
.site-content .col-full,
.site-content > .col-full {
    max-width: 1280px !important;
    padding: 0 24px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box;
}

#primary,
.content-area {
    width: 100% !important;
    float: none !important;
}

/* Fondo general del site */
body,
.site,
.hfeed,
.site-content {
    background-color: var(--sd-bg) !important;
    color: var(--sd-text) !important;
}

/* ═══════════════════════════════════════
   WOOCOMMERCE — TIENDA Y CATÁLOGOS
   ═══════════════════════════════════════ */

/* Cabecera de tienda */
.woocommerce-products-header__title,
h1.page-title,
h2.woocommerce-loop-product__title {
    color: var(--sd-text) !important;
    font-family: var(--sd-font-body) !important;
    display: block !important;       /* contrarrestar CSS inyectado por productos viejos */
    visibility: visible !important;
}

h1.page-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

/* Forzar visibilidad del precio aunque viejos estilos lo oculten */
.woocommerce ul.products li.product a > span.price,
.woocommerce ul.products li.product .price {
    display: block !important;
    visibility: visible !important;
}

/* Barra de ordenamiento */
.woocommerce-ordering,
.woocommerce-result-count {
    margin-bottom: 20px !important;
}

.woocommerce-ordering select,
.woocommerce-page .woocommerce-ordering select {
    background: var(--sd-bg) !important;
    color: var(--sd-text) !important;
    border: 1px solid var(--sd-border) !important;
    border-radius: 0 !important;
    padding: 8px 12px !important;
    font-family: var(--sd-font-body) !important;
    font-size: 13px !important;
    box-shadow: none !important;
}

.woocommerce-result-count {
    color: var(--sd-text-faint) !important;
    font-size: 13px !important;
    font-family: var(--sd-font-body) !important;
}

/* Product cards */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background: var(--sd-bg) !important;
    border: 1px solid var(--sd-border) !important;
    padding: 0 !important;
    margin-bottom: 24px !important;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-color: #cccccc !important;
}

.woocommerce ul.products li.product a img {
    padding: 16px !important;
    margin-bottom: 0 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--sd-text) !important;
    font-family: var(--sd-font-body) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 0 16px 4px !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product .price {
    padding: 0 16px 16px !important;
    display: block !important;
}

.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price .amount {
    color: var(--sd-petroleum-black) !important;
    font-family: var(--sd-font-body) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}

.woocommerce ul.products li.product .price del .amount {
    color: var(--sd-text-faint) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none !important;
}

/* "Añadir al carrito" en listing */
.woocommerce ul.products li.product .button {
    margin: 0 16px 16px !important;
    width: calc(100% - 32px) !important;
    background: var(--sd-petroleum-black) !important;
    color: var(--sd-white) !important;
    font-family: var(--sd-font-body) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    border-radius: 0 !important;
    padding: 12px 10px !important;
    min-height: 44px !important;
    text-align: center !important;
    border: none !important;
    transition: background 0.2s, color 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.woocommerce ul.products li.product .button:hover {
    background: var(--sd-vibrant-green) !important;
    color: var(--sd-petroleum-black) !important;
}

/* Sale badge */
.woocommerce span.onsale {
    background-color: var(--sd-vibrant-green) !important;
    color: var(--sd-petroleum-black) !important;
    font-family: var(--sd-font-body) !important;
    font-weight: 700;
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 0 !important;
    min-height: auto !important;
    min-width: auto !important;
    padding: 4px 8px !important;
    line-height: 1.2;
}

/* Paginación */
.woocommerce nav.woocommerce-pagination ul {
    border: none !important;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    background: var(--sd-bg) !important;
    color: var(--sd-text-muted) !important;
    border: 1px solid var(--sd-border) !important;
    border-radius: 0 !important;
    font-family: var(--sd-font-body) !important;
    padding: 8px 14px !important;
    min-width: auto !important;
    transition: all 0.2s !important;
}
.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: var(--sd-bg-alt) !important;
    color: var(--sd-text) !important;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--sd-petroleum-black) !important;
    color: var(--sd-white) !important;
    border-color: var(--sd-petroleum-black) !important;
}

/* Breadcrumb */
.woocommerce-breadcrumb {
    font-family: var(--sd-font-body) !important;
    font-size: 12px !important;
    color: var(--sd-text-faint) !important;
    margin-bottom: 16px !important;
    padding: 16px 0 0 !important;
}
.woocommerce-breadcrumb a {
    color: var(--sd-text-muted) !important;
    text-decoration: none !important;
}
.woocommerce-breadcrumb a:hover { color: var(--sd-petroleum-black) !important; }

/* ═══════════════════════════════════════
   WOOCOMMERCE — BOTONES GLOBALES
   ═══════════════════════════════════════ */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: var(--sd-petroleum-black) !important;
    color: var(--sd-white) !important;
    font-family: var(--sd-font-body) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    border-radius: 0 !important;
    transition: all 0.2s !important;
    border: none !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background: var(--sd-vibrant-green) !important;
    color: var(--sd-petroleum-black) !important;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce #respond input#submit.alt {
    background: var(--sd-petroleum-black) !important;
    color: var(--sd-white) !important;
}
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
    background: var(--sd-vibrant-green) !important;
    color: var(--sd-petroleum-black) !important;
}

/* ═══════════════════════════════════════
   WOOCOMMERCE — NOTICES Y MENSAJES
   ═══════════════════════════════════════ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: 0 !important;
    font-family: var(--sd-font-body) !important;
}

/* ═══════════════════════════════════════
   STOREFRONT — ELIMINAR COLOR MORADO/MAGENTA
   ═══════════════════════════════════════ */

/* Storefront usa #96588a como color de acento — lo eliminamos en todo */
.woocommerce a,
.woocommerce-page a,
.site-content a {
    color: var(--sd-text);
}

/* Precio morado de Storefront → negro */
.woocommerce .price *,
.woocommerce-page .price *,
.woocommerce ul.products li.product a:not(.button),
.woocommerce-page ul.products li.product a:not(.button) {
    color: var(--sd-text) !important;
}

/* Short description en el loop — ocultar (contiene estilos y texto basura del viejo tema) */
.woocommerce ul.products li.product .woocommerce-product-details__short-description,
.woocommerce-page ul.products li.product .woocommerce-product-details__short-description {
    display: none !important;
}


/* Tags de "Transferencias" y similares en el loop */
.woocommerce ul.products li.product .product-tag-cloud,
.woocommerce ul.products li.product .tagged_as {
    display: none !important;
}

/* Botones duplicados de plugins (wishlist, compare) en el loop */
.woocommerce ul.products li.product .yith-wcwl-add-to-wishlist,
.woocommerce ul.products li.product .compare-button,
.woocommerce ul.products li.product .wooscp-btn,
.woocommerce ul.products li.product .tinv-wishlist,
.woocommerce ul.products li.product form.cart:not(:first-of-type),
.woocommerce ul.products li.product .wcboost-wishlist-button,
.woocommerce ul.products li.product .add_to_wishlist {
    display: none !important;
}

/* Stars rating */
.woocommerce .star-rating span::before,
.woocommerce p.stars a { color: #f59e0b !important; }

/* Mobile footer bar de Storefront */
.storefront-handheld-footer-bar { display: none !important; }

/* ── ADMIN BAR COMPAT (logged-in) ── */
.admin-bar .sd-utility {
    top: 32px;
}
.admin-bar .sd-header {
    top: calc(32px + var(--sd-announce-height));
}
.admin-bar .sd-announce--hidden ~ .sd-header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    /* WP admin-bar es position:absolute en mobile — solo afecta antes de scroll.
       Cuando el usuario scrollea, la admin bar desaparece y los elements fixed
       deben ir a top:0. Esto lo maneja sd-utility--scroll-hidden. */
    .admin-bar .sd-utility { top: 46px; }
    .admin-bar .sd-header { top: calc(46px + var(--sd-announce-height)); }
    .admin-bar .sd-announce--hidden ~ .sd-header { top: 46px; }
}

/* ── CONTENIDO EXTRA DE PRODUCTOS (inyección Divi / ShopEngine / plugins) ── */
/* Elementos duplicados o de inyección Divi dentro del card */
.woocommerce ul.products li.product .seccion,
.woocommerce ul.products li.product .precio_ahorro,
.woocommerce ul.products li.product .precio_1,
.woocommerce ul.products li.product .brand,
.woocommerce ul.products li.product .woocommerce-LoopProduct-link > strong,
.woocommerce ul.products li.product .woocommerce-LoopProduct-link > h3 {
    display: none !important;
}

/* ShopEngine: quickview y compare icons en el loop */
.woocommerce ul.products li.product .shopengine-quickview-trigger,
.woocommerce ul.products li.product .shopengine_comparison_add_to_list_action,
.woocommerce ul.products li.product [class*="shopengine-comparis"] {
    display: none !important;
}

/* Segundo botón add-to-cart duplicado (ShopEngine duplica el bloque completo) */
.woocommerce ul.products li.product .add_to_cart_button ~ .add_to_cart_button,
.woocommerce ul.products li.product form.cart ~ form.cart {
    display: none !important;
}

/* ══════════════════════════════════════════════════════════
   ECOMMERCE-UI SKILL — PRODUCT CARD ENHANCEMENTS
   Brand badge · Condition badge · Spec chips · Savings · Hover
   ══════════════════════════════════════════════════════════ */

/* ── Card: position context + refined shadow + hover lift ── */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    position: relative !important;
    box-shadow: var(--shadow-card) !important;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease !important;
    display: flex !important;
    flex-direction: column !important;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover) !important;
    border-color: #C0C0C0 !important;
}

/* ── Image container: consistent aspect ratio + bg ── */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    display: block !important;
    background: #F9FAFB;
    overflow: hidden;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link > img {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: contain !important;
    background: #F9FAFB !important;
    padding: 14px !important;
    margin: 0 !important;
    transition: transform 0.35s ease !important;
}

.woocommerce ul.products li.product:hover a.woocommerce-LoopProduct-link > img {
    transform: scale(1.03);
}

/* ── Title: 2-line clamp ── */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 2.6em;
    padding: 2px 16px 4px !important;
}

/* ── Price: tabular numerals (cleaner CLP formatting) ── */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price .amount {
    font-variant-numeric: tabular-nums;
}

/* ── Brand + Condition row ── */
.sd-loop-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 2px;
    gap: 8px;
    min-height: 26px;
}
/* Hide duplicate brand row if somehow duplicated */
.sd-loop-brand-row ~ .sd-loop-brand-row { display: none !important; }

.sd-loop-brand {
    font-family: var(--sd-font-body);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--sd-text-faint);
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Condition badge pill ── */
.sd-condition-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 9999px;
    font-family: var(--sd-font-body);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.6;
}
.sd-condition-badge--premium       { background: #D1FAE5; color: var(--color-condition-premium); }
.sd-condition-badge--excelente     { background: #DBEAFE; color: var(--color-condition-a); }
.sd-condition-badge--muybueno      { background: #EDE9FE; color: var(--color-condition-a-); }
.sd-condition-badge--reacondicionado { background: #F3F4F6; color: var(--sd-text-faint); }

/* ── Spec chips in product card ── */
.sd-loop-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 2px 16px 6px;
}
/* Hide duplicate spec chips row */
.sd-loop-chips ~ .sd-loop-chips { display: none !important; }

.sd-loop-chip {
    background: var(--sd-bg-alt);
    color: var(--sd-text-muted);
    font-family: var(--sd-font-body);
    font-size: 10px;
    font-weight: 500;
    padding: 2px 7px;
    border: 1px solid var(--sd-border);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Savings badge ── */
.sd-loop-savings {
    display: inline-flex;
    align-items: center;
    font-family: var(--sd-font-body);
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    padding: 0 16px 4px;
    letter-spacing: 0;
}
/* Hide duplicate savings */
.sd-loop-savings ~ .sd-loop-savings { display: none !important; }

/* ═══════════════════════════════════════
   FIBOSEARCH (Ajax Search for WooCommerce)
   — Adoptar el estilo visual de SmartDeal
   ═══════════════════════════════════════ */

/* Container */
.sd-header__search--ajax {
    position: relative;
    flex: 1;
    max-width: 540px;
    height: 44px;
}

/* Fake animated placeholder — sits above the plugin input */
.sd-header__search--ajax .sd-search__fake-placeholder {
    position: absolute;
    left: 0; right: 0; top: 50%;
    transform: translateY(-50%);
    padding-left: 46px;
    pointer-events: none;
    z-index: 2;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: rgba(0,0,0,0.40);
    white-space: nowrap;
    overflow: hidden;
}
/* Hide placeholder when FiboSearch input is focused or has value */
.sd-header__search--ajax:has(.dgwt-wcas-search-input:focus) .sd-search__fake-placeholder,
.sd-header__search--ajax:has(.dgwt-wcas-search-input:not([value=""])) .sd-search__fake-placeholder { display: none !important; }
/* JS adds this class too */
.sd-header__search--ajax.sd-search-active .sd-search__fake-placeholder { display: none !important; }

/* FiboSearch wrapper fills our container */
.sd-header__search--ajax .dgwt-wcas-search-wrapp {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    max-width: none !important;
    margin: 0 !important;
}
.sd-header__search--ajax .dgwt-wcas-search-form { height: 100%; }

/* Pill shape */
.sd-header__search--ajax .dgwt-wcas-sf-wrapp {
    position: relative !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    background: #fff !important;
    border: 1.5px solid #E0E0E0 !important;
    border-radius: 9999px !important;
    overflow: hidden !important;
    padding: 0 12px 0 44px !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.sd-header__search--ajax .dgwt-wcas-sf-wrapp:focus-within {
    border-color: #ADADAD !important;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06) !important;
}

/* Submit button repurposed as left magnifier icon */
/* Hide FiboSearch native triangle arrow (designed for right-side button) */
.sd-header__search--ajax .dgwt-wcas-search-submit::before { display: none !important; }
.sd-header__search--ajax .dgwt-wcas-search-submit {
    position: absolute !important;
    left: 0 !important; top: 0 !important;
    width: 44px !important; height: 100% !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    font-size: 0 !important;
    color: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 3 !important;
}
.sd-header__search--ajax .dgwt-wcas-search-submit::after {
    content: '';
    display: block;
    width: 18px; height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Search input */
.sd-header__search--ajax input.dgwt-wcas-search-input {
    flex: 1 !important;
    min-width: 0 !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif !important;
    font-size: 14px !important;
    color: #111 !important;
    -webkit-appearance: none !important;
}
.sd-header__search--ajax input.dgwt-wcas-search-input::placeholder { color: transparent !important; }

/* Hide voice search, screen reader label */
.sd-header__search--ajax .dgwt-wcas-voice-search,
.sd-header__search--ajax .screen-reader-text { display: none !important; }

/* Preloader spinner — right side */
.sd-header__search--ajax .dgwt-wcas-preloader { margin-left: 8px !important; flex-shrink: 0; }

/* Suggestions dropdown — appended to body by FiboSearch */
.dgwt-wcas-suggestions-wrapp {
    border-radius: 12px !important;
    border: 1.5px solid #E0E0E0 !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10) !important;
    margin-top: 6px !important;
    overflow: hidden !important;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif !important;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion {
    padding: 10px 16px !important;
    border-bottom: 1px solid #f3f4f6 !important;
    transition: background 0.15s !important;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion:hover,
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion.selected { background: #f9fafb !important; }
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-title {
    font-size: 13px !important; font-weight: 600 !important; color: #111 !important;
}
/* Sale price — green */
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp ins .woocommerce-Price-amount {
    font-size: 14px !important; font-weight: 800 !important; color: #059669 !important;
}
/* Original price — gray strikethrough */
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp del .woocommerce-Price-amount {
    color: #9ca3af !important; font-weight: 400 !important; font-size: 12px !important;
}
/* Single price (no sale) */
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp > .woocommerce-Price-amount {
    font-size: 14px !important; font-weight: 800 !important; color: #059669 !important;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-si img {
    border-radius: 6px !important; border: 1px solid #e5e7eb !important;
    object-fit: contain !important; background: #fafafa !important;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st-breadcrumbs {
    font-size: 11px !important; color: #6b7280 !important;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion.dgwt-wcas-suggestion--more a {
    font-size: 13px !important; font-weight: 600 !important; color: #111 !important;
}
/* Section headings (CATEGORÍAS / PRODUCTOS) */
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st-product-cat,
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st-product {
    font-size: 10px !important; font-weight: 700 !important;
    color: #9ca3af !important; letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    padding: 10px 16px 6px !important;
}

/* Mobile: second row, gray background */
@media (max-width: 768px) {
    .sd-header__search--ajax {
        order: 10;
        flex: 0 0 100%;
        width: 100%;
        max-width: none;
        height: 42px;
    }
    .sd-header__search--ajax .dgwt-wcas-sf-wrapp {
        background: #F3F4F6 !important;
        border-color: transparent !important;
    }
    .sd-header__search--ajax .dgwt-wcas-sf-wrapp:focus-within {
        background: #fff !important;
        border-color: #ADADAD !important;
    }
    /* FiboSearch mobile overlay trigger — hide, we use our own bar */
    .dgwt-wcas-is-mobile .dgwt-wcas-overlay-trigger-btn,
    .dgwt-wcas-mobile-overlay { display: none !important; }
}

/* ═══════════════════════════════════════
   MINI CART DRAWER
   ═══════════════════════════════════════ */
/* ── MINI CART OVERLAY ── */
.sd-mc-overlay {
    position: fixed; inset: 0; z-index: 100001;
    background: rgba(0,0,0,0.5);
    opacity: 0; visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    backdrop-filter: blur(2px);
}
.sd-mc-overlay--visible { opacity: 1; visibility: visible; }

/* ── MINI CART DRAWER ── */
.sd-mc-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 100002;
    width: 400px; max-width: 100vw;
    background: #fff;
    display: flex; flex-direction: column;
    box-shadow: -8px 0 48px rgba(0,0,0,0.14);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
}
.sd-mc-drawer--open { transform: translateX(0); }

/* ── HEADER ── */
.sd-mc-drawer__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px;
    background: #111;
    flex-shrink: 0;
}
.sd-mc-drawer__title {
    display: flex; align-items: center; gap: 9px;
    font-size: 15px; font-weight: 700; color: #fff;
    font-family: var(--sd-font-head); letter-spacing: 0.01em;
}
.sd-mc-drawer__title svg { color: #C5FF3E; }
.sd-mc-drawer__close {
    background: rgba(255,255,255,0.1); border: none;
    color: #fff; cursor: pointer;
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.sd-mc-drawer__close:hover { background: rgba(255,255,255,0.2); }
/* Fix: cross-origin stylesheet sets width:0 on button > svg; override explicitly */
.sd-mc-drawer__close svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── BODY / SCROLL AREA ── */
.sd-mc-drawer__body {
    flex: 1; overflow-y: auto;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
}
.sd-mc-drawer__body::-webkit-scrollbar { width: 4px; }
.sd-mc-drawer__body::-webkit-scrollbar-track { background: transparent; }
.sd-mc-drawer__body::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 2px; }

/* ── LOADING ── */
.sd-mc-loading { display: flex; justify-content: center; padding: 48px 0; }
/* Optimistic add: item aparece con leve pulse mientras el servidor confirma */
.sd-mc-item--optimistic {
    animation: sd-mc-item-pulse 1.4s ease-in-out infinite;
}
.sd-mc-item--optimistic .sd-mc-item__remove--disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: default;
}
@keyframes sd-mc-item-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}
/* Optimistic remove: item se desvanece y colapsa */
.sd-mc-item--removing {
    overflow: hidden;
    animation: sd-mc-item-remove 220ms ease forwards;
    pointer-events: none;
}
@keyframes sd-mc-item-remove {
    0%   { opacity: 1; max-height: 120px; margin-bottom: 12px; }
    60%  { opacity: 0; max-height: 120px; }
    100% { opacity: 0; max-height: 0;     margin-bottom: 0; }
}
/* Optimistic UI: overlay semitransparente sobre el contenido existente */
.sd-mc-loading--optimistic {
    position: absolute; inset: 0;
    background: rgba(255,255,255,0.75);
    z-index: 10;
    padding: 0;
    align-items: center;
}
.sd-mc-drawer__body { position: relative; }
.sd-mc-spinner {
    width: 28px; height: 28px;
    border: 3px solid #e5e7eb;
    border-top-color: #111;
    border-radius: 50%;
    animation: sd-spin 0.7s linear infinite;
}
@keyframes sd-spin { to { transform: rotate(360deg); } }

/* ── EMPTY STATE ── */
.sd-mc-empty {
    display: flex; flex-direction: column; align-items: center;
    gap: 16px; padding: 60px 24px; text-align: center;
}
.sd-mc-empty__icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: #f9fafb;
    display: flex; align-items: center; justify-content: center;
}
.sd-mc-empty p {
    color: #6b7280; font-size: 15px; margin: 0;
    line-height: 1.5;
}
.sd-mc-empty p strong { display: block; color: #111; font-size: 16px; margin-bottom: 4px; }
.sd-mc-empty__link {
    display: inline-block;
    font-size: 14px; font-weight: 700; color: #111;
    background: #C5FF3E;
    padding: 10px 24px; border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.15s;
}
.sd-mc-empty__link:hover { opacity: 0.85; color: #111; }

/* ── OFFICE UPSELL CARD ── */
.sd-mc-office-upsell {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 24px;
    background: #fff8f0;
    border-top: 1px solid #fed7aa;
    border-bottom: 1px solid #fed7aa;
}
.sd-mc-office-upsell__icon {
    flex-shrink: 0; width: 36px; height: 36px;
    background: #eb3c00; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}
.sd-mc-office-upsell__info { flex: 1; min-width: 0; }
.sd-mc-office-upsell__name { font-size: 13px; font-weight: 600; color: #111; line-height: 1.3; }
.sd-mc-office-upsell__desc { font-size: 11px; color: #6b7280; margin-top: 2px; }
.sd-mc-office-upsell__btn {
    flex-shrink: 0; padding: 7px 12px;
    background: #111; color: #fff;
    font-size: 12px; font-weight: 700;
    border: none; border-radius: 8px;
    cursor: pointer; white-space: nowrap;
    transition: background 0.15s;
}
.sd-mc-office-upsell__btn:hover { background: #333; }
.sd-mc-office-upsell__btn:disabled { opacity: 0.5; cursor: default; }
.sd-mc-office-upsell__added {
    font-size: 13px; font-weight: 600; color: #059669;
}

/* ── ITEMS LIST ── */
.sd-mc-items { padding: 8px 0; }
.sd-mc-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 16px 24px;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.12s;
}
.sd-mc-item:last-child { border-bottom: none; }
.sd-mc-item:hover { background: #fafafa; }
.sd-mc-item--addon { background: #fdf4f0; }
.sd-mc-item--addon:hover { background: #faeae3; }
/* Icono del addon: mismo tamaño que .sd-mc-item__img (72×72) para alinear
   el resto de la fila — nombre, qty, precio y × — con el producto principal. */
.sd-mc-item__addon-icon {
    flex-shrink: 0;
    width: 72px; height: 72px;
    background: #eb3c00;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    display: flex; align-items: center; justify-content: center;
}
.sd-mc-item__addon-icon svg { width: 34px; height: 34px; }
.sd-mc-item__img {
    width: 72px; height: 72px; object-fit: contain;
    border-radius: 10px; border: 1px solid #e5e7eb;
    flex-shrink: 0; background: #f9fafb;
    padding: 4px;
}
.sd-mc-item__info { flex: 1; min-width: 0; }
.sd-mc-item__name {
    font-size: 13px; font-weight: 600; color: #111;
    line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 6px;
}
.sd-mc-item__meta {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px;
}
.sd-mc-item__price {
    font-size: 15px; font-weight: 800; color: #111;
}
.sd-mc-item__qty {
    display: flex; align-items: center; gap: 0;
    border: 1px solid #e5e7eb; border-radius: 8px;
    overflow: hidden; flex-shrink: 0;
}
.sd-mc-item__qty-btn {
    background: none; border: none; cursor: pointer; padding: 0;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 600; color: #374151;
    transition: background 0.12s, color 0.12s;
    flex-shrink: 0;
}
.sd-mc-item__qty-btn:hover:not(:disabled) { background: #f3f4f6; color: #111; }
.sd-mc-item__qty-btn:disabled { opacity: 0.4; cursor: default; }
.sd-mc-item__qty-count {
    min-width: 28px; text-align: center;
    font-size: 14px; font-weight: 700; color: #111;
    border-left: 1px solid #e5e7eb; border-right: 1px solid #e5e7eb;
    line-height: 28px;
}
.sd-mc-item__remove {
    background: none; border: none;
    width: 28px; height: 28px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: #d1d5db; cursor: pointer; padding: 0; flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}
.sd-mc-item__remove:hover { background: #fee2e2; color: #ef4444; }
.sd-mc-item__remove svg { pointer-events: none; }

/* ── TIMER (stock reservation, fuera de WC fragments) ── */
.sd-mc-timer {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 24px; background: #fefce8; border-bottom: 1px solid #fde68a;
    font-size: 13px; color: #92400e;
}
.sd-mc-timer strong { font-size: 14px; color: #b45309; font-variant-numeric: tabular-nums; }

/* ── FOOTER ── */
.sd-mc-drawer__footer {
    padding: 20px 24px 24px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    background: #fff;
}
.sd-mc-total {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}
.sd-mc-total span { font-size: 13px; color: #6b7280; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.sd-mc-total > strong { font-size: 22px; font-weight: 900; color: #111; }
.sd-mc-total__installments { font-size: 11px; color: #6b7280; margin-top: 2px; }
.sd-mc-total__installments strong { font-size: 11px; color: #111; font-weight: 700; }
.sd-mc-total .sd-mp-badge-sm { background: #009ee3; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 3px; letter-spacing: .1px; white-space: nowrap; }
.sd-mc-btn-checkout {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%;
    padding: 15px 20px; text-align: center;
    background: #C5FF3E; color: #111;
    font-size: 15px; font-weight: 800;
    border-radius: 12px; text-decoration: none;
    transition: opacity 0.18s, transform 0.1s;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
    border: none; cursor: pointer;
}
.sd-mc-btn-checkout:hover { opacity: 0.88; color: #111; transform: translateY(-1px); }
.sd-mc-btn-checkout:active { transform: translateY(0); }
.sd-mc-btn-continue {
    display: block; width: 100%;
    padding: 11px; text-align: center;
    background: none; border: none;
    font-size: 13px; font-weight: 600; color: #9ca3af;
    cursor: pointer;
    transition: color 0.15s;
    text-decoration: none;
}
.sd-mc-btn-continue:hover { color: #111; }
