body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.header {
    background-color: #f8f8f8;
    color: white;
    padding: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    display: flex;
    align-items: center;
    flex: 1;
}

.menu {
    color: #5f3915;
}

.header .logo img {
    margin-right: 2px;
}

.header h1 {
    margin: 0;
    font-size: 24px;
    text-align: center;
    flex: 1;
}

.header .menu {
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.header .cart-icon {
    font-size: 24px;
    cursor: pointer;
    color: #ac7d51;
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.header .search-icon {
    font-size: 24px;
    cursor: pointer;
    color: #ac7d51;
    margin-left: 10px;
}

.main {
    position: relative;
    text-align: center;
    color: white;
}

.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
}

.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.carousel .text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.carousel .text h1 {
    font-size: 48px;
    margin: 0;
}

.carousel .text p {
    font-size: 18px;
    margin: 10px 0;
}

.carousel .text .button {
    background-color: #ac7d51;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.carousel-control.left {
    left: 10px;
}

.carousel-control.right {
    right: 10px;
}

.main .content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.main .content h1 {
    font-size: 48px;
    margin: 0;
}

.main .content p {
    font-size: 24px;
    margin: 10px 0;
}

.main .content .btn {
    background-color: #ac7d51;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.main .content .btn i {
    margin-right: 10px;
}

.social-icons {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
}

.social-icons a {
    display: block;
    margin: 10px 0;
    color: white;
    font-size: 24px;
    text-align: center;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
}

.social-icons a.facebook {
    background-color: #3b5998;
}

.social-icons a.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.social-icons a.tiktok {
    background-color: #010101;
}

.social-icons a.whatsapp {
    background-color: #25d366;
}

.barra {
    background-color: #5f3915;
    color: white;
    text-align: center;
    padding: 8px 0;
    position: relative;
    z-index: 1;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    background-color: #f7f4f4;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    width: 200px;
    transition: width 2s, height 2s, transform 2s;
}

.gallery:hover div:hover {
    width: 300px;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.gallery-item .description {
    margin-top: 10px;
    font-size: 16px;
}

.gallery-item .quantity-selector {
    background-color: #a5794c;
    color: black;
    padding: 5px 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 120px;
    justify-content: space-between;
    margin: 10px auto;
}

.gallery-item .quantity-selector button {
    background-color: #5f3915;
    color: white;
    border: none;
    border-radius: 5px;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
}

.gallery-item .quantity-selector input {
    width: 40px;
    text-align: center;
    border: none;
    background: none;
    font-size: 16px;
}

.gallery-item .cart-button {
    background-color: #5f3915;
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    width: 120px;
    justify-content: space-between;
    margin: 10px auto;
}

.gallery-item .cart-button i {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-item .cart-button i .fa-plus {
    font-size: 12px;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
    margin: 0;
    padding: 0;
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
    gap: 20px;
}

.product-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 10px;
    padding: 20px;
    text-align: center;
    width: 200px;
}

.product-card img {
    width: 50px;
    height: 50px;
}

.product-card h3 {
    font-size: 18px;
    margin: 10px 0;
}

.product-card p {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
}

.quantity-control {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.quantity-control button {
    background-color: #d1ecf1;
    border: none;
    border-radius: 5px;
    color: #5f3915;
    cursor: pointer;
    font-size: 18px;
    padding: 5px 10px;
}

.quantity-control span {
    align-items: center;
    display: flex;
    font-size: 18px;
    justify-content: center;
    margin: 0 10px;
}

.add-to-cart {
    background-color: #5f3915;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    padding: 10px 20px;
}

.add-to-cart i {
    margin-left: 5px;
}

.footer {
    background-color: #3b2e2e;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
}

.menu-items {
    display: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
    margin-right: 10px;
    background-color: #f8f8f8;
    position: absolute;
    right: 0;
    top: 100px;
    width: 200px;
    border-radius: 5px;
    z-index: 100;
}

.menu-items li {
    padding: 10px;
    text-align: center;
}

.menu-items li a {
    color: #5f3915;
    text-decoration: none;
    display: block;
}

.menu-items li a:hover {
    background-color: #ac7d51;
}

.menu-items.show {
    display: block;
}



.text {
    color: #ffffff;
}

.fas fa-bars {
    color: #5f3915;
}


.Variedad {
    margin-top: 2px;
    box-shadow: 0 0 5px;
    padding-left: 20px;
    background: linear-gradient(45deg, #dca 12%, transparent 0, transparent 88%, #dca 0),
                linear-gradient(135deg, transparent 37%, #a85 0, #a85 63%, transparent 0),
                linear-gradient(45deg, transparent 37%, #dca 0, #dca 63%, transparent 0) #753;
    background-size: 25px 25px;
    font-size: 25px;
}

.Variedad-texto {
    font-size: 28px;
    text-align: center;
    color: #333;
    font-family: Arial, sans-serif;
}

.texto-final {
    text-align: right;
    float: right;
}

.logo-final {
    text-align: center;
    image-orientation: 0deg;
}

.search-bar {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: white;
    border: 1px solid #ccc;
    padding: 5px;
    z-index: 1000;
}

.search-bar input {
    padding: 5px;
    font-size: 16px;
    border: none;
    outline: none;
}

.highlight {
    background-color: lightblue;
    transition: background-color 0.3s ease;
}

.cart-container {
    text-align: center;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
    width: 80%; 
    max-width: 700px; /* Límite máximo */
    margin: 0 auto; /* Centrado */
    border-radius: 10px;
}

.linkinicio {
    text-decoration: none;
    color: #ac7d51;
}

/* ========== ESTILOS SIMPLES PARA EL CARRITO ========== */

/* Estilos para la lista del carrito */
#cart-items {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

#cart-items li {
    background: #f8f8f8;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 5px solid #5f3915;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Viñeta con número */
.bullet {
    background: #5f3915;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
}

/* Precio total por item */
.item-total {
    color: #5f3915;
    font-weight: bold;
    margin-left: 10px;
}

/* Botón para eliminar */
.remove-btn {
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    margin-left: 10px;
    font-size: 14px;
}

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

/* Total general */
#total-price {
    font-size: 20px;
    text-align: right;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 8px;
    margin: 20px 0;
}

#total-price strong {
    color: #5f3915;
    font-size: 24px;
}

/* Botones del carrito */
.cart-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* Carrito vacío */
#cart-items li:first-child:only-child {
    text-align: center;
    padding: 30px;
    font-size: 18px;
    color: #666;
    border-left-color: #ccc;
}

#cart-items li:first-child:only-child .bullet {
    display: none;
}

@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');

/* Estilos personalizados para SweetAlert2 */
.swal2-popup {
    border-radius: 15px !important;
    box-shadow: 0 5px 20px rgba(95, 57, 21, 0.2) !important;
}

.swal2-title {
    color: #5f3915 !important;
    font-family: 'Roboto', sans-serif !important;
}

.swal2-confirm {
    background-color: #5f3915 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 25px !important;
    font-weight: bold !important;
    transition: background-color 0.3s ease !important;
}

.swal2-confirm:hover {
    background-color: #7a5128 !important;
}

.swal2-cancel {
    background-color: #f44336 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 25px !important;
    font-weight: bold !important;
}

/*Alert de index*/
/* NOTIFICACIONES PEQUEÑAS (TOASTS) */
.swal2-toast {
    width: 350px !important;
    max-width: 90% !important;
    padding: 15px !important;
    background: #f8f8f8 !important;
    border-left: 5px solid #5f3915 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
}





/* Contenedor del icono en toast */
.swal2-toast .swal2-icon-content {
    font-size: 20px !important;
}

/* Animación para toast */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.swal2-toast.swal2-show {
    animation: slideInRight 0.3s ease-out !important;
}

.swal2-toast.swal2-hide {
    animation: slideOutRight 0.3s ease-out !important;
}

/* Contador de productos en el carrito */
.cart-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #f44336;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    display: none;
}

/* Icono del carrito con posición relativa */
.fa-shopping-cart {
    position: relative;
}


/* Estilos para auth-menu al lado del carrito - Diseño compacto ovalado/rectangular */
.auth-menu {
    display: flex;
    align-items: center;
    margin-right: 15px;
    height: 32px;
}

/* ESTILOS PARA PC (se aplican por defecto) */
.auth-menu #login-link {
    color: #5f3915;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 6px 15px;
    border-radius: 20px;
    background-color: #f8f0e5;
    border: 1.5px solid #e0d2c1;
    font-weight: 500;
    font-size: 0.9em; /* TEXTO VISIBLE EN PC */
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(95, 57, 21, 0.1);
    height: 30px;
}

.auth-menu #login-link:hover {
    background-color: #5f3915;
    color: white;
    border-color: #5f3915;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(95, 57, 21, 0.15);
}

.auth-menu #login-link:active {
    transform: translateY(0);
}

.auth-menu #login-link i {
    margin-right: 6px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.auth-menu #login-link:hover i {
    color: white;
}

/* Estilo para cuando el usuario está logeado - versión compacta PC */
.auth-menu #user-info {
    display: flex;
    align-items: center;
    color: #5f3915;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    background: #f8f0e5;
    border: 1.5px solid #d4b996;
    box-shadow: 0 1px 3px rgba(95, 57, 21, 0.1);
    height: 30px;
    position: relative;
    font-size: 0.85em; /* TEXTO VISIBLE EN PC */
}

.auth-menu #user-info i {
    margin-right: 6px;
    color: #8b5a2b;
    font-size: 13px;
}

.auth-menu #user-info span {
    color: #5f3915;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline; /* VISIBLE EN PC */
}

.auth-menu #user-info a {
    color: #fff;
    text-decoration: none;
    margin-left: 10px;
    font-weight: normal;
    font-size: 0.75em;
    background-color: #ff6b6b;
    padding: 2px 8px;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: 1px solid #ff5252;
    display: inline; /* VISIBLE EN PC */
}

.auth-menu #user-info a:hover {
    background-color: #ff5252;
    box-shadow: 0 1px 3px rgba(255, 82, 82, 0.3);
}

/* Indicador de usuario activo - PC */
.auth-menu #user-info::before {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 6px;
    height: 6px;
    background-color: #4CAF50;
    border-radius: 50%;
    border: 1.5px solid #f8f0e5;
    z-index: 1;
}

/* ========== MEDIA QUERIES PARA MÓVILES ========== */

/* Para tablets y teléfonos grandes */
@media (max-width: 768px) {
    .auth-menu {
        margin-right: 8px;
        display: flex !important;
    }
    
    /* Aquí comenzamos a reducir el texto */
    .auth-menu #login-link,
    .auth-menu #user-info {
        padding: 4px 8px;
        font-size: 0.8em; /* Texto más pequeño */
        height: 26px;
        border-radius: 18px;
    }
    
    .auth-menu #login-link i,
    .auth-menu #user-info i {
        margin-right: 4px;
        font-size: 11px;
    }
    
    .auth-menu #user-info span {
        max-width: 80px;
    }
    
    .auth-menu #user-info a {
        padding: 2px 6px;
        font-size: 0.7em;
        margin-left: 8px;
        border-radius: 10px;
    }
    
    .auth-menu #user-info::before {
        width: 5px;
        height: 5px;
        border-width: 1px;
    }
}

/* Para teléfonos móviles - SOLO ICONO, SIN TEXTO */
@media (max-width: 480px) {
    .auth-menu {
        display: flex !important;
        margin-right: 6px;
    }
    
    /* Versión SOLO ICONO - usuario NO logeado */
    .auth-menu #login-link {
        width: 34px;
        height: 34px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f8f0e5;
        border: 1.5px solid #e0d2c1;
        box-shadow: 0 1px 3px rgba(95, 57, 21, 0.1);
        transition: all 0.2s ease;
        position: relative;
        font-size: 0 !important; /* SOLO EN MÓVILES: ocultar texto */
    }
    
    /* Asegurar que solo se vea el icono en móviles */
    .auth-menu #login-link i {
        color: #5f3915;
        font-size: 16px;
        margin: 0;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    /* ELIMINAR el margin-right del icono SOLO en móviles */
    @media (max-width: 480px) {
        .auth-menu #login-link i {
            margin-right: 0 !important;
        }
    }
    
    /* Tooltip para mostrar "Iniciar Sesión" en móviles */
    .auth-menu #login-link::after {
        content: 'Iniciar Sesión';
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: 5px;
        background-color: #333;
        color: white;
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 12px;
        white-space: nowrap;
        z-index: 1000;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.2s ease;
        font-size: 11px;
    }
    
    .auth-menu #login-link:hover::after {
        opacity: 1;
    }
    
    .auth-menu #login-link:hover {
        background-color: #5f3915;
        transform: scale(1.05);
    }
    
    .auth-menu #login-link:hover i {
        color: white;
    }
    
    /* Versión SOLO ICONO - usuario SÍ logeado EN MÓVILES */
    .auth-menu #user-info {
        width: 34px;
        height: 34px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #5f3915, #8b5a2b);
        border: 1.5px solid white;
        box-shadow: 0 1px 3px rgba(95, 57, 21, 0.2);
        position: relative;
        font-size: 0 !important; /* SOLO EN MÓVILES: ocultar texto */
    }
    
    .auth-menu #user-info i {
        color: white;
        font-size: 16px;
        margin: 0;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    /* ELIMINAR el margin-right del icono SOLO en móviles */
    @media (max-width: 480px) {
        .auth-menu #user-info i {
            margin-right: 0 !important;
        }
    }
    
    /* OCULTAR TODO EL TEXTO SOLO EN MÓVILES */
    @media (max-width: 480px) {
        .auth-menu #user-info span,
        .auth-menu #user-info a,
        .auth-menu #username-display {
            display: none !important;
            visibility: hidden !important;
            width: 0 !important;
            height: 0 !important;
            overflow: hidden !important;
            position: absolute !important;
            opacity: 0 !important;
        }
    }
    
    /* Tooltip para mostrar nombre en móviles */
    .auth-menu #user-info::after {
        content: attr(data-tooltip);
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: 5px;
        background-color: #333;
        color: white;
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 12px;
        white-space: nowrap;
        z-index: 1000;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.2s ease;
        font-size: 11px;
    }
    
    .auth-menu #user-info:hover::after {
        opacity: 1;
    }
    
    /* Punto indicador de sesión activa - ajustado para móviles */
    .auth-menu #user-info::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 8px;
        height: 8px;
        background-color: #4CAF50;
        border-radius: 50%;
        border: 2px solid #f8f0e5;
        z-index: 1;
    }
    
    /* Ocultar versión móvil en menú hamburguesa */
    .auth-menu-mobile {
        display: none !important;
    }
}

/* Para teléfonos muy pequeños */
@media (max-width: 360px) {
    .auth-menu {
        margin-right: 4px;
    }
    
    .auth-menu #login-link,
    .auth-menu #user-info {
        width: 30px;
        height: 30px;
    }
    
    .auth-menu #login-link i,
    .auth-menu #user-info i {
        font-size: 14px;
    }
    
    .auth-menu #user-info::before {
        width: 6px;
        height: 6px;
    }
    
    /* Tooltips más pequeños */
    .auth-menu #login-link::after,
    .auth-menu #user-info::after {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* Asegurar que todos los elementos del menú estén alineados */
.menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

/* Animación */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.auth-menu #user-info,
.auth-menu #login-link {
    animation: fadeIn 0.2s ease-out;
}
