/* responsive.css - Media queries, responsive adjustments */
/* Generado automáticamente a partir de styles.css */

@media (max-width: 768px) {
    :root {
        --grid-gap: 0.625rem;
    }

    .navbar-brand .site-title {
        font-size: 1.2rem;
    }
    
    .products-grid .product-card {
        margin-bottom: 1rem;
    }
    
    .products-grid .product-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .whatsapp-btn {
        width: 56px;
        height: 56px;
        font-size: 1.2rem;
    }

    /* Mobile: hide desktop-only toolbar options */
    .toolbar-group {
        display: none;
    }

    /* Compact hamburger menu layout */
    .nav-content.open {
        gap: 0.5rem;
    }
    .toolbar-controls {
        gap: 0.5rem;
    }
    .toolbar-search {
        order: -1;
    }
    .view-toggle {
        align-self: center;
    }
    .btn-fav {
        align-self: center;
    }
}

@media (max-width: 576px) {
    :root {
        --grid-gap: 0.375rem;
    }

    .navbar {
        padding: 0.5rem;
    }
    
    .main-content {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .products-grid .product-img {
        height: 195px;
    }

    /* Touch targets mÃ­nimos 44px en toolbar */
    .toolbar-select,
    .toolbar-search input,
    .toolbar-search .btn-filter,
    .btn-fav,
    .view-toggle .btn {
        min-height: 44px;
    }
    .toolbar-select {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    .toolbar-search input {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    .view-toggle .btn {
        padding: 0 1rem;
    }

    /* WhatsApp mÃ¡s compacto en mobile */
    .whatsapp-btn {
        width: 48px;
        height: 48px;
        bottom: 1rem;
        right: 1rem;
    }
    .whatsapp-btn i {
        font-size: 22px;
    }
}

/* Optimizaciones de rendimiento */
.product-card {
    backface-visibility: hidden;
    perspective: 1000px;
}

@media (prefers-reduced-motion: reduce) {
    .product-card,
    .products-grid .product-card,
    .products-list .product-card,
    .product-img,
    .products-grid .product-img,
    .products-list .product-img {
        transition: none !important;
        animation: none !important;
    }
}

.wave {
    transform: translateZ(0);
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .wave {
        animation: none;
    }
}

/* Focus states mejorados */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

@media (max-width: 767.98px) {
    .navbar-brand .site-title {
        font-size: 1.2rem;
    }
    .navbar-brand img {
        height: 34px;
    }
    .product-details .carousel-item img {
        height: 325px;
        width: 100%;
        object-fit: contain;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .whatsapp-btn {
        width: 56px;
        height: 56px;
        font-size: 1.2rem;
    }
    .whatsapp-btn i {
        font-size: 28px;
    }
}

/* Frontend: Ajustes de grid para secciones que no sean admin si aplica */
/* Mantener este bloque sin cambiar la semÃ¡ntica, pero evitar conflictos de especificidad con admin */
.customization-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.grid-item {
  margin-bottom: 0;
}

.customization-grid .grid-item {
  width: 100%;
}

.grid-item .card {
  height: 100%;
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .customization-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .customization-grid {
    gap: 0.75rem;
  }
}

/* Favoritos: badge y botÃ³n en tarjetas */
.product-card .fav-toggle {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 12;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    border-radius: 999px;
    line-height: 1;
    padding: 0.5rem 0.7rem;
    min-width: 44px;
    min-height: 44px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card .fav-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.favorite-badge {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.95), rgba(255, 165, 0, 0.95));
    color: #3b2d00;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(255, 200, 0, 0.22);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.deal-badge {
    background: linear-gradient(135deg, #ff8c00 0%, #ff4500 100%);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(255, 69, 0, 0.22);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 11;
    text-transform: uppercase;
}

/* Grid: badge debajo de la etiqueta de estado */
.products-grid .favorite-badge {
    position: absolute;
    top: 2.5rem;
    left: 0.75rem;
    z-index: 11;
}

.products-grid .deal-badge {
    position: absolute;
    top: 2.5rem;
    left: 0.75rem;
}

.products-grid .deal-badge.has-fav {
    top: 4.25rem;
}

/* Lista: badge a la derecha de la etiqueta de estado */
.products-list .favorite-badge,
.products-list .deal-badge {
    display: inline-flex;
    vertical-align: middle;
}


/* Responsive */
@media (max-width: 991.98px) {
    .search-container {
        width: 70%;
    }
}

@media (max-width: 767.98px) {
    .search-container {
        width: 85%;
    }
    .navbar-brand .site-title {
        font-size: 1.2rem;
    }
    .navbar-brand img {
        height: 34px;
    }
    .product-details .carousel-item img {
        height: 325px;
        width: 100%;
        object-fit: contain;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .whatsapp-btn {
        width: 56px;
        height: 56px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    .whatsapp-btn i {
        font-size: 28px;
    }
}

.section-title-row {
    margin-bottom: 1rem;
}



@media (min-width: 992px) {
    .css-carousel .product-card,
    .css-carousel > div {
        min-width: 300px;
    }
}

@media (min-width: 1200px) {
    .css-carousel .product-card,
    .css-carousel > div {
        min-width: 320px;
    }
}

