/* ===== FONTS ===== */
@font-face {
    font-family: 'Cera Pro';
    src: url('../assets/fonts/CeraPro-Light.eot');
    src: local('Cera Pro Light'), local('CeraPro-Light'),
        url('../assets/fonts/CeraPro-Light.eot?#iefix') format('embedded-opentype'),
        url('../assets/fonts/CeraPro-Light.woff2') format('woff2'),
        url('../assets/fonts/CeraPro-Light.woff') format('woff'),
        url('../assets/fonts/CeraPro-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Cera Pro';
    src: url('../assets/fonts/CeraPro-Regular.eot');
    src: local('Cera Pro Regular'), local('CeraPro-Regular'),
        url('../assets/fonts/CeraPro-Regular.eot?#iefix') format('embedded-opentype'),
        url('../assets/fonts/CeraPro-Regular.woff2') format('woff2'),
        url('../assets/fonts/CeraPro-Regular.woff') format('woff'),
        url('../assets/fonts/CeraPro-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Cera Pro';
    src: url('../assets/fonts/CeraPro-Medium.eot');
    src: local('Cera Pro Medium'), local('CeraPro-Medium'),
        url('../assets/fonts/CeraPro-Medium.eot?#iefix') format('embedded-opentype'),
        url('../assets/fonts/CeraPro-Medium.woff2') format('woff2'),
        url('../assets/fonts/CeraPro-Medium.woff') format('woff'),
        url('../assets/fonts/CeraPro-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Cera Pro';
    src: url('../assets/fonts/CeraPro-Bold.eot');
    src: local('Cera Pro Bold'), local('CeraPro-Bold'),
        url('../assets/fonts/CeraPro-Bold.eot?#iefix') format('embedded-opentype'),
        url('../assets/fonts/CeraPro-Bold.woff2') format('woff2'),
        url('../assets/fonts/CeraPro-Bold.woff') format('woff'),
        url('../assets/fonts/CeraPro-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Cera Pro';
    src: url('../assets/fonts/CeraPro-Black.eot');
    src: local('Cera Pro Black'), local('CeraPro-Black'),
        url('../assets/fonts/CeraPro-Black.eot?#iefix') format('embedded-opentype'),
        url('../assets/fonts/CeraPro-Black.woff2') format('woff2'),
        url('../assets/fonts/CeraPro-Black.woff') format('woff'),
        url('../assets/fonts/CeraPro-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cera Pro', sans-serif;
    color: #333;
    background-color: #fff;
}

/* ===== HEADER ===== */
header {
    background-color: white;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.logo-container img {
    max-width: 200px;
    height: auto;
    width: 100%;
}

.tagline {
    font-size: 12px;
    letter-spacing: 3px;
    color: #666;
    margin-top: 5px;
}

/* Icons in header */
.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-icons a {
    color: #000;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
}

.header-icons a:hover {
    color: #666;
    transform: scale(1.1);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #000;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.mobile-menu-toggle:hover {
    color: #666;
}

/* Cart Counter Badge */
.cart-icon-wrapper {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #FFD700;
    color: #000;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Mini Cart Dropdown */
.mini-cart {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    max-height: 500px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
}

.mini-cart.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mini-cart-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-cart-header h3 {
    font-size: 16px;
    font-weight: 500;
    color: #000;
    margin: 0;
}

.mini-cart-items {
    max-height: 250px;
    overflow-y: auto;
    padding: 10px;
}

.mini-cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: background-color 0.3s;
    position: relative;
}

.mini-cart-item:hover {
    background-color: #f9f9f9;
}

.mini-cart-item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: #fafafa;
    border-radius: 6px;
    overflow: hidden;
}

.mini-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

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

.mini-cart-item-name {
    font-size: 13px;
    font-weight: 500;
    color: #000;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.mini-cart-item-price {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.mini-cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.mini-cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.mini-cart-qty-btn {
    background: white;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background-color 0.3s;
    min-width: 24px;
}

.mini-cart-qty-btn:hover {
    background: #f0f0f0;
}

.mini-cart-qty-input {
    width: 35px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    padding: 4px 2px;
    font-size: 12px;
}

.mini-cart-qty-label {
    font-size: 11px;
    color: #999;
}

.mini-cart-item-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.mini-cart-item-remove:hover {
    background: #ffebee;
    color: #f44336;
}

.mini-cart-empty {
    padding: 40px 20px;
    text-align: center;
}

.mini-cart-empty-icon {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.3;
}

.mini-cart-empty p {
    font-size: 14px;
    color: #999;
    margin: 0;
}

.mini-cart-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
}

.mini-cart-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
}

.mini-cart-subtotal-label {
    color: #666;
}

.mini-cart-subtotal-value {
    font-weight: bold;
    color: #000;
}

.mini-cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-view-cart {
    background-color: #1a1a1a;
    color: white;
    border: none;
    padding: 12px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 4px;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-view-cart:hover {
    background-color: #333;
}

.btn-checkout-mini {
    background-color: #FFD700;
    color: #000;
    border: none;
    padding: 12px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 4px;
    text-transform: uppercase;
}

.btn-checkout-mini:hover {
    background-color: #FFC700;
}

/* Scrollbar personalizado para mini-cart */
.mini-cart-items::-webkit-scrollbar {
    width: 6px;
}

.mini-cart-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.mini-cart-items::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.mini-cart-items::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ===== NAVIGATION ===== */
nav {
    background-color: #1a1a1a;
    padding: 0;
    position: relative;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
}

nav ul li {
    margin: 0;
    position: relative;
}

nav ul li a {
    display: block;
    padding: 18px 30px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    transition: background-color 0.3s;
    text-transform: uppercase;
}

nav ul li a:hover {
    background-color: #333;
}

/* Submenús */
nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2a2a2a;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    flex-direction: column;
}

nav ul li:hover > ul {
    display: flex;
}

nav ul li ul li {
    width: 100%;
}

nav ul li ul li a {
    padding: 12px 20px;
    font-size: 13px;
}

nav ul li ul li a:hover {
    background-color: #3a3a3a;
}

/* Mobile nav overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
}

/* ===== FOOTER ===== */
footer {
    background-color: white;
    padding: 60px 40px 40px;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #000;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
}

.footer-contact p {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.6;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, opacity 0.3s;
}

.social-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.payment-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
}

.payment-icon {
    height: 42px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

.payment-icon:hover {
    transform: scale(1.1);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .header-icons {
        position: static;
        justify-content: center;
        margin-top: 15px;
    }



    nav ul li a {
        padding: 12px 20px;
    }
}


/* ===== RESPONSIVE DESIGN ===== */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
    .header-wrapper {
        padding: 0 15px;
    }

    nav ul li a {
        padding: 16px 20px;
        font-size: 13px;
    }

    .mini-cart {
        width: 320px;
    }
}

/* Tablets pequeñas */
@media (max-width: 768px) {
    /* Header responsivo */
    .header-wrapper {
        flex-wrap: nowrap;
        gap: 10px;
    }

    .mobile-menu-toggle {
        display: block;
        order: -1;
    }

    .logo-container {
        order: 0;
        flex: 1;
    }

    .logo-container img {
        max-width: 150px;
    }

    .header-icons {
        order: 1;
        gap: 15px;
    }

    .header-icons a {
        font-size: 18px;
    }

    /* Navegación móvil */
    nav {
        z-index: 9999;
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background-color: #1a1a1a;
        z-index: 999;
        overflow-y: auto;
        transition: left 0.3s ease;
        padding-top: 60px;
    }

    nav.active {
        left: 0;
        z-index: 9999;
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid #2a2a2a;
    }

    nav ul li a {
        padding: 15px 20px;
        font-size: 14px;
    }

    /* Submenús móviles */
    nav ul li ul {
        position: static;
        display: none;
        background-color: #2a2a2a;
        box-shadow: none;
    }

    nav ul li.submenu-open > ul {
        display: flex;
    }

    nav ul li ul li a {
        padding-left: 40px;
        font-size: 13px;
    }

    /* Botón cerrar menú móvil */
    .mobile-menu-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        color: white;
        font-size: 28px;
        cursor: pointer;
        padding: 5px;
        line-height: 1;
    }

    /* Overlay */
    .nav-overlay.active {
        display: block;
    }

    /* Mini cart móvil */
    .mini-cart {
        width: 90vw;
        max-width: 350px;
        right: -5vw;
    }

    .mini-cart-items {
        max-height: 200px;
    }

    /* Footer responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Móviles */
@media (max-width: 480px) {
    header {
        padding: 10px 0;
    }

    .header-wrapper {
        padding: 0 10px;
    }

    .logo-container img {
        max-width: 130px;
    }

    .header-icons {
        gap: 12px;
    }

    .header-icons a {
        font-size: 16px;
    }

    nav {
        width: 260px;
    }

    nav ul li a {
        padding: 12px 15px;
        font-size: 13px;
    }

    /* Mini cart móvil pequeño */
    .mini-cart {
        width: 95vw;
        right: 2.5vw;
    }

    .mini-cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .mini-cart-item-image {
        width: 50px;
        height: 50px;
    }

    .mini-cart-item-name {
        font-size: 12px;
    }

    .mini-cart-item-price {
        font-size: 11px;
    }

    .mini-cart-actions {
        gap: 8px;
    }

    .btn-view-cart,
    .btn-checkout-mini {
        padding: 10px;
        font-size: 12px;
    }

    /* Footer móvil */
    footer {
        padding: 40px 20px 30px;
    }

    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .footer-section a,
    .footer-contact p {
        font-size: 13px;
    }
}
.product-link {
    text-decoration: none;
    color: inherit;
}

.product-link .product-card {
    cursor: pointer;
}

/* ===== ESTILOS ADICIONALES PARA ICONOS Y RESPONSIVIDAD ===== */

/* Icono vacío del mini-cart */
.mini-cart-empty-icon i {
    font-size: 48px;
    opacity: 0.3;
    color: #999;
}

/* Animación del botón hamburguesa */
.mobile-menu-toggle i {
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:active i {
    transform: scale(0.9);
}
 nav ul li.has-submenu > a::after {
        content: '\f107';
        font-weight: 900;
        float: right;
        transition: transform 0.3s ease;
    }
    
    nav ul li.has-submenu.submenu-open > a::after {
        transform: rotate(180deg);
    }



/* Estilo para submenús en móvil */
@media (max-width: 768px) {
    nav ul li.has-submenu > a::after {
        content: '\f107';
        font-weight: 900;
        float: right;
        transition: transform 0.3s ease;
    }
    
    nav ul li.has-submenu.submenu-open > a::after {
        transform: rotate(180deg);
    }
}

/* Mejora visual del cart count badge */
.cart-count {
    font-family: 'Cera Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: bold;
}

/* Hover effects mejorados */
.header-icons a i {
    transition: all 0.3s ease;
}

.header-icons a:hover i {
    transform: scale(1.1);
}

/* Asegurar que el overlay esté debajo del nav */
.nav-overlay {
    z-index: 998;
}

nav {
    z-index: 999;
}

header {
    z-index: 1000;
}

/* Estilos para el botón de agregar al carrito (ejemplo) */
.btn-add-cart {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-family: 'Cera Pro', sans-serif;
}

.btn-add-cart:hover {
    background-color: #333 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Notificación de carrito */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1a1a1a;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 300px;
}

.cart-notification.show {
    transform: translateX(0);
}

.notification-icon {
    background: #4CAF50;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.notification-message {
    font-size: 14px;
    line-height: 1.4;
}

/* Responsive para notificación */
@media (max-width: 480px) {
    .cart-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}/* ===== FIX PARA OCULTAR BOTÓN CERRAR EN DESKTOP ===== */

/* Ocultar botón de cerrar menú móvil en desktop por defecto */
.mobile-menu-close {
    display: none !important;
}

/* Mostrar solo en móvil cuando el menú está activo */
@media (max-width: 768px) {
    nav.active .mobile-menu-close {
        display: block !important;
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        color: white;
        font-size: 28px;
        cursor: pointer;
        padding: 5px;
        line-height: 1;
        z-index: 1001;
    }
}

/* Asegurar que el botón hamburguesa esté oculto en desktop */
.mobile-menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}
