* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
    color: #2c3e50;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb4d);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.logo h1 i {
    margin-right: 10px;
}

.logo p {
    font-size: 12px;
    opacity: 0.9;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 28px;
    transition: transform 0.3s;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-icon span {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    min-width: 22px;
    text-align: center;
}

/* Navegación */
.nav-categories {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 85px;
    z-index: 99;
}

.nav-categories ul {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 15px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-categories ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-categories ul li a i {
    font-size: 14px;
}

.nav-categories ul li a:hover,
.nav-categories ul li a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
}

/* Barra de búsqueda */
.search-bar {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 18px;
}

.search-container input {
    width: 100%;
    padding: 14px 50px 14px 50px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.search-container input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.search-container button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 8px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.search-container button:hover {
    transform: translateY(-50%) scale(1.02);
}

/* Resultados info */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.results-info p {
    color: #6c757d;
    font-size: 14px;
}

.results-info i {
    margin-right: 8px;
    color: #667eea;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0 60px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff4757;
    color: white;
    padding: 5px 12px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    text-align: center;
    padding: 30px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.stock-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #6c757d;
}

.product-meta i {
    width: 18px;
    color: #667eea;
}

.product-description {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 15px;
    height: 60px;
    overflow: hidden;
}

.price-container {
    margin-bottom: 20px;
}

.price-box {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.price-original {
    color: #adb5bd;
    text-decoration: line-through;
    font-size: 14px;
}

.price-current {
    color: #28a745;
    font-size: 24px;
    font-weight: bold;
}

.savings {
    font-size: 12px;
    color: #ff4757;
    font-weight: 500;
}

.savings i {
    margin-right: 5px;
}

.btn-add-cart {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-cart:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* No results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.no-results i {
    color: #dee2e6;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #495057;
}

.no-results p {
    color: #6c757d;
    margin-bottom: 25px;
}

.btn-reset {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    width: 90%;
    max-width: 700px;
    border-radius: 20px;
    animation: slideDown 0.3s;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h2 {
    font-size: 24px;
}

.modal-header h2 i {
    color: #667eea;
    margin-right: 10px;
}

.close {
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
}

.close:hover {
    color: #ff4757;
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

#cart-items {
    margin-bottom: 25px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    gap: 15px;
    flex-wrap: wrap;
}

.cart-item-info {
    flex: 2;
}

.cart-item-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.cart-item-info p {
    font-size: 12px;
    color: #6c757d;
}

.cart-item-price {
    font-weight: bold;
    color: #28a745;
    min-width: 100px;
}

.cart-item-remove {
    background: #ff4757;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.cart-item-remove:hover {
    background: #e84118;
    transform: scale(1.05);
}

.cart-summary {
    border-top: 2px solid #e9ecef;
    padding-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 16px;
}

.summary-row.total {
    font-size: 22px;
    font-weight: bold;
    color: #667eea;
    border-top: 2px solid #e9ecef;
    margin-top: 10px;
    padding-top: 15px;
}

.quote-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-quote, .btn-clear {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-quote {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.btn-clear {
    background: #6c757d;
    color: white;
}

.btn-quote:hover, .btn-clear:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* Toast */
.toast {
    position: fixed;
    /*bottom: 30px;*/
    top:15px;
    right: 30px;
    background: #28a745;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 500;
    /*z-index: 1100;*/
    z-index: 9999;
    transform: translateX(1800px);
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.toast.show {
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-categories {
        top: 75px;
    }
    
    .nav-categories ul {
        gap: 8px;
    }
    
    .nav-categories ul li a {
        padding: 6px 15px;
        font-size: 13px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .results-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal-content {
        margin: 20px auto;
        width: 95%;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .quote-actions {
        flex-direction: column;
    }
}




/* En style.css agregar */
.exchange-rate-info {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e9ecef;
    font-size: 11px;
    color: #6c757d;
}

.exchange-rate-info i {
    color: #667eea;
    margin-right: 4px;
}

.savings small {
    font-size: 10px;
    font-weight: normal;
    color: #6c757d;
}



/* Paginación */
.pagination {
    margin: 40px 0 60px;
    text-align: center;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.page-btn:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.page-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: #adb5bd;
}

.page-info {
    font-size: 14px;
    color: #6c757d;
}

.page-info i {
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .page-btn {
        min-width: 35px;
        height: 35px;
        padding: 0 8px;
        font-size: 13px;
    }
    
    .pagination-container {
        gap: 6px;
    }
}