/**
 * ============================================================
 * ESTILOS FRONTEND - CATÁLOGO PREMIUM
 * ============================================================
 * Separado para mejor mantenibilidad y caché
 */

/* ============================================================
 * VARIABLES CSS - Custom Properties
 * ============================================================ */
:root {
    --color-principal: #0d6efd;
    --color-secundario: #c7b333;
    --color-whatsapp-start: #25D366;
    --color-whatsapp-end: #128C7E;
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --border-radius-sm: 10px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.15);
    --transition-fast: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Variables de personalización */
    --header-text-color: #ffffff;
    --header-font-family: 'Arial, sans-serif';
    --header-font-size: 16px;
    --footer-bg-color: #212529;
    --footer-font-family: 'Arial, sans-serif';
    --footer-font-size: 14px;
    --footer-text-color: #ffffff;
    --social-icon-color: #ffffff;
    --botones-color: #0d6efd;
    --iconos-color: #6c757d;
}

/* ============================================================
 * ESTILOS GENERALES
 * ============================================================ */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* ============================================================
 * HEADER PREMIUM
 * ============================================================ */
.header-premium {
    background: linear-gradient(135deg, var(--color-principal) 0%, var(--color-secundario) 100%);
    padding: 2rem 0;
    box-shadow: var(--shadow-md);
    color: var(--header-text-color);
    font-family: var(--header-font-family);
}

/* Estilos dinámicos del header - texto */
.header-premium h1,
.header-premium h2,
.header-premium h3,
.header-premium h4,
.header-premium h5,
.header-premium h6,
.header-premium p,
.header-premium span,
.header-premium a {
    color: var(--header-text-color) !important;
}

.header-premium .header-text {
    color: var(--header-text-color) !important;
}

/* Footer con variables CSS */
footer.bg-dark,
footer.py-4,
#mainFooter {
    background-color: var(--footer-bg-color, #212529) !important;
    color: var(--footer-text-color);
    font-family: var(--footer-font-family);
    font-size: var(--footer-font-size);
}

footer.bg-dark .social-icon-link,
footer.py-4 .social-icon-link,
#mainFooter .social-icon-link {
    color: var(--social-icon-color) !important;
}

footer.bg-dark h1,
footer.bg-dark h2,
footer.bg-dark h3,
footer.bg-dark h4,
footer.bg-dark h5,
footer.bg-dark h6,
footer.bg-dark p,
footer.bg-dark span,
footer.bg-dark a:not(.btn),
footer.py-4 h1,
footer.py-4 h2,
footer.py-4 h3,
footer.py-4 h4,
footer.py-4 h5,
footer.py-4 h6,
footer.py-4 p,
footer.py-4 span,
footer.py-4 a:not(.btn),
#mainFooter h1,
#mainFooter h2,
#mainFooter h3,
#mainFooter h4,
#mainFooter h5,
#mainFooter h6,
#mainFooter p,
#mainFooter span,
#mainFooter a:not(.btn) {
    color: var(--footer-text-color) !important;
}

/* ============================================================
 * TARJETAS DE PRODUCTOS
 * ============================================================ */
.product-card {
    border: none;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
    background: #fff;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Contenedor de imagen */
.product-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition-slow);
}

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

/* Botón de visualización */
.eye-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--color-principal);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.product-card:hover .eye-button {
    transform: translate(-50%, -50%) scale(1);
}

.eye-button:hover {
    background: var(--color-principal);
    color: white;
}

/* Información del producto */
.product-info {
    padding: 1.25rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
   /* -webkit-line-clamp: 2;*/
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-principal);
}

/* Botón WhatsApp */
.btn-whatsapp {
    width: 100%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp i {
    font-size: 1.3rem;
}

/* ============================================================
 * MODAL DE PRODUCTO - DISEÑO PREMIUM
 * ============================================================ */
.modal-product .modal-dialog {
    max-width: 1000px;
    width: 95%;
    margin: 1.75rem auto;
}

.modal-product .modal-content {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-product .modal-content.modal-product-content {
    background: #fff;
}

.modal-product .modal-body {
    padding: 0;
}

/* Contenedor de imagen del modal */
.product-modal-image-container {
    position: relative;
    width: 100%;
    height: 550px;
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-modal-image-container .carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.product-modal-image-container .carousel-inner {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.product-modal-image-container .carousel-item {
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
}

.product-modal-image-container .carousel-item.active {
    display: flex;
}

.product-modal-image-container .carousel-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Indicadores del carrusel */
.modal-product .carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 15px;
    border-radius: 30px;
    display: flex;
    gap: 8px;
    z-index: 15;
}

.modal-product .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0;
    transition: all 0.3s ease;
}

.modal-product .carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.modal-product .carousel-indicators button.active {
    background-color: white;
    transform: scale(1.2);
}

/* Controles del carrusel */
.modal-product .carousel-control-prev,
.modal-product .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    margin: 0 15px;
    z-index: 15;
}

.modal-product:hover .carousel-control-prev,
.modal-product:hover .carousel-control-next {
    opacity: 1;
}

.modal-product .carousel-control-prev {
    left: 0;
}

.modal-product .carousel-control-next {
    right: 0;
}

.modal-product .carousel-control-prev:hover,
.modal-product .carousel-control-next:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-product .carousel-control-prev-icon,
.modal-product .carousel-control-next-icon {
    background-color: var(--color-principal);
    background-size: 50% 50%;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    padding: 8px;
}

/* Detalles del producto - Estilo Premium */
.product-modal-details {
    height: 550px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    padding: 2rem 2.5rem;
    scrollbar-width: thin;
    scrollbar-color: #dee2e6 transparent;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

/* Ocultar scrollbar en WebKit */
.product-modal-details::-webkit-scrollbar {
    width: 6px;
}

.product-modal-details::-webkit-scrollbar-track {
    background: transparent;
}

.product-modal-details::-webkit-scrollbar-thumb {
    background-color: #dee2e6;
    border-radius: 3px;
}

/* Header del producto */
.product-modal-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.product-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-principal) 0%, #0a58ca 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.modal-product-name {
    font-size: 1.85rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* Precio */
.product-modal-price-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.price-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.price-main .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-principal);
}

.modal-product-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-principal);
    line-height: 1;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.price-unit {
    font-size: 1rem;
    color: #6c757d;
    margin-left: 0.5rem;
    font-weight: 500;
}

.price-dozen {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #dee2e6;
}

.price-dozen small {
    color: #0d6efd;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Secciones */
.product-modal-section {
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.section-title i {
    color: var(--color-principal);
}

.modal-product-desc {
    color: #495057;
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

.section-content {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
    white-space: pre-line;
}

.tech-specs {
    color: #6c757d;
    line-height: 1.8;
    font-size: 0.9rem;
    margin: 0;
    white-space: pre-line;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    border-left: 3px solid var(--color-principal);
}

/* Acciones */
.product-modal-actions {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
}

.product-modal-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
}

.modal-product-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.product-modal-price {
    padding: 1rem 0;
    border-bottom: 1px solid 
    #ebefe9;
}

.modal-product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-principal);
}

#modalProductPriceDozen {
    margin-top: 0.5rem;
}

#modalProductPriceDozen small {
    color: #0d6efd;
    font-weight: 700;
}

.product-modal-description {
    flex-shrink: 0;
}

.modal-product-desc {
    color: #495057;
    line-height: 1.7;
    font-size: 1rem;
}

.product-modal-extended,
.product-modal-tech {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.product-modal-extended h6,
.product-modal-tech h6 {
    color: #212529;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-modal-extended p,
.product-modal-tech p {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.95rem;
}

.product-modal-actions {
    margin-top: auto;
    padding-top: 1rem;
}

/* Responsive del modal */
@media (max-width: 991px) {
    .modal-product .modal-dialog {
        max-width: 700px;
        width: 95%;
        margin: 0.5rem auto;
    }

    .product-modal-image-container {
        height: 400px;
    }

    .product-modal-details {
        height: auto;
        max-height: 50vh;
        padding: 1.5rem;
    }

    .modal-product-name {
        font-size: 1.5rem;
    }

    .modal-product-price {
        font-size: 2.5rem;
    }
    
    .price-main .currency {
        font-size: 1.2rem;
    }
    
    .price-unit {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .modal-product .modal-dialog {
        max-width: 100%;
        width: 100%;
        margin: 0;
        height: 100vh;
        max-height: 100vh;
    }

    .modal-product .modal-content {
        border-radius: 0;
        height: 100vh;
    }

    .product-modal-image-container {
        height: 250px;
    }

    .product-modal-details {
        max-height: calc(100vh - 250px);
        padding: 1.25rem;
    }

    .modal-product-name {
        font-size: 1.25rem;
    }

    .modal-product-price {
        font-size: 2rem;
    }
    
    .price-main .currency {
        font-size: 1rem;
    }
    
    .price-unit {
        font-size: 0.75rem;
    }
    
    .price-dozen small {
        font-size: 0.85rem;
    }

    .product-modal-actions .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 0.75rem;
    }
    
    .tech-specs, .section-content, .modal-product-desc {
        font-size: 0.85rem;
    }

    /* En móvil, indicadores más pequeños */
    .modal-product .carousel-indicators {
        bottom: 10px;
        padding: 5px 10px;
    }

    .modal-product .carousel-indicators button {
        width: 8px;
        height: 8px;
    }
}

/* ============================================================
 * FORMULARIOS
 * ============================================================ */
.form-control,
.form-select {
    border-radius: var(--border-radius-sm);
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-principal);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* ============================================================
 * SPINNER DE CARGA
 * ============================================================ */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================================
 * RESPONSIVE - TABLET
 * ============================================================ */
@media (max-width: 991px) and (min-width: 768px) {
    .modal-product .modal-dialog {
        max-width: 600px;
        width: 85%;
    }

    .modal-product .modal-header {
        /* Mantener proporciones: 40% ancho, 60% alto */
        width: 40%;
        height: 55%;
        max-height: 50vh;
        min-height: 250px;
    }

    .modal-product .carousel-item img {
        height: 100%;
        max-height: 50vh;
        min-height: 250px;
    }
}

/* ============================================================
 * RESPONSIVE - MÓVIL
 * ============================================================ */
@media (max-width: 576px) {
    .modal-product .modal-dialog {
        max-width: calc(100% - 1rem);
        width: calc(100% - 1rem);
        margin: 0.5rem auto;
    }

    .modal-product .modal-header {
        /* En móvil: ancho completo, altura proporcional */
        width: 100%;
        height: 50vh;
        max-height: 50vh;
        min-height: 200px;
    }

    .modal-product .carousel-item img {
        height: 100%;
        max-height: 50vh;
        min-height: 200px;
    }

    .modal-product-name {
        font-size: 1.25rem;
    }

    .modal-product-price {
        font-size: 1.5rem;
    }

    .product-image-container {
        height: 150px;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 1.1rem;
    }
}

/* ============================================================
 * UTILIDADES ADICIONALES
 * ============================================================ */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge de categoría */
.category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--color-principal);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 5;
}

/* Imagen placeholder */
.img-placeholder {
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

/* Overlay de carga */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-whatsapp-start) 0%, var(--color-whatsapp-end) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
    z-index: 1000;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

/*-toolbar de búsqueda */
.search-toolbar {
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

/* Filtros */
.filter-section {
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 1rem;
}

.filter-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

/* Paginación */
.pagination-premium .page-link {
    border: none;
    color: var(--color-principal);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    margin: 0 2px;
}

.pagination-premium .page-link:hover {
    background: var(--color-principal);
    color: white;
}

.pagination-premium .page-item.active .page-link {
    background: var(--color-principal);
    color: white;
}

/* Footer */
.footer-premium {
    background: #212529;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-premium a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-premium a:hover {
    color: white;
}

/* ============================================
   NAVEGACIÓN INFERIOR - ESTILO APP
   ============================================ */
.nav-bottom {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 0;
    justify-content: space-around;
    align-items: center;
    height: 60px;
}

.nav-bottom .nav-item {
    flex: 1;
    text-align: center;
}

.nav-bottom .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 500;
    transition: all 0.2s ease;
    height: 100%;
    position: relative;
}

.nav-bottom .nav-link i {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.nav-bottom .nav-link.active,
.nav-bottom .nav-link:hover {
    color: var(--color-principal);
    background: transparent;
}

.nav-bottom .nav-link.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--color-principal);
    border-radius: 0 0 3px 3px;
}

/* Mostrar navegación inferior solo en móvil */
@media only screen and (max-width: 991px) {
    .nav-bottom {
        display: flex;
    }
    
    body {
        padding-bottom: 60px;
    }
    
    /* Ocultar header tradicional en móvil - mantener solo logo y buscar */
    .header-premium {
        padding: 1rem 0 !important;
    }
    
    .header-premium .container > .row {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-premium .col-md-8,
    .header-premium .col-md-4 {
        width: 100%;
        text-align: center !important;
    }
    
    /* Ajustar buscador sticky */
    .bg-white.shadow-sm.py-3 {
        padding: 10px 0 !important;
    }
    
    /* Footer más compacto en móvil */
    .footer-premium {
        padding: 1.5rem 0;
        margin-bottom: 60px;
    }
    
    /* Productos grid - 2 columnas en móvil */
    #catalogo-productos {
        gap: 10px !important;
    }
    
    #catalogo-productos > div {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* Móvil pequeño */
@media only screen and (max-width: 480px) {
    /* Productos - 2 columnas iguales */
    #catalogo-productos {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px !important;
    }
    
    /* Cards de productos más compactos */
    .product-card {
        border-radius: 12px;
    }
    
    .product-image-container {
        height: 120px !important;
        border-radius: 12px 12px 0 0;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-name {
        font-size: 0.8rem !important;
        margin-bottom: 4px;
        line-height: 1.3;
    }
    
    .product-price {
        font-size: 1rem !important;
        font-weight: 700;
    }
    
    .product-price small {
        font-size: 0.7rem;
    }
    
    .product-price-dozen {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }
    
    /* Botón WhatsApp más pequeño */
    .btn-whatsapp {
        padding: 8px 10px;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    .btn-whatsapp i {
        font-size: 1rem;
    }
    
    /* Header más pequeño */
    .header-premium h1 {
        font-size: 1.3rem !important;
    }
    
    .header-premium p {
        font-size: 0.85rem;
    }
    
    /* Buscador */
    .bg-white.shadow-sm.py-3 {
        padding: 8px 0 !important;
    }
    
    /* Footer */
    .footer-premium h5 {
        font-size: 1rem;
    }
    
    .footer-premium .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* Ajustes táctiles generales para móvil */
@media only screen and (max-width: 991px) {
    /* Botones más grandes para táctil */
    .btn {
        min-height: 44px;
        padding: 10px 16px;
    }
    
    .btn-lg {
        padding: 12px 20px;
    }
    
    /* Inputs táctiles */
    .form-control,
    .form-select {
        font-size: 16px; /* Previene zoom en iOS */
        min-height: 44px;
        padding: 10px 14px;
    }
    
    /* Modal a pantalla completa en móvil */
    .modal-dialog {
        max-width: 100%;
        margin: 0;
        height: 100%;
    }
    
    .modal-content {
        border-radius: 20px 20px 0 0;
        height: 100%;
        max-height: 100vh;
    }
    
    .modal-body {
        overflow-y: auto;
        flex: 1;
    }
    
    /* Auth modal */
    #authModal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
        height: auto;
        max-height: calc(100vh - 20px);
    }
    
    #authModal .modal-content {
        border-radius: 16px;
        height: auto;
    }
}