html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* Reset y Variables */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #00a650;
    --danger-color: #ef4444;
    --bg-color: #f5f5f5;
    --text-color: #1e293b;
    --border-color: #e2e8f0;

    /* Sombras */
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);

    /* Capas (Z-Index) */
    --z-back: -1;
    --z-base: 1;
    --z-nav: 1000;
    /* --z-marquee: 1010; */
    --z-notif: 2000;
    --z-modal: 3000;
    --z-overlay: 3010;

    /* Espaciado */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;

    --container-lg: 1400px;
    --container-sm: 900px;

    /* Tipografía — Desktop */
    --fs-h1: 1.75rem;
    /* 28px */
    --fs-h2: 1.375rem;
    /* 22px */
    --fs-h3: 1.125rem;
    /* 18px */
    --fs-h4: 1rem;
    /* 16px */
    --fs-h5: 0.9375rem;
    /* 15px */
    --fs-h6: 0.875rem;
    /* 14px */

    --fs-body: 0.9375rem;
    /* 15px */
    --fs-link: 0.9375rem;
    /* 15px */
    --fs-button: 0.875rem;
    /* 14px */
    --fs-label: 0.75rem;
    /* 12px */
    --fs-input: 0.9375rem;
    /* 15px */
    --fs-small: 0.6875rem;
    /* 11px */
    --fs-span: 0.75rem;


    /* E-commerce — Desktop */
    --fs-product-name: 0.9375rem;
    /* 15px */
    --fs-price: 1.125rem;
    /* 18px */
    --fs-price-featured: 1.375rem;
    /* 22px */
    --fs-price-sale: 1.125rem;
    /* 18px */
    --fs-product-secondary: 0.75rem;
    /* 12px */
    --fs-badge: 0.6875rem;
    /* 11px */
}


/* Tipografía - Tablet (768-1199px) */
@media (max-width: 1199px) {
    :root {
        --fs-h1: 1.625rem;                  /* 26px */
        --fs-h2: 1.25rem;                   /* 20px */
        --fs-h3: 1.125rem;                  /* 18px */
        --fs-h4: 1rem;                      /* 16px */
        --fs-h5: 0.9375rem;                 /* 15px */
        --fs-h6: 0.875rem;                  /* 14px */

        --fs-body: 0.9375rem;               /* 15px */
        --fs-link: 0.9375rem;               /* 15px */
        --fs-button: 0.875rem;              /* 14px */
        --fs-label: 0.75rem;                /* 12px */
        --fs-input: 0.9375rem;              /* 15px */
        --fs-small: 0.6875rem;              /* 11px */

        --fs-product-name: 0.9375rem;       /* 15px */
        --fs-price: 1.0625rem;              /* 17px */
        --fs-price-featured: 1.25rem;       /* 20px */
        --fs-price-sale: 1.0625rem;         /* 17px */
        --fs-product-secondary: 0.75rem;    /* 12px */
        --fs-badge: 0.6875rem;              /* 11px */
    }
}

/* Tipografía - Mobile (<768px) */
@media (max-width: 767px) {
    :root {
        --fs-h1: 1.5rem;                   /* 24px */
        --fs-h2: 1.25rem;                  /* 20px */
        --fs-h3: 1.0625rem;                /* 17px */
        --fs-h4: 1rem;                     /* 16px */
        --fs-h5: 0.9375rem;                /* 15px */
        --fs-h6: 0.875rem;                 /* 14px */

        --fs-body: 0.9375rem;              /* 15px */
        --fs-link: 0.9375rem;              /* 15px */
        --fs-button: 0.875rem;             /* 14px */
        --fs-label: 0.75rem;               /* 12px */
        --fs-input: 1rem;                  /* 16px */
        --fs-small: 0.6875rem;             /* 11px */

        --fs-product-name: 0.9375rem;      /* 15px */
        --fs-price: 1.0625rem;             /* 17px */
        --fs-price-featured: 1.25rem;      /* 20px */
        --fs-price-sale: 1.0625rem;        /* 17px */
        --fs-product-secondary: 0.75rem;   /* 12px */
        --fs-badge: 0.6875rem;             /* 11px */
    }
}



.contenedor {
    width: min(92%, var(--container-lg));
    margin: 0 auto;
    padding: 0 var(--space-xs);
}

@media (max-width: 768px) {
    .contenedor {
        padding: 0;
    }
}

/* =========================
   Banner productos
   ========================= */

.banner {
    display: grid;
    grid-template-columns: 2fr 4fr;
    gap: 32px;
    align-items: center;
    background: var(--primary-color);
    overflow: hidden;
    margin: 2.5rem auto;
}

/* Imagen */
.banner_imagen a {
    display: block;
}

.banner_imagen picture,
.banner_imagen img {
    width: 100%;
    height: auto;
    display: block;
}

/* Info */
.banner_info {
    display: flex;
    align-items: center;
    gap: 32px;
    color: #ffffff;
    padding: 32px;
}

/* Icono */
.banner_info_icono {
    flex-shrink: 0;
    width: 140px;
    height: 100px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner_info_icono img {
    width: 100px;
    height: auto;
}

/* Copy */
.banner_info_copy span {
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    font-weight: 400;
    font-size: var(--fs-span);
}

.banner_info_copy h2 {
    margin: 1rem 0;
    line-height: 1.15;
    color: #ffffff;
    text-transform: uppercase;
    text-align: left;
    font-weight: 700;
}

.banner_info_copy a {
    text-decoration: none;
    display: inline-block;
}

.banner_info_copy a {
    margin: 0;
    font-size: var(--fs-link);
    line-height: 1.4;
    text-transform: uppercase;
    font-weight: 400;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.banner_info_copy a:hover p {
    transform: translateX(4px);
    opacity: 0.85;
}

/* Banner "solo imagen": imagen a ancho completo como fondo con cover,
   mantiene el mismo alto del banner (aspect-ratio 3:1, imágenes 1200x400). */
.banner-solo-imagen {
    width: 100%;
    aspect-ratio: 3 / 1;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.banner-solo-imagen a {
    display: block;
    width: 100%;
    height: 100%;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 768px) {
    .banner {
        grid-template-columns: 1fr;
        margin: 0;
        gap: 0;
    }

    .banner_info {
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .banner_info_copy {
        gap: 0;
    }

    .banner_info_copy h2 {
        margin: .4rem 0;
    }

    .banner_info_copy span {
        margin: .4rem 0;
    }

    .banner_info_icono {
        width: 80px;
        height: 60px;
    }

    .banner_info_icono img {
        width: 50px;
        height: auto;
    }

}

/* Clase universal para border-radius en banners */
.banner-border {
    border-radius: 16px;
}

@media (max-width: 768px) {
    .banner-border {
        border-radius: 12px;
    }
}

/* Clase universal para border-radius en botones */
.btn-border {
    border-radius: 8px;
}

@media (max-width: 768px) {
    .btn-border {
        border-radius: 4px;
    }
}

/* Componente de Botón Base */

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: var(--fs-button);
    line-height: 1.2;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    gap: 0.5rem;
}


.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary {
    background-color: var(--success-color);
    color: white;
}

@media (max-width: 768px) {

    .btn-primary,
    .btn-secondary {
        padding: .8rem 1rem;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Tipografía base: tamaños predefinidos y peso normal en H, span y p */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
}

h4 {
    font-size: var(--fs-h4);
}

h5 {
    font-size: var(--fs-h5);
}

h6 {
    font-size: var(--fs-h6);
}

p,
span {
    font-weight: 400;
}


.redes {
    background-color: var(--primary-color);
    text-align: right;
    padding: 0.4rem 0;
}

.redes a {
    color: white;
    margin-left: 1rem;
    font-size: 1.2rem;
    transition: color 0.3s;
}

@media (max-width: 768px) {
    .redes {
        text-align: center;
    }

    .redes .contenedor {
        width: 100%;
    }

    .redes a {
        font-size: 1.25rem;
    }
}

/* Header y Navegación */
.logo {
    display: block;
    width: 120px;
    margin: 10px 0;
}

@media (max-width: 768px) {
    .logo {
        margin: 0;
    }
}

.navbar {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: var(--z-nav);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .nav-container {
        width: 100%;
        padding: 10px;
    }
}

/* Iconos de acciones del header (solo móvil) */
.header-actions-mobile {
    display: none;
}

.mobile-search {
    display: none;
}

/* Móvil: navbar sticky solo (sin marquee ni barra redes) */
@media (max-width: 768px) {
    .header-wrapper {
        display: contents;
    }

    .header-actions-mobile {
        display: flex;
        align-items: center;
        gap: 0.1rem;
        margin-left: auto;
        margin-right: 0.5rem;
    }

    .header-icon {
        position: relative;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        padding: 0;
        color: var(--text-color);
        font-size: 1.15rem;
        cursor: pointer;
        line-height: 1;
        transition: color 0.25s ease;
    }

    a.header-icon {
        text-decoration: none;
    }

    .header-actions-mobile .favorites-count,
    .header-actions-mobile .cart-count {
        position: absolute;
        top: -4px;
        right: -4px;
        width: 18px;
        height: 18px;
        font-size: 0.68rem;
        line-height: 1;
    }

    .mobile-search {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: var(--z-nav);
        background: white;
        max-height: 0;
        overflow: hidden;
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
        transition: max-height 0.35s ease;
    }

    .mobile-search.open {
        max-height: 70vh;
        border-top: 1px solid var(--border-color);
    }

    .mobile-search .search-container {
        margin: 0.5rem 0.75rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        box-shadow: none;
        overflow: hidden;
    }

    .mobile-search .search-container:focus-within {
        border-color: var(--primary-color);
    }

    .mobile-search .search-input {
        padding: 0.85rem 3rem 0.85rem 1.5rem;
        font-size: 1rem;
    }

    .search-close {
        position: absolute;
        right: 1.25rem;
        background: none;
        border: none;
        color: var(--secondary-color);
        font-size: 1.25rem;
        cursor: pointer;
        z-index: 1;
        transition: color 0.25s ease;
    }

    .mobile-results-count {
        padding: 0.25rem 1rem 0.5rem;
        font-size: 0.85rem;
        color: var(--secondary-color);
        border-bottom: 1px solid var(--border-color);
        margin: 0 0.75rem 0.5rem;
    }

    .mobile-results {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: max-content;
        align-items: start;
        gap: 0.75rem;
        padding: 0 0.75rem 0.75rem;
        max-height: calc(70vh - 96px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-results-empty {
        display: none;
        padding: 1.5rem 1rem 2rem;
        text-align: center;
        color: var(--secondary-color);
        font-size: 0.95rem;
    }

    .mobile-results-empty.visible {
        display: block;
    }

    /* En móvil, al buscar, el slider no debe tapar los resultados */
    body.searching .hero-slider {
        display: none;
    }

    /* Favoritos, Carrito y Búsqueda del drawer: ahora son iconos del header */
    .nav-menu .favorites-link,
    .nav-menu .cart-link,
    .nav-menu .search-link {
        display: none;
    }
}

/* Overlay y cabecera del buscador: solo se muestran en escritorio (side menu) */
.search-sidemenu-overlay,
.search-sidemenu-header {
    display: none;
}

/* Escritorio: el buscador se abre como side menu deslizable desde la derecha.
   Los resultados se muestran en 2 columnas para ver mejor los cards. */
@media (min-width: 769px) {
    html.search-sidemenu-locked,
    html.search-sidemenu-locked body {
        overflow: hidden;
    }

    .search-sidemenu-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: calc(var(--z-overlay) + 1);
        background: rgba(15, 23, 42, 0.72);
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .search-sidemenu-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-search {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(480px, 100%);
        background: white;
        box-shadow: -15px 0 40px rgba(15, 23, 42, 0.12);
        z-index: calc(var(--z-overlay) + 2);
        transform: translateX(100%);
        transition: transform 0.35s ease;
        overflow: hidden;
    }

    .mobile-search.open {
        transform: translateX(0);
    }

    .search-sidemenu-header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 1.35rem 1.25rem 1.1rem 1.5rem;
        flex-shrink: 0;
    }

    .search-sidemenu-title {
        display: flex;
        align-items: center;
        color: var(--primary-color);
        font-size: 1.15rem;
        flex-shrink: 0;
    }

    /* El título "¿Qué estás buscando?" ES el campo de búsqueda */
    .mobile-search .search-side-input {
        flex: 1;
        min-width: 0;
        border: none;
        border-bottom: 2px solid var(--border-color);
        border-radius: 0;
        background: transparent;
        outline: none;
        padding: 0.35rem 0.25rem 0.45rem;
        font-size: 1.3rem;
        color: var(--text-color);
        transition: border-color 0.25s ease;
    }

    .mobile-search .search-side-input:focus {
        border-bottom-color: var(--primary-color);
    }

    .mobile-search .search-side-input::placeholder {
        color: var(--secondary-color);
        opacity: 1;
    }

    .search-side-input::-webkit-search-cancel-button {
        -webkit-appearance: none;
        display: none;
    }

    .search-sidemenu-close {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--bg-color);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        cursor: pointer;
        color: var(--text-color);
        font-size: 1.05rem;
        transition: background 0.25s, color 0.25s, border-color 0.25s;
        flex-shrink: 0;
    }

    .search-sidemenu-close:hover {
        background: var(--danger-color);
        border-color: var(--danger-color);
        color: #fff;
    }

    /* La barra clásica no se usa en escritorio: el título es el buscador */
    .mobile-search .search-container {
        display: none;
    }

    .mobile-results-count {
        margin: 0.9rem 1.25rem 0.5rem;
        padding: 0.35rem 0 0.5rem;
        font-size: 0.85rem;
        color: var(--secondary-color);
        border-bottom: 1px solid var(--border-color);
        flex-shrink: 0;
    }

    .mobile-results {
        flex: 1;
        min-height: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: max-content;
        align-items: start;
        gap: 0.85rem;
        padding: 0.9rem 1.25rem 1.5rem;
        overflow-y: auto;
    }

    .mobile-results-empty {
        display: none;
        padding: 2rem 1.25rem;
        text-align: center;
        color: var(--secondary-color);
        font-size: 0.95rem;
    }

    .mobile-results-empty.visible {
        display: block;
    }

    /* Imágenes de resultados: misma proporción que los cards del home (evita que
       se vean demasiado altas en el panel de 480px) */
    .mobile-results .product-image {
        height: auto;
        aspect-ratio: 5 / 4;
    }
}

/* Si no existe logo en img */

/* .logo {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
    text-decoration: none;
} */

.nav-menu {
    display: flex;
    gap: 1.4rem;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 400;
}

.nav-label {
    display: none;
}

@media (max-width: 768px) {

    .nav-label {
        display: inline;
    }
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* =========================
   Dropdown Submenu
   ========================= */
.nav-item-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-item-dropdown .nav-link i {
    font-size: 0.8rem;
    margin-left: 4px;
    transition: transform 0.3s;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 10px 0;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: var(--z-nav);
}

.nav-item-dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item-dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.submenu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: var(--fs-link);
    line-height: 1.4;
    transition: background 0.2s, color 0.2s;
}

.submenu li a:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

/* Búsqueda como ícono del header: mismo tratamiento que el botón de carrito */
.search-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.cart-count {
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-badge);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
}

.menu-toggle span {
    width: 32px;
    height: 4px;
    background: var(--text-color);
    transition: all 0.3s;
    border-radius: 2px;
}

/* Botón de cierre del menú móvil (solo visible en el drawer) */
.nav-menu-close {
    display: none;
}

/* Hero Section */

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.search-input {
    width: 100%;
    padding: 1.2rem 3rem 1.2rem 2rem;
    border: none;
    font-size: var(--fs-input);
    line-height: 1.4;
    font-family: inherit;
    outline: none;
    background: transparent;
}

.search-input::placeholder {
    color: var(--secondary-color);
}

.search-input::-webkit-search-cancel-button {
    display: none;
}

.no-results {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.no-results.visible {
    display: block;
}

.no-results p {
    font-size: var(--fs-body);
    line-height: 1.5;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Products Section */
.products-section {
    max-width: var(--container-lg);
    margin: 3rem auto;
    padding: 0 1rem;
}

.products-section h2 {
    text-align: center;
    line-height: 1.15;
    margin-bottom: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

#relatedProducts {
    justify-content: center;
}

.product-card {
    position: relative;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image-wrapper {
    position: relative;
}

.quick-add-btn {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: white;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow);
    transition: background 0.3s, color 0.3s;
    z-index: 2;
}

.product-card:hover .quick-add-btn {
    background: var(--primary-color);
    color: white;
}

.product-card.out-of-stock .quick-add-btn {
    display: none;
}

.product-card.out-of-stock .product-image {
    filter: grayscale(0.8);
    opacity: 0.7;
}

.out-of-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--danger-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: var(--fs-badge);
    font-weight: 400;
    z-index: 10;
    text-transform: uppercase;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--border-color);
}

.product-info {
    padding: 1.25rem;
    flex: 1;
}

.product-title {
    line-height: 1.25;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.product-description {
    color: var(--secondary-color);
    font-size: var(--fs-product-secondary);
    line-height: 1.35;
}

.product-price {
    font-size: var(--fs-price);
    color: var(--primary-color);
    margin-bottom: 0;
}

/* Precio anterior tachado (cards, detalle y favoritos) */
.precio-anterior {
    text-decoration: line-through;
    color: var(--secondary-color);
    font-size: 0.85em;
    margin-right: 0.5rem;
}

.product-info .product-price {
    margin-top: 0.6rem;
}

/* Contact Section */

.contact-page {
    width: min(92%, var(--container-lg));
    margin: 3rem auto;
    padding: 0 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.contact-container {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.contact-container h1 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-intro {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Mapa de contacto */
.contact-map-container {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-map-container h2 {
    line-height: 1.2;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-map-container h2 i {
    color: var(--primary-color);
}

.contact-map {
    flex: 1;
    min-height: 350px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 350px;
}

.contact-address {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.contact-address p {
    color: var(--secondary-color);
    font-size: var(--fs-body);
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.contact-address i {
    color: var(--primary-color);
}

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

    .contact-map {
        min-height: 300px;
    }

    .contact-map iframe {
        min-height: 300px;
    }
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: var(--text-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: var(--fs-input);
    line-height: 1.4;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-contact-btn {
    width: 100%;
    padding: 1rem;
    background: var(--success-color);
    color: white;
    border: none;
    font-size: var(--fs-button);
    line-height: 1.2;
    cursor: pointer;
    font-weight: 400;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-contact-btn:hover {
    background: #00a650;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Cart Page */
.cart-page {
    max-width: var(--container-lg);
    margin: 0 auto;
    padding: 0;
}

.cart-page h1 {
    margin-bottom: 2rem;
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin-bottom: 2rem;
}

.cart-items {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    background: var(--border-color);
}

.item-details {
    flex: 1;
}

.item-title {
    margin-bottom: 0.5rem;
}

.item-variant {
    font-size: 0.85rem;
    color: var(--text-secondary, #555);
    margin-bottom: 0.35rem;
}

.item-price {
    color: var(--primary-color);
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    transition: background 0.3s;
}

.qty-btn:hover {
    background: var(--bg-color);
}

.qty-display {
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 3px;
}

.remove-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: var(--fs-button);
    font-weight: 400;
    line-height: 1.2;
    margin-left: auto;
    transition: background 0.3s;
}

.remove-btn:hover {
    background: #dc2626;
}

.cart-summary {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    height: fit-content;
}

.cart-summary h2 {
    margin-bottom: 1rem;
    line-height: 1.15;
}

/* Coupon Section */
.coupon-section {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.coupon-section input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: var(--fs-input);
    line-height: 1.4;
    outline: none;
    transition: border-color 0.3s;
}

.coupon-section input:focus {
    border-color: var(--primary-color);
}

.coupon-section button {
    padding: 0.75rem 1.25rem;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: var(--fs-button);
    font-weight: 400;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.3s;
}

.coupon-section button:hover {
    background: var(--primary-hover);
}

.coupon-section button:disabled {
    background: var(--secondary-color);
    opacity: 0.7;
    cursor: not-allowed;
}

.coupon-section .remove-coupon-btn {
    background: var(--danger-color);
}

.coupon-section .remove-coupon-btn:hover {
    background: #dc2626;
}

@keyframes couponFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.coupon-animate {
    animation: couponFadeIn 0.4s ease-out forwards;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row span {
    font-size: var(--fs-product-secondary);
    line-height: 1.35;
}

.summary-row.total {
    font-size: var(--fs-price-featured);
    font-weight: 400;
    border-top: 2px solid var(--border-color);
    border-bottom: none;
    margin-top: 0.5rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: var(--fs-button);
    line-height: 1.2;
    cursor: pointer;
    margin-top: 1rem;
    font-weight: 400;
    transition: background 0.3s;
}

.checkout-btn:hover {
    background: var(--primary-hover);
}

.checkout-btn:disabled {
    background: var(--secondary-color);
    cursor: not-allowed;
}

/* Checkout Form */
.checkout-form {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.checkout-form.hidden {
    display: none;
}

.checkout-form h2 {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: var(--fs-input);
    line-height: 1.4;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Validación del formulario de pedido */
.form-group .input-invalid,
.form-group .input-invalid:focus {
    border-color: var(--danger-color);
}

.field-error {
    color: var(--danger-color);
    font-size: 0.8125rem;
    margin-top: 0.35rem;
    margin-bottom: 0;
    font-weight: 400;
}

.cp-hint {
    font-size: 0.8125rem;
    margin-left: 0.5rem;
}

.cp-hint a {
    color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--success-color);
    color: white;
    border: none;
    font-size: var(--fs-button);
    line-height: 1.2;
    cursor: pointer;
    font-weight: 400;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #00a650;
}

.submit-btn.loading {
    position: relative;
    background-color: #e2e8f0 !important;
    /* Gris claro de fondo */
    color: var(--text-color) !important;
    pointer-events: none;
    overflow: hidden;
}

.submit-btn.loading span {
    position: relative;
    z-index: 2;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: var(--success-color);
    animation: fillProgress 2.5s ease-in-out forwards;
    z-index: 1;
}

@keyframes fillProgress {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.seguro {
    text-align: center;
    color: var(--secondary-color);
    font-size: var(--fs-product-secondary);
    line-height: 1.35;
    margin-top: 1rem;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 3rem;
}

.empty-cart p {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.shop-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.shop-btn:hover {
    background: var(--primary-hover);
}

/* Footer */
footer {
    background: white;
    text-align: center;
    padding: 2rem;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
}

footer p {
    color: var(--secondary-color);
    font-size: var(--fs-body);
    line-height: 1.5;
}

.footer-heart {
    color: var(--primary-color);
    margin: 0 4px;
}

/* Whatsapp */
.whatsapp {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: var(--z-nav);
    animation: fadeInBtn 1s ease-out forwards;
}

.whatsapp a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background-color: #00a650;
    color: white;
    border-radius: 50%;
    font-size: 2.2rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: whatsappPulse 2s ease-out infinite;
}

.whatsapp a:hover {
    transform: scale(1.1);
    background-color: #00a650;
    animation: none;
}

/* Pulso del botón flotante de WhatsApp */
@keyframes whatsappPulse {
    0% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(0, 166, 80, 0.55);
    }

    70% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 18px rgba(0, 166, 80, 0);
    }

    100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(0, 166, 80, 0);
    }
}

@keyframes fadeInBtn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .whatsapp {
        bottom: 15px;
        left: 15px;
    }

    .whatsapp a {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp a {
        animation: none;
    }
}

.devBy {
    width: 40px;
    vertical-align: middle;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .devBy {
        margin-top: 10px;
        margin-left: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        padding: 0.5rem;
        gap: 4px;
    }

    .menu-toggle span {
        width: 22px;
        height: 3px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background: white;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s;
        align-items: flex-start;
        gap: 1.5rem;
    }

    /* Submenú en móvil */
    .nav-item-dropdown {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .submenu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        padding: 0;
        display: block;
        transition: max-height 0.4s ease-in-out, opacity 0.3s ease, padding 0.4s ease;
    }


    .nav-item-dropdown.active .submenu {
        max-height: 500px;
        /* Un valor mayor al contenido esperado para permitir el deslizamiento */
        opacity: 1;
        visibility: visible;
        padding: 0;
    }

    .nav-item-dropdown.active .nav-link i {
        transform: rotate(180deg);
    }

    .submenu li a {
        font-size: inherit;
        font-weight: 400;
        padding: 0.5rem 0;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu-close {
        display: flex;
        position: absolute;
        top: 1.1rem;
        right: 1.1rem;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        background: var(--bg-color);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        cursor: pointer;
        color: var(--text-color);
        font-size: 1.1rem;
        transition: background 0.25s, color 0.25s, border-color 0.25s;
    }

    .nav-menu-close:hover {
        background: var(--danger-color);
        border-color: var(--danger-color);
        color: #fff;
    }



    .search-input {
        padding: 1rem 3rem 1rem 1.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .cart-container {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-wrap: wrap;
        align-items: center;
        gap: 1rem;
    }

    .item-image {
        width: 80px;
        height: 80px;
    }

    .item-controls {
        width: 100%;
        justify-content: space-between;
    }

    .remove-btn {
        margin-left: 0;
        width: auto;
        padding: 0.6rem 1rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem 0.65rem;
    }

    .product-card {
        min-width: 0;
    }

    .product-image {
        height: clamp(132px, 40vw, 168px);
    }

    .product-info {
        padding: 0.65rem 0.6rem;
    }

    .product-title {
        line-height: 1.25;
        margin-bottom: 0.35rem;
    }

    .product-description {
        line-height: 1.3;
        margin-bottom: 0.45rem;
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }


    .nav-menu {
        width: 100%;
    }
}

/* Thank You Page */
.thank-you-page {
    max-width: var(--container-sm);
    margin: 2rem auto;
    padding: 0 1rem;
}

.success-container {
    background: white;
    border-radius: 8px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--success-color);
}

.success-container h1 {
    color: var(--success-color);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.success-message {
    font-size: var(--fs-body);
    line-height: 1.5;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.info-box {
    background: #f0f9ff;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
    border-radius: 5px;
}

.info-box h2 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.info-box p {
    color: var(--text-color);
    line-height: 1.6;
}

.payment-section {
    margin: 2rem 0;
    text-align: left;
}

.payment-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.15;
}

.payment-intro {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.payment-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
}

.payment-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.payment-table tr:last-child td {
    border-bottom: none;
}

.table-label {
    font-weight: 400;
    color: var(--secondary-color);
    width: 40%;
}

.table-value {
    color: var(--text-color);
    font-size: var(--fs-product-secondary);
    line-height: 1.35;
}

.alias-highlight {
    color: var(--primary-color);
    font-size: var(--fs-product-secondary);
    line-height: 1.35;
    display: inline-block;
    margin-right: 0.5rem;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    cursor: pointer;
    font-size: var(--fs-button);
    font-weight: 400;
    line-height: 1.2;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: var(--primary-hover);
}

.copy-btn.copied {
    background: var(--success-color);
}

.amount-box {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    text-align: center;
}

.amount-label {
    font-size: var(--fs-label);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.amount-value {
    font-size: var(--fs-price-featured);
}

.actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--success-color);
    color: white;
}

.btn-secondary:hover {
    background: #00a650;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .success-container {
        padding: 2rem 1rem;
    }


    .payment-table td {
        padding: 0.75rem;
    }

    .table-label {
        width: 35%;
    }

    .alias-highlight {
        display: block;
        margin-bottom: 0.5rem;
    }

    .copy-btn {
        display: block;
        width: 100%;
    }

    .actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* Product Detail Page */
.product-detail-page {
    width: min(92%, var(--container-lg));
    margin: 2rem auto;
    padding: 0;
}

@media (max-width: 768px) {
    .product-detail-page {
        padding: 0px;
    }
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: var(--fs-label);
    font-weight: 400;
    line-height: 1.2;
    color: var(--secondary-color);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-hover);
}

.product-detail-container {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .product-detail-container {
        padding: 0;
    }
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.product-detail-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: var(--border-color);
}

.product-detail-title {
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.product-category {
    display: inline-block;
    background: var(--bg-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: var(--fs-product-secondary);
    line-height: 1.35;
    font-weight: 400;
    margin-bottom: var(--space-xs);
}

.product-detail-price {
    font-size: var(--fs-price-sale);
    color: var(--primary-color);
    margin: 1rem 0;
}

.product-stock {
    font-size: var(--fs-product-secondary);
    line-height: 1.35;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.product-stock.low {
    color: #f59e0b;
}

.product-stock.out {
    color: var(--danger-color);
}

.product-detail-description {
    color: var(--secondary-color);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-size: var(--fs-body);
    line-height: 1.5;
}

.product-features {
    margin: 2rem 0;
}

.product-features h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.product-features ul {
    list-style: none;
    padding: 0;
    column-count: 2;
    column-gap: 2.5rem;
}

.product-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-features li:before {
    content: "✓";
    color: var(--success-color);
    font-weight: 400;
    font-size: 1.2rem;
}

.product-features li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .product-features ul {
        column-count: 1;
    }
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.quantity-selector label {
    font-weight: 400;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    font-weight: 400;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-value {
    font-size: 1.25rem;
    min-width: 40px;
    text-align: center;
}

.variant-selector {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin: 1rem 0 0.5rem;
}

.variant-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.variant-group label {
    font-weight: 400;
    min-width: 110px;
}

.variant-select {
    flex: 1;
    max-width: 280px;
    padding: 0.55rem 0.75rem;
    border: 2px solid var(--border-color, #e2e2e2);
    border-radius: var(--radius, 6px);
    background: #fff;
    font-size: 0.95rem;
    cursor: pointer;
}

.variant-select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.product-actions-detail {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-add-cart,
.btn-go-cart {
    flex: 1;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: var(--fs-button);
    line-height: 1.2;
    cursor: pointer;
    font-weight: 400;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-cart:hover,
.btn-go-cart:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-add-cart:disabled {
    background: var(--secondary-color);
    cursor: not-allowed;
    transform: none;
}

.product-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.nav-product-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-color);
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 400;
}

.nav-product-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.nav-product-btn.prev:hover {
    transform: translateX(-5px);
}

.related-products {
    margin-top: 3rem;
}

.related-products h2 {
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.15;
}

@media (max-width: 768px) {
    .product-detail-grid {
        padding: 20px;
        grid-template-columns: 1fr;
        gap: 2rem;
    }



    .product-actions-detail {
        flex-direction: column;
    }

    .product-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-product-btn {
        justify-content: center;
    }
}

/* ===================================
   BOTONES DE COMPARTIR
   =================================== */

.product-share {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.product-share h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    text-transform: none;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.share-btn.facebook {
    background-color: #1877f2;
}

.share-btn.twitter {
    background-color: #000000;
}

.share-btn.wa-share {
    background-color: #00a650;
}

.share-btn.copy {
    background-color: var(--secondary-color);
}

@media (max-width: 480px) {
    .product-share {
        margin-top: 1.5rem;
        text-align: center;
    }

    .share-buttons {
        justify-content: center;
    }

    .share-btn {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
}

/* Estilos adicionales para la galería de imágenes en producto-detalle.css */
/* Agregar estos estilos al archivo styles.css existente */

/* Contenedor de imagen principal */
.main-image-wrapper {
    position: relative;
    width: 100%;
    background: var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.product-detail-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    transition: opacity 0.3s ease;
}

/* Botones de navegación de la galería */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-family: inherit;
    line-height: 1;
}

.gallery-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn.prev-img {
    left: 1rem;
}

.gallery-nav-btn.next-img {
    right: 1rem;
}

/* Contador de imágenes */
.image-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: var(--fs-small);
    line-height: 1.3;
    font-weight: 400;
}

/* Contenedor de miniaturas */
.thumbnails-container {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnails-container::-webkit-scrollbar {
    height: 6px;
}

.thumbnails-container::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 3px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

/* Miniaturas */
.thumbnail {
    min-width: 80px;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.6;
}

.thumbnail:hover {
    opacity: 1;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .gallery-nav-btn.prev-img {
        left: 0.5rem;
    }

    .gallery-nav-btn.next-img {
        right: 0.5rem;
    }

    .image-counter {
        bottom: 0.5rem;
        right: 0.5rem;
        padding: 0.4rem 0.8rem;
    }

    .thumbnail {
        min-width: 60px;
        width: 60px;
        height: 60px;
    }

    .thumbnails-container {
        gap: 0.5rem;
    }
}

/* Efecto de zoom al pasar el mouse sobre la imagen principal (opcional) */
@media (min-width: 769px) {
    .main-image-wrapper {
        overflow: hidden;
        width: auto;
    }

    .product-detail-image {
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .main-image-wrapper:hover .product-detail-image {
        transform: scale(1.05);
    }
}

/* Estilos para las secciones de categorías */
.category-section {
    /* Se mantiene en container-lg para alinear con productos */
    max-width: var(--container-lg);
    margin: 3rem auto;
    padding: 0;
}

/* Banner de categoría */

/* Ocultar secciones cuando hay búsqueda activa */
body.searching .category-section,
body.searching .banner-intercalado {
    display: none;
}

body.searching .products-section {
    display: block;
}

.products-section {
    display: none;
}

body.searching .products-section {
    display: block;
}

/* FAQ Page Styles */
.faq-page {
    max-width: var(--container-sm);
    margin: 2rem auto;
    padding: 0 1rem;
}

.faq-container {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.faq-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
}

.faq-header h1 {
    margin-bottom: 1rem;
    line-height: 1.1;
}

.faq-intro {
    font-size: var(--fs-body);
    line-height: 1.5;
    opacity: 0.95;
}

.faq-intro a {
    color: white;
    text-decoration: underline;
    font-weight: 400;
}

.faq-sections {
    padding: 2rem;
}

.faq-section {
    margin-bottom: 3rem;
}

.faq-section:last-child {
    margin-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1.15;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.section-title i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.faq-item.active {
    border-color: var(--primary-color);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: white;
    border: none;
    text-align: left;
    font-size: var(--fs-body);
    line-height: 1.5;
    font-weight: 400;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-color);
}

.faq-item.active .faq-question {
    background: var(--bg-color);
    color: var(--primary-color);
}

.faq-question span {
    flex: 1;
    padding-right: 1rem;
}

.faq-question i {
    color: var(--primary-color);
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: white;
}

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
    padding: 1.5rem;
    margin: 0;
    line-height: 1.8;
    color: var(--secondary-color);
}

.faq-answer p {
    margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    padding-left: 3rem;
    padding-top: 0.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-answer strong {
    color: var(--text-color);
    font-weight: 400;
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 400;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-footer {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.faq-footer h3 {
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.faq-footer p {
    font-size: var(--fs-body);
    line-height: 1.5;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.faq-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.faq-cta .btn-primary,
.faq-cta .btn-secondary {
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 400;
    font-size: var(--fs-button);
    line-height: 1.2;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-cta .btn-primary {
    background: var(--primary-color);
    color: white;
}

.faq-cta .btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.faq-cta .btn-secondary {
    background: var(--success-color);
    color: white;
}

.faq-cta .btn-secondary:hover {
    background: #00a650;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 768px) {
    .faq-header {
        padding: 2rem 1.5rem 1.5rem;
    }



    .faq-sections {
        padding: 1.5rem 1rem;
    }


    .faq-question {
        padding: 1rem;
    }

    .faq-answer p,
    .faq-answer ul,
    .faq-answer ol {
        padding: 0 1rem 1rem;
    }

    .faq-answer ul,
    .faq-answer ol {
        padding-left: 2.5rem;
    }

    .faq-footer {
        padding: 2rem 1rem;
    }


    .faq-cta {
        flex-direction: column;
    }

    .faq-cta .btn-primary,
    .faq-cta .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

.iconos-pie {
    background-color: #ffffff;
    margin-top: 4rem;
    padding: 4rem 0 2rem 0;
}

.iconos {
    max-width: var(--container-lg);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .iconos-pie {
        padding: 2rem 0;
    }

    .iconos {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.icono {
    width: 80%;
    text-align: center;
    margin: 0 auto;
}

.icono img {
    width: 64px;
}

.icono p {
    text-wrap: balance;
}

/* ===================================
   MODAL DE ZOOM - ESTILOS FALTANTES
   =================================== */

/* Modal de zoom - Overlay */
.zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.zoom-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Overlay oscuro */
.zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

/* Contenedor del zoom */
.zoom-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Botón de cerrar */
.zoom-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.zoom-close:hover {
    background: white;
    color: #000;
    transform: rotate(90deg);
}

/* Botones de navegación en zoom */
.zoom-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.zoom-nav-btn:hover {
    background: white;
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.zoom-nav-btn.prev {
    left: 2rem;
}

.zoom-nav-btn.next {
    right: 2rem;
}

/* Wrapper de la imagen en zoom */
.zoom-image-wrapper {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Imagen en zoom */
.zoom-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease, opacity 0.2s ease;
    user-select: none;
}

/* Contador en zoom */
.zoom-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: var(--fs-small);
    line-height: 1.3;
    font-weight: 400;
    z-index: 10001;
}

/* Miniaturas en zoom */
.zoom-thumbnails {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    max-width: 90%;
    overflow-x: auto;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    z-index: 10001;
}

.zoom-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.zoom-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.zoom-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.zoom-thumbnail {
    min-width: 80px;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.6;
}

.zoom-thumbnail:hover {
    opacity: 1;
    border-color: white;
    transform: scale(1.05);
}

.zoom-thumbnail.active {
    opacity: 1;
    border-color: white;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* Hint de zoom */
.zoom-hint {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: var(--fs-small);
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.main-image-wrapper:hover .zoom-hint {
    opacity: 1;
}

.zoom-hint i {
    font-size: 1rem;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .zoom-container {
        padding: 1rem;
    }

    .zoom-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .zoom-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .zoom-nav-btn.prev {
        left: 0.5rem;
    }

    .zoom-nav-btn.next {
        right: 0.5rem;
    }

    .zoom-counter {
        bottom: 1rem;
        padding: 0.5rem 1rem;
    }

    .zoom-thumbnails {
        bottom: 3.5rem;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .zoom-thumbnail {
        min-width: 60px;
        width: 60px;
        height: 60px;
    }

    .zoom-hint {
        padding: 0.4rem 0.8rem;
    }

    .zoom-image {
        max-height: 70vh;
    }
}

/* Prevenir scroll cuando el modal está activo */
body.zoom-active {
    overflow: hidden;
}

/* ===================================
   FAVORITO BUTTON
   =================================== */

.product-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.product-title-row h1 {
    margin: 0;
}

.btn-favorito {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-top: 0.25rem;
}

.btn-favorito i {
    font-size: 1.4rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.btn-favorito:hover {
    border-color: #ef4444;
    background: #fef2f2;
    transform: scale(1.1);
}

.btn-favorito:hover i {
    color: #ef4444;
}

.btn-favorito.active {
    border-color: #ef4444;
    background: #fef2f2;
}

.btn-favorito.active i {
    color: #ef4444;
}

/* ===================================
   FAVORITES NAV LINK
   =================================== */

.favorites-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.favorites-count {
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-badge);
    position: absolute;
    top: -10px;
    right: -16px;
}

@media (max-width: 768px) {
    .favorites-count {
        position: static;
    }
}

/* ===================================
   FAVORITOS PAGE
   =================================== */

.favoritos-page {
    max-width: var(--container-sm);
    margin: 2rem auto;
    padding: 0 1rem;
}

.favoritos-page h1 {
    margin-bottom: 0.5rem;
    line-height: 1.1;
    color: var(--text-color);
}

.favoritos-page h1 i {
    color: #ef4444;
    margin-right: 0.5rem;
}

.favoritos-subtitle {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.favoritos-list {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.favorito-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.favorito-item:last-child {
    border-bottom: none;
}

.favorito-item:hover {
    background: var(--bg-color);
}

.favorito-imagen {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--border-color);
    flex-shrink: 0;
}

.favorito-info {
    flex: 1;
    min-width: 0;
}

.favorito-nombre {
    font-weight: 400;
    font-size: var(--fs-product-name);
    line-height: 1.25;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.favorito-nombre:hover {
    color: var(--primary-color);
}

.favorito-categoria {
    font-size: var(--fs-product-secondary);
    line-height: 1.35;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.favorito-precio {
    font-size: var(--fs-price);
    color: var(--primary-color);
}

.favorito-acciones {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.favorito-ver-btn {
    padding: 0.6rem 1.25rem;
    background: var(--primary-color);
    color: white;
    border: none;
    text-decoration: none;
    font-size: var(--fs-button);
    font-weight: 400;
    line-height: 1.2;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.favorito-ver-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.favorito-eliminar-btn {
    padding: 0.6rem 1rem;
    background: white;
    color: #ef4444;
    border: 2px solid #ef4444;
    cursor: pointer;
    font-size: var(--fs-button);
    font-weight: 400;
    line-height: 1.2;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.favorito-eliminar-btn:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-2px);
}

.favoritos-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.favoritos-empty i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 1.5rem;
}

.favoritos-empty h2 {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.favoritos-empty p {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-size: var(--fs-body);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .favorito-item {
        flex-wrap: wrap;
        padding: 1rem;
        gap: 1rem;
    }

    .favorito-imagen {
        width: 70px;
        height: 70px;
    }

    .favorito-acciones {
        width: 100%;
        justify-content: stretch;
    }

    .favorito-ver-btn,
    .favorito-eliminar-btn {
        flex: 1;
        justify-content: center;
        text-align: center;
    }

}


/* ===================================
   HERO SLIDER - ESTILOS
   =================================== */

.hero-slider {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    background: #000;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    opacity: 0.7;
    transition: opacity 0.6s ease;
}

.slider-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Anchor opcional del slide dinámico: neutraliza estilos de link sin alterar el diseño.
   width/height 100% dan altura definida para que el height:100% de la img resuelva igual que sin link */
.slider-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.slider-slide picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay con gradiente para mejor legibilidad del texto */
.slider-content {
    padding: 1rem 6rem;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.5) 35%,
            rgba(0, 0, 0, 0.3) 65%,
            rgba(0, 0, 0, 0) 100%);
}

.slider-text {
    max-width: var(--container-lg);
    width: 100%;
    padding: 0 2rem;
    color: white;
    animation: slideInContent 0.8s ease-out;
}

.slider-slide:not(.active) .slider-text {
    animation: none;
}

.slider-text h1 {
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 600;
    font-size: 2rem;
}

.slider-text p {
    font-size: var(--fs-body);
    line-height: 1.5;
    margin-bottom: 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Desktop: descripción del slider con tamaño aumentado */
@media (min-width: 769px) {
    .slider-text p {
        font-size: calc(var(--fs-body) * 1.4);
        line-height: 1.4;
    }
}

/* Botones de navegación */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
    transform: translateY(-50%) scale(1.08);
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-nav.prev {
    left: 2rem;
}

.slider-nav.next {
    right: 2rem;
}

/* Animación de entrada del contenido */
@keyframes slideInContent {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    .hero-slider {
        height: 400px;
    }



    .slider-nav {
        width: 50px;
        height: 50px;
        font-size: 0.95rem;
    }

    .slider-nav.prev {
        left: 1.5rem;
    }

    .slider-nav.next {
        right: 1.5rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .hero-slider {
        height: 350px;
    }

    .slider-content {
        background: linear-gradient(to bottom,
                rgba(0, 0, 0, 0) 0%,
                rgba(0, 0, 0, 0.7) 60%,
                rgba(0, 0, 0, 0.85) 100%);
        align-items: flex-end;
        padding: 2rem;
    }

    .slider-text {
        text-align: center;
        padding: 0;
    }

    .slider-text h1 {
        margin: 0;
    }


    .slider-nav {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }

    .slider-nav.prev {
        left: 1rem;
    }

    .slider-nav.next {
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 300px;
    }



    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }

    .slider-nav.prev {
        left: 0.5rem;
    }

    .slider-nav.next {
        right: 0.5rem;
    }
}

/* Mejora para accesibilidad */
.slider-nav:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* Smooth scroll cuando se navega con teclado */
@media (prefers-reduced-motion: reduce) {
    .slider-track {
        transition: none;
    }

    .slider-slide {
        transition: none;
    }

    .slider-nav {
        transition: none;
    }

    .slider-nav:hover,
    .slider-nav:active {
        transform: translateY(-50%);
    }

    @keyframes slideInContent {

        from,
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* ===================================
   SOBRE NOSOTROS PAGE
   =================================== */

/* Hero Nosotros */

/* Sección Historia */

/* Sección Valores */

/* Sección Por qué elegirnos */

/* Banner CTA Nosotros */

/* Responsive - Nosotros Page */

/* ===================================
   MARQUEE PROMOCIONAL (desactivado)
   =================================== */

/*
.marquee-bar {
    background-color: #000000;
    color: #ffffff;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
    z-index: var(--z-marquee);
    padding: 10px 0;
    font-size: var(--fs-label);
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.marquee-track {
    display: inline-flex;
    animation: marquee-scroll 25s linear infinite;
}

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

.marquee-item {
    display: inline-flex;
    align-items: center;
    padding: 0 3rem;
    white-space: nowrap;
}

.marquee-separator {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    opacity: 0.5;
    margin: 0 1rem;
    flex-shrink: 0;
    vertical-align: middle;
    position: relative;
    top: -1px;
}
*/

/* Animación de desplazamiento continuo */
/*
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}
*/

/* ============ Testimonios (carrusel de reseñas) ============ */

.testimonios-carousel {
    width: 100%;
    overflow: hidden;
    background: var(--bg-color);
    padding: 2.5rem 0;
}

.testimonios-viewport {
    width: 100%;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

.testimonios-viewport.arrastrando {
    cursor: grabbing;
}

.testimonios-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.testimonio-card {
    flex: 0 0 25vw;
    width: 25vw;
    padding: 0 0.75rem;
    box-sizing: border-box;
}

.testimonio-body {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonio-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.testimonio-foto {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonio-info {
    flex: 1;
    min-width: 0;
}

.testimonio-nombre {
    font-size: var(--fs-body);
    color: var(--text-color);
    margin-bottom: 0.2rem;
}

.testimonio-stars {
    display: flex;
    gap: 0.15rem;
    margin-bottom: 0.2rem;
}

.testimonio-stars .star {
    font-size: 0.85rem;
    color: #f59e0b;
}

.testimonio-stars .fa-regular.star {
    color: #d1d5db;
}

.testimonio-fecha {
    font-size: var(--fs-small);
    color: var(--secondary-color);
}

.google-isologo {
    font-size: 1.4rem;
    color: #4285F4;
    flex-shrink: 0;
    line-height: 1;
}

.testimonio-texto {
    margin-top: 0.9rem;
    font-size: var(--fs-body);
    line-height: 1.5;
    color: var(--text-color);
}

/* Testimonios responsive */
@media (max-width: 1199px) {
    .testimonio-card {
        flex: 0 0 33.333vw;
        width: 33.333vw;
    }
}

@media (max-width: 767px) {
    .testimonio-card {
        flex: 0 0 100vw;
        width: 100vw;
    }
}

/* Responsive */
/*
@media (max-width: 768px) {
    .marquee-bar {
        padding: 8px 0;
    }

    .marquee-item {
        padding: 0 2rem;
    }

    .marquee-track {
        animation-duration: 20s;
    }
}
*/

/*
@media (max-width: 480px) {
    .marquee-bar {
        padding: 7px 0;
    }

    .marquee-item {
        padding: 0 1.5rem;
    }

    .marquee-track {
        animation-duration: 18s;
    }
}
*/

/* ========================
        Página 404
======================== */
.page-404 {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    background: var(--bg-color);
    overflow: hidden;
}

.page-404__inner {
    text-align: center;
    max-width: 600px;
    animation: fadeInUp 0.6s ease both;
}

/* Número grande */
.page-404__number {
    font-size: clamp(7rem, 16vw, 12rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--primary-color) 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    user-select: none;
}

/* Ícono flotante sobre el 0 central */

.page-404__emoji {
    display: block;
    font-size: clamp(3.5rem, 10vw, 6rem);
    animation: bounce 2s ease-in-out infinite;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.page-404__title {
    line-height: 1.1;
    color: var(--text-color);
    margin: 1rem 0 0.75rem;
}

.page-404__desc {
    font-size: var(--fs-body);
    line-height: 1.5;
    color: var(--secondary-color);
    margin-bottom: 2.5rem;
}

/* Botones */
.page-404__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-404-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: var(--primary-color);
    color: #fff;
    font-weight: 400;
    font-size: var(--fs-button);
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-404-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-404-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--border-color);
    font-weight: 400;
    font-size: var(--fs-button);
    line-height: 1.2;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

.btn-404-secondary:hover {
    border-color: var(--primary-color);
    background: #eff6ff;
    transform: translateY(-2px);
}

/* Decoración de fondo */
.page-404__bg-blobs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.page-404__bg-blobs span {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
    background: var(--primary-color);
}

.page-404__bg-blobs span:nth-child(1) {
    width: 500px;
    height: 500px;
    top: -150px;
    left: -150px;
    animation: drift 12s ease-in-out infinite alternate;
}

.page-404__bg-blobs span:nth-child(2) {
    width: 300px;
    height: 300px;
    bottom: -80px;
    right: -80px;
    animation: drift 9s ease-in-out infinite alternate-reverse;
}

.page-404__bg-blobs span:nth-child(3) {
    width: 180px;
    height: 180px;
    top: 40%;
    right: 10%;
    animation: drift 15s ease-in-out infinite alternate;
}

/* Línea decorativa */
.page-404__divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #60a5fa);
    border-radius: 4px;
    margin: 0 auto 1.5rem;
}

.page-404__inner {
    position: relative;
    z-index: 1;
}

/* Sugerencias de links */
.page-404__links {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.page-404__links p {
    font-size: var(--fs-small);
    line-height: 1.3;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.page-404__quick-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.page-404__quick-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: var(--fs-link);
    line-height: 1.4;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: 99px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    transition: background 0.2s, transform 0.15s;
    font-weight: 400;
}

.page-404__quick-links a:hover {
    background: #dbeafe;
    transform: translateY(-1px);
}

/* Animaciones */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drift {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(30px, 20px) scale(1.05);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .page-404__actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-404-primary,
    .btn-404-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ===================================
   Popup salida (exit intent)
   =================================== */

html.exit-intent-locked,
html.exit-intent-locked body {
    overflow: hidden;
}

.exit-intent-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.exit-intent-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.exit-intent-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.exit-intent-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: #fff;
    color: var(--text-color);
    border-radius: 16px;
    padding: 2rem 1.75rem 1.75rem;
    box-shadow: var(--shadow-lg), 0 25px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.35s ease;
}

.exit-intent-modal.active .exit-intent-dialog {
    transform: translateY(0) scale(1);
}

.exit-intent-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background: var(--bg-color);
    color: var(--secondary-color);
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.exit-intent-close:hover {
    background: var(--border-color);
    color: var(--text-color);
}

.exit-intent-dialog h2 {
    line-height: 1.2;
    margin: 0 2rem 0.75rem 0;
}

.exit-intent-dialog p {
    margin: 0 0 1.5rem;
    font-size: var(--fs-body);
    line-height: 1.5;
    color: var(--secondary-color);
}

.exit-intent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.exit-intent__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    background: var(--primary-color);
    color: #fff !important;
    font-weight: 400;
    font-size: var(--fs-button);
    line-height: 1.2;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s;
}

.exit-intent__cta:hover {
    background: var(--primary-hover);
}

.exit-intent__secondary {
    padding: 0.65rem 1rem;
    background: transparent;
    color: var(--secondary-color);
    font-size: var(--fs-label);
    font-weight: 400;
    line-height: 1.2;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.exit-intent__secondary:hover {
    border-color: var(--secondary-color);
    color: var(--text-color);
}

/* ===================================
   Notificaciones y Modales Dinámicos
   =================================== */

.notificacion-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--success-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: var(--z-notif);
    animation: slideIn 0.3s ease-out;
}

.notificacion-toast.error {
    background: var(--danger-color);
}

.confirmacion-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    animation: fadeIn 0.3s ease-out;
}

.confirmacion-overlay.emergencia {
    z-index: 4000;
}

.confirmacion-modal {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 400px;
    margin: 1rem;
    animation: slideUp 0.3s ease-out;
}

/* ============ Migración estilos inline JS ============ */

/* Utilidad ocultar */
.hidden {
    display: none !important;
}

/* Modal de confirmación (formulario.js y contacto-form.js) */
.confirmacion-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.confirmacion-title {
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.confirmacion-title.success {
    color: #00a650;
    margin-bottom: 1rem;
}

.confirmacion-text {
    color: #64748b;
    margin-bottom: 1.25rem;
}

.confirmacion-btn {
    padding: 0.75rem 2rem;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
    display: inline-block;
}

.confirmacion-btn.verde {
    background: #00a650;
    margin-bottom: 0.75rem;
}

/* Carrito: item sin stock y alertas */
.cart-item.sin-stock {
    border: 1px solid var(--danger-color);
    background: #fff5f5;
}

.cart-item.sin-stock .item-image {
    filter: grayscale(1);
    opacity: 0.5;
}

.stock-alert {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.stock-alert-danger {
    color: var(--danger-color);
}

.stock-alert-warn {
    color: #f59e0b;
}

/* =========================
   SIDEMENU DEL CARRITO
   ========================= */

html.cart-sidemenu-locked,
html.cart-sidemenu-locked body {
    overflow: hidden;
}

.cart-sidemenu-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.cart-sidemenu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cart-sidemenu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.cart-sidemenu-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(420px, 100%);
    background: #fff;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg), -15px 0 40px rgba(15, 23, 42, 0.12);
    transform: translateX(100%);
    transition: transform 0.35s ease;
}

.cart-sidemenu-overlay.active .cart-sidemenu-panel {
    transform: translateX(0);
}

.cart-sidemenu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.cart-sidemenu-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-sidemenu-header h2 i {
    color: var(--primary-color);
}

.cart-sidemenu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.05rem;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.cart-sidemenu-close:hover {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: #fff;
}

.cart-sidemenu-items {
    flex: 1;
    overflow-y: auto;
    padding: 0 1.5rem;
}

.side-cart-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

.side-cart-item:last-child {
    border-bottom: none;
}

.side-cart-item.sin-stock {
    margin: 0.75rem -0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--danger-color);
    border-radius: 8px;
    background: #fff5f5;
}

.side-cart-item.sin-stock .item-image {
    filter: grayscale(1);
    opacity: 0.5;
}

.side-item-details {
    flex: 1;
    min-width: 0;
}

.side-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.side-remove-btn {
    margin-left: auto;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
}

.side-remove-btn:hover {
    background: var(--danger-color);
    color: #fff;
}

.side-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 3rem 1rem;
}

.side-cart-empty>i {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 0.5rem;
}

.side-cart-empty h3 {}

.side-cart-empty p {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.side-cart-empty .shop-btn {
    margin-top: 1rem;
}

.cart-sidemenu-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem 1.5rem;
    background: #fff;
}

.side-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    font-size: 0.95rem;
}

.side-total-row {
    border-top: 2px solid var(--border-color);
    margin-top: 0.35rem;
    padding-top: 0.75rem;
    font-size: 1.15rem;
    font-weight: 400;
}

.side-total-row span:last-child {
    color: var(--primary-color);
}

.side-cart-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.9rem 1rem;
    background: var(--primary-color);
    color: #fff;
    font-size: var(--fs-button);
    font-weight: 400;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
}

.side-cart-checkout:hover {
    background: var(--primary-hover);
}

.side-cart-checkout i {
    font-size: 0.85rem;
}

.side-cart-continue {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fff;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: var(--fs-button);
    font-weight: 400;
    transition: background 0.3s, border-color 0.3s;
}

.side-cart-continue:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
}

@media (max-width: 480px) {
    .cart-sidemenu-panel {
        width: 100%;
    }

    .cart-sidemenu-header,
    .cart-sidemenu-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .cart-sidemenu-items {
        padding: 0 1rem;
    }

    .side-cart-empty {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .cart-sidemenu-overlay,
    .cart-sidemenu-panel {
        transition: none;
    }
}