/* ============================================================
   DISTRISAL — Main CSS
   ============================================================ */

/* ── Variables ───────────────────────────────────────────── */
:root {
    --navy:        #021635;
    --navy-dark:   #12203A;
    --orange:      #CC5500;
    --orange-dark: #B34A00;
    --white:       #FFFFFF;
    --light:       #F5F5F5;
    --gray:        #666666;
    --gray-light:  #EEEEEE;
    --dark:        #1A1A1A;

    --font-main: 'DM Sans', system-ui, -apple-system, sans-serif;
    --radius:    6px;
    --shadow:    0 2px 12px rgba(0,0,0,.12);
    --container: 1280px;
    --transition: .3s ease;
}

/* ── Reset base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    font-size: 15px;
    color: var(--dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Container ───────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
}

/* ── Botones ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .5px;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn--primary {
    background: var(--orange);
    color: var(--white);
}
.btn--primary:hover {
    background: var(--orange-dark);
}
.btn--outline {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}
.btn--outline:hover {
    background: var(--white);
    color: var(--navy);
}

/* ═══════════════════════════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════════════════════════ */
.topbar {
    background: #042C69;
    color: var(--white);
    font-size: 13px;
    padding: 8px 0;
}
.topbar__inner {
    display: flex;
    justify-content: center;
    align-items: center;
}
.topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.topbar__item svg { opacity: .85; }

/* ═══════════════════════════════════════════════════════════
   SITE HEADER
   ═══════════════════════════════════════════════════════════ */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 62px;
    /* Anula el max-width del .container para usar todo el ancho */
    max-width: none;
    padding-inline: 40px;
}

/* Logo */
.site-header__logo {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
}
.site-header__logo img,
.site-header__logo .custom-logo,
.site-header__logo-img {
    height: 80px;
    width: auto;
    display: block;
    max-width: none;
}
.site-header__logo-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1;
}
.site-header__logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -1px;
}

/* Nav */
.site-nav { flex: 1; }
.site-nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
}
.site-nav__list li a {
    display: block;
    padding: 6px 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    border-radius: 4px;
    white-space: nowrap;
    transition: color var(--transition), background var(--transition);
}
.site-nav__list li a:hover,
.site-nav__list li.current-menu-item a {
    color: var(--orange);
}
.site-nav__list li.highlight > a:hover {
    background: var(--orange);
    color: var(--white);
}

/* ── Dropdown submenu ───────────────────────────────────── */
.site-nav__list li.menu-item-has-children {
    position: relative;
}

/* Chevron indicador */
.site-nav__list li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    margin-left: 6px;
    vertical-align: middle;
    transition: transform var(--transition);
}
.site-nav__list li.menu-item-has-children:hover > a::after {
    transform: rotate(-135deg) translateY(-2px);
}

.site-nav__list .sub-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0,0,0,.14);
    border: 1px solid var(--gray-light);
    padding: 16px 0 8px; /* padding-top actúa como gap visual sin romper el hover */
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    pointer-events: none;
    list-style: none;
}

/* Mostrar en hover o focus-within */
.site-nav__list li.menu-item-has-children:hover > .sub-menu,
.site-nav__list li.menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.site-nav__list .sub-menu li a {
    display: block;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    border-radius: 0;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
}
.site-nav__list .sub-menu li a:hover {
    background: var(--light);
    color: var(--orange);
}

/* Mobile: submenu en columna dentro del menú desplegable */
@media (max-width: 768px) {
    .site-nav__list li.menu-item-has-children > a::after { display: none; }
    .site-nav__list .sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        border-top: 1px solid var(--gray-light);
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        padding: 0;
        display: none;
    }
    .site-nav__list li.menu-item-has-children.is-open > .sub-menu {
        display: block;
    }
    .site-nav__list .sub-menu li a {
        padding: 11px 20px;
        font-size: 14px;
        color: var(--gray);
        border-bottom: 1px solid var(--gray-light);
    }
}

/* Acciones */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 62px;
    flex-shrink: 0;
}
/* Contenedor interno: cuenta + carrito (con su gap propio chico) */
.site-header__icons {
    display: flex;
    align-items: center;
    gap: 12px;
}
.site-header__search-wrap {
    display: flex;
    align-items: center;
}

/* Búsqueda */
.site-header__search {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1.5px solid #C8D0DC;
    border-radius: 4px;
    transition: border-color var(--transition);
    padding: 0 14px;
    width: 230px;
    height: 44px;
    gap: 8px;
}
.site-header__search:focus-within {
    border-color: var(--navy);
}
.site-header__search button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--navy);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: color var(--transition);
}
.site-header__search button:hover { color: var(--orange); }
.site-header__search-input {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 14px;
    width: 100%;
    outline: none;
    color: var(--dark);
}
.site-header__search-input::placeholder {
    color: #9AAABB;
}

/* Iconos cuenta/carrito */
.site-header__icon {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--navy);
    transition: color var(--transition);
    padding: 4px;
}
.site-header__icon:hover { color: var(--orange); }

.site-header__cart-count {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--orange);
    color: var(--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;
}

/* Hamburger (mobile) */
.site-header__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.site-header__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .25s ease, width .25s ease;
    transform-origin: center;
}

/* Animación → X */
.site-header__hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.site-header__hamburger.is-open span:nth-child(2) {
    opacity: 0;
    width: 0;
}
.site-header__hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════
   HERO SWIPER
   ═══════════════════════════════════════════════════════════ */
.hero-swiper {
    position: relative;
    width: 100%;
}

.hero-swiper__swiper {
    width: 100%;
    height: clamp(500px, 56vw, 800px);
}

.hero-swiper__slide {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(400px, 47vw, 677px);
    width: 100%;
}

/* Imagen de fondo */
.hero-swiper__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* Overlay oscuro */
.hero-swiper__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

/* Contenido del slide */
.hero-swiper__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 40px;
    max-width: 860px;
    width: 100%;
}
.hero-swiper__title {
    font-family: 'Geologica', var(--font-main);
    font-size: clamp(1.8rem, 2.8vw, 2.5rem);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0;
    text-shadow: 2px 2px 0 rgba(0,0,0,.25), 0 4px 24px rgba(0,0,0,.7);
    margin-bottom: 16px;
}
.hero-swiper__subtitle {
    font-size: clamp(1rem, 1.7vw, 1.5rem);
    font-weight: 400;
    opacity: .95;
    text-shadow: 1px 1px 0 rgba(0,0,0,.2), 0 2px 16px rgba(0,0,0,.65);
    margin-bottom: 24px;
    letter-spacing: 0;
}
.hero-swiper__btn {
    font-size: 14px;
    padding: 10px 24px;
    text-transform: none;
    letter-spacing: .3px;
    text-shadow: 2px 2px 0 rgba(0,0,0,.25), 0 4px 24px rgba(0,0,0,.7);
}

/* Logo de marca en el slide */
.hero-swiper__brand-logo {
    position: absolute;
    bottom: 28px;
    left: 32px;
    z-index: 2;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(4px);
    padding: 8px 14px;
    border-radius: var(--radius);
}
.hero-swiper__brand-logo img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Flechas de navegación */
.hero-swiper__arrow {
    width: 44px !important;
    height: 44px !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: opacity var(--transition) !important;
    cursor: pointer;
    overflow: visible !important;
}
.hero-swiper__arrow:hover {
    background: none !important;
    border-color: transparent !important;
    opacity: .65 !important;
}
/* Chevron 35×35: cuadrado 25×25 rotado 45° → ~35px en cada eje */
.hero-swiper__arrow::after {
    content: '' !important;
    display: block !important;
    width: 25px !important;
    height: 25px !important;
    border-top: 3px solid var(--orange) !important;
    border-right: 3px solid var(--orange) !important;
    font-family: none !important;
    font-size: 0 !important;
    flex-shrink: 0 !important;
}
.hero-swiper__arrow--prev::after {
    transform: rotate(-135deg) !important;
}
.hero-swiper__arrow--next::after {
    transform: rotate(45deg) !important;
}
.hero-swiper__arrow--prev { left: 40px !important; }
.hero-swiper__arrow--next { right: 40px !important; }

/* Paginación (bullets) */
.hero-swiper__pagination {
    bottom: 20px !important;
}
.hero-swiper__pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--navy);
    opacity: 1;
    transition: background var(--transition);
}
.hero-swiper__pagination .swiper-pagination-bullet-active {
    background: var(--orange);
}

/* ═══════════════════════════════════════════════════════════
   BENEFICIOS
   ═══════════════════════════════════════════════════════════ */
.beneficios {
    background: #C96721;
    color: var(--white);
    padding: 18px 0;
}
.beneficios__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.beneficios__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    min-width: 200px;
    justify-content: center;
}
.beneficios__item svg { flex-shrink: 0; opacity: .9; }

/* Separadores entre items */
.beneficios__item + .beneficios__item {
    border-left: 1px solid rgba(255,255,255,.35);
    padding-left: 16px;
}

/* ═══════════════════════════════════════════════════════════
   SECTION HEADER (compartido entre bloques)
   ═══════════════════════════════════════════════════════════ */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.15;
}
.section-subtitle {
    margin-top: 10px;
    font-size: 1rem;
    color: var(--gray);
    max-width: 560px;
    margin-inline: auto;
}

/* ═══════════════════════════════════════════════════════════
   CATEGORÍAS — Bento Grid
   ═══════════════════════════════════════════════════════════ */
.categorias {
    padding: 64px 0;
    background: var(--white);
}

/* Bento grid: 3 columnas, 2 filas */
.categorias__grid {
    display: grid;
    grid-template-columns: 46% 1fr 1fr;
    grid-template-rows: 340px 340px;
    gap: 16px;
}

/* Posiciones específicas del bento */
.categorias__card--1 { grid-column: 1; grid-row: 1 / 3; }   /* grande izquierda */
.categorias__card--2 { grid-column: 2 / 4; grid-row: 1; }   /* ancha arriba derecha */
.categorias__card--3 { grid-column: 2; grid-row: 2; }        /* pequeña abajo-izq */
.categorias__card--4 { grid-column: 3; grid-row: 2; }        /* pequeña abajo-der */

/* Card base */
.categorias__card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid var(--orange);
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}
.categorias__card:hover {
    transform: scale(1.012);
    box-shadow: 0 12px 40px rgba(232, 101, 26, .25);
}

/* Imagen de fondo */
.categorias__card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    transition: transform .5s ease;
}
.categorias__card:hover .categorias__card-bg {
    transform: scale(1.05);
}

/* Fallback cuando no hay imagen en la categoría WC */
.categorias__card-bg--placeholder {
    position: absolute;
    inset: 0;
    background: var(--navy);
    z-index: 0;
}

/* Overlay degradado en la parte inferior */
.categorias__card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 30%,
        rgba(0,0,0,.65) 100%
    );
    z-index: 1;
}

/* Contenido: nombre + botón en la parte inferior */
.categorias__card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 20px 22px 22px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

/* Cards más cuadradas (3 y 4): nombre arriba, botón debajo, alineados a la derecha */
.categorias__card--3 .categorias__card-content,
.categorias__card--4 .categorias__card-content {
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 10px;
    text-align: right;
}
.categorias__card--3 .categorias__card-name,
.categorias__card--4 .categorias__card-name {
    text-align: right;
}

.categorias__card-name {
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
    flex: 1;
}

.categorias__card-btn {
    flex-shrink: 0;
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background var(--transition);
    white-space: nowrap;
}
.categorias__card:hover .categorias__card-btn {
    background: var(--orange-dark);
}

/* ═══════════════════════════════════════════════════════════
   PRODUCTOS EN OFERTA
   ═══════════════════════════════════════════════════════════ */
.productos-oferta {
    padding: 64px 0;
    background: var(--light);
}

.productos-oferta__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

/* Tarjeta de producto (reutilizable) */
.producto-card {
    position: relative;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--gray-light);
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
}
.producto-card:hover {
    box-shadow: 0 8px 28px rgba(2,22,53,.14);
    transform: translateY(-4px);
}

/* Link invisible sobre toda la card */
.producto-card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.producto-card__img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f9f9f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.producto-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform .4s ease;
}
.producto-card:hover .producto-card__img-wrap img {
    transform: scale(1.05);
}
.producto-card__img-placeholder {
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Badges sobre la imagen */
.producto-card__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}
.producto-card__badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    line-height: 1.5;
}
.producto-card__badge--oferta {
    background: var(--orange);
    color: var(--white);
}
.producto-card__badge--descuento {
    background: var(--navy);
    color: var(--white);
}

/* Cuerpo de la card */
.producto-card__body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.producto-card__nombre {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.producto-card__precios {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}
.producto-card__precio-normal,
.producto-card__precio-normal .woocommerce-Price-amount {
    font-size: 13px;
    color: var(--gray);
    text-decoration: line-through;
}
.producto-card__precio-oferta,
.producto-card__precio-oferta .woocommerce-Price-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--orange);
    letter-spacing: -0.5px;
}
/* Reset del wc-price heredado */
.producto-card__precio-normal .woocommerce-Price-currencySymbol,
.producto-card__precio-oferta .woocommerce-Price-currencySymbol {
    font-size: inherit;
    font-weight: inherit;
}
.producto-card__btn {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 7px 0;
    border-top: 1px solid var(--gray-light);
    margin-top: 4px;
    transition: color var(--transition);
    position: relative;
    z-index: 2;
}
.producto-card:hover .producto-card__btn {
    color: var(--orange);
}

/* Footer del bloque */
.productos-oferta__footer {
    text-align: center;
    margin-top: 40px;
}

/* Botón outline navy (variante) */
.btn--outline-navy {
    background: transparent;
    border: 2px solid var(--navy);
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}
.btn--outline-navy:hover {
    background: var(--navy);
    color: var(--white);
}

/* ═══════════════════════════════════════════════════════════
   PRODUCTO DESTACADO
   ═══════════════════════════════════════════════════════════ */
.producto-destacado {
    background: var(--navy);
    padding: 48px 0 56px;
    overflow: hidden;
}

/* Header row: título izq + botón der */
.producto-destacado__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
}
.producto-destacado__titulo {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

/* Botón outline blanco del header */
.pd-btn-ver-mas {
    flex-shrink: 0;
    display: inline-block;
    padding: 10px 22px;
    border: 2px solid var(--white);
    border-radius: 50px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
.pd-btn-ver-mas:hover {
    background: var(--white);
    color: var(--navy);
}

/* Body: imagen marca + slider */
.producto-destacado__body {
    display: flex;
    align-items: stretch;
    gap: 24px;
}

/* ── Imagen marca (izquierda) ── */
.pd-marca {
    flex-shrink: 0;
    width: 280px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    align-self: stretch;
}
.pd-marca__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
    min-height: 420px;
}
.pd-marca__placeholder {
    width: 100%;
    min-height: 420px;
    background: rgba(255,255,255,.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.3);
}
.pd-marca__badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--orange);
    padding: 14px 20px;
    border-radius: 0 0 12px 12px;
}
/* Cuando hay logo, sin fondo naranja — el logo va sobre la imagen */
.pd-marca__badge--logo {
    background: transparent;
    padding: 16px 20px;
}
.pd-marca__badge span {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.pd-marca__logo {
    display: block;
    max-height: 52px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* ── Slider (derecha) ── */
.pd-slider-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pd-swiper {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/* Flechas custom */
.pd-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity var(--transition);
    z-index: 10;
}
.pd-arrow:hover { opacity: .7; }
.pd-arrow.swiper-button-disabled { opacity: .25; cursor: default; }

/* ── Tarjeta de producto ── */
.pd-slide {
    height: auto !important;
}
.pd-card {
    position: relative;
    background: var(--white);
    border: 1.5px solid var(--orange);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow var(--transition), transform var(--transition);
}
.pd-card:hover {
    box-shadow: 0 8px 28px rgba(204,85,0,.18);
}

.pd-card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
    cursor: pointer;
}
.pd-card:has(.pd-card__link) { cursor: pointer; }

.pd-card__img-wrap {
    aspect-ratio: 1 / 1;
    background: var(--white);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
}
.pd-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .4s ease;
}
.pd-card:hover .pd-card__img-wrap img { transform: scale(1.04); }
.pd-card__img-placeholder {
    color: #ccc;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-card__body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    flex: 1;
    border-top: 1px solid var(--gray-light);
}
.pd-card__nombre {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pd-card__categoria {
    font-size: 12px;
    color: var(--gray);
    line-height: 1.4;
}

/* Pricing block */
.pd-card__pricing {
    margin: 6px 0 22px;
    width: 100%;
}
/* Margen fijo de 22px entre los precios y el siguiente elemento (qty o botón) */
.pd-card__pricing + .pd-card__qty-wrap,
.pd-card__pricing + .pd-card__btn {
    margin-top: 0;
}

/* Empuja el bloque inferior al fondo para alinear botones Comprar */
.pd-card__body:has(.pd-card__pricing) .pd-card__pricing { margin-top: auto; }
.pd-card__body:not(:has(.pd-card__pricing)) > .pd-card__btn { margin-top: auto; }
.pd-card__precio {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.1;
}
/* Custom (legacy) spans — quedan por compatibilidad */
.pd-card__precio-old {
    font-size: 14px;
    font-weight: 300;
    color: #777777;
    text-decoration: line-through;
    letter-spacing: 0;
}
.pd-card__precio-now {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
}

/* Estilo cuando viene de WooCommerce get_price_html() — del + ins en línea */
.pd-card__precio .woocommerce-Price-amount { color: inherit; }
.pd-card__precio del {
    display: inline;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 300;
    color: #777777;
    text-decoration: line-through;
    letter-spacing: 0;
}
.pd-card__precio del .woocommerce-Price-amount { color: #777777; }
.pd-card__precio ins {
    display: inline;
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 700;
    color: #000000;
}
.pd-card__precio ins .woocommerce-Price-amount { color: #000000; }

.pd-card__precio-neto {
    font-family: var(--font-main);
    font-size: 10px;
    font-weight: 300;
    color: #797979;
    margin-top: 4px;
    line-height: 1.4;
    text-align: center;
}

/* Selector cantidad */
.pd-card__qty-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #B8BBC0;
    border-radius: var(--radius);
    overflow: hidden;
    width: 158px;
    height: 30px;
    margin-inline: auto;
    position: relative;
    z-index: 2;
    margin-top: 4px;
}
.pd-qty__btn {
    flex-shrink: 0;
    width: 40px;
    height: 100%;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 400;
    color: #B8BBC0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    line-height: 1;
}
.pd-qty__btn:hover { background: var(--gray-light); }
.pd-qty__input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: none;
    border-left: 1.5px solid #B8BBC0;
    border-right: 1.5px solid #B8BBC0;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #B8BBC0;
    font-family: var(--font-main);
    -moz-appearance: textfield;
    appearance: textfield;
    background: var(--white);
}
.pd-qty__input::-webkit-inner-spin-button,
.pd-qty__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Botón Comprar */
.pd-card__btn {
    display: block;
    width: 100%;
    background: var(--orange);
    color: var(--white);
    text-align: center;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    margin-top: 4px;
    transition: background var(--transition);
    position: relative;
    z-index: 2;
    cursor: pointer;
    border: none;
    line-height: 1.3;
    letter-spacing: .2px;
}
.pd-card__btn:hover,
.pd-card__btn--comprar:hover { background: var(--orange-dark); color: var(--white); }
.pd-card__btn--disabled {
    background: var(--gray-light);
    color: var(--gray);
    cursor: default;
    pointer-events: none;
}
.pd-card__btn.is-loading { opacity: .7; pointer-events: none; }

/* Badge oferta sobre la imagen del pd-card */
.pd-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-block;
    width: auto;
    background: #042C69;
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 30px;
    letter-spacing: .3px;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   MÁS VENDIDOS — Slider
   ═══════════════════════════════════════════════════════════ */
.mas-vendidos {
    padding: 64px 0;
    background: var(--white);
}

/* Título */
.mas-vendidos__titulo {
    text-align: center;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 900;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 36px;
}
.mas-vendidos__titulo span { color: var(--orange); }

/* Layout: [brand card] + [slider area] */
.mas-vendidos__layout {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

/* ── Tarjeta de marca ── */
.mv-brand-card {
    position: relative;
    flex-shrink: 0;
    width: 220px;
    border-radius: 12px;
    overflow: hidden;
    display: none; /* hidden until .has-brand activates it */
}
.mas-vendidos__layout.has-brand .mv-brand-card {
    display: block;
}
.mv-brand-card__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mv-brand-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(2,22,53,.35) 0%, rgba(2,22,53,.75) 100%);
}
.mv-brand-card__logo {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: rgba(2, 22, 53, 0.75);
    padding: 14px 18px;
    backdrop-filter: blur(2px);
}
.mv-brand-card__logo img {
    max-width: 130px;
    max-height: 36px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* ── Área slider ── */
.mas-vendidos__slider-area {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mv-swiper {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.mv-slide {
    height: auto !important;
}

/* Flechas */
.mv-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: var(--orange);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color var(--transition), opacity var(--transition);
}
.mv-arrow:hover { opacity: .7; }
.mv-arrow.swiper-button-disabled { opacity: .2; cursor: default; }
/* Ocultar flechas cuando Swiper detecta que no hay overflow (watchOverflow) */
.mv-arrow.swiper-button-lock,
.pd-arrow.swiper-button-lock,
.po-arrow.swiper-button-lock { display: none !important; }

/* ── Card ── */
.mv-card {
    position: relative;
    background: var(--white);
    border: 1.5px solid var(--orange);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow var(--transition), transform var(--transition);
}
.mv-card:hover {
    box-shadow: 0 8px 28px rgba(204,85,0,.18);
}

.mv-card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.mv-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-block;
    width: auto;
    background: #042C69;
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 30px;
    letter-spacing: .3px;
    white-space: nowrap;
}
/* Modificadores: solo cambian el COLOR, las dimensiones son dinámicas (paddings + auto width) */
.mv-card__badge--discount { background: #D9534F; }
.mv-card__badge--stock,
.pd-card__badge--stock    { background: #D20600; }

/* Imagen */
.mv-card__img-wrap {
    aspect-ratio: 4 / 3;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    overflow: hidden;
}
.mv-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .4s ease;
}
.mv-card:hover .mv-card__img-wrap img { transform: scale(1.04); }

/* Body */
.mv-card__body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
    flex: 1;
    border-top: 1px solid var(--gray-light);
}

.mv-card__nombre {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mv-card__categoria {
    font-size: 12px;
    color: var(--gray);
    display: block;
    line-height: 1.4;
}

/* Precios */
.mv-card__pricing {
    margin: 4px 0 2px;
    width: 100%;
    text-align: center;
}

/* Empuja el "bloque inferior" (pricing/qty/btn) al fondo de la card
   para alinear los botones Comprar entre todas las cards del slider. */
.mv-card__body:has(.mv-card__pricing) .mv-card__pricing { margin-top: auto; }
/* Sin precio (ej: no logueado, solo botón): empuja el botón al fondo */
.mv-card__body:not(:has(.mv-card__pricing)):not(:has(.mv-card__precio)) > .mv-card__btn { margin-top: auto; }
/* Con precio directo (ej: Productos en Oferta): empuja el precio al fondo
   y deja 22px fijos entre el precio y la zona de acción (selector o botón). */
.mv-card__body:not(:has(.mv-card__pricing)) > .mv-card__precio { margin-top: auto; }
.mv-card__body:not(:has(.mv-card__pricing)) > .mv-card__precio + .mv-card__qty-wrap,
.mv-card__body:not(:has(.mv-card__pricing)) > .mv-card__precio + .mv-card__btn { margin-top: 22px; }
.mv-card__precio {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    flex-wrap: wrap;
    line-height: 1;
}
.mv-card__precio .woocommerce-Price-amount { color: inherit; }
.mv-card__precio ins {
    display: inline;
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 700;
    color: #000000;
}
.mv-card__precio ins .woocommerce-Price-amount { color: #000000; }
.mv-card__precio del {
    display: inline;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 300;
    color: #777777;
    text-decoration: line-through;
}
.mv-card__precio del .woocommerce-Price-amount { color: #777777; }

.mv-card__precio-neto {
    font-family: var(--font-main);
    font-size: 10px;
    font-weight: 300;
    color: #797979;
    margin-top: 4px;
    line-height: 1.4;
}
.mv-card__precio-neto .woocommerce-Price-amount { color: #797979; }

/* Selector de cantidad — compacto y centrado */
.mv-card__qty-wrap {
    display: inline-flex;
    align-items: stretch;
    border: 1.5px solid #B8BBC0;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    z-index: 2;
    margin-top: 6px;
    align-self: center;
    width: 158px;
    height: 30px;
}
.mv-qty__btn {
    flex-shrink: 0;
    width: 40px;
    height: 100%;
    background: var(--white);
    border: none;
    font-size: 17px;
    font-weight: 400;
    color: #B8BBC0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    line-height: 1;
    padding: 0;
}
.mv-qty__btn:hover { background: var(--gray-light); }
.mv-qty__input {
    flex: 1;
    width: auto;
    min-width: 0;
    height: 100%;
    border: none;
    border-left: 1.5px solid #B8BBC0;
    border-right: 1.5px solid #B8BBC0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #B8BBC0;
    font-family: var(--font-main);
    -moz-appearance: textfield;
    appearance: textfield;
    background: var(--white);
    padding: 0;
}
.mv-qty__input::-webkit-inner-spin-button,
.mv-qty__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Botón Comprar */
.mv-card__btn {
    display: block;
    width: 100%;
    background: var(--orange);
    color: var(--white);
    text-align: center;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    margin-top: 4px;
    transition: background var(--transition);
    position: relative;
    z-index: 2;
    line-height: 1.3;
    border: none;
    cursor: pointer;
    letter-spacing: .2px;
}
.mv-card__btn.mv-card__btn--comprar {
    width: 214px;
    margin-inline: auto;
    display: block;
}
.mv-card__btn:hover,
.mv-card__btn--comprar:hover { background: var(--orange-dark); color: var(--white); }
.mv-card__btn--disabled {
    background: var(--gray-light);
    color: var(--gray);
    cursor: default;
    pointer-events: none;
}
.mv-card__btn.is-loading { opacity: .7; pointer-events: none; }

/* Footer */
.mas-vendidos__footer {
    text-align: center;
    margin-top: 40px;
}

/* ═══════════════════════════════════════════════════════════
   MARCAS (scroll infinito)
   ═══════════════════════════════════════════════════════════ */
.marcas {
    padding: 48px 0;
    background: var(--white);
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
    overflow: hidden;
}

.marcas__track-wrapper {
    position: relative;
    overflow: hidden;
    /* Fade en los bordes */
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
}

.marcas__track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    animation: marcas-scroll 30s linear infinite;
}
.marcas__track:hover {
    animation-play-state: paused;
}

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

.marcas__item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 344px;
    height: 85px;
}
.marcas__item img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    transition: opacity var(--transition);
}
.marcas__item:hover img {
    opacity: .8;
}
.marcas__item-link {
    display: flex;
    align-items: center;
}
.marcas__item-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gray);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--navy);
    color: var(--white);
}

/* Parte principal (4 columnas) */
.footer__main {
    padding: 52px 0 40px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 160px 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Col 1: Logo — verticalmente centrado respecto a las otras columnas */
.footer__col--brand {
    display: flex;
    justify-content: center;
    align-self: center;
}
.footer__logo-circle {
    width: 120px;
    height: 120px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    padding: 0;
}
.footer__logo-circle img,
.footer__logo-circle .custom-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform: scale(1.8);
}
.footer__logo-text {
    font-weight: 800;
    font-size: 14px;
    color: var(--navy);
    text-align: center;
}

/* Título de columna */
.footer__col-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* Lista de contacto */
.footer__contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.footer__contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--white);
}
.footer__contact-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: .7;
}
.footer__contact-list a {
    color: inherit;
    transition: color var(--transition);
}
.footer__contact-list a:hover { color: var(--orange); }

/* Bloque de emails apilados (Compras + RRHH) */
.footer__emails {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.footer__email-row { display: block; }

/* El icono del sobre se centra verticalmente sobre los dos mails */
.footer__contact-list li:has(.footer__emails) {
    align-items: center;
}
.footer__contact-list li:has(.footer__emails) svg {
    margin-top: 0;
}

/* Lista de información */
.footer__info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer__info-list li {
    font-size: 13px;
}
.footer__info-list a {
    color: var(--white);
    transition: color var(--transition);
}
.footer__info-list a:hover { color: var(--orange); }

/* Redes sociales */
.footer__col--redes {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.footer__social {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}
.footer__social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid var(--white);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition);
    flex-shrink: 0;
}
.footer__social-btn:hover {
    background: var(--white);
    color: var(--navy);
}

/* AFIP */
.footer__afip img {
    max-height: 60px;
    width: auto;
    border-radius: 4px;
}

/* Barra inferior copyright */
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 16px 0;
    text-align: center;
}
.footer__bottom p {
    font-size: 12px;
    color: var(--white);
}
.footer__alora-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.footer__alora-link:hover { color: var(--orange); }
.footer__alora-heart {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* ── Tablet grande (≤ 1200px) ────────────────────────────── */
@media (max-width: 1200px) {
    .site-header__inner { gap: 12px; padding-inline: 28px; }
    .site-nav__list li a { font-size: 14px; padding: 6px 7px; }
    .site-header__search { width: 190px; }

    .footer__grid { grid-template-columns: 130px 1fr 1fr 1fr; gap: 28px; }
}

/* ── Tablet (≤ 1024px) ───────────────────────────────────── */
@media (max-width: 1024px) {
    /* Header */
    .site-header__inner { gap: 10px; padding-block: 16px; padding-inline: 20px; }
    .site-header__logo-img,
    .site-header__logo img,
    .site-header__logo .custom-logo { height: 60px; }
    .site-nav__list li a { font-size: 13px; padding: 6px 6px; }
    .site-nav__list { gap: 2px; }
    .site-header__search { width: 160px; height: 38px; }

    /* Hero */
    .hero-swiper__content { padding: 0 24px 56px 48px; }
    .hero-swiper__arrow--prev { left: 16px !important; }
    .hero-swiper__arrow--next { right: 16px !important; }

    /* Categorías */
    .categorias__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 280px 220px 220px;
    }
    .categorias__card--1 { grid-column: 1 / 3; grid-row: 1; }
    .categorias__card--2 { grid-column: 1 / 3; grid-row: 2; }
    .categorias__card--3 { grid-column: 1;     grid-row: 3; }
    .categorias__card--4 { grid-column: 2;     grid-row: 3; }

    /* Producto Destacado */
    .pd-marca { width: 220px; }
    .pd-marca__img { min-height: 340px; }
    .pd-marca__placeholder { min-height: 340px; }

    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px 28px;
    }
    .footer__col--brand { grid-column: 1 / 3; justify-content: flex-start; }
}

/* ── Mobile (≤ 768px) ────────────────────────────────────── */
@media (max-width: 768px) {
    /* Header */
    .site-header__inner {
        gap: 0;
        padding-block: 12px;
        padding-inline: 16px;
        position: relative;
    }
    .site-header__logo-img,
    .site-header__logo img,
    .site-header__logo .custom-logo { height: 44px; }
    .site-header__actions {
        margin-left: auto;
        gap: 8px;
    }
    .site-header__hamburger { display: flex; }
    .site-header__search { display: none; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        z-index: 999;
        padding: 12px 20px 20px;
    }
    .site-nav.is-open { display: block; }
    .site-nav__list {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }
    .site-nav__list li { width: 100%; }
    .site-nav__list li a {
        font-size: 15px;
        padding: 13px 8px;
        border-bottom: 1px solid var(--gray-light);
    }

    /* Hero */
    .hero-swiper__swiper { height: clamp(260px, 60vw, 440px); }
    .hero-swiper__slide  { height: clamp(260px, 60vw, 440px); }
    .hero-swiper__content { padding: 0 20px; max-width: 100%; }
    .hero-swiper__title { font-size: clamp(1.5rem, 7vw, 2.2rem); }
    .hero-swiper__subtitle { font-size: .95rem; margin-bottom: 20px; }
    .hero-swiper__arrow { display: none !important; }
    .hero-swiper__brand-logo { bottom: 12px; left: 12px; }

    /* Beneficios */
    .beneficios { padding: 0; }
    .beneficios__inner { flex-direction: column; gap: 0; }
    .beneficios__item {
        min-width: unset;
        width: 100%;
        justify-content: flex-start;
        padding: 14px 20px;
        font-size: 14px;
    }
    .beneficios__item + .beneficios__item {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,.2);
        padding-left: 20px;
        padding-top: 14px;
    }

    /* Section headers */
    .section-header { margin-bottom: 24px; }
    .section-title { font-size: 1.5rem; }

    /* Categorías */
    .categorias { padding: 36px 0; }
    .categorias__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 180px 150px 130px;
        gap: 10px;
    }
    .categorias__card--1 { grid-column: 1 / 3; grid-row: 1; }
    .categorias__card--2 { grid-column: 1 / 3; grid-row: 2; }
    .categorias__card--3 { grid-column: 1;     grid-row: 3; }
    .categorias__card--4 { grid-column: 2;     grid-row: 3; }
    .categorias__card-name { font-size: .95rem; }
    .categorias__card-btn  { font-size: 11px; padding: 6px 10px; }

    /* Productos en Oferta */
    .productos-oferta { padding: 36px 0; }
    .productos-oferta__footer { margin-top: 24px; }

    /* Producto Destacado */
    .producto-destacado { padding: 32px 0 40px; }
    .producto-destacado__body { flex-direction: column; }
    .producto-destacado__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }
    .pd-marca { width: 100%; }
    .pd-marca__img { min-height: 200px; max-height: 260px; }
    .pd-marca__placeholder { min-height: 200px; }
    .pd-slider-wrap { gap: 0; }
    .pd-arrow { display: none; }

    /* Más Vendidos */
    .mas-vendidos { padding: 36px 0; }
    .mas-vendidos__titulo { font-size: 1.25rem; margin-bottom: 20px; }
    .mv-brand-card { display: none !important; } /* ocultar brand card en mobile */
    .mv-arrow { width: 28px; height: 28px; }
    .mas-vendidos__footer,
    .productos-oferta__footer { margin-top: 24px; }
    .mv-card__btn { padding: 11px 12px; font-size: 13px; }
    .mv-qty__btn { width: 34px; height: 34px; }
    .mv-qty__input { height: 34px; font-size: 14px; }

    /* Marcas */
    .marcas { padding: 28px 0; }
    .marcas__track { gap: 20px; }
    .marcas__item { width: 130px; height: 34px; }

    /* Footer */
    .footer__main { padding: 36px 0 24px; }
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer__col--brand {
        grid-column: 1;
        justify-content: flex-start;
    }
    .footer__col--redes {
        align-items: flex-start;
        text-align: left;
    }
    .footer__social { justify-content: flex-start; }
    .footer__logo-circle { width: 100px; height: 100px; }
}

/* ═══════════════════════════════════════════════════════════
   CART DRAWER
   ═══════════════════════════════════════════════════════════ */

/* Botón "Agregar al carrito" — variantes del mv-card__btn */
.mv-card__btn.js-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
}
.mv-card__btn.js-add-to-cart:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.mv-card__btn.js-add-to-cart.is-loading {
    opacity: .7;
    pointer-events: none;
}
.mv-card__btn.js-add-to-cart.is-loading::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: cart-spin .6s linear infinite;
    flex-shrink: 0;
}
@keyframes cart-spin {
    to { transform: rotate(360deg); }
}
.mv-card__btn--disabled {
    display: block;
    width: 100%;
    background: var(--gray-light);
    color: var(--gray);
    text-align: center;
    padding: 13px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    margin-top: auto;
    cursor: not-allowed;
    border: none;
}

/* Drawer completo */
body.cart-drawer-open { overflow: hidden; }

.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
}
.cart-drawer.is-open { pointer-events: auto; }

/* Overlay */
.cart-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    opacity: 0;
    transition: opacity .3s ease;
}
.cart-drawer.is-open .cart-drawer__overlay { opacity: 1; }

/* Panel lateral */
.cart-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 100vw;
    background: var(--white);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    box-shadow: -4px 0 32px rgba(0,0,0,.18);
}
.cart-drawer.is-open .cart-drawer__panel { transform: translateX(0); }

/* Header */
.cart-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-light);
    flex-shrink: 0;
}
.cart-drawer__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
}
.cart-drawer__close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--gray-light);
    background: transparent;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), border-color var(--transition);
    flex-shrink: 0;
}
.cart-drawer__close:hover {
    background: var(--light);
    border-color: var(--navy);
}

/* Body — scrollable */
.cart-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}
.cart-drawer__empty {
    text-align: center;
    color: var(--gray);
    font-size: 15px;
    padding: 40px 0;
}

/* Lista de items */
.cart-drawer__items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
}
.cart-drawer__item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-light);
}
.cart-drawer__item:last-child { border-bottom: none; padding-bottom: 0; }
.cart-drawer__item-img {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid var(--gray-light);
    overflow: hidden;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-drawer__item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}
.cart-drawer__item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.cart-drawer__item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cart-drawer__item-meta {
    font-size: 13px;
    color: var(--gray);
    margin-top: 2px;
}

/* Footer: subtotal + botones */
.cart-drawer__footer {
    flex-shrink: 0;
    padding: 20px 24px 28px;
    border-top: 1px solid var(--gray-light);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cart-drawer__subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    padding-bottom: 4px;
}
.cart-drawer__subtotal span:last-child { color: var(--orange); }

.cart-drawer__btn {
    display: block;
    text-align: center;
    padding: 13px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.cart-drawer__btn--primary {
    background: var(--orange);
    color: var(--white);
    border: 2px solid var(--orange);
}
.cart-drawer__btn--primary:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    color: var(--white);
}
.cart-drawer__btn--outline {
    background: transparent;
    border: 2px solid var(--navy);
    color: var(--navy);
}
.cart-drawer__btn--outline:hover {
    background: var(--navy);
    color: var(--white);
}

/* Ocultar footer cuando el carrito está vacío */
.cart-drawer__footer.is-hidden { display: none; }

@media (max-width: 480px) {
    .cart-drawer__panel { width: 100vw; }
}

/* ============================================================
   LIVE SEARCH DROPDOWN
   ============================================================ */

.site-header__search { position: relative; }

.live-search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    min-width: 340px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 8px 28px rgba(0,0,0,.13);
    border: 1px solid #E8E8E8;
    z-index: 9999;
    overflow: hidden;
}
.live-search-dropdown.is-open { display: block; }

.live-search-dropdown__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #F0F0F0;
    transition: background var(--transition);
    color: var(--dark);
}
.live-search-dropdown__item:last-child { border-bottom: none; }
.live-search-dropdown__item:hover { background: var(--light); }

.live-search-dropdown__img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 4px;
    background: var(--light);
}

.live-search-dropdown__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.live-search-dropdown__name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
}
.live-search-dropdown__price {
    font-size: 0.82rem;
    color: var(--orange);
    font-weight: 700;
}
.live-search-dropdown__empty {
    padding: 14px 16px;
    font-size: 0.88rem;
    color: var(--gray);
    text-align: center;
}

/* ============================================================
   SINGLE PRODUCT PAGE
   ============================================================ */

/* ── Reset WooCommerce defaults on single product ── */
.sp-product-wrap .woocommerce-breadcrumb,
.sp-product-wrap .product_title,
.sp-product-wrap .woocommerce-product-gallery,
.sp-product-wrap .summary,
.sp-product-wrap .woocommerce-tabs,
.sp-product-wrap .related.products,
.sp-product-wrap .upsells { display: none !important; }

.sp-product-wrap { padding: 0; }
.woocommerce-notices-wrapper { max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

/* Strip default WC wrapper styles on single product */
body.single-product #main,
body.single-product .site-main {
    padding: 0 !important;
    max-width: none !important;
}
body.single-product .woocommerce,
body.single-product .woocommerce-page { width: 100%; max-width: none; }

/* ── Page Wrapper ── */
.sp-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px 0;
    padding-block: 40px 60px;
    align-items: stretch;
}

/* ── Column separators ── */
.sp-col-left {
    padding-right: 48px;
    border-right: 1px solid #D4D4D4;
}
.sp-col-right {
    padding-left: 48px;
}

/* ── LEFT: Gallery ── */
.sp-gallery { background: var(--white); overflow: hidden; }
.sp-gallery__main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    padding: 40px;
    background: var(--white);
}
.sp-gallery__img {
    max-height: 380px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.sp-gallery__thumbs {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--gray-light);
    overflow-x: auto;
}
.sp-gallery__thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition);
}
.sp-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-gallery__thumb:hover,
.sp-gallery__thumb--active { border-color: var(--orange); }

/* ── LEFT: Description ── */
.sp-description { margin-top: 32px; }
.sp-description__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    padding-bottom: 10px;
    border-bottom: 1px solid #D4D4D4;
    margin-bottom: 16px;
}
.sp-description__body {
    font-size: 0.93rem;
    color: #777777;
    line-height: 1.75;
}
.sp-description__body ul,
.sp-description__body ol { padding-left: 0; list-style: none; }
.sp-description__body li {
    padding: 2px 0;
    color: #777777;
    padding-left: 18px;
    position: relative;
}
.sp-description__body li::before {
    content: '»';
    position: absolute;
    left: 0;
    color: var(--navy);
    font-weight: 700;
}
.sp-description__body p { margin-bottom: 0; }
/* When description comes as plain paragraphs — treat each line as a bullet */
.sp-description__body p + p::before,
.sp-description__body > p:first-child::before { display: none; }

/* ── RIGHT: Breadcrumb ── */
.sp-breadcrumb {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 400;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-bottom: 14px;
}
.sp-breadcrumb a {
    color: var(--dark);
    font-weight: 700;
}
.sp-breadcrumb a:hover { color: var(--orange); }
.sp-breadcrumb__sep {
    color: var(--gray);
    font-weight: 400;
}

/* ── RIGHT: Stock badge ── */
/* Contenedor de badges en la interna del producto (stock + oferta lado a lado) */
.sp-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.sp-stock-badge {
    display: inline-block;
    background: #0C8F20;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 22px;
    border-radius: 50px;
    margin-bottom: 0;
}
.sp-stock-badge--nostock   { background: #D20600; }
.sp-stock-badge--backorder { background: #F59E0B; }
/* Badge "¡oferta!" en línea con el de stock — mismo tamaño */
.sp-badges .sp-badge {
    background: #042C69;
    font-size: 0.9rem;
    padding: 8px 22px;
    border-radius: 50px;
    margin-bottom: 0;
    text-transform: none;
}

/* Ocultar el "Out of stock" / "Stock agotado" por defecto de WooCommerce
   en el área del Add-to-Cart (ya mostramos nuestro propio badge arriba) */
.sp-cta .stock,
.sp-cta .stock.out-of-stock,
.sp-cta .stock.in-stock,
.sp-cta p.stock { display: none !important; }

/* ── RIGHT: Badge ── */
.sp-badge {
    display: inline-block;
    background: var(--navy);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: lowercase;
}

/* ── RIGHT: Title ── */
.sp-title {
    font-size: 28px;
    font-weight: 400;
    color: var(--navy);
    line-height: 1.25;
    margin-bottom: 20px;
}

/* ── RIGHT: Price ── */
.sp-price-block { margin-bottom: 4px; }
.sp-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 6px;
}
.sp-price .woocommerce-Price-amount { color: var(--navy); }
.sp-price ins { text-decoration: none; }
.sp-price del {
    font-size: 14px;
    color: var(--gray);
    font-weight: 400;
    margin-right: 8px;
}
.sp-price del .woocommerce-Price-amount { color: var(--gray); }
.sp-price-tax {
    font-size: 15px;
    color: #B4B4B4;
    margin-bottom: 0;
}
.sp-price-tax .woocommerce-Price-amount { color: #B4B4B4; }
.sp-price-tax .woocommerce-Price-currencySymbol { color: #B4B4B4; }

/* ── RIGHT: Divider ── */
.sp-divider { border: none; border-top: 1px solid #D4D4D4; margin: 20px 0; }
.sp-divider--thin { margin: 14px 0; }

/* ── RIGHT: CTA ── */
.sp-cta { margin-bottom: 4px; }
.sp-btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 214px;
    height: 40px;
    background: var(--orange);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    transition: background var(--transition);
    text-align: center;
    white-space: nowrap;
}
.sp-btn-login:hover { background: var(--orange-dark); color: var(--white); }

/* WooCommerce add-to-cart on single product */
.sp-cta form.cart { display: flex; align-items: center; gap: 12px; width: 100%; }
.sp-cta .quantity {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
    width: 158px;
    height: 47px;
    border: 1px solid #D4D4D4;
    border-radius: 8px;
    overflow: hidden;
}
.sp-cta .qty {
    flex: 1;
    min-width: 0;
    height: 100%;
    text-align: center;
    border: none;
    border-inline: 1px solid #D4D4D4;
    font-size: 1rem;
    font-family: var(--font-main);
    border-radius: 0;
    -moz-appearance: textfield;
    color: #B8BBC0;
    background: var(--white);
    outline: none;
}
.sp-cta .qty::-webkit-inner-spin-button,
.sp-cta .qty::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Quantity +/- buttons */
.sp-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 47px;
    height: 100%;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    font-weight: 400;
    color: #B8BBC0;
    cursor: pointer;
    font-family: var(--font-main);
    transition: background var(--transition);
    flex-shrink: 0;
}
.sp-qty-btn:hover { background: var(--light); }

.sp-cta .single_add_to_cart_button,
.sp-cta .button.alt,
.sp-cta button[name="add-to-cart"] {
    flex: 0 0 214px;
    width: 214px;
    height: 40px;
    background: var(--orange) !important;
    color: var(--white) !important;
    border: none !important;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-main);
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--transition);
    letter-spacing: .3px;
    box-shadow: none !important;
    text-transform: none;
    padding: 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
.sp-cta .single_add_to_cart_button:hover,
.sp-cta .button.alt:hover { background: var(--orange-dark) !important; }

/* ── RIGHT: SKU ── */
.sp-sku {
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 0;
    display: flex;
    gap: 4px;
    align-items: center;
}
.sp-sku strong { color: var(--navy); font-weight: 700; }

/* ── RIGHT: Benefits ── */
.sp-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}
.sp-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--dark);
}
.sp-benefit svg { color: var(--navy); flex-shrink: 0; }
.sp-benefit img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    object-fit: contain;
    display: block;
}

/* ── RIGHT: Social Share ── */
.sp-share {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.sp-share__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
}
.sp-share__icons { display: flex; gap: 8px; }
.sp-share__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    transition: background var(--transition), transform var(--transition);
}
.sp-share__icon:hover { background: var(--orange); transform: scale(1.08); }

/* ── Related Products ── */
.sp-related {
    background: var(--light);
    padding: 56px 0;
    margin-top: 0;
}
.sp-related__title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 36px;
}
.sp-related__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ── Related Product Card ── */
.sp-rcard {
    background: var(--white);
    border: 1px solid var(--orange);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow var(--transition), transform var(--transition);
}
.sp-rcard:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.12);
    transform: translateY(-2px);
}
.sp-rcard__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--navy);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    z-index: 1;
    text-transform: lowercase;
}
.sp-rcard__img-wrap {
    display: block;
    background: var(--white);
    padding: 16px;
    text-align: center;
}
.sp-rcard__img {
    height: 160px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.sp-rcard__body {
    padding: 14px 40px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}
.sp-rcard__name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sp-rcard__name:hover { color: var(--orange); }
.sp-rcard__cat {
    font-size: 0.78rem;
    color: var(--gray);
    margin-bottom: 10px;
}
.sp-rcard__price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1.1;
}
.sp-rcard__price .woocommerce-Price-amount { color: var(--dark); }
.sp-rcard__price del {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 400;
    text-decoration: line-through;
    order: 1;
}
.sp-rcard__price del .woocommerce-Price-amount { color: var(--gray); }
.sp-rcard__price ins {
    display: block;
    text-decoration: none;
    order: 2;
}
.sp-rcard__tax {
    font-size: 0.72rem;
    color: #B4B4B4;
    margin-bottom: 12px;
}
.sp-rcard__tax .woocommerce-Price-amount,
.sp-rcard__tax .woocommerce-Price-currencySymbol { color: #B4B4B4; }

/* Quantity */
.sp-rcard__qty-wrap { margin-top: auto; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.sp-rcard__qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    overflow: hidden;
    width: 158px;
    height: 30px;
    margin: 0 auto;
}
.sp-rcard__qty-btn {
    flex-shrink: 0;
    width: 30px;
    height: 100%;
    background: var(--white);
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #B8BBC0;
    font-weight: 700;
    transition: background var(--transition);
}
.sp-rcard__qty-btn:hover { background: var(--gray-light); }
.sp-rcard__qty-input {
    flex: 1;
    text-align: center;
    border: none;
    border-inline: 1px solid var(--gray-light);
    font-size: 0.9rem;
    font-family: var(--font-main);
    -moz-appearance: textfield;
    height: 100%;
    min-width: 0;
    color: #B8BBC0;
}
.sp-rcard__qty-input::-webkit-inner-spin-button,
.sp-rcard__qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Buttons */
.sp-rcard__btn {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: background var(--transition), color var(--transition);
    font-family: var(--font-main);
}
.sp-rcard__btn--buy { background: var(--orange); color: var(--white); }
.sp-rcard__btn--buy:hover { background: var(--orange-dark); }
.sp-rcard__btn--login { background: var(--orange); color: var(--white); margin-top: auto; }
.sp-rcard__btn--login:hover { background: var(--orange-dark); color: var(--white); }

/* ── Single product responsive ── */
@media (max-width: 1024px) {
    .sp-layout { gap: 32px 40px; }
    .sp-related__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .sp-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-block: 24px 40px;
    }
    .sp-col-left { border-right: none; padding-right: 0; }
    .sp-col-right { padding-left: 0; }
    .sp-gallery__main { min-height: 260px; padding: 20px; }
    .sp-gallery__img { max-height: 240px; }
    .sp-title { margin-bottom: 14px; }
    .sp-related__grid { grid-template-columns: repeat(2, 1fr); }
    .sp-related { padding: 36px 0; }
}

@media (max-width: 480px) {
    .sp-related__grid { grid-template-columns: 1fr; }
    .sp-rcard__img { height: 120px; }
}

/* ── Mobile pequeño (≤ 480px) ────────────────────────────── */
@media (max-width: 480px) {
    /* Header */
    .site-header__logo-img,
    .site-header__logo img,
    .site-header__logo .custom-logo { height: 38px; }

    /* Hero */
    .hero-swiper__swiper { height: clamp(340px, 88vw, 460px); }
    .hero-swiper__slide  { height: clamp(340px, 88vw, 460px); }
    .hero-swiper__content { padding: 0 16px; }
    .hero-swiper__title { font-size: clamp(1.3rem, 6.5vw, 1.8rem); }
    .hero-swiper__btn { font-size: 13px; padding: 10px 20px; }

    /* Categorías: 1 columna */
    .categorias__grid {
        grid-template-columns: 1fr;
        grid-template-rows: 170px 150px 130px 130px;
        gap: 8px;
    }
    .categorias__card--1 { grid-column: 1; grid-row: 1; }
    .categorias__card--2 { grid-column: 1; grid-row: 2; }
    .categorias__card--3 { grid-column: 1; grid-row: 3; }
    .categorias__card--4 { grid-column: 1; grid-row: 4; }

    /* Slider arrows ocultas en mobile: solo deslizar */
    .mv-arrow { display: none; }
    .mas-vendidos__slider-area { gap: 0; }

    /* Botones full width */
    .btn--outline-navy,
    .btn--primary { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════
   ARCHIVE / CATEGORY PAGE
   ═══════════════════════════════════════════════════════════ */

/* ── Banner de categoría ──────────────────────────────────── */
.arch-banner {
    width: 100%;
    max-height: 320px;
    overflow: hidden;
    background: var(--navy);
}
.arch-banner img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.arch-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray);
    padding: 18px 0 0;
}
.arch-breadcrumb a { color: var(--navy); font-weight: 500; }
.arch-breadcrumb a:hover { color: var(--orange); }
.arch-breadcrumb__sep { color: var(--gray); }

/* ── Título de categoría ──────────────────────────────────── */
.arch-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--navy);
    margin: 12px 0 28px;
    letter-spacing: 1px;
}

/* ── Layout: sidebar + productos ─────────────────────────── */
.arch-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 60px;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.arch-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: none;
}

.arch-filter-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #1A1A1A;
    font-family: var(--font-main);
    padding-bottom: 20px;
    margin-bottom: 0;
}

.arch-filter-section {
    border-top: 1px solid #E8E8E8;
}

.arch-filter-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-main);
    letter-spacing: .8px;
    color: #1A1A1A;
    padding: 16px 0;
    text-align: left;
}
.arch-filter-toggle:hover { color: var(--orange); }

.arch-filter-icon {
    font-size: 18px;
    font-weight: 300;
    color: #1A1A1A;
    line-height: 1;
    transition: transform var(--transition);
}

.arch-filter-body {
    overflow: hidden;
    padding-bottom: 20px;
}
.arch-filter-body.is-collapsed {
    display: none;
}

/* ── Dual range slider ────────────────────────────────────── */
.arch-range-wrap {
    position: relative;
    height: 20px;
    margin-bottom: 16px;
}
.arch-range-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    height: 3px;
    background: #E0E0E0;
    border-radius: 3px;
    z-index: 0;
}
.arch-range-fill {
    position: absolute;
    height: 100%;
    background: #B8BBC0;
    border-radius: 3px;
}
.arch-range {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
    padding: 0;
}
.arch-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid #B8BBC0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    cursor: pointer;
    pointer-events: all;
    position: relative;
    z-index: 2;
}
.arch-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid #B8BBC0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    cursor: pointer;
    pointer-events: all;
}
.arch-range::-webkit-slider-runnable-track { background: transparent; }
.arch-range::-moz-range-track { background: transparent; }

/* ── Filtro de precio ─────────────────────────────────────── */
.arch-price-form { display: flex; flex-direction: column; gap: 12px; }
.arch-price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.arch-price-input {
    width: 100%;
    border: 1px solid #D8D8D8;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: var(--font-main);
    color: #1A1A1A;
    outline: none;
    transition: border-color var(--transition);
    -moz-appearance: textfield;
}
.arch-price-input::-webkit-outer-spin-button,
.arch-price-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.arch-price-input:focus { border-color: #B8BBC0; }
.arch-price-label {
    font-size: 12px;
    color: #888;
}
.arch-price-btn {
    align-self: flex-start;
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-main);
    transition: background var(--transition);
}
.arch-price-btn:hover { background: var(--orange-dark); }

/* ── Lista de categorías ──────────────────────────────────── */
.arch-cat-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.arch-cat-item {
    border-bottom: 1px solid #E8E8E8;
}
.arch-cat-item:last-child { border-bottom: none; }

.arch-cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 13px 0;
}
.arch-cat-link {
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-main);
    letter-spacing: .5px;
    color: #1A1A1A;
    transition: color var(--transition);
    flex: 1;
}
.arch-cat-link:hover { color: var(--orange); }
.arch-cat-item.is-current .arch-cat-link { color: var(--orange); }

.arch-cat-expand {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 300;
    color: #1A1A1A;
    padding: 0;
    line-height: 1;
    width: 24px;
    text-align: center;
    transition: color var(--transition);
    flex-shrink: 0;
}
.arch-cat-expand:hover { color: var(--orange); }

.arch-subcat-list {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0 0 12px 14px;
    margin: 0;
    border-left: none;
}
.arch-subcat-list.is-open { display: flex; }
.arch-subcat-list a {
    font-size: 13px;
    font-family: var(--font-main);
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 0;
    transition: color var(--transition);
    text-decoration: none;
}
.arch-subcat-list a:hover { color: var(--orange); }
.arch-subcat-count { color: #aaa; font-size: 12px; }

/* ── Área principal de productos ──────────────────────────── */
.arch-main {}

.arch-empty {
    font-size: 15px;
    color: var(--gray);
    text-align: center;
    padding: 60px 0;
}

/* ── Grid de productos ────────────────────────────────────── */
.arch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Reset WC defaults on archive page */
body.woocommerce .arch-grid,
body.woocommerce-page .arch-grid {
    float: none;
    width: auto;
}
body.woocommerce .arch-grid .arch-card,
body.woocommerce-page .arch-grid .arch-card {
    float: none;
    width: auto;
    margin: 0;
}

/* WooCommerce pagination on archive */
.arch-main .woocommerce-pagination {
    margin-top: 32px;
    text-align: center;
}
.arch-main .woocommerce-pagination ul {
    display: inline-flex;
    gap: 6px;
    list-style: none;
}
.arch-main .woocommerce-pagination ul li a,
.arch-main .woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    transition: all var(--transition);
}
.arch-main .woocommerce-pagination ul li a:hover { border-color: var(--orange); color: var(--orange); }
.arch-main .woocommerce-pagination ul li span.current {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}

/* ── Tarjeta de producto (archive) ───────────────────────── */
.arch-card {
    position: relative;
    background: var(--white);
    border: 1.5px solid var(--orange);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
}
.arch-card:hover {
    box-shadow: 0 8px 28px rgba(2, 22, 53, .12);
    transform: translateY(-3px);
}

/* Imagen */
.arch-card__img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--white);
    overflow: hidden;
}
.arch-card__img-link {
    display: block;
    width: 100%;
    height: 100%;
}
.arch-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform .4s ease;
}
.arch-card:hover .arch-card__img-wrap img { transform: scale(1.04); }

/* Badges sobre la imagen */
.arch-card__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    z-index: 2;
}
.arch-card__badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    line-height: 1.4;
    white-space: nowrap;
}
.arch-card__badge--stock {
    background: #0C8F20;
    color: var(--white);
}
.arch-card__badge--sale {
    background: #042C69;
    color: var(--white);
}
.arch-card__badge--nostock {
    background: #D20600;
    color: var(--white);
}

/* Logo de marca */
.arch-card__brand {
    position: absolute;
    bottom: 8px;
    right: 10px;
    z-index: 2;
}
.arch-card__brand img {
    max-width: 70px;
    max-height: 28px;
    object-fit: contain;
}

/* Cuerpo */
.arch-card__body {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    text-align: center;
}
.arch-card__name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #1A1A1A;
}
.arch-card__name a { color: inherit; }
.arch-card__name a:hover { color: var(--orange); }

.arch-card__cat {
    font-size: 12px;
    color: #999;
    margin-bottom: 16px;
}

/* Precio */
.arch-card__price {
    margin-top: 6px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.arch-card__price .woocommerce-Price-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1A1A1A;
    letter-spacing: -.5px;
}
.arch-card__price ins {
    text-decoration: none;
    display: block;
    order: 2;
}
.arch-card__price ins .woocommerce-Price-amount {
    color: #1A1A1A;
}
.arch-card__price del {
    display: block;
    order: 1;
    font-size: .85rem;
    font-weight: 400;
    color: #999;
    margin-right: 0;
}
.arch-card__price del .woocommerce-Price-amount {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}
.arch-card__price .woocommerce-Price-currencySymbol { font-size: inherit; }
.arch-card__price .woocommerce-Price-suffix {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #999;
    margin-top: 3px;
}

/* Acciones: qty + botón */
.arch-card__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    width: 100%;
}

/* Selector de cantidad */
.arch-card__qty-wrap {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #B8BBC0;
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
    height: 36px;
    margin: 0 auto;
}
.arch-card__qty-btn {
    background: var(--white);
    border: none;
    cursor: pointer;
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 300;
    color: #888;
    transition: background var(--transition), color var(--transition);
    flex-shrink: 0;
    line-height: 1;
}
.arch-card__qty-btn:hover { background: #F5F4F2; color: #444; }
.arch-card__qty-input {
    width: 48px;
    height: 100%;
    border: none;
    border-left: 1.5px solid #B8BBC0;
    border-right: 1.5px solid #B8BBC0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
    font-family: var(--font-main);
    outline: none;
    -moz-appearance: textfield;
    background: var(--white);
}
.arch-card__qty-input::-webkit-outer-spin-button,
.arch-card__qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Botón comprar */
.arch-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    border: 2px solid transparent;
    font-family: var(--font-main);
    text-align: center;
    transition: all var(--transition);
    text-decoration: none;
}
.arch-card__btn--buy {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}
.arch-card__btn--buy:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
}
.arch-card__btn--buy.is-loading {
    opacity: .7;
    pointer-events: none;
}
.arch-card__btn--info {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
    font-size: 13px;
}
.arch-card__btn--info:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    color: var(--white);
}
.arch-card__btn--nostock {
    background: var(--gray-light);
    color: #999;
    border-color: var(--gray-light);
    cursor: default;
}

/* ── Archive: responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
    .arch-layout {
        grid-template-columns: 220px 1fr;
        gap: 28px;
    }
    .arch-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .arch-layout {
        grid-template-columns: 1fr;
    }
    .arch-sidebar {
        position: static;
        border: 1px solid var(--gray-light);
        border-radius: 8px;
        padding: 16px;
    }
    .arch-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .arch-banner img { height: 200px; }
}

@media (max-width: 480px) {
    .arch-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CART PAGE
   ============================================================ */

/* Hide the WordPress page <h1> on the cart page */
body.woocommerce-cart .site-main > article > h1 { display: none; }

.cart-page__title {
    font-size: 28px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 1px;
    margin-bottom: 28px;
}

/* ── Two-column layout ───────────────────────────────────── */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}

/* ── Cart main column ────────────────────────────────────── */
.cart-table-card {
    background: var(--white);
    border: 1px solid #E8E2DC;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 12px 0 rgba(0,0,0,0.20);
}

.cart-table-card table,
.cart-table-card table.shop_table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    box-shadow: none;
}

/* Reset WooCommerce default shop_table cell borders */
.cart-table-card table.shop_table th,
.cart-table-card table.shop_table td {
    border: none;
}

/* Restore header separator */
.cart-table-card table.shop_table thead th {
    border-bottom: 1px solid #E8E2DC;
}

.cart-table-card thead th {
    padding: 16px 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    text-align: left;
    border-bottom: 1px solid #E8E2DC;
}

.cart-table-card .product-remove {
    width: 40px;
}
.cart-table-card .product-thumbnail {
    width: 110px;
}

.cart-table-card .product-price,
.cart-table-card .product-subtotal {
    white-space: nowrap;
}

.cart-table-card tbody tr {
    border-bottom: 1px solid #F0EBE5;
}

.cart-table-card tbody tr:last-child {
    border-bottom: none;
}

.cart-table-card tbody td {
    padding: 16px 12px;
    vertical-align: middle;
    font-size: 14px;
    color: var(--dark);
}

/* Remove button */
.cart-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: opacity var(--transition);
    line-height: 0;
}
.cart-remove img {
    display: block;
    width: 20px;
    height: auto;
    transition: opacity var(--transition);
}
.cart-remove:hover img { opacity: .65; }

/* Product thumbnail in cart */
.cart-table-card .product-thumbnail img {
    width: 96px !important;
    height: 96px !important;
    max-width: 96px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

/* Product name link */
.cart-table-card .product-name a {
    color: var(--navy);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.cart-table-card .product-name a:hover { color: var(--orange); }

/* Qty control */
.cart-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #D8D0C8;
    border-radius: 6px;
    overflow: hidden;
}

.cart-qty__btn {
    width: 32px;
    height: 36px;
    background: #F7F4F1;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}
.cart-qty__btn:hover { background: #EDE8E4; }

.cart-qty__input {
    width: 44px;
    height: 36px;
    border: none;
    border-left: 1px solid #D8D0C8;
    border-right: 1px solid #D8D0C8;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    background: var(--white);
    -moz-appearance: textfield;
}
.cart-qty__input::-webkit-inner-spin-button,
.cart-qty__input::-webkit-outer-spin-button { -webkit-appearance: none; }
.cart-qty__input:focus { outline: none; }

/* ── Coupon row ──────────────────────────────────────────── */
.cart-coupon-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 18px 26px;
    background: var(--white);
    border: 1px solid #E8E2DC;
    border-radius: 10px;
    box-shadow: 0 1px 12px 0 rgba(0,0,0,0.20);
}

.cart-coupon-input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 16px;
    border: 1px solid #CACACA;
    border-radius: 8px;
    background: var(--white);
    font-size: 14px;
    color: var(--dark);
    outline: none;
    font-family: inherit;
    transition: border-color var(--transition);
}
.cart-coupon-input:focus {
    outline: none;
    border-color: var(--navy);
}
.cart-coupon-input::placeholder { color: #9E9E9E; }

.cart-coupon-btn {
    flex-shrink: 0;
    height: 44px;
    padding: 0 30px;
    border: 1.5px solid #1A1A1A;
    border-radius: 50px;
    background: var(--white);
    color: #1A1A1A;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
}
.cart-coupon-btn:hover {
    background: #1A1A1A;
    color: var(--white);
}

/* Hide cart-collaterals (cross-sells) if empty */
.cart-collaterals:empty { display: none; }

/* ── Summary card ────────────────────────────────────────── */
.cart-summary {
    background: var(--white);
    border: 1px solid #E8E2DC;
    border-radius: 10px;
    padding: 24px;
    position: sticky;
    top: 110px;
    box-shadow: 0 1px 12px 0 rgba(0,0,0,0.20);
}

.cart-summary__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    padding-bottom: 16px;
    margin-bottom: 4px;
    text-align: center;
    border-bottom: 1px solid #E8E2DC;
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: var(--dark);
}

.cart-summary__row--total {
    font-weight: 700;
    font-size: 15px;
    color: var(--navy);
}

.cart-summary__row--total .woocommerce-Price-amount {
    font-size: 16px;
}

.cart-summary__divider {
    border-top: 1px solid #E8E2DC;
    margin: 4px 0;
}

.cart-summary__checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 218px;
    height: 33px;
    margin-top: 20px;
    margin-inline: auto;
    background: var(--orange);
    color: var(--white);
    text-align: center;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--transition);
}
.cart-summary__checkout-btn:hover { background: var(--orange-dark); color: var(--white); }

.cart-summary__continue {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: #616161;
    text-decoration: none;
    transition: color var(--transition);
}
.cart-summary__continue:hover { color: var(--navy); }

/* ── WooCommerce overrides for cart page ─────────────────── */
body.woocommerce-cart .woocommerce-notices-wrapper { margin-bottom: 16px; }
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-error,
body.woocommerce-cart .woocommerce-info { border-radius: 6px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-sidebar { position: static; }
    .cart-summary { position: static; }
}

@media (max-width: 600px) {
    .cart-table-card thead { display: none; }
    .cart-table-card tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 14px;
        border-bottom: 1px solid #F0EBE5;
    }
    .cart-table-card tbody td::before {
        content: attr(data-title);
        font-weight: 600;
        font-size: 12px;
        color: #888;
        text-transform: uppercase;
    }
    .cart-table-card .product-remove { justify-content: flex-end; }
    .cart-table-card .product-thumbnail { display: none; }
    .cart-coupon-row { flex-direction: column; }
    .cart-coupon-input { width: 100%; }
    .cart-coupon-btn { width: 100%; border-radius: 10px; }
}

/* ── Empty cart ──────────────────────────────────────────── */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 60px 20px;
    text-align: center;
}

.cart-empty__msg {
    font-size: 16px;
    color: #888;
}

.cart-empty__btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--orange);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition);
}
.cart-empty__btn:hover { background: var(--orange-dark); color: var(--white); }

/* ============================================================
   PÁGINA 404
   ============================================================ */
.page-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: var(--gray-light);
}

.page-404__inner {
    text-align: center;
    max-width: 560px;
}

.page-404__number {
    font-size: clamp(100px, 20vw, 180px);
    font-weight: 800;
    line-height: 1;
    color: var(--navy);
    opacity: 0.07;
    letter-spacing: -4px;
    margin-bottom: 28px;
    position: relative;
    z-index: 0;
}

.page-404__icon {
    position: relative;
    z-index: 1;
    color: var(--orange);
    margin-bottom: 20px;
}

.page-404__title {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 20px;
}

.page-404__text {
    font-size: 15px;
    color: #666;
    line-height: 1.65;
    margin: 0 0 36px;
}

.page-404__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.page-404__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    white-space: nowrap;
}

.page-404__btn--primary {
    background: var(--orange);
    color: var(--white);
    border: 2px solid var(--orange);
}
.page-404__btn--primary:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    color: var(--white);
}

.page-404__btn--outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}
.page-404__btn--outline:hover {
    background: var(--navy);
    color: var(--white);
}

@media (max-width: 480px) {
    .page-404__actions { flex-direction: column; }
    .page-404__btn { width: 100%; }
}

/* ============================================================
   PÁGINA DE CONTACTO
   ============================================================ */

/* ── Hero ────────────────────────────────────────────────── */
.contact-hero {
    background: var(--navy);
    color: var(--white);
    padding: 72px 0 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 20% 50%, rgba(204,85,0,.18) 0%, transparent 70%),
        radial-gradient(ellipse 50% 70% at 80% 50%, rgba(4,44,105,.5) 0%, transparent 70%);
    pointer-events: none;
}

.contact-hero--has-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-hero--has-image::before {
    background: rgba(2, 22, 53, .65);
}

.contact-hero .container { position: relative; }

.contact-hero__eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 12px;
}

.contact-hero__title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.contact-hero__subtitle {
    font-size: 16px;
    color: rgba(255,255,255,.75);
    line-height: 1.6;
}

/* ── Layout principal ────────────────────────────────────── */
.contact-main {
    padding: 72px 0 80px;
    background: var(--light);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 48px;
    align-items: start;
}

.contact-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--orange);
    display: inline-block;
    text-transform: uppercase;
}

/* ── Formulario ──────────────────────────────────────────── */
.contact-form-wrap {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 16px rgba(0,0,0,.08);
}

.contact-form__row {
    margin-bottom: 20px;
}

.contact-form__row--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-form__field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: .3px;
}

.contact-form__field label span {
    color: var(--orange);
    margin-left: 2px;
}

.contact-form__field input,
.contact-form__field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #DCDCDC;
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--dark);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(2,22,53,.1);
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
    color: #AEAEAE;
    font-size: 13px;
}

.contact-form__field textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form__submit {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    padding: 14px 28px;
    font-size: 15px;
}

/* ── Notices ─────────────────────────────────────────────── */
.contact-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.contact-notice--ok {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.contact-notice--warn {
    background: #FFFBEB;
    color: #92400E;
    border: 1px solid #FDE68A;
}

.contact-notice--error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* ── Info cards ──────────────────────────────────────────── */
.contact-info {
    position: sticky;
    top: 110px;
}

.contact-info__cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--white);
    border-radius: 10px;
    padding: 20px 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    transition: box-shadow var(--transition), transform var(--transition);
}

.contact-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
    transform: translateY(-2px);
}

.contact-card__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(2,22,53,.07);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
}

.contact-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.contact-card__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
}

.contact-card__value {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
    word-break: break-word;
}

a.contact-card__value {
    transition: color var(--transition);
}

a.contact-card__value:hover {
    color: var(--orange);
}

/* ── Botón WhatsApp ──────────────────────────────────────── */
.contact-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: #25D366;
    color: var(--white);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
}

.contact-whatsapp-btn:hover {
    background: #1EBE58;
    transform: translateY(-1px);
    color: var(--white);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-info {
        position: static;
    }

    .contact-info__cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 640px) {
    .contact-hero {
        padding: 52px 0 44px;
    }

    .contact-main {
        padding: 48px 0 60px;
    }

    .contact-form-wrap {
        padding: 28px 20px;
    }

    .contact-form__row--2col {
        grid-template-columns: 1fr;
    }

    .contact-info__cards {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   PÁGINA DE PREGUNTAS FRECUENTES
   ============================================================ */

.faq-main {
    padding: 72px 0 80px;
    background: var(--light);
}

.faq-list {
    max-width: 800px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Acordeón ────────────────────────────────────────────── */
.faq-item {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.faq-item[open] {
    box-shadow: 0 4px 20px rgba(0,0,0,.11);
}

.faq-item__pregunta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: color var(--transition);
}

.faq-item__pregunta::-webkit-details-marker { display: none; }
.faq-item__pregunta::marker { display: none; }

.faq-item__pregunta:hover {
    color: var(--orange);
}

.faq-item__pregunta span {
    flex: 1;
}

.faq-item__icon {
    flex-shrink: 0;
    color: var(--orange);
    transition: transform var(--transition);
}

.faq-item[open] .faq-item__icon {
    transform: rotate(180deg);
}

.faq-item__respuesta {
    padding: 0 24px 20px;
    border-top: 1px solid var(--gray-light);
}

.faq-item__respuesta p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
    padding-top: 16px;
}

.faq-empty {
    text-align: center;
    color: var(--gray);
    font-size: 15px;
    padding: 48px 0;
}

@media (max-width: 640px) {
    .faq-main { padding: 48px 0 60px; }
    .faq-item__pregunta { padding: 16px 18px; font-size: 15px; }
    .faq-item__respuesta { padding: 0 18px 16px; }
}

/* ============================================================
   TIPOGRAFÍA GLOBAL — Títulos de sección: Geologica
   ============================================================ */
.section-title,
.hero-swiper__title,
.producto-destacado__titulo,
.mas-vendidos__titulo,
.contact-hero__title,
.contact-section-title,
.sp-description__title,
.sp-related__title,
.cart-page__title,
.page-404__title,
.cart-summary__title,
.account-hero__title,
.account-card__title {
    font-family: 'Geologica', var(--font-main);
}

/* ============================================================
   MY ACCOUNT — Login, Registro, Recuperar contraseña
   ============================================================ */

/* Ocultar el título de página WordPress en my-account
   (usamos nuestro propio account-hero) */
.woocommerce-account .entry-title,
.woocommerce-account h1.page-title {
    display: none;
}

/* Hero banner */
.account-hero {
    background: var(--navy);
    padding: 56px 0 44px;
    text-align: center;
    color: var(--white);
}
.account-hero__title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--white);
}
.account-hero__sub {
    font-size: 15px;
    opacity: .65;
    margin-top: 8px;
}

/* Fondo de la sección */
.account-main {
    background: var(--light);
    padding: 56px 0 80px;
    min-height: 50vh;
}

/* Quitar padding/margin que WC agrega al .woocommerce wrapper dentro de my-account */
.woocommerce-account .woocommerce {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

/* ── Dos columnas Login / Registro ────────────────────────── */
.account-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 960px;
    margin-inline: auto;
}

/* ── Formulario sin registro: centrado ────────────────────── */
.account-single-wrap {
    max-width: 480px;
    margin-inline: auto;
}

/* ── Tarjeta ──────────────────────────────────────────────── */
.account-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 28px rgba(0,0,0,.07);
    padding: 40px;
}

.account-card__title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 6px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--orange);
    display: inline-block;
}

.account-card__desc {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    margin: 16px 0 28px;
}

/* ── Campos del formulario ────────────────────────────────── */
.account-form__group {
    margin-bottom: 20px;
}

.account-form .account-form__group label,
.account-form label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 7px;
}

.account-form .account-form__group label .required,
.account-form label .required {
    color: var(--orange);
    margin-left: 2px;
}

.account-form input[type="text"],
.account-form input[type="email"],
.account-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: 15px;
    color: var(--dark);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    -webkit-appearance: none;
}

.account-form input[type="text"]:focus,
.account-form input[type="email"]:focus,
.account-form input[type="password"]:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(2,22,53,.1);
}

/* ── Fila de acciones (checkbox + botón) ──────────────────── */
.account-form__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.account-form__actions--register {
    justify-content: flex-end;
}

.account-form__remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray);
    cursor: pointer;
}

.account-form__remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--navy);
    cursor: pointer;
}

/* ── Botón submit ─────────────────────────────────────────── */
.account-form__submit,
.account-form__submit.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 32px;
    background: var(--orange);
    color: var(--white) !important;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), transform .15s ease;
    white-space: nowrap;
}

.account-form__submit:hover,
.account-form__submit.button:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
}

/* WC deshabilita el botón de registro hasta que la contraseña sea válida.
   Forzamos el color naranja en todos los estados para coherencia visual. */
.account-form__submit:disabled,
.account-form__submit[disabled],
.woocommerce-form-register__submit:disabled,
.woocommerce-form-register__submit[disabled] {
    background: var(--orange) !important;
    color: var(--white) !important;
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

/* ── Links secundarios ────────────────────────────────────── */
.account-form__lost-password {
    margin-top: 16px;
    font-size: 13px;
    text-align: center;
}

.account-form__lost-password a,
.account-form__back a {
    color: var(--gray);
    text-decoration: underline;
    transition: color var(--transition);
}

.account-form__lost-password a:hover,
.account-form__back a:hover {
    color: var(--navy);
}

.account-form__back {
    margin-top: 20px;
    font-size: 13px;
    text-align: center;
}

.account-form__info {
    font-size: 13px;
    color: var(--gray);
    background: var(--light);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* ── WooCommerce notices dentro de my-account ─────────────── */
.woocommerce-account .woocommerce-error,
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info {
    margin: 0 0 20px;
    border-radius: var(--radius);
    font-size: 14px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .account-columns {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
    .account-hero { padding: 40px 0 32px; }
    .account-main { padding: 40px 0 60px; }
    .account-card { padding: 28px 24px; }
    .account-form__actions { flex-direction: column; align-items: stretch; }
    .account-form__submit { width: 100%; }
    .account-form__actions--register { align-items: stretch; }
}

/* ============================================================
   CHECKOUT — Multi-step Shopify-style
   ============================================================ */

/* Ocultar título nativo de la página */
.woocommerce-checkout .entry-title,
.woocommerce-page.woocommerce-checkout h1.page-title,
body.woocommerce-checkout h1.page-title,
body.woocommerce-checkout .entry-title {
    display: none !important;
}

/* Coupon notice */
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout-page .woocommerce-info {
    background: #f0f9ff;
    border: 1.5px solid #bae6fd !important;
    border-top: 1.5px solid #bae6fd !important;
    color: #0369a1;
    border-radius: 10px;
    font-size: 13.5px;
    padding: 12px 24px;
    margin: 0 auto 20px;
    max-width: 1140px;
}
.woocommerce-checkout .woocommerce-info::before { display: none !important; }
.woocommerce-checkout .woocommerce-info a {
    color: #0369a1;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Error notice de validación */
.woocommerce-checkout .woocommerce-error {
    list-style: none;
    background: #fef2f2;
    border: 1.5px solid #fecaca !important;
    border-top: 1.5px solid #fecaca !important;
    border-left: 1.5px solid #fecaca !important;
    border-radius: 10px;
    padding: 14px 20px;
    margin: 0 auto 20px;
    max-width: 1140px;
    color: #991b1b;
    font-size: 13.5px;
}
.woocommerce-checkout .woocommerce-error li {
    padding: 3px 0;
    display: flex;
    gap: 8px;
}
.woocommerce-checkout .woocommerce-error li::before { display: none !important; }
.woocommerce-checkout .woocommerce-error a {
    color: #991b1b;
    font-weight: 700;
    text-decoration: underline;
}
.woocommerce form .form-row-first, .woocommerce form .form-row-last, .woocommerce-page form .form-row-first, .woocommerce-page form .form-row-last {
    width: 100% !important;
}

/* ── Barra de progreso ───────────────────────────────────── */
.co-hero {
    background: var(--navy);
    padding: 28px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.co-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 420px;
    margin: 0 auto;
}

.co-step {
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(255,255,255,.4);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .2px;
    transition: color var(--transition);
    white-space: nowrap;
}

.co-step__num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.co-step__connector {
    flex: 1;
    height: 1.5px;
    background: rgba(255,255,255,.14);
    margin: 0 16px;
    max-width: 100px;
    position: relative;
}
.co-step__connector::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}

.co-step.is-active {
    color: var(--white);
}
.co-step.is-active .co-step__num {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(204,85,0,.25);
}

.co-step.is-done {
    color: rgba(255,255,255,.55);
}
.co-step.is-done .co-step__num {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.25);
}
.co-step.is-done ~ .co-step__connector::after {
    transform: scaleX(1);
}

/* ── Cuerpo / fondo ──────────────────────────────────────── */
.co-body {
    padding: 20px 0 80px;
    min-height: 55vh;
}

/* ── Paneles (pasos) ─────────────────────────────────────── */
.co-panel {
    display: none;
}
.co-panel.is-active {
    display: block;
}

/* ── Inner: contenedor centrado del paso ─────────────────── */
.co-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px 32px 20px;
}

/* ── Layout 2 columnas: form | sidebar ───────────────────── */
.co-inner--step1 {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

/* Columna de formulario */
.co-form-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* ── Sección de campos ───────────────────────────────────── */
.co-fields-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 0;
}

.co-section {
    background: var(--white);
    border: 1px solid rgba(2,22,53,.08);
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 1px 12px rgba(0,0,0,.04);
}

.co-section__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(2,22,53,.06);
}
.co-section__head--notes {
    margin-bottom: 12px;
}

.co-section__num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.co-section__icon {
    width: 18px;
    height: 18px;
    color: var(--gray);
    flex-shrink: 0;
}

.co-section__title {
    font-family: 'Geologica', var(--font-main);
    font-size: .95rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0;
    letter-spacing: .1px;
}
.co-section__optional {
    font-weight: 500;
    font-size: .8rem;
    color: var(--gray);
    letter-spacing: 0;
}

/* Toggle envío a dirección diferente */
.co-ship-toggle {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-transform: none !important;
    font-size: .95rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    color: var(--navy) !important;
    margin: 0 !important;
}
.co-ship-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--navy);
    flex-shrink: 0;
}

/* ── Grid de campos: 2 columnas ──────────────────────────── */
.co-billing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
.co-billing-grid .form-row-wide {
    grid-column: 1 / -1;
}

/* Sección de notas */
.co-section--notes {
    background: rgba(2,22,53,.015);
    border-style: dashed;
    border-color: rgba(2,22,53,.12);
}

/* Ocultar h3 de WC dentro de secciones (tenemos co-section__head) */
.co-section .woocommerce-billing-fields > h3,
.co-section .woocommerce-shipping-fields > h3,
.co-section .woocommerce-additional-fields > h3 {
    display: none;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.co-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.co-sidebar__order {
    background: var(--white);
    border: 1px solid rgba(2,22,53,.08);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 12px rgba(0,0,0,.04);
}

.co-sidebar__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Geologica', var(--font-main);
    font-size: .85rem;
    font-weight: 800;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 18px;
}
.co-sidebar__title svg {
    color: var(--orange);
    flex-shrink: 0;
}

/* Items del carrito */
.co-cart-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
    list-style: none;
    margin-bottom: 18px;
}

.co-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
}

.co-cart-item__img-wrap {
    position: relative;
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 8px;
    overflow: visible;
}
.co-cart-item__img-wrap img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--gray-light);
    display: block;
}
.co-cart-item__badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

.co-cart-item__name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.co-cart-item__price {
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
    font-size: 14px;
}

/* Separadores */
.co-sidebar__sep {
    height: 1px;
    background: var(--gray-light);
    margin: 0 0 16px;
}
.co-sidebar__sep--sm {
    margin: 12px 0;
}

/* Totales */
.co-sidebar__totals {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.co-sidebar__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    color: var(--gray);
}
.co-sidebar__row span:last-child {
    font-weight: 600;
    color: var(--dark);
}

.co-sidebar__row--total {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
}
.co-sidebar__row--total span {
    font-weight: 800;
    color: var(--navy) !important;
    font-size: 16px;
}

/* Trust badges */
.co-trust {
    background: var(--white);
    border: 1px solid rgba(2,22,53,.08);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.co-trust__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: #4a5568;
    font-weight: 500;
}
.co-trust__item svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--orange);
}

/* ── Campos individuales (Stripe-style) ──────────────────── */
.woocommerce-checkout .form-row {
    padding: 0;
    margin: 0 0 14px;
}

.woocommerce-checkout .form-row label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 6px;
}
.woocommerce-checkout .form-row label .optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: 10.5px;
}
.woocommerce-checkout .form-row label .required {
    color: var(--orange);
    text-decoration: none;
    margin-left: 1px;
    visibility: visible;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 14.5px;
    color: var(--dark);
    background: #fafbfc;
    transition: border-color .2s, box-shadow .2s, background .2s;
    -webkit-appearance: none;
    appearance: none;
    height: 44px;
}
.woocommerce-checkout textarea {
    height: auto;
}
.woocommerce-checkout input.input-text:hover,
.woocommerce-checkout select:hover {
    border-color: #94a3b8;
    background: var(--white);
}
.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
    outline: none;
    border-color: var(--navy);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(2,22,53,.08);
}
.woocommerce-checkout input.co-invalid,
.woocommerce-checkout select.co-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,.1);
    background: #fff8f8;
}

/* Select arrow */
.woocommerce-checkout select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

/* Textarea notas */
.woocommerce-checkout textarea {
    min-height: 80px;
    resize: vertical;
    height: auto;
    padding: 12px 14px;
    font-size: 14px;
    color: #64748b;
}

/* Ocultar crear cuenta en checkout (no requerido) */
.woocommerce-account-fields { display: none; }

/* ── Botones de navegación ───────────────────────────────── */
.co-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.co-actions--step2 {
    justify-content: flex-start;
}

.co-btn-next,
.co-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 28px;
    height: 48px;
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .4px;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}

.co-btn-next {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
    margin-left: auto;
    box-shadow: 0 4px 14px rgba(204,85,0,.35);
}
.co-btn-next:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    box-shadow: 0 6px 20px rgba(204,85,0,.4);
    transform: translateY(-1px);
}
.co-btn-next:active { transform: translateY(0); }

.co-btn-back {
    background: var(--white);
    border-color: #e2e8f0;
    color: #64748b;
}
.co-btn-back:hover {
    border-color: var(--navy);
    color: var(--navy);
    background: var(--white);
}

.co-btn-cart {
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color .2s;
}
.co-btn-cart:hover { color: var(--navy); }

/* ── #order_review dentro del form-col ──────────────── */
#order_review {
    display: block;
    margin-top: 4px;
}
/* Ocultar tabla de resumen (ya se vio en paso 1) */
.co-form-col .co-summary-header,
.co-form-col .woocommerce-checkout-review-order-table {
    display: none !important;
}
.co-form-col #payment {
    background: none;
    border: none;
    border-radius: 0;
    overflow: visible;
}
.co-form-col .place-order {
    padding: 0;
    border-top: none;
}

.co-summary-title {
    font-family: 'Geologica', var(--font-main);
    font-size: .9rem;
    font-weight: 800;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 10px;
}

/* ── Tabla resumen ────────────────────────────────────────── */
.woocommerce-checkout-review-order-table {
    width: 100%;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    font-size: 14px;
}
.woocommerce-checkout-review-order-table thead {
    background: var(--navy);
}
.woocommerce-checkout-review-order-table thead th {
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--white);
    text-align: left;
}
.woocommerce-checkout-review-order-table tbody tr {
    border-bottom: 1px solid var(--gray-light);
}
.woocommerce-checkout-review-order-table tbody td,
.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td {
    padding: 10px 14px;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-light);
}
.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    font-weight: 800;
    color: var(--navy);
    font-size: 15px;
    background: var(--light);
}
.product-quantity {
    color: var(--gray);
    font-weight: 600;
    font-size: 13px;
}

/* ── Métodos de pago — ocultar selección, solo botón ──── */
#payment {
    background: none;
    border: none;
    border-radius: 0;
    overflow: visible;
}

/* Ocultar lista de métodos */
.wc_payment_methods,
.payment_box {
    display: none !important;
}

/* ── Botón "Confirmar pedido" ─────────────────────────── */
.place-order {
    padding: 20px 0 0;
    border-top: none;
}

#place_order,
button#place_order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    padding: 0 32px;
    background: var(--orange);
    color: var(--white) !important;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(204,85,0,.35);
    transition: box-shadow .2s, transform .15s, background .2s;
}
#place_order:hover,
button#place_order:hover {
    background: var(--orange-dark);
    box-shadow: 0 6px 20px rgba(204,85,0,.4);
    transform: translateY(-1px);
}
#place_order:active,
button#place_order:active {
    transform: translateY(0);
}

/* Términos y condiciones */
.woocommerce-terms-and-conditions-wrapper {
    padding: 12px 16px 0;
    font-size: 13px;
    color: var(--gray);
}
.woocommerce-terms-and-conditions-wrapper a {
    color: var(--navy);
    text-decoration: underline;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .co-inner--step1 {
        grid-template-columns: 1fr 300px;
        gap: 20px;
    }
}

@media (max-width: 860px) {
    /* Sidebar debajo del form en tablet */
    .co-inner--step1 {
        grid-template-columns: 1fr;
    }
    /* En tablet mostrar sidebar compacto */
    .co-sidebar {
        position: static;
    }
    .co-sidebar__order { padding: 20px; }
    .co-trust { display: none; } /* Ocultar trust en tablet por espacio */

    .co-inner { padding: 28px 24px 16px; }
    .co-section { padding: 24px 24px; }

    #order_review {
        grid-template-columns: 1fr;
    }
    .co-summary-header { grid-column: 1; grid-row: 1; }
    #order_review .woocommerce-checkout-review-order-table { grid-column: 1; grid-row: 2; }
    #order_review #payment { grid-column: 1; grid-row: 3; }
}

@media (max-width: 600px) {
    .co-hero { padding: 18px 0; }
    .co-step__label { font-size: 12px; }
    .co-step__connector { max-width: 50px; margin: 0 10px; }
    .co-body { padding: 0 0 56px; }
    .co-inner { padding: 20px 16px 12px; }
    .co-section { padding: 20px 16px; border-radius: 10px; }
    .co-sidebar__order { border-radius: 10px; }
    .co-trust { display: flex; border-radius: 10px; padding: 16px; }

    .co-billing-grid {
        grid-template-columns: 1fr;
    }
    .co-billing-grid .form-row-wide { grid-column: 1; }

    .co-actions { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
    .co-btn-next { margin-left: 0; width: 100%; justify-content: center; }
    .co-btn-back { width: 100%; justify-content: center; }
    .co-btn-cart { justify-content: center; }

    .woocommerce-checkout .woocommerce-info {
        padding-inline: 16px;
        font-size: 13px;
    }
}

/* ============================================================
   ESTADO DE APROBACIÓN — aviso en carrito, checkout y cuenta
   ============================================================ */

.user-status-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 10px;
    margin-bottom: 28px;
    font-size: 14px;
    line-height: 1.55;
}

.user-status-notice--pending {
    background: #fffbea;
    border: 1.5px solid #f0c040;
    color: #6b4c00;
}

.user-status-notice--rejected {
    background: #fff0f0;
    border: 1.5px solid #f5a0a0;
    color: #7a1a1a;
}

.user-status-notice__icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}

.user-status-notice strong {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 15px;
}

.user-status-notice p {
    margin: 0;
    opacity: .85;
}

/* Variante destacada — para el login/registro post-registro */
.user-status-notice--prominent {
    max-width: 720px;
    margin: 0 auto 28px;
    padding: 22px 28px;
    font-size: 14.5px;
}
.user-status-notice--prominent strong { font-size: 16px; }

/* Mensaje inline en checkout cuando está pendiente */
.co-pending-notice {
    background: #fffbea;
    border: 1.5px solid #f0c040;
    color: #6b4c00;
    border-radius: var(--radius);
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    width: 100%;
}
.co-pending-notice--rejected {
    background: #fff0f0;
    border-color: #f5a0a0;
    color: #7a1a1a;
}

/* Ocultar el botón "Ir al pago" del carrito cuando está pendiente
   (WooCommerce lo renderiza via JS/PHP, así que lo ocultamos por CSS
   cuando el notice está presente) */
.user-status-notice--pending ~ * .cart-summary__checkout-btn,
.user-status-notice--pending ~ .cart-layout .cart-summary__checkout-btn {
    display: none;
}

/* ============================================================
   MY ACCOUNT — Dashboard (usuario logueado)
   ============================================================ */

/* Fondo de la página completa */
.woocommerce-account:not(.logged-out) .site-main,
body.woocommerce-account .site-main {
    padding: 48px 0 80px;
}

/* Ocultar título de página nativo */
.woocommerce-account .entry-title {
    display: none;
}

/* Wrapper principal del dashboard */
.account-dashboard {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px;
    align-items: start;
}

/* ── Navegación lateral ──────────────────────────────────── */
.account-dashboard__nav {
    min-width: 0;
}

/* Anular floats y width% por defecto de WooCommerce */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-navigation {
    float: none !important;
    width: 100% !important;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    overflow: hidden;
    position: sticky;
    top: 24px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: 13px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    border-left: 3px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--light);
    color: var(--navy);
    border-left-color: var(--navy);
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--active a {
    background: var(--light);
    color: var(--navy);
    border-left-color: var(--orange);
    font-weight: 700;
}

/* Separador antes de "Cerrar sesión" */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout {
    border-top: 1px solid var(--gray-light);
}
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: #c62828;
}
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background: #fff5f5;
    border-left-color: #c62828;
}

/* ── Contenido principal ─────────────────────────────────── */
.account-dashboard__content {
    min-width: 0;
}

/* Anular floats por defecto de WooCommerce */
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    padding: 36px 40px;
}

/* Bienvenida en el dashboard */
.woocommerce-MyAccount-content p:first-child {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Links dentro del contenido */
.woocommerce-MyAccount-content a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
    transition: color var(--transition);
}
.woocommerce-MyAccount-content a:hover {
    color: var(--orange);
}

/* Títulos de sección */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    font-family: 'Geologica', var(--font-main);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-light);
}

/* Tablas de pedidos */
.woocommerce-orders-table,
.woocommerce-MyAccount-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.woocommerce-orders-table th,
.woocommerce-MyAccount-content table th {
    background: var(--navy);
    color: var(--white);
    padding: 10px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.woocommerce-orders-table td,
.woocommerce-MyAccount-content table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--gray-light);
    vertical-align: middle;
}
.woocommerce-orders-table tr:last-child td,
.woocommerce-MyAccount-content table tr:last-child td {
    border-bottom: none;
}

/* Botones en el dashboard */
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content button[type="submit"],
.woocommerce-MyAccount-content .woocommerce-Button {
    display: inline-flex;
    align-items: center;
    padding: 11px 24px;
    background: var(--orange);
    color: var(--white) !important;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none !important;
    transition: background var(--transition);
}
.woocommerce-MyAccount-content .button:hover,
.woocommerce-MyAccount-content .woocommerce-Button:hover {
    background: var(--orange-dark);
}

/* Formularios de edición (mis datos, dirección) */
.woocommerce-MyAccount-content .woocommerce-address-fields label,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}
.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content input[type="tel"],
.woocommerce-MyAccount-content select,
.woocommerce-MyAccount-content textarea {
    width: 100%;
    padding: 11px 15px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: 15px;
    color: var(--dark);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    margin-bottom: 4px;
}
.woocommerce-MyAccount-content input:focus,
.woocommerce-MyAccount-content select:focus,
.woocommerce-MyAccount-content textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(2,22,53,.1);
}
.woocommerce-MyAccount-content fieldset {
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 20px;
    margin: 20px 0;
}
.woocommerce-MyAccount-content fieldset legend {
    font-weight: 700;
    color: var(--navy);
    padding: 0 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .account-dashboard {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .woocommerce-MyAccount-navigation {
        position: static;
    }
    .woocommerce-MyAccount-navigation ul {
        display: flex;
        flex-wrap: wrap;
    }
    .woocommerce-MyAccount-navigation ul li {
        flex: 1 1 auto;
    }
    .woocommerce-MyAccount-navigation ul li a {
        padding: 10px 14px;
        font-size: 13px;
        border-left: none;
        border-bottom: 3px solid transparent;
        justify-content: center;
        text-align: center;
    }
    .woocommerce-MyAccount-navigation ul li a:hover,
    .woocommerce-MyAccount-navigation ul li.is-active a {
        border-left: none;
        border-bottom-color: var(--orange);
    }
    .woocommerce-MyAccount-content {
        padding: 24px 20px;
    }
}

/* ============================================================
   THANK YOU PAGE — Pedido recibido
   ============================================================ */

.ty-body { padding: 0 0 72px; }

/* ── Hero de éxito ──────────────────────────────────────────── */
.ty-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 36px 0 28px;
}
.ty-hero--center { flex-direction: column; text-align: center; padding: 60px 0; }

.ty-hero__check {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
}
.ty-hero__check svg { width: 100%; height: 100%; }

.ty-hero__title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 6px;
    line-height: 1.15;
}
.ty-hero__sub {
    font-size: 15px;
    color: var(--gray);
    margin: 0;
    max-width: 520px;
    line-height: 1.55;
}

/* ── Barra de metadatos del pedido ──────────────────────────── */
.ty-meta-bar {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 28px;
    overflow: hidden;
}
.ty-meta-bar__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px;
    flex: 1;
}
.ty-meta-bar__sep {
    width: 1px;
    height: 44px;
    background: var(--border);
    flex-shrink: 0;
}
.ty-meta-bar__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gray);
    font-weight: 600;
}
.ty-meta-bar__value {
    font-size: 14.5px;
    color: var(--navy);
    font-weight: 600;
}
.ty-meta-bar__value--total {
    color: var(--orange);
    font-size: 16px;
    font-weight: 800;
}

/* ── Layout grid detalles ───────────────────────────────────── */
.ty-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}

/* ── Tarjetas ───────────────────────────────────────────────── */
.ty-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}
.ty-card--addr { padding: 20px 24px; }
.ty-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid var(--border);
}
.ty-card__title svg { color: var(--orange); flex-shrink: 0; }

/* ── Tabla de productos ─────────────────────────────────────── */
.ty-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.ty-items-table thead th {
    padding: 0 12px 10px;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--gray);
    font-weight: 600;
    border-bottom: 1.5px solid var(--border);
    text-align: left;
}
.ty-items-table__num { text-align: right !important; }

.ty-items-table__row td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.ty-items-table__product {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ty-items-table__img-wrap {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--light);
}
.ty-items-table__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ty-items-table__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ty-items-table__name {
    font-weight: 600;
    color: var(--navy);
    line-height: 1.35;
}
.ty-items-table__qty {
    font-size: 12px;
    color: var(--gray);
}

.ty-items-table tfoot tr { border-top: 1px solid var(--border); }
.ty-items-table tfoot th,
.ty-items-table tfoot td {
    padding: 10px 12px;
    font-size: 13.5px;
    color: var(--navy);
}
.ty-items-table__total-row--grand th,
.ty-items-table__total-row--grand td {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
    padding-top: 14px;
    border-top: 2px solid var(--navy);
}

/* ── Direcciones ────────────────────────────────────────────── */
.ty-addr {
    font-style: normal;
    font-size: 13.5px;
    color: var(--navy);
    line-height: 1.7;
}
.ty-addr__email {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray);
    margin: 8px 0 0;
}
.ty-addr__email svg { flex-shrink: 0; color: var(--orange); }

/* ── Botones ────────────────────────────────────────────────── */
.ty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .15s, transform .15s;
    margin-bottom: 10px;
}
.ty-btn--full { width: 100%; }
.ty-btn--primary {
    background: var(--orange);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(204,85,0,.25);
}
.ty-btn--primary:hover { opacity: .88; transform: translateY(-1px); color: var(--white); }
.ty-btn--ghost {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--border);
}
.ty-btn--ghost:hover { background: var(--light); color: var(--navy); }

/* ── Pedido fallido ─────────────────────────────────────────── */
.ty-failed {
    text-align: center;
    padding: 60px 24px;
    max-width: 440px;
    margin: 0 auto;
}
.ty-failed__icon {
    width: 60px;
    height: 60px;
    background: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #dc2626;
    margin: 0 auto 20px;
}
.ty-failed h2 { font-size: 22px; color: var(--navy); margin: 0 0 8px; }
.ty-failed p  { color: var(--gray); margin: 0 0 24px; font-size: 14.5px; }
.ty-failed__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Progress bar: paso completado ─────────────────────────── */
.co-step.is-done .co-step__num {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}
.co-step__connector--done { background: var(--orange); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
    .ty-grid { grid-template-columns: 1fr; }
    .ty-meta-bar { flex-wrap: wrap; }
    .ty-meta-bar__sep { display: none; }
    .ty-meta-bar__item { flex: 1 1 45%; padding: 12px 16px; }
    .ty-hero { padding: 24px 0 20px; }
}
@media (max-width: 600px) {
    .ty-hero { flex-direction: column; text-align: center; gap: 12px; }
    .ty-hero__sub { max-width: none; }
    .ty-meta-bar__item { flex: 1 1 100%; }
    .ty-card { padding: 16px; }
    .ty-items-table__product { gap: 8px; }
    .ty-items-table__img-wrap { width: 40px; height: 40px; }
}

