@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: white;
    min-height: 100vh;
    color: #1565c0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* FORZAR COLOR VERDE DIFERENCIA-PRECIO */
body div.diferencia-precio {
    color: #28a745 !important;
}

.diferencia-precio {
    color: #28a745 !important;
    font-weight: bold !important;
}

.product-pricing .diferencia-precio {
    color: green !important;
    font-weight: bold !important;
}

#productPrice .diferencia-precio {
    color: green !important;
    font-weight: bold !important;
}

div[style*="diferencia-precio"] {
    color: green !important;
}

.diferencia-precio,
*[class*="diferencia-precio"],
*[class="diferencia-precio"] {
    color: green !important;
}

body .diferencia-precio {
    color: green !important;
}

html body .diferencia-precio {
    color: green !important;
}



#diferenciaPrecio .diferencia-precio {
    color: green !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

/* Estilos específicos para página de producto */
#productPrice .precio-minorista {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1976d2 !important;
}

#productPrice .precio-mayorista {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ff5722 !important;
}

#productPrice .diferencia-precio {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: green!important;
}

/* Forzar color azul para diferencia-precio en cualquier contexto */
div[class*="diferencia-precio"] {
    color: green !important;
}

.diferencia-precio,
.diferencia-precio * {
    color: green !important;
}

/* Selector universal para diferencia-precio */
*[class="diferencia-precio"] {
    color: green!important;
    font-size: 16px !important;
    font-weight: 700 !important;
}


/* Excepciones para elementos que deben mantener su color específico */
.header, .header *, .nav-bar, .nav-bar *, .footer, .footer * {
    color: white !important;
}

.whatsapp-btn, .whatsapp-btn * {
    color: white !important;
}

.btn-home-new, .btn-whatsapp-new, .checkout-btn, .process-order-btn, .add-to-cart-btn, .btn-ver-mas, .btn-add-cart {
    color: white !important;
}

.main-content {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #1E3A8A;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-img {
   height:50px;
    width: 180px;
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.searcmargen_configuracionh-bar {
    flex: 1;
    max-width: 600px;
    margin: 0 30px;
    display: flex;
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.3);
    border-radius: 25px;
    border: 2px solid #1976d2;
}

.search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #1976d2;
    border-right: none;
    border-radius: 20px 0 0 20px;
    font-size: 14px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-weight: 400;
    color: #1E3A8A !important;
}

#searchInput {
    color: #1E3A8A !important;
}

.search-bar input:focus {
    outline: none;
    border-color: #ffc107;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3);
    color: #1E3A8A !important;
}

.search-btn {
    background: linear-gradient(135deg, #ffc107 0%, #ff5722 100%);
    border: none;
    padding: 10px 18px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    font-weight: 600;
    color: black;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions > div {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 15px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: white;
    font-size: 14px;
}

.header-actions > div:hover {
    background: rgba(255, 193, 7, 0.2);
    transform: translateY(-2px);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    color: white !important;
    border-radius: 25px !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    animation: whatsappPulse 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mayorista-btn {
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
    color: white !important;
    border-radius: 25px !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mayorista-btn:hover {
    background: linear-gradient(135deg, #f57c00, #ff9800) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(255, 152, 0, 0.6) !important;
}

.mayorista-btn i {
    font-size: 18px;
    margin-right: 8px;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128c7e, #25d366) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6) !important;
}

.whatsapp-btn i {
    font-size: 18px;
    margin-right: 8px;
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.8); }
    100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
}

.cart {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff5722, #d84315);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Navigation */
.nav-bar {
    background: #1E3A8A;
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(25, 118, 210, 0.3);
}

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

.categories-menu {
    position: relative;
    display: flex;
    gap: 15px;
    align-items: center;
}

.home-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.home-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.categories-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.categories-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.categories-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background:#a5d5ff ;
    backdrop-filter: blur(20px);
    min-width: 320px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 10px;
    color: #1E3A8A;
}

.categories-dropdown.show {
    display: block;
}

.category-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #1E3A8A !important;
}

.categories-dropdown .category-item,
.categories-dropdown .category-item *,
.categories-dropdown .subcategory-item,
.categories-dropdown .subcategory-item *,
.categories-dropdown .category-separator,
.categories-dropdown .category-separator * {
    color: #1E3A8A !important;
}

.category-item:hover {
    background: white;
    color: #1E3A8A;
    transform: translateX(5px);
}

.category-item:first-child {
    border-radius: 20px 20px 0 0;
}

.category-item:last-child {
    border-radius: 0 0 20px 20px;
    border-bottom: none;
}

.category-separator {
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    background: rgba(25, 118, 210, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.category-separator:hover {
    background: rgba(25, 118, 210, 0.2);
}

.category-separator i {
    transition: transform 0.3s ease;
}

.subcategory-item {
    padding-left: 40px;
    background: rgba(25, 118, 210, 0.05);
    font-size: 14px;
}

.other-categories-list {
    max-height: 200px;
    overflow-y: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Pages */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Hero Banners */
.hero-banners {
    margin: 10px 0;
}

.banner-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    height: 300px;
}

.banner.large {
    grid-row: 1 / 3;
}

.banner {
    background: #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}


/* Search Results */
.breadcrumb {
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.breadcrumb a {
    color: #ffc107;
    text-decoration: none;
    font-weight: 600;
}

.search-content {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.filters-sidebar {
    width: 250px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: 20px;
    height: fit-content;
    border: 2px solid rgba(25, 118, 210, 0.3);
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h4 {
    margin-bottom: 10px;
    font-size: 14px;
    color: #1565c0;
    font-weight: 600;
}

.price-range {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.price-range input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.price-range button {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.price-range button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(25, 118, 210, 0.4);
}

.products-section {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    margin: 10px 0;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: white;
}

.sort-options {
    position: relative;
}

.sort-options select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(25, 118, 210, 0.3);
    border-radius: 20px;
    padding: 12px 40px 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #1E3A8A;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

.sort-options select:hover {
    border-color: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.3);
}

.sort-options select:focus {
    outline: none;
    border-color: #1976d2;
    background: white;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
    transform: translateY(-2px);
}

.sort-options select option {
    background: white;
    color: #2d3748;
    padding: 10px;
    font-weight: 500;
}

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

.product-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(25, 118, 210, 0.2);
    position: relative;
    overflow: hidden;
}

.product-brand-label {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 193, 7, 0.3);
    background: rgba(255, 255, 255, 0.98);
    border-color: #1E3A8A;
}

.product-title{
    color: #1E3A8A !important;
}
.product-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-title {
    font-size: 16px;
    margin-bottom: 12px;
    color: #1E3A8A;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title:hover {
    color: #1E3A8A;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    background: #1E3A8A;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.product-pricing {
    margin-bottom: 10px;
}

.precio-minorista {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1976d2 !important;
    margin-bottom: 5px;
}

.precio-mayorista {
    font-size: 16px !important;
    font-weight: 700 !important;
    background: #1976d2;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.diferencia-precio {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: green!important;
    margin-bottom: 5px;
}

.product-stock {
    background: linear-gradient(135deg, #ffc107, #ffb300);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    align-items: center;
}

.btn-ver-mas {
    flex: 1;
    background: linear-gradient(135deg, #ff5722, #e64a19);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-ver-mas:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.4);
}

.btn-add-cart {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff5722, #e64a19);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.btn-add-cart:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.4);
}

/* Product Detail */
.product-detail {
    display: flex;
    gap: 40px;
    margin: 30px 0;
    background: white;
    padding: 30px;
    border-radius: 8px;
    color: #1E3A8A;
}

.product-images {
    flex: 1;
}

.product-images img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    background: #f0f0f0;
    height: 300px;
    object-fit: contain;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.product-images img:hover {
    transform: scale(1.2);
}

.product-info {
    flex: 1;
}

.product-info h1 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #1E3A8A;
}

.product-brand {
    color: #1976d2;
    margin-bottom: 20px;
    font-weight: 500;
}

.product-price .price {
    font-size: 28px;
    font-weight: bold;
    color: #1E3A8A;
    margin-right: 15px;
}

.price {
    color: #1E3A8A !important;
}

#productPrice {
    color: #1E3A8A !important;
}

#productPrice .precio-minorista {
    color: #1E3A8A !important;
}

#productPrice div {
    color: #1E3A8A !important;
}

.product-price .stock {
    background: linear-gradient(135deg, #ffc107, #ffb300);
    color: #ffffff !important;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

#productStock {
    background: #ffb300 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.payment-options {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.payment-logos {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.payment-logos div {
    background: #ddd;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 12px;
}

.quantity-selector {
    margin: 20px 0;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.quantity-controls button {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
}

.quantity-controls input {
    width: 60px;
    height: 35px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #ff5722 0%, #e64a19 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 87, 34, 0.5);
}

.add-to-cart-btn:active {
    transform: translateY(-1px);
}

/* Cart */
.cart-content {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.cart-items {
    flex: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px;
    border-radius: 15px;
    border: 2px solid rgba(25, 118, 210, 0.2);
}

.cart-header {
    display: grid;
    grid-template-columns: 8fr 1fr 1fr 1fr;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 2px solid #eee;
    font-weight: bold;
}

.cart-item {
    display: grid;
    grid-template-columns: 8fr 1fr 1fr 1fr;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.cart-item-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    min-width: 120px;
    min-height: 120px;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.cart-item-image:hover {
    transform: scale(1.05);
    border-color: #1976d2;
    box-shadow: 0 8px 20px rgba(25, 118, 210, 0.3);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.cart-item-image:hover img {
    transform: scale(1.1);
}

.cart-item-details {
    max-width: 300px;
    word-wrap: break-word;
}

.cart-item-details h4 {
    color: #1565c0;
    margin-bottom: 5px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-quantity button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
}

.cart-item-quantity input {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cart-summary {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: 20px;
    border: 2px solid rgba(25, 118, 210, 0.2);
    height: fit-content;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-line.total {
    font-weight: bold;
    font-size: 18px;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 15px;
}

.checkout-btn, .continue-shopping {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.checkout-btn {
    background: linear-gradient(135deg, #ff5722 0%, #e64a19 100%);
    color: white;
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 87, 34, 0.5);
}

.continue-shopping {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: white;
}

.continue-shopping:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 193, 7, 0.4);
}

/* Checkout */
.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.checkout-steps {
    display: flex;
    gap: 30px;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step.active .step-number {
    background: #1976d2;
    color: white;
}

.checkout-content {
    display: flex;
    gap: 40px;
}

.shipping-form {
    flex: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid rgba(25, 118, 210, 0.2);
}

.shipping-form h2 {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(253, 203, 110, 0.3);
    border-radius: 12px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1976d2;
    background: white;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
    transform: translateY(-2px);
}

.form-group textarea {
    height: 60px;
    resize: vertical;
}

.process-order-btn {
    background: linear-gradient(135deg, #ff5722 0%, #e64a19 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.3);
}

.process-order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 87, 34, 0.4);
}

.process-order-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.3);
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.order-summary {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px;
    border-radius: 15px;
    border: 2px solid rgba(25, 118, 210, 0.2);
    height: fit-content;
}

.checkout-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.checkout-item-image {
    width: 60px;
    height: 60px;
    background: #f0f0f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 10px;
    overflow: hidden;
}

.checkout-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.checkout-item-details h4 {
    font-size: 14px;
    margin-bottom: 5px;
    color: #1565c0;
    font-weight: 600;
}

.checkout-item-price {
    font-weight: bold;
}

.summary-total {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-weight: bold;
    font-size: 16px;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}

.cart-sidebar.open {
    right: 0;
}

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

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.cart-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.sidebar-cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.sidebar-item-image {
    width: 60px;
    height: 60px;
    background: #f0f0f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 10px;
    overflow: hidden;
}

.sidebar-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.sidebar-item-details h4 {
    font-size: 14px;
    margin-bottom: 5px;
    color: #1565c0;
    font-weight: 600;
}

.sidebar-item-price {
    font-weight: bold;
    color: #333;
}

.cart-sidebar-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.sidebar-total {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
}

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

.view-cart-btn {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    box-shadow: 0 6px 20px rgba(116, 185, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.view-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.view-cart-btn:hover::before {
    left: 100%;
}

.view-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(116, 185, 255, 0.4);
    background: linear-gradient(135deg, #81c7ff 0%, #1e90ff 100%);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

.overlay.show {
    display: block;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Efectos adicionales */
.container {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Mejoras en títulos */
h1, h2, h3 {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #ffc107, #ffb300);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive */
/* New Order Confirmation Page */
.confirmation-layout {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 15px;
    background: #f8f9fa;
    min-height: 100vh;
}

.success-header {
    background: white;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.success-check {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ff5722, #e64a19);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.success-check i {
    color: white;
    font-size: 20px;
}

.success-header h1 {
    background: linear-gradient(135deg, #ffc107, #ffb300);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.success-header p {
    color: #666;
    font-size: 12px;
    margin: 0 0 12px 0;
}

.header-whatsapp-btn {
    background: #25d366;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.header-whatsapp-btn:hover {
    background: #128c7e;
    transform: translateY(-1px);
}

.order-products {
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.products-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.products-header i {
    color: #1E3A8A;
    font-size: 16px;
}

.products-header h3 {
    background: linear-gradient(135deg, #ffc107, #ffb300);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.products-list {
    padding: 15px;
}

.order-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.order-product-image {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.order-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-product-info {
    flex: 1;
}

.order-product-name {
    font-size: 12px;
    font-weight: 600;
    color: #1565c0;
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.order-product-details {
    font-size: 10px;
    color: #1976d2;
}

.order-product-price {
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #ffc107, #ffb300);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: right;
}

.confirmation-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header i {
    color:#1E3A8A;
    font-size: 16px;
}

.card-header h3 {
    background: linear-gradient(135deg, #ffc107, #ffb300);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.card-content {
    padding: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    color: #666;
    font-size: 12px;
}

.info-value {
    color: #1565c0;
    font-weight: 600;
    font-size: 12px;
}

.info-value.amount {
    background: linear-gradient(135deg, #ffc107, #ffb300);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 16px;
    font-weight: 700;
}

.process-step {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-circle {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ff5722, #e64a19);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.3);
}

.step-info h4 {
    color: #1565c0;
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 3px 0;
}

.step-info p {
    color: #666;
    font-size: 11px;
    margin: 0;
    line-height: 1.3;
}

.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-home-new, .btn-whatsapp-new {
    padding: 12px 24px;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-home-new {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white;
}

.btn-home-new:hover {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(25, 118, 210, 0.4);
}

.btn-whatsapp-new {
    background: #25d366;
    color: white;
}

.btn-whatsapp-new:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    margin-top: auto;
    padding: 15px 0;
    width: 100%;
    box-shadow: 0 -4px 20px rgba(25, 118, 210, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.footer-info p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.footer-info strong {
    font-weight: 700;
    color: white;
}

.footer-whatsapp-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.footer-whatsapp-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Optimizaciones específicas para mayorista */
.mayorista-optimized {
    padding: 5px 0 !important;
    margin: 5px 0 !important;
}

.mayorista-optimized .header {
    padding: 8px 0 !important;
}

.mayorista-optimized .nav-bar {
    padding: 6px 0 !important;
}

.mayorista-optimized .hero-banners {
    margin: 8px 0 !important;
}

.mayorista-optimized .banner-grid {
    height: 250px !important;
    gap: 8px !important;
}

.mayorista-optimized .products-section {
    padding: 12px !important;
    margin: 8px 0 !important;
}

.mayorista-optimized .product-image {
    height: 150px !important;
    margin-bottom: 10px !important;
}

.mayorista-optimized .product-card {
    padding: 12px !important;
}

.mayorista-optimized .footer {
    padding: 12px 0 !important;
}

@media (max-width: 768px) {
    .confirmation-cards {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-home-new, .btn-whatsapp-new {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    /* Optimizaciones móviles para mayorista */
    .header {
        padding: 5px 0 !important;
    }
    
    .nav-bar {
        padding: 4px 0 !important;
    }
    
    .logo-img {
        height: 40px !important;
        width: 140px !important;
    }
    
    .banner-grid {
        height: 200px !important;
    }
    
    .product-image {
        height: 120px !important;
    }
    
    .cart-item-image {
        width: 80px !important;
        height: 80px !important;
        min-width: 80px !important;
        min-height: 80px !important;
    }
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    padding: 20px;
}

.pagination-btn {
    padding: 12px 16px;
    border: 2px solid rgba(253, 203, 110, 0.3);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #2d3748;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    min-width: 45px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pagination-btn:hover {
    background: rgba(25, 118, 210, 0.1);
    border-color: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.3);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #ff5722, #e64a19);
    color: white;
    border-color: #ff5722;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.4);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Lazy Loading */
.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lazy-load::before {
    content: '📷';
    font-size: 24px;
    opacity: 0.5;
}

.lazy-load[src] {
    opacity: 1;
}

.lazy-load[src]::before {
    display: none;
}

@media (max-width: 768px) {
    .pagination {
        gap: 5px;
        margin: 20px 0;
        padding: 15px;
    }
    
    .pagination-btn {
        padding: 10px 12px;
        font-size: 12px;
        min-width: 40px;
    }
    
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-bar {
        margin: 0;
        max-width: none;
    }
    
    .banner-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .banner.large {
        grid-row: auto;
    }
    
    .search-content {
        flex-direction: column;
    }
    
    .filters-sidebar {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .product-detail {
        flex-direction: column;
    }
    
    .cart-content,
    .checkout-content {
        flex-direction: column;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .search-bar input {
        border-radius: 15px;
    }
    
    .search-btn {
        border-radius: 15px;
        margin-top: 10px;
    }
    
    .categories-btn {
        width: 100%;
        justify-content: center;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
}

/* Footer */
.footer {
    background: #1E3A8A;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 -8px 32px rgba(25, 118, 210, 0.2);
    margin-top: auto;
    padding: 15px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.footer-info p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
}

.footer-info strong {
    color: white;
    font-weight: 700;
}

.footer-whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.footer-whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 10px;
    }
}
@media (max-width: 768px) {
    .filters-toggle {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
        margin-bottom: 15px;
    }
    
    .filter-section .filter-group {
        display: none;
    }
    
    .filter-section.expanded .filter-group {
        display: block;
    }
    
    .filters-toggle i {
        transition: transform 0.3s ease;
    }
    
    .filters-toggle i.rotated {
        transform: rotate(180deg);
    }
}

/* Forzar color del título del producto */
#productTitle {
    color: #1E3A8A !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #1E3A8A !important;
    background-clip: unset !important;
}
/* Forzar color del título de búsqueda */
#searchTitle {
    color: #1E3A8A !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #1E3A8A !important;
    background-clip: unset !important;
}
#searchInput {
    color: black;
}
.searchInput {
    color: black;
}

/* Modal de entrega */
.modal-entrega {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

.modal-header h3 {
    color: #1E3A8A;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 20px;
}

.entrega-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.info-item strong {
    color: #1E3A8A;
    font-weight: 600;
}

/* Formulario del modal */
#entregaForm .form-group {
    margin-bottom: 20px;
}

#entregaForm label {
    display: block;
    margin-bottom: 8px;
    color: #1E3A8A;
    font-weight: 600;
}

#entregaForm .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

#entregaForm .form-control:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.btn-actualizar {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-actualizar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.btn-cancelar {
    background: #f5f5f5;
    color: #666;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancelar:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* Botón de entrega */
.btn-entrega {
    background: linear-gradient(135deg, #1976d2, #1565c0);
    color: white !important;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.3);
    text-decoration: none;
}

.btn-entrega:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(25, 118, 210, 0.4);
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    color: white !important;
    text-decoration: none;
}

/* Mensaje de confirmación */
.mensaje-confirmacion {
    margin-top: 15px;
    padding: 15px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 15px;
    border-left: 4px solid #4caf50;
}

.mensaje-confirmacion p {
    margin: 0;
    color: #2e7d32 !important;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn-actualizar,
    .btn-cancelar {
        width: 100%;
    }
}
/* Producto Agregado Styles */
.producto-agregado-body {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.producto-agregado-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 500px;
}

.success-icon {
    color: #28a745;
    font-size: 60px;
    margin-bottom: 20px;
}

.product-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

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

.product-name {
    font-weight: bold;
    color: #333;
}

.product-price {
    color: #007bff;
    font-weight: bold;
}

.delivery-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    border-left: 4px solid #007bff;
}

.delivery-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.delivery-item:last-child {
    margin-bottom: 0;
}

.delivery-label {
    font-weight: bold;
    color: #495057;
}

.delivery-value {
    color: #007bff;
}

.total {
    background: #e9ecef;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
}

.btn {
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3;
}
.contact-message {
    text-align: center;
    color: #28a745;
    font-weight: bold;
    margin-top: 15px;
    padding: 10px;
    font-size: 16px;
}

/* Producto Agregado Styles */
.producto-agregado-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background: #f8f9fa;
    min-height: 100vh;
}

.producto-agregado-header {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.success-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.success-icon i {
    color: white;
    font-size: 24px;
}

.producto-agregado-header h1 {
    color: #1E3A8A;
    font-size: 24px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.producto-agregado-header p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.producto-agregado-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.producto-agregado-card .card-content {
    padding: 25px;
}

.producto-agregado-card .product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.producto-agregado-card .product-item:last-child {
    border-bottom: none;
}

.producto-agregado-card .product-name {
    font-weight: bold;
    color: #1E3A8A;
    font-size: 14px;
}

.producto-agregado-card .product-price {
    color: #1976d2;
    font-weight: bold;
    font-size: 14px;
}

.producto-agregado-card .delivery-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #1976d2;
}

.producto-agregado-card .delivery-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.producto-agregado-card .delivery-item:last-child {
    margin-bottom: 0;
}

.producto-agregado-card .delivery-label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.producto-agregado-card .delivery-value {
    color: #1976d2;
    font-weight: 600;
    font-size: 14px;
}

.producto-agregado-card .total {
    background: #e9ecef;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    color: #1E3A8A;
}

.contact-message {
    text-align: center;
    color: #28a745;
    font-weight: bold;
    margin-top: 15px;
    padding: 15px;
    font-size: 16px;
    background: #d4edda;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
}

@media (max-width: 768px) {
    .producto-agregado-container {
        margin: 20px auto;
        padding: 15px;
    }
}
/* Ajustes para producto-agregado - evitar scroll excesivo */
.producto-agregado-container {
    margin: 10px auto !important;
    padding: 10px !important;
    min-height: auto !important;
}

.producto-agregado-header {
    padding: 15px !important;
    margin-bottom: 10px !important;
}

.producto-agregado-card {
    margin-bottom: 15px !important;
}

.producto-agregado-card .card-content {
    padding: 15px !important;
}

.success-icon {
    width: 50px !important;
    height: 50px !important;
    margin: 0 auto 10px !important;
}

.success-icon i {
    font-size: 20px !important;
}

.producto-agregado-header h1 {
    font-size: 20px !important;
    margin: 0 0 8px 0 !important;
}

.producto-agregado-header p {
    font-size: 12px !important;
}

@media (max-width: 768px) {
    .producto-agregado-container {
        margin: 5px auto !important;
        padding: 8px !important;
    }
}
/* Ajustes para mensaje de contacto */
.contact-message {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}
/* Reducir más el tamaño del formulario */
.producto-agregado-container {
    margin: 5px auto !important;
    padding: 5px !important;
    max-width: 500px !important;
}

.producto-agregado-header {
    padding: 10px !important;
    margin-bottom: 5px !important;
}

.producto-agregado-card .card-content {
    padding: 10px !important;
}

.product-item, .delivery-item {
    padding: 8px 0 !important;
}

.card-header {
    padding: 10px !important;
}

.success-icon {
    width: 40px !important;
    height: 40px !important;
    margin: 0 auto 5px !important;
}

.success-icon i {
    font-size: 16px !important;
}

.producto-agregado-header h1 {
    font-size: 18px !important;
    margin: 0 0 5px 0 !important;
}

.producto-agregado-header p {
    font-size: 11px !important;
}

.delivery-label, .delivery-value {
    font-size: 12px !important;
}

.product-name, .product-price {
    font-size: 12px !important;
}

.total {
    padding: 10px !important;
    font-size: 16px !important;
}

.contact-message {
    font-size: 14px !important;
    margin-top: 10px !important;
}
/* Estilo para dirección legible */
.direccion-legible {
    background: #f8f9fa;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #1E3A8A;
    font-weight: 600;
    margin-top: 5px;
}
/* Reducir tamaño formulario entrega */
.entrega-container {
    margin: 10px auto !important;
    padding: 10px !important;
    max-width: 500px !important;
}

.entrega-header {
    padding: 15px !important;
    margin-bottom: 10px !important;
}

.entrega-icon {
    width: 40px !important;
    height: 40px !important;
    margin: 0 auto 10px !important;
}

.entrega-icon i {
    font-size: 18px !important;
}

.entrega-header h1 {
    font-size: 18px !important;
    margin: 0 0 5px 0 !important;
}

.entrega-header p {
    font-size: 12px !important;
}

.entrega-card {
    margin-bottom: 15px !important;
}

.card-header {
    padding: 12px !important;
}

.card-content {
    padding: 15px !important;
}

.form-group {
    margin-bottom: 15px !important;
}

.form-group label {
    font-size: 12px !important;
    margin-bottom: 5px !important;
}

.form-control {
    padding: 8px 12px !important;
    font-size: 12px !important;
}

.direccion-legible {
    padding: 8px 12px !important;
    font-size: 12px !important;
}

.btn-save {
    padding: 8px 16px !important;
    font-size: 12px !important;
}

.form-text {
    font-size: 10px !important;
}
/* Ajustar contenedor al tamaño del formulario */
.entrega-container {
    min-height: auto !important;
    height: fit-content !important;
}

.main-content {
    min-height: auto !important;
}
/* Reducir tamaño formulario reseña */
.resena-container {
    margin: 10px auto !important;
    padding: 10px !important;
    max-width: 500px !important;
    min-height: auto !important;
}

.resena-header {
    padding: 15px !important;
    margin-bottom: 10px !important;
}

.resena-icon {
    width: 40px !important;
    height: 40px !important;
    margin: 0 auto 10px !important;
}

.resena-icon i {
    font-size: 18px !important;
}

.resena-header h1 {
    font-size: 18px !important;
    margin: 0 0 5px 0 !important;
}

.resena-header p {
    font-size: 12px !important;
}

.card-header {
    padding: 12px !important;
}

.card-content {
    padding: 15px !important;
}

.cliente-info {
    padding: 10px !important;
    margin-bottom: 15px !important;
}

.form-group {
    margin-bottom: 15px !important;
}

.rating-group {
    margin-bottom: 15px !important;
}

.form-group label, .rating-group label {
    font-size: 12px !important;
    margin-bottom: 5px !important;
}

.form-control {
    padding: 8px 12px !important;
    font-size: 12px !important;
}

.star-rating i {
    font-size: 20px !important;
}

.btn-save {
    padding: 8px 16px !important;
    font-size: 12px !important;
}

.form-actions {
    padding-top: 15px !important;
    margin-top: 15px !important;
}
/* Reducir más el formulario reseña */
.resena-container {
    margin: 5px auto !important;
    padding: 5px !important;
    max-width: 450px !important;
}

.resena-header {
    padding: 10px !important;
    margin-bottom: 5px !important;
}

.resena-icon {
    width: 35px !important;
    height: 35px !important;
    margin: 0 auto 5px !important;
}

.resena-icon i {
    font-size: 16px !important;
}

.resena-header h1 {
    font-size: 16px !important;
    margin: 0 0 3px 0 !important;
}

.resena-header p {
    font-size: 11px !important;
}

.card-header {
    padding: 8px !important;
}

.card-content {
    padding: 10px !important;
}

.cliente-info {
    padding: 8px !important;
    margin-bottom: 10px !important;
}

.form-group, .rating-group {
    margin-bottom: 10px !important;
}

.form-group label, .rating-group label {
    font-size: 11px !important;
    margin-bottom: 3px !important;
}

.form-control {
    padding: 6px 10px !important;
    font-size: 11px !important;
}

.star-rating i {
    font-size: 18px !important;
}

.btn-save {
    padding: 6px 12px !important;
    font-size: 11px !important;
}

.form-actions {
    padding-top: 10px !important;
    margin-top: 10px !important;
}

.productos-pedido {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 3px solid #ff9800;
}

.producto-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    font-size: 11px;
}

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

.producto-nombre {
    font-weight: 600;
    color: #1E3A8A;
}

.producto-precio {
    color: #ff9800;
    font-weight: 600;
}
/* Estilos para campos obligatorios y errores */
.required {
    color: #dc3545;
    font-weight: bold;
}

.rating-group.error {
    border: 2px solid #dc3545;
    border-radius: 6px;
    padding: 5px;
    background-color: #fff5f5;
}

.rating-group.error label {
    color: #dc3545 !important;
}
/* Ajustar contenedor reseña al formulario */
.resena-container {
    min-height: auto !important;
    height: fit-content !important;
}

.main-content {
    min-height: auto !important;
}

/* REGLA FINAL PARA DIFERENCIA-PRECIO */
.diferencia-precio {
    color: green!important;
    font-size: 16px !important;
    font-weight: 700 !important;
}
/* FORZAR ESTILO DIFERENCIA-PRECIO CON MÁXIMA ESPECIFICIDAD */
html body .product-price .price .diferencia-precio {
    color: green !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

html body div.diferencia-precio {
    color: green!important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

span.price div.diferencia-precio {
    color: green!important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

/* OPTIMIZACIONES FINALES PARA MAYORISTA - REDUCIR SCROLL */
.mayorista-optimized .container {
    padding: 0 15px !important;
}

.mayorista-optimized .search-content {
    gap: 15px !important;
    margin-top: 10px !important;
}

.mayorista-optimized .filters-sidebar {
    padding: 15px !important;
    border-radius: 15px !important;
}

.mayorista-optimized .products-grid {
    gap: 15px !important;
}

.mayorista-optimized .cart-content,
.mayorista-optimized .checkout-content {
    gap: 20px !important;
    margin-top: 15px !important;
}

.mayorista-optimized .product-detail {
    gap: 30px !important;
    margin: 20px 0 !important;
    padding: 20px !important;
}

.mayorista-optimized .checkout-header {
    padding: 15px 0 !important;
    margin-bottom: 20px !important;
}

.mayorista-optimized .confirmation-layout {
    padding: 15px 10px !important;
}

/* Reducir márgenes generales */
.mayorista-optimized h1 {
    margin-bottom: 0.5rem !important;
    font-size: 2rem !important;
}

.mayorista-optimized h2, 
.mayorista-optimized h3 {
    margin-bottom: 0.5rem !important;
}

/* Optimizar espacios en móviles */
@media (max-width: 768px) {
    .mayorista-optimized .container {
        padding: 0 10px !important;
    }
    
    .mayorista-optimized .search-content {
        gap: 10px !important;
    }
    
    .mayorista-optimized .products-grid {
        gap: 10px !important;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    }
    
    .mayorista-optimized .product-detail {
        gap: 15px !important;
        margin: 10px 0 !important;
        padding: 15px !important;
    }
}