/* ============================================
   BOULEVAR - ESTILOS MODERNOS
   Coherentes con el diseño del index
   Paleta: blanco, grises suaves, naranja (#ff6b4a)
   ============================================ */

/* ===== VARIABLES ===== */
:root {
    --primary: #ff6b4a;
    --primary-dark: #e55a3b;
    --primary-light: #ff8a6b;
    --primary-gradient: linear-gradient(135deg, #ff6b4a 0%, #ff9a3c 100%);
    
    --bg: #f5f7fa;
    --bg-white: #ffffff;
    --bg-gray: #f8fafc;
    --bg-hover: #f1f5f9;
    
    --text-primary: #1a1f36;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --border: #eef2f8;
    --border-dark: #e2e8f0;
   --border-color: #e5e5e5;
   --background: #f5f5f5;
    --card-bg: #ffffff;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --whatsapp: #25D366;
    --telegram: #0088cc;
    --phone: #3b82f6;
    --gps: #e67e22;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.05);
    --shadow-hover: 0 20px 25px -12px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
  overflow-x: hidden;  /* mantén si quieres ocultar horizontal */
  overflow-y: auto !important; /* fuerza scroll vertical */
  height: auto !important;
  min-height: 100%;
}

.body-content,
main {
  overflow: visible !important; /* o 'auto' */
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
}

/* ===== UTILIDADES ===== */
.hidden {
    display: none !important;
}

/* ===== CONTENEDOR DE PRODUCTOS ===== */
.productos-container {
    display: grid;
    gap: 24px;
    transition: var(--transition);
    padding-top: 15rem;
}

/* VISTA FULL (Grid por defecto) */
.productos-container.view-mode-full {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
   padding-top: 18rem;
}

@media (min-width: 1400px) {
    .productos-container.view-mode-full {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* VISTA MINI (Compacta) */
.productos-container.view-mode-mini {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.productos-container.view-mode-mini .product-card {
    border-radius: 14px;
}

.productos-container.view-mode-mini .product-image-container {
    height: 160px;
}

.productos-container.view-mode-mini .product-info-details {
    padding: 12px;
}

.productos-container.view-mode-mini .product-title {
    font-size: 0.9rem;
}

.productos-container.view-mode-mini .product-price-main {
    font-size: 1.1rem;
}

.productos-container.view-mode-mini .product-desc,
.productos-container.view-mode-mini .product-promotion,
.productos-container.view-mode-mini .contact-grid,
.productos-container.view-mode-mini .actions-footer {
    display: none;
}

/* VISTA MICRO (Lista) */
.productos-container.view-mode-micro {
    grid-template-columns: 1fr;
    gap: 12px;
}

.productos-container.view-mode-micro .product-card {
    display: flex;
    flex-direction: row;
    border-radius: 14px;
    min-height: 140px;
}

.productos-container.view-mode-micro .product-image-container {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    padding: 12px;
}

.productos-container.view-mode-micro .product-info-details {
    flex: 1;
    padding: 12px;
    gap: 6px;
}

.productos-container.view-mode-micro .product-title {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.productos-container.view-mode-micro .product-price-main {
    font-size: 1.1rem;
    margin: 0;
}

.productos-container.view-mode-micro .product-desc {
    -webkit-line-clamp: 2;
    font-size: 0.75rem;
}

.productos-container.view-mode-micro .contact-grid {
    display: flex;
    gap: 6px;
    margin: 4px 0;
}

.productos-container.view-mode-micro .btn-contact {
    padding: 4px 10px;
    font-size: 0.7rem;
}

.productos-container.view-mode-micro .btn-contact i {
    font-size: 0.8rem;
}

.productos-container.view-mode-micro .product-meta {
    display: none;
}

.productos-container.view-mode-micro .actions-footer {
    margin-top: 4px;
    padding-top: 8px;
}

/* ===== TARJETA DE PRODUCTO ===== */
.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

/* Tarjeta expandida (vista mini/micro) */
.product-card.temp-full {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    z-index: 1000;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: expandCard 0.3s ease;
}

@keyframes expandCard {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.product-card.temp-full .product-image-container {
    height: 250px;
}

.product-card.temp-full .product-desc {
    -webkit-line-clamp: unset;
    max-height: 120px;
    overflow-y: auto;
}

/* ===== CONTENEDOR DE IMAGEN ===== */
.product-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-gray) 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px;
}

.product-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Imagen censurada */
.product-image-container.censored img {
    filter: blur(12px) grayscale(0.5);
}

/* Badge de integridad */
.integrity-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(239, 68, 68, 0.95);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

/* ===== INFORMACIÓN DEL PRODUCTO ===== */
.product-info-details {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-promotion {
    font-size: 0.75rem;
    color: var(--whatsapp);
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-promotion::before {
    content: "🎯";
    font-size: 0.7rem;
}

.product-price-main {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 4px 0;
    letter-spacing: -0.02em;
}

/* ===== BADGES ===== */
.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: 4px 0;
}

.badge {
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-gray);
    color: var(--text-muted);
    border: 1px solid var(--border-dark);
    font-weight: 500;
    transition: var(--transition);
}

.badge:hover {
    background: var(--bg-hover);
    border-color: var(--primary-light);
}

/* Badges específicos por tipo */
.badge.estado-producto {
    background: #fef3c7;
    color: #d97706;
    border-color: #fde68a;
}

.badge.metodo-pago {
    background: #dbeafe;
    color: #2563eb;
    border-color: #bfdbfe;
}

.badge.entrega {
    background: #dcfce7;
    color: #16a34a;
    border-color: #bbf7d0;
}

.badge.publicado {
    background: #f3e8ff;
    color: #9333ea;
    border-color: #e9d5ff;
}

.badge.provincia {
    background: #ffe4e6;
    color: #e11d48;
    border-color: #fecdd3;
}

/* Atributos dinámicos */
.product-meta .attr-item {
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-gray);
    color: var(--text-muted);
    border: 1px solid var(--border-dark);
    font-weight: 500;
}

.product-meta .attr-label {
    font-weight: 600;
    color: var(--text-secondary);
}

/* ===== BOTONES DE CONTACTO ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 8px 0;
}

.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
    color: white;
    cursor: pointer;
    border: none;
}

.btn-contact i {
    font-size: 0.9rem;
}

.btn-contact:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: var(--shadow-sm);
}


.btn-contact-modern.bg-whatsapp {
    background: #25D366;
    color: white;
}

.btn-contact-modern.bg-phone {
    background: #3b82f6;
    color: white;
}

.btn-contact-modern.bg-telegram {
    background: #26A5E4;
    color: white;
}

.btn-contact-modern.bg-gps {
    background: #ef4444;
    color: white;
}

.btn-contact-modern:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.btn-save-modern, .btn-share-modern {
    background: none;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.btn-save-modern:hover {
    background: #fee2e2;
    color: var(--primary-color);
}

.btn-share-modern:hover {
    background: var(--background);
    color: var(--primary-color);
}


/* ===== FOOTER DE ACCIONES ===== */
.actions-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.btn-save-product {
    background: transparent;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.btn-save-product:hover {
    background: #fef2f2;
}

.btn-save-product i {
    transition: transform 0.2s;
}

.btn-save-product:hover i {
    transform: scale(1.1);
}

.action-icon-btn {
    background: var(--bg-gray);
    border: 1px solid var(--border-dark);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

/* ===== HEADER DE TIENDA ===== */
.tienda-info-header {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    margin: 0 0 24px 0;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.tienda-banner {
    width: 100%;
    aspect-ratio: 16 / 5;
    min-height: 280px;
    max-height: 340px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.tienda-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.tienda-logo-container {
    position: static;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--bg-white);
    background: var(--bg-white);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    z-index: 2;
    transition: var(--transition);
}

.tienda-logo-container:hover {
    transform: scale(1.03);
}

.tienda-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tienda-datos {
    padding: 10px;
}

.tienda-info h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.tienda-descripcion {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.tienda-horario {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    background: var(--bg-gray);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    width: fit-content;
    border: 1px solid var(--border-dark);
}

.tienda-horario i {
    color: var(--success);
    font-size: 1rem;
}

/* Contacto tienda */
.tienda-contacto {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.contacto-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--bg-gray);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-dark);
}

.contacto-item:hover {
    background: var(--bg-hover);
    transform: translateY(-2px);
    border-color: var(--primary);
    color: var(--primary);
}

/* Acciones tienda */
.tienda-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-favorita {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

#btn-agregar-favorita {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 74, 0.3);
}

#btn-agregar-favorita:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 74, 0.4);
}

#btn-quitar-favorita {
    background: #fef2f2;
    color: var(--danger);
    border: 1px solid #fecaca;
}

#btn-quitar-favorita:hover {
    background: #fee2e2;
    transform: translateY(-2px);
}

/* Header compacto al scroll */
.tienda-info-header.compact {
    position: fixed;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 0;
    z-index: 98;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    animation: slideDown 0.3s ease;
}

.tienda-info-header.compact .tienda-banner {
    display: none;
}

.tienda-info-header.compact .tienda-logo-container {
    position: static !important;
    width: 40px;
    height: 40px;
    border-width: 2px;
    margin: 0 12px 0 0;
}

.tienda-info-header.compact .tienda-datos {
    padding: 12px 20px;
}

.tienda-info-header.compact .tienda-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tienda-info-header.compact .tienda-info h2 {
    font-size: 1rem !important;
    margin: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.tienda-info-header.compact .tienda-descripcion,
.tienda-info-header.compact .tienda-horario,
.tienda-info-header.compact .tienda-contacto {
    display: none !important;
}

.tienda-info-header.compact .tienda-actions {
    margin: 0 !important;
    flex-direction: row !important;
    gap: 8px;
}

.tienda-info-header.compact .btn-favorita {
    padding: 6px 14px !important;
    font-size: 0.75rem !important;
    white-space: nowrap;
}

/* ===== MENSAJES ===== */
.mensaje-inicial {
    text-align: center;
    padding: 60px 24px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    grid-column: 1 / -1;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.mensaje-inicial i {
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.mensaje-inicial h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.mensaje-inicial p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

#filtro-sin-resultados {
    background: var(--bg-white);
    border: 2px dashed var(--border-dark);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

#filtro-sin-resultados i {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--text-light);
}

/* ===== TOAST ===== */
#toast-container {
    position: fixed;
    top: max(20px, env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    animation: slideInDown 0.3s ease;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    white-space: nowrap;
}

.toast i {
    font-size: 1rem;
}

.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--info); }

/* ===== SKELETON LOADING ===== */
.skeleton-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    overflow: hidden;
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

@keyframes skeletonPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.skeleton-image {
    height: 200px;
    background: linear-gradient(90deg, var(--bg-gray) 25%, var(--border) 50%, var(--bg-gray) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
}

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

.skeleton-content {
    padding: 16px;
}

.skeleton-title {
    height: 20px;
    background: var(--bg-gray);
    border-radius: 8px;
    margin-bottom: 12px;
    width: 80%;
}

.skeleton-price {
    height: 28px;
    background: var(--bg-gray);
    border-radius: 8px;
    width: 40%;
    margin-bottom: 12px;
}

.skeleton-line {
    height: 12px;
    background: var(--bg-gray);
    border-radius: 6px;
    margin-bottom: 8px;
    width: 100%;
}

.skeleton-line.short {
    width: 60%;
}

/* ===== ANIMACIONES ===== */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in {
    animation: fadeInUp 0.3s ease-out;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--border-dark);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .tienda-contacto {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .contacto-item {
        width: 100%;
        justify-content: center;
    }
}

/* responcividad  */
@media (max-width: 768px) {
    .productos-container.view-mode-full {
        gap: 16px;
    }
    
    .productos-container.view-mode-mini {
        gap: 12px;
    }
    
    .product-image-container {
        height: 170px;
        padding: 12px;
    }
    
    .product-info-details {
        padding: 12px;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .product-price-main {
        font-size: 1.1rem;
    }
    
    .contact-grid {
       /* responcividad contenedor de contactos */
    }
    
    .product-card.temp-full {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .productos-container.view-mode-micro .product-card {
        flex-direction: column;
    }
    
    .productos-container.view-mode-micro .product-image-container {
        width: 100%;
        height: 140px;
    }
    
    .tienda-info-header {
        margin: 0 0 16px 0;
    }
    
    .tienda-logo-container {
        width: 70px;
        height: 70px;
        bottom: -30px;
        left: 20px;
    }
    
    .tienda-datos {
       
    }
    
    .tienda-info h2 {
        font-size: 1.3rem;
    }
    
    .tienda-descripcion {
        font-size: 0.85rem;
       padding: 5px;
    }
    
    .tienda-actions {
        flex-direction: column;
    }
    
    .tienda-contacto {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .contacto-item {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .tienda-info-header.compact {
   
    }
    
    .tienda-info-header.compact .tienda-info h2 {
        max-width: 120px;
        font-size: 0.85rem !important;
    }
    
    .tienda-info-header.compact .tienda-logo-container {
        width: 32px;
        height: 32px;
    }
    
    .tienda-info-header.compact .btn-favorita span {
        display: none;
    }
    
    .tienda-info-header.compact .btn-favorita {
        padding: 6px 10px !important;
    }
}

@media (max-width: 480px) {
    .productos-container.view-mode-full {
        grid-template-columns: 1fr;
       padding-top: 18rem;
    }
    
    .productos-container.view-mode-mini {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
       padding-top: 18rem;
    }
    
    .product-image-container {
        height: 150px;
    }
    
    .mensaje-inicial {
        padding: 40px 20px;
    }
    
    .mensaje-inicial i {
        font-size: 2.5rem;
    }
    
    .mensaje-inicial h3 {
        font-size: 1.1rem;
    }
    
    .tienda-contacto {
      
    }
    
    .contacto-item {
        justify-content: center;
    }
    
    .toast {
        white-space: normal;
        text-align: center;
        max-width: 90vw;
    }
}

@media (max-width: 360px) {
    .product-title {
        font-size: 0.85rem;
    }
    
    .product-price-main {
        font-size: 1rem;
    }
  }


.btn-contact-modern {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.actions-footer-modern {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 480px) {
    .view-mode-full {
        grid-template-columns: 1fr;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
}

/* Vista Full (Grid normal) */
.view-mode-full {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Vista Mini (Compacta) */
.view-mode-mini {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.view-mode-mini .product-card-modern .product-info-details {
    padding: 12px;
}

.view-mode-mini .product-card-modern .product-desc,
.view-mode-mini .product-card-modern .contact-grid,
.view-mode-mini .product-card-modern .product-meta .badge:not(.product-price) {
    display: none;
}

/* Vista Micro (Lista) */
.view-mode-micro {
    grid-template-columns: 1fr;
    gap: 12px;
}

.view-mode-micro .product-card-modern {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.view-mode-micro .product-card-modern .product-image-container {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.view-mode-micro .product-card-modern .product-info-details {
    flex: 1;
    padding: 12px 12px 12px 0;
}

.view-mode-micro .product-card-modern .contact-grid {
    margin-top: 8px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin: 4px 0;
}

/* Tarjeta de Producto */
.product-card-modern {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-color);
}


body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}


/* Estilo para productos de tienda cerrada */
.product-card.store-closed {
    opacity: 0.95;
}

.product-card.store-closed .contact-grid {
    position: relative;
}

.store-products-closed-message {
    animation: fadeInUp 0.3s ease;
}

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

/* Badge opcional en cada producto cuando tienda cerrada */
.product-closed-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(231, 76, 60, 0.9);
    backdrop-filter: blur(4px);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
}
