* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #fff;

}

/* Barra superior de ofertas */
.top-bar {
    background-color: #382568;
    color: #fff;
    padding: 8px 0;
    text-align: center;
    font-size: 13px;
}

.top-bar a {
    color: #fff;
    text-decoration: underline;
    margin-left: 5px;
}

/* Navbar principal */
.main-navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* padding: 15px 0 0; */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: fixed;
    /* Cambiado de sticky a fixed */
    top: 0;
    left: 0;
    /* Agregado */
    right: 0;
    /* Agregado */
    width: 100%;
    /* Agregado */
    z-index: 1000;
    transition: transform 0.3s ease;
    /* Agregado para animación suave */
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 15px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    letter-spacing: 2px;
    white-space: nowrap;
}

.search-bar {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 1px solid #ffffff;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.search-bar input:focus {
    outline: none;
    border-color: #ffffff;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    color: #666;
    font-size: 18px;
}

.search-bar button:hover {
    color: #000;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-icon {
    position: relative;
    color: #ffffff;
    text-decoration: none;
    font-size: 22px;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.nav-icon:hover {
    /* transform: scale(1.1); */
    color: #ffffff;
}

.nav-icon .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff4757;
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
}

.nav-icon i {
    color: white !important;
}

.category-menu {
    display: flex;
    align-items: center;
    background-color: #382568;
    padding: 0;
    position: relative;
    height: 40px;
}

.scroll-btn {
    width: 40px;
    height: 40px;
    background-color: #382568;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
}

.scroll-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-btn:hover {
    background-color: #382568;
}

.scroll-btn:active {
    background-color: #382568;
}

.scroll-left {
    border-right: 1px solid #382568;
}

.scroll-right {
    border-left: 1px solid #382568;
}

.category-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
    height: 40px;
    align-items: center;
    background-color: #382568;
    /* Ocultar scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-container::-webkit-scrollbar {
    display: none;
}

.category-link {
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 40px;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 400;
    transition: background-color 0.2s ease;
    border-right: 1px solid #382568;
    flex-shrink: 0;
}

.category-link:first-child {
    border-left: 1px solid #382568;
}

.category-link:hover {
    background-color: #382568;
}

.category-link:active {
    background-color: #382568;
}

/* Responsive */
@media (max-width: 768px) {
    .category-menu {
        height: 36px;
    }

    .category-container {
        height: 36px;
    }

    .category-link {
        height: 36px;
        padding: 0 12px;
        font-size: 12px;
    }

    .scroll-btn {
        width: 36px;
        height: 36px;
    }
}


body {
    padding-top: 110px;
}

/* BANNER SECTION ESTILO SHEIN */
.banner-section {
    max-width: 1400px;
    margin: 0px auto;
    padding: 0 20px;
}

.banner-grid {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 15px;
    align-items: center;
}

/* Columnas laterales */
.side-banners {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    justify-content: center;
}

.side-banner {
    height: 80px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;

}

.side-banner .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00000057;
    z-index: 0;
    /* debajo del texto */
}

.side-banner:hover {
    transform: translateY(-3px);
}

.side-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.side-banner-text {
    position: absolute;
    bottom: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    width: 100%;
    padding-left: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    background-image: linear-gradient(89deg, #000000 1.01%, #4b348c00 61.44%);
}

/* Banner principal central */
.main-banner {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
}

.main-carousel-wrapper {
    height: 270px;
    position: relative;
    overflow: hidden;
}

.main-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.main-slide {
    min-width: 100%;
    position: relative;
}

.main-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Controles del carousel principal */
.main-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
}

.control-btn {
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.control-btn:hover {
    background-color: #fff;
    transform: scale(1.1);
}

.control-btn i {
    font-size: 22px;
    color: #000;
}

/* Indicadores del carousel principal */
.main-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.main-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.main-indicator.active {
    background-color: #fff;
    width: 30px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 1200px) {
    .banner-grid {
        grid-template-columns: 240px 1fr 240px;
        gap: 12px;
    }

    .side-banner-text {
        font-size: 16px;
    }
}

@media (max-width: 992px) {
    .navbar-container {
        flex-wrap: wrap;
    }

    .search-bar {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
        margin-top: 15px;
    }

    .banner-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .side-banners {
        display: none;
    }

    .category-container {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 24px;
    }

    .nav-icons {
        gap: 15px;
    }

    .nav-icon {
        font-size: 20px;
    }

    .category-container {
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .category-link {
        white-space: nowrap;
    }

    .top-bar {
        font-size: 12px;
        padding: 6px 10px;
    }

    .banner-section {
        margin: 15px auto;
        padding: 0 15px;
    }

    .control-btn {
        width: 38px;
        height: 38px;
    }

    .control-btn i {
        font-size: 18px;
    }

    .main-indicators {
        bottom: 12px;
    }

    .main-indicator {
        width: 8px;
        height: 8px;
    }

    .main-indicator.active {
        width: 24px;
    }

    .container-btn-variant {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .main-controls {
        padding: 0 10px;
    }

    .control-btn {
        width: 32px;
        height: 32px;
    }

    .control-btn i {
        font-size: 16px;
    }


}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* --- TARJETA DEL PRODUCTO --- */
.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;

}

.link {
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

/* --- IMAGEN DEL PRODUCTO --- */
.product-image {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.07);
}

/* --- ETIQUETAS (NUEVO, OFERTA, TOP, ETC) --- */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    color: #fff;
    text-transform: uppercase;
}

.product-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.product-badge.new {
    background-color: #382568;
}

.product-badge.sale {
    background-color: #e63946;
}

.product-badge.top {
    background-color: #2a9d8f;
}

/* --- BOTÓN DE FAVORITOS --- */
.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: #fff;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wishlist-btn:hover {
    background: #f3f3f3;
}

/* --- INFORMACIÓN DEL PRODUCTO --- */
.product-info {
    padding: 15px;
}

/* TÍTULO */
.product-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* --- RATING --- */
.product-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 8px;
    color: #ffb703;
}

.product-rating span {
    font-size: 13px;
    color: #555;
    margin-left: 6px;
}

/* --- PRECIOS --- */
.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.discount {
    background: #e63946;
    color: #fff;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* --- BOTÓN AÑADIR AL CARRITO --- */
.add-to-cart-btn {
    width: 100%;
    background: #382568;
    border: none;
    color: white;
    padding: 10px 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.add-to-cart-btn:hover {
    background: #382568;
}


.top-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;

}

.container-money-idioma {
    display: flex;
    align-items: center;
    margin: 0;
}

li {
    list-style: none;
}

.dropdown-menu.show {
    z-index: 1500;
}

.dropdown-item {
    color: #382568 !important;
    text-decoration: none !important;
}

.dropdown-item:hover {
    cursor: pointer !important;
}

a {

    text-decoration: none !important;

}


.favorites-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

.favorites-sidebar.active {
    right: 0;
}

.favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.favorites-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.favorites-header i {
    color: #e74c3c;
    margin-right: 8px;
}

.close-favorites {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.close-favorites:hover {
    color: #000;
}

.favorites-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.favorites-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.favorites-overlay.active {
    display: block;
}

.empty-favorites {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-favorites i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-favorites p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #666;
}

.empty-favorites small {
    color: #999;
}

.favorite-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: box-shadow 0.2s;
}

.favorite-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.favorite-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.favorite-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.favorite-item-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.favorite-item-price {
    color: #e74c3c;
    font-weight: 700;
    font-size: 1.1rem;
}

.favorite-item-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.favorite-item-actions button {
    padding: 5px 12px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-add-cart {
    background: #382568;
    color: white;
}

.btn-add-cart:hover {
    background: #382568;
}

.btn-remove-fav {
    background: #f8f9fa;
    color: #666;
}

.btn-remove-fav:hover {
    background: #e74c3c;
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .favorites-sidebar {
        width: 100%;
        right: -100%;
    }
}


/* desde aqui */

@media (max-width: 992px) {
    .banner-section {
        margin-top: 110px !important;
    }
}

@media (max-width: 630px) {
    .banner-section {
        padding: 0 20px !important;
    }
}

@media (max-width: 520px) {
    .banner-section {
        margin-top: 40px !important;
        margin-bottom: 0px !important;
        padding: 0 10px !important;
    }

    .products-section {
        padding: 0 0px 50px !important;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 5px !important;
    }

    .product-image img {
        object-fit: contain !important;
        height: auto !important;
    }

    .product-image {
        height: auto !important;
    }

    .navbar-container {
        gap: 0px !important;
    }

    .container-other {
        padding: 50px 0px !important;
    }

    .title-other {
        font-size: 35px !important;
    }

    .img-product-detail {
        width: 100% !important;
        max-height: none !important;
    }

    .title-product-detail {
        font-size: 25px !important;
    }

}

.view-cart-btn {
    color: white;
    background-color: #10b981;
    font-size: 15px !important;
    font-weight: 500 !important;
}


/* ========== MENÚ DESPLEGABLE DE CUENTA ========== */
.dropdown-cuenta {
    position: absolute;
    right: 20px;
    top: 75px;
    width: 360px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    z-index: 5000;

    /* OCULTO POR DEFECTO */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-cuenta.mostrar {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* ========== HEADER DEL PERFIL ========== */
.cuenta-header {
    padding: 28px 24px;
    /* background: linear-gradient(135deg, #4c348c 0%, #7856d1 100%); */
    position: relative;
    overflow: hidden;
}

.cuenta-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    /* background: rgba(255, 255, 255, 0.08); */
    border-radius: 50%;
}

.perfil-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    position: relative;
    z-index: 1;
    transition: transform 0.2s;
}



.perfil-link .bi-chevron-right {
    margin-left: auto;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.2s;
}

.avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 4px solid #4c348c56;
}

.avatar-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-letras {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8b6fd4 0%, #a98ee6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.perfil-datos {
    flex: 1;
    min-width: 0;
}

.perfil-nombre {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
    color: #4c348c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.perfil-email {
    display: block;
    font-size: 13px;
    color: #4c348c;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== LISTA DE OPCIONES ========== */
.cuenta-opciones {
    list-style: none;
    padding: 5px 0;
    margin: 0;
}

.cuenta-opciones li {
    margin: 0;
}

.opcion-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 24px;
    text-decoration: none;
    color: #2c2c2c;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s ease;
    border-left: 4px solid transparent;
    position: relative;
}

.opcion-item:hover {
    background: linear-gradient(90deg, #f8f6fc 0%, #ffffff 100%);
    border-left-color: #4c348c;
    padding-left: 32px;
    color: #4c348c;
}

.opcion-item i {
    font-size: 20px;
    color: #4c348c;
    width: 24px;
    text-align: center;
    transition: transform 0.2s;
}

.opcion-item:hover i {
    transform: scale(1.1);
}

.opcion-item span {
    flex: 1;
    color: #4c348c;
}



/* ========== BIENVENIDA (SIN LOGIN) ========== */
.cuenta-bienvenida {
    padding: 40px 28px 28px;
    text-align: center;
    background: linear-gradient(135deg, #4c348c 0%, #7856d1 100%);
    position: relative;
    overflow: hidden;
}

.cuenta-bienvenida::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.icono-bienvenida {
    width: 90px;
    height: 90px;
    margin: 0 auto 18px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.icono-bienvenida i {
    font-size: 46px;
    color: #ffffff;
}

.cuenta-bienvenida h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.cuenta-bienvenida p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* BOTÓN LOGIN DESTACADO */
.boton-login {
    background: linear-gradient(135deg, #4c348c 0%, #6447ab 100%);
    color: #ffffff !important;
    margin: 12px 16px 4px;
    border-radius: 12px;
    justify-content: center;
    border: none !important;
    box-shadow: 0 6px 20px rgba(76, 52, 140, 0.25);
    font-weight: 700;
}

.boton-login i {
    color: #ffffff !important;
}

.boton-login:hover {
    background: linear-gradient(135deg, #3d2a70 0%, #4c348c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(76, 52, 140, 0.35);
    padding-left: 24px !important;
}

/* ========== OVERLAY ========== */
.overlay-cierre {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay-cierre.activo {
    opacity: 1;
    visibility: visible;
}

/* ========== ICONOS NAV ========== */
.nav-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transition: all 0.25s ease;
    text-decoration: none;
    color: #ffffff;
}

.nav-icon:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.08);
}

.nav-icon i {
    font-size: 22px;
    color: #ffffff;
}

.nav-icon .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff4757;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* ========== CARRITO LATERAL ========== */
.carrito-lateral {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 2200;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carrito-lateral.abierto {
    transform: translateX(0);
}

/* Header del carrito */
.carrito-header {
    background: #3d2a70;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.carrito-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.carrito-header h2 i {
    font-size: 24px;
}

.btn-cerrar-carrito {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cerrar-carrito i {
    color: #ffffff;
    font-size: 18px;
}

.btn-cerrar-carrito:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Contenido del carrito */
.carrito-contenido {
    padding: 20px;
}

.carrito-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.carrito-item:hover {
    background: #f0f2f5;
    transform: translateX(-4px);
}

.item-imagen {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.item-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-nombre {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 700;
    color: #2c2c2c;
    line-height: 1.3;
}

.item-descripcion {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
}

.item-precio {
    font-size: 16px;
    font-weight: 700;
    color: #4c348c;
}

.item-acciones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.cantidad-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border-radius: 8px;
    padding: 4px;
}

.btn-cantidad {
    width: 28px;
    height: 28px;
    border: none;
    background: #4c348c;
    color: #ffffff;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-cantidad:hover {
    background: #3d2a70;
    transform: scale(1.1);
}

.input-cantidad {
    width: 45px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
}

.input-cantidad:focus {
    outline: none;
}

.btn-eliminar {
    background: #ffffff;
    border: 2px solid #dc3545;
    color: #dc3545;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-eliminar:hover {
    background: #dc3545;
    color: #ffffff;
    transform: scale(1.1);
}

/* Footer del carrito */
.carrito-footer {
    padding: 24px 28px;
    background: #ffffff;
    border-top: 2px solid #e9ecef;
    flex-shrink: 0;
    padding-bottom: 150px;
}

.resumen-precios {
    margin-bottom: 20px;
}

.linea-precio {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #2c2c2c;
}

.linea-precio.total {
    padding-top: 12px;
    border-top: 2px solid #dee2e6;
    font-size: 18px;
    font-weight: 700;
    color: #2c2c2c;

}

.btn-finalizar-compra {
    width: 100%;
    padding: 16px;
    background: #3d2a70;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.carrito-contain{
    overflow-y: scroll;
}

.btn-finalizar-compra:hover {
    transform: translateY(-2px);
}

.btn-seguir-comprando {
    width: 100%;
    padding: 14px;
    background: transparent;
    color: #4c348c;
    border: 2px solid #4c348c;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-seguir-comprando:hover {
    background: #4c348c;
    color: #ffffff;
}

/* Scrollbar personalizado para el contenido del carrito */
.carrito-contenido::-webkit-scrollbar {
    width: 8px;
}

.carrito-contenido::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.carrito-contenido::-webkit-scrollbar-thumb {
    background: #4c348c;
    border-radius: 4px;
}

.carrito-contenido::-webkit-scrollbar-thumb:hover {
    background: #3d2a70;
}

/* Responsive */
@media (max-width: 768px) {
    .carrito-lateral {
        width: 100%;
    }
}

.carrito-item {
    background-color: #ffff !important;
    border: #ae99fe solid 2px !important;


}

.btn-eliminar2 {
    display: block !important;
    padding: 5px 10px !important;
    border: #ae99fe solid 2px !important;
}

.number-item {
    margin-bottom: 0 !important;
    padding: 0 10px !important;
}

.comprar-ahora {
    width: 100%;
    border: solid 2px #382568 !important;
    background-color: white;
    color: #382568;
    padding: 10px 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}


.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4c348c;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    font-size: 15px;
    font-weight: 500;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.success {
    background: #10b981;
}

.toast-notification.error {
    background: #ef4444;
}

.toast-notification i {
    font-size: 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.product-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
    transition: transform .25s ease, box-shadow .25s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .12);
}

/* IMAGE */
.product-image {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    object-fit: cover;
}

.product-badge.sale {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e63946;
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* INFO */
.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info-content {
    flex: 1;
}

.product-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
    line-height: 1.4;
}

/* PRICE */
.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: #4c348c;
}

.original-price {
    font-size: 14px;
    text-decoration: line-through;
    color: #999;
}

.discount {
    font-size: 13px;
    color: #e63946;
    font-weight: 600;
}

/* ACTION ICONS */
.product-actions {
    display: flex;
    justify-content: end;
    gap: 10px;
    margin-top: auto;
}

.action-btn {
    flex: 0 0 auto;
    border: none;
    border-radius: 10px;
    padding: 5px 10px;
    font-size: 12px !important;
    cursor: pointer;
    transition: all .25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
}

.action-view {
    background: #f1f1f7;
    color: #4c348c;
}

.action-cart {
    background: #4c348c;
    color: #fff;
}

.action-buy {
    background: #2ecc71;
    color: #fff;
}

.action-btn:hover {
    transform: translateY(-2px);
    opacity: .9;
}

.swal2-container {
    z-index: 9999999 !important; 
}


/* ========== FILTROS RESPONSIVE ========== */

.filter-toggle-btn {
    display: none;
    /* position: fixed; */
    /* top: 20px;
    right: 20px; */
    /* z-index: 1000; */
    background: #4c348c;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    gap: 8px;
}

.filter-toggle-btn:hover {
    background: #382568;
    transform: translateY(-2px);
}

.filter-count {
    background: #ff4757;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 5px;
}

.filters-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.filters-overlay.active {
    opacity: 1;
    visibility: visible;
}

.filters-sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    width: 320px;
    height: 100vh;
    background: white;
    z-index: 1050;
    overflow-y: auto;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
    display: none;
}

.filters-sidebar.active {
    left: 0;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #4c348c;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.filters-header h5 {
    margin: 0;
    font-weight: 700;
}

.filters-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.filters-close-btn:hover {
    transform: rotate(90deg);
}

.filters-content {
    padding: 20px;
}

.filters-footer {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.filters-footer .btn {
    flex: 1;
}

.btn-apply-filters {
    background: #4c348c;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
}

.btn-apply-filters:hover {
    background: #382568;
}

.btn-clear-filters {
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
}

.btn-clear-filters:hover {
    background: #f8f9fa;
}

.form-check {
    padding: 10px 15px;
    transition: background-color 0.2s ease;
    border-radius: 6px;
    margin-bottom: 5px;
}

.form-check:hover {
    background-color: #f0f0f0;
}

.form-check-input:checked {
    background-color: #4c348c;
    border-color: #4c348c;
}

.form-check-input:focus {
    border-color: #4c348c;
    box-shadow: 0 0 0 0.25rem rgba(76, 52, 140, 0.25);
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h6 {
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    font-size: 15px;
}

.section-filter {
    max-width: 100%;
    padding: 20px 30px;
}

.btn-outline-secondary {
    border-color: #dee2e6;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

@media (max-width: 991px) {
    .filter-toggle-btn {
        display: flex !important;
    }

    .filters-overlay {
        display: block;
    }

    .filters-sidebar {
        display: flex;
        flex-direction: column;
    }

    .filters-desktop {
        display: none !important;
    }

    .col-lg-9.col-md-8 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .section-filter {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .filters-sidebar {
        width: 100%;
    }

    .filter-toggle-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .section-filter h4 {
        font-size: 18px;
    }

    .section-filter small {
        font-size: 12px;
    }
}

/* ---------- CAROUSEL ---------- */
.main-carousel-wrapper,
.main-carousel,
.main-slide {
    width: 100%;
    height: auto;
}

.main-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ---------- BANNER LAYOUT ---------- */
.banner-contain {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px;
    gap: 10px;
    align-items: center;
    margin-top: 60px;

}

/* Columnas laterales */
.flex-col {
    flex: 0 0 280px;
    /* desktop */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Banner central */
.main-banner {
    flex: 1 1 auto;
    border-radius: 20px;
    overflow: hidden;
}

/* Links */
.link-cat {
    width: 100%;
}

.link-cat img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    display: block;
}

/* ---------- TABLET ---------- */
@media (max-width: 1024px) {

    .banner-contain {
        flex-direction: column;
    }

    .main-banner {
        order: 1;
        width: 100%;
    }

    /* contenedor de las columnas */
    .flex-col {
        order: 2;
        flex: 1 1 100%;
        flex-direction: row;
    }

    .flex-col a {
        flex: 1 1 33%;
    }
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {


    .banner-contain {
        padding: 8px;
        gap: 8px;
    }
}

/* ---------- MOBILE PEQUEÑO ---------- */
@media (max-width: 480px) {
    .banner-contain {
        padding: 5px;
        gap: 6px;
    }

}


/* ========== BÚSQUEDA MÓVIL ESTILO SHEIN ========== */

/* Ocultar lupita móvil en desktop */
.mobile-search-trigger {
    display: none;
}

/* OVERLAY DE BÚSQUEDA MÓVIL */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.logo img {
    width: 150px;
}

.mobile-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* PANEL DE BÚSQUEDA MÓVIL */
.mobile-search-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 2501;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-search-panel.active {
    transform: translateY(0);
}

.mobile-search-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-search-input-wrapper {
    flex: 1;
    position: relative;
}

.mobile-search-input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.mobile-search-input:focus {
    outline: none;
    border-color: #382568;
}

.mobile-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
    pointer-events: none;
}

.mobile-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #e0e0e0;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    font-size: 14px;
}

.mobile-clear-btn.show {
    display: flex;
}

.mobile-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* SUGERENCIAS DE BÚSQUEDA */
.mobile-search-suggestions {
    margin-top: 15px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.suggestions-title {
    font-size: 13px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
    padding: 0 5px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: #f5f5f5;
}

.suggestion-icon {
    color: #999;
    font-size: 16px;
    flex-shrink: 0;
}

.suggestion-text {
    flex: 1;
    font-size: 15px;
    color: #333;
}

.suggestion-arrow {
    color: #ccc;
    font-size: 14px;
    flex-shrink: 0;
}

/* RESPONSIVE - SOLO MÓVIL */
@media (max-width: 768px) {

    /* Ocultar búsqueda desktop en móvil */
    .search-bar {
        display: none !important;
    }

    /* Mostrar lupita móvil */
    .mobile-search-trigger {
        display: flex !important;
    }

    .logo img {
        width: 80px;

    }

    /* Reducir tamaño de CONTENEDOR de iconos */
    .nav-icon {
        width: 35px;
        /* Antes era 42px */
        height: 35px;
        /* Antes era 42px */
    }

    /* Reducir tamaño de ICONOS dentro */
    .nav-icon i {
        font-size: 18px !important;
        /* Antes era 22px */
    }

    /* Reducir tamaño de BADGE (numerito del carrito) */
    .nav-icon .badge {
        font-size: 10px;
        /* Antes era 11px */
        padding: 2px 5px;
        /* Antes era 2px 6px */
    }
}