:root {
    --ss-green: #1a5f3a;
    --ss-orange: #ff6b35;
    --ss-red: #ff3838;
    --ss-light-bg: #f8f9fa;
    --ss-border: #e8e8e8;
}

/* Contenedor del producto - Para Grid 2 columnas */
.product-thumb-app {
    background: white;
    border-radius: 12px;
    padding: 12px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-thumb-app:active {
    transform: scale(0.98);
}

/* Badge de descuento */
.product-thumb-app .discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--ss-red);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(255, 56, 56, 0.3);
}

/* Checkbox para selección múltiple */
.product-thumb-app .product-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-thumb-app .product-checkbox.checked {
    background: var(--ss-green);
    border-color: var(--ss-green);
}

.product-thumb-app .product-checkbox.checked i::before {
    content: "\f26b"; /* bi-check-circle-fill */
    color: white;
}

/* Imagen del producto */
.product-thumb-app .product-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
}

.product-thumb-app .product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-thumb-app:hover .product-img {
    transform: scale(1.05);
}

/* Info del producto */
.product-thumb-app .product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

/* Badge de frecuencia */
.product-thumb-app .frequency-badge {
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
}

/* Nombre del producto */
.product-thumb-app .product-name {
    font-size: 13px;
    line-height: 1.3;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-thumb-app .product-name a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.product-thumb-app .product-name a:hover {
    color: var(--ss-green);
}

/* Rating */
.product-thumb-app .product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.product-thumb-app .product-rating i {
    font-size: 11px;
}

.product-thumb-app .rating-count {
    color: #666;
    font-size: 11px;
    margin-left: 2px;
}

/* Precios */
.product-thumb-app .product-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
}

.product-thumb-app .price-old {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
}

.product-thumb-app .price-new {
    font-size: 16px;
    font-weight: 700;
    color: var(--ss-green);
}

.product-thumb-app .price-current {
    font-size: 16px;
    font-weight: 700;
    color: var(--ss-green);
}

/* Botón agregar */
.product-thumb-app .btn-add-cart {
    width: 100%;
    background: var(--ss-orange);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.product-thumb-app .btn-add-cart:hover {
    background: #ff5520;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
}

.product-thumb-app .btn-add-cart:active {
    transform: translateY(0);
}

.product-thumb-app .btn-add-cart i {
    font-size: 16px;
}

/* Grid container - Usá esto en tu módulo */
.products-grid-app {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
}

/* Responsive */
@media (min-width: 576px) {
    .products-grid-app {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .products-grid-app {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) {
    .products-grid-app {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Cuando está en modo selección */
body.selection-mode .product-thumb-app .product-checkbox {
    display: flex !important;
}

body.selection-mode .product-thumb-app .discount-badge {
    top: 40px;
}

/* ========================================
       ESTILOS PRODUCTOS SUGERIDOS
       ======================================== */
/* Controles de cantidad */
.quantity-controls-suggest {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 4px;
    background: rgba(249, 249, 249);
    border: 1px solid rgba(185, 195, 0, 0.1);
    border-radius: 6px;
}

.qty-btn-suggest {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 12px;
}

.qty-btn-suggest:active {
    background: var(--primary);
}

.qty-btn-suggest:hover {
    background: var(--primary);
}

.qty-btn-suggest:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.qty-display-suggest {
    font-size: 14px;
    font-weight: 700;
    color: var(--grayblack);
    min-width: 40px;
    text-align: center;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.qty-unit-suggest {
    font-size: 11px;
    font-weight: 500;
    color: #666;
    margin-left: 2px;
}

.suggested-products-section-suggest {
    margin: 1rem 0;
    padding: 0.875rem;
    background: #fff;
    border-radius: 8px;
}

/* Link contenedor de todo el header */
.products-header-link-suggest {
    display: block;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

/* Efecto zoom al hover y active */
.products-header-link-suggest:hover {
    transform: scale(1.008);
}

.products-header-link-suggest:active {
    transform: scale(0.99);
}

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

.products-title-group-suggest {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.products-title-suggest {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0;
    color: #666;
}

.products-subtitle-suggest {
    font-size: 14px;
    color: #7e7e7e;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.view-all-arrow-suggest {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    margin-left: 8px;
}

.view-all-arrow-suggest i {
    transition: transform 0.2s ease;
}

.products-header-link-suggest:hover .view-all-arrow-suggest i {
    transform: translateX(3px);
}

.products-carousel-wrapper-suggest {
    position: relative;
    overflow: hidden;
    margin: 0 -0.875rem;
    padding: 0 0.875rem;
}

.products-carousel-suggest {
    display: flex;
    gap: 0.625rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-right: 0.875rem;
}

.products-carousel-suggest::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
}

.product-suggestion-card-suggest {
    flex: 0 0 auto;
    width: calc(45% - 0.3125rem);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
}

.product-suggestion-image-suggest {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.product-suggestion-image-suggest a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.product-suggestion-image-suggest img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-suggestion-content-suggest {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1;
}

.product-suggestion-name-suggest {
    font-size: 12px;
    color: var(--grayblack);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
    min-height: 42px;
    max-height: 42px;
}

.product-suggestion-name-suggest:hover {
    color: #ff6b35;
}

.product-suggestion-prices-suggest {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
}

.price-special-suggest {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
}

.price-old-suggest {
    font-size: 11px;
    color: var(--graylight);
    text-decoration: line-through;
}

.price-normal-suggest {
    font-size: 14px;
    font-weight: 700;
    color: var(--grayblack);
}

.suggestion-add-form-suggest {
    margin-top: auto;
}

.btn-add-suggestion-suggest {
    width: 100%;
    height: 40px;
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.btn-add-suggestion-suggest.slide-out img,
.btn-add-suggestion-suggest.slide-out span {
    opacity: 0;
}

.btn-add-suggestion-suggest:active {
    background: var(--secondary);
    border: 1px solid var(--secondary);
}

.carousel-btn-suggest {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.carousel-btn-suggest:hover {
    background: #f9fafb;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.carousel-btn-suggest i {
    font-size: 0.875rem;
}

.carousel-prev-suggest {
    left: -18px;
}

.carousel-next-suggest {
    right: -18px;
}

/* Animación del botón saliendo hacia la izquierda */
@keyframes slideOutLeft-suggest {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* Animación de los controles entrando desde la derecha */
@keyframes slideInRight-suggest {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.btn-add-suggestion-suggest.slide-out {
    animation: slideOutLeft-suggest 0.3s ease forwards;
}

.quantity-controls-suggest.slide-in {
    animation: slideInRight-suggest 0.3s ease forwards;
}

/* Estado inicial de los iconos */
.qty-btn-suggest i {
    transition: none;
}

.qty-btn-suggest .spinner-icon,
.qty-btn-suggest .trash-icon {
    display: none;
}

.qty-btn-suggest .minus-icon,
.qty-btn-suggest .plus-icon {
    display: inline-block;
}

/* Animación del spinner */
.qty-btn-suggest .spinner-icon {
    animation: spin-suggest 1s linear infinite;
}

.qty-btn-suggest.loading .minus-icon,
.qty-btn-suggest.loading .trash-icon,
.qty-btn-suggest.loading i.fa-plus {
    display: none !important;
}

.qty-btn-suggest.loading .spinner-icon {
    display: inline-block !important;
}

.qty-btn-suggest.at-minimum:not(.loading) .minus-icon {
    display: none !important;
}

.qty-btn-suggest.at-minimum:not(.loading) .trash-icon {
    display: inline-block !important;
}

.qty-btn-suggest.at-minimum {
    background: #fdedee;
    border: 1px solid #ffd0d4;
    color: #e12c3f;
}

.qty-btn-suggest.at-minimum:hover {
    background: #fdedee;
    border: 1px solid #ffd0d4;
    color: #e12c3f;
}

.qty-btn-suggest.at-minimum:active {
    background: #fdedee;
    border: 1px solid #ffd0d4;
    color: #e12c3f;
}

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

.product-info-badges-suggest {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

/* Estilo base de cada badge */
.info-badge-suggest {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.info-badge-suggest i {
    font-size: 9px;
}

.sale-type-badge-suggest.kilo {
    background: #e9e4ed;
    color: #2E004D;
    border: 1px solid #c9bcd3;
}

.sale-type-badge-suggest.unidad {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Desktop styles */
@media (min-width: 768px) {
    .suggested-products-section-suggest {
        padding: 1rem;
    }

    .products-carousel-wrapper-suggest {
        padding: 0 50px;
    }

    .products-carousel-suggest {
        gap: 0.75rem;
        overflow-x: auto;
    }

    .product-suggestion-card-suggest {
        width: calc(33.333% - 0.5rem);
    }

    .carousel-btn-suggest {
        display: flex;
    }

    .carousel-prev-suggest {
        left: 5px;
    }

    .carousel-next-suggest {
        right: 5px;
    }

    .product-suggestion-name-suggest {
        font-size: 12px;
    }

    .btn-add-suggestion-suggest:hover {
        background: var(--secondary);
        border: 1px solid var(--secondary);
    }
}

@media (min-width: 1024px) {
    .product-suggestion-card-suggest {
        width: calc(30% - 0.5625rem);
    }
}

@media (max-width: 767px) {
    .suggested-products-section-suggest {
        margin: 0 0;
        border-radius: 0;
    }

    .products-carousel-wrapper-suggest {
        margin: 0;
        padding: 0;
    }

    .products-carousel-suggest {
        padding-left: 0;
    }
}

/* ========================================
   ESTILOS AUTOCOMPLETE
   ======================================== */

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 14px 14px !important;
    max-height: 500px;
    overflow-y: auto;
    z-index: 1050;
    margin-top: 2px;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s ease,
    visibility 0s 0.35s;
}

.autocomplete-suggestions.show {
    box-shadow: 0 50px 32px rgba(0, 0, 0, 0.18);

    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s ease;
}

@media (max-width: 768px) {
    .autocomplete-suggestions {
        position: fixed;
        left: 0 !important;
        right: 0 !important;
        width: 100vw;
        margin: 0;
        margin-top: -40px !important;
    }
}

@media (max-width: 767px) {
    .autocomplete-suggestions {
        max-height: 85vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .suggested-products-section-suggest {
        padding-bottom: 50px !important;
    }
}

.search-suggestions-wrapper {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    transform 0.3s ease;
}

.search-suggestions-wrapper.active {
    max-height: 500px; /* Ajusta según necesites */
    opacity: 1;
    transform: translateY(0);
    padding: 16px;
}

.search-suggestions-wrapper::after {
    content: '';
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 30px;
    background: linear-gradient(to right, transparent, white);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

@media (max-width: 767px) {
    .search-suggestions-wrapper.has-scroll::after {
        opacity: 1;
    }
}

@media (min-width: 768px) {
    .search-suggestions-wrapper::after {
        display: none;
    }
}

.badges-header {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin: 0 0 12px 0;
}

/* Contenedor de badges - Scroll horizontal en mobile */
.search-badges {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.search-badges::-webkit-scrollbar {
    display: none;
    height: 0;
}

.search-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    border: 1px solid #f5f5f5;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 1px;
}

.search-badge:hover,
.search-badge.highlighted {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.search-badge.highlighted {
    background: #fcfdf5;
    border: 1px solid var(--primary);
}

/* Desktop: volver a wrap y quitar scroll */
@media (min-width: 768px) {
    .search-badges {
        flex-wrap: wrap;
        overflow-x: visible;
        overflow-y: visible;
    }

    .search-badge {
        flex-shrink: 1;
    }
}

#back-navigation {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#back-navigation.dropdown-active {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 767px) {
    #back-navigation {
        z-index: 1051; /* Más alto que el dropdown */
    }
}

/* ========================================

======================================== */

.suggested-products-section-suggest {
    margin: 0;
    padding: 0.875rem;
    background: #fff;
    border-radius: 0 0 8px 8px;
    position: relative;
    overflow: hidden;
}

.suggested-products-section-suggest::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: var(--secondary);
    border-radius: 50%;
    top: -150px;
    right: -100px;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none; /* Para que no interfiera con clicks */
}

/* CÍRCULO 2: Verde limón (abajo izquierda) */
.suggested-products-section-suggest::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    background: var(--primary);
    border-radius: 50%;
    bottom: -100px;
    left: -80px;
    opacity: 0.12;
    z-index: 0;
    pointer-events: none; /* Para que no interfiera con clicks */
}

/* IMPORTANTE: Asegurar que el contenido esté por encima de los círculos */
.suggested-products-section-suggest > * {
    position: relative;
    z-index: 2;
}

/* Ajustes para mobile */
@media (max-width: 767px) {
    .autocomplete-suggestions {
        position: fixed;
        left: 0 !important;
        right: 0 !important;
        width: 100vw;
        margin: 0;
        margin-top: -40px !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .suggested-products-section-suggest {
        margin: 0 0;
        border-radius: 0;
        padding-bottom: 50px !important;
    }

    /* Ajustar círculos para mobile */
    .suggested-products-section-suggest::before {
        width: 380px;
        height: 380px;
        top: -120px;
        right: -80px;
    }

    .suggested-products-section-suggest::after {
        width: 320px;
        height: 320px;
        bottom: -80px;
        left: -60px;
    }
}

/* Desktop: círculos más grandes */
@media (min-width: 768px) {
    .suggested-products-section-suggest::before {
        width: 400px;
        height: 400px;
        top: -180px;
        right: -120px;
    }

    .suggested-products-section-suggest::after {
        width: 320px;
        height: 320px;
        bottom: -120px;
        left: -100px;
    }
}

/* Header de la página */
.page-header-favorites {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

/* Círculos decorativos igual que en el dropdown */
.page-header-favorites::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--secondary);
    border-radius: 50%;
    top: -120px;
    right: -12px;
    opacity: 0.12;
    z-index: 0;
}

.page-header-favorites::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--primary);
    border-radius: 50%;
    bottom: -25px;
    left: -60px;
    opacity: 0.1;
    z-index: 0;
}

.page-header-favorites > * {
    position: relative;
    z-index: 1;
}

.page-title-favorites {
    font-size: 18px;
    font-weight: 700;
    color: var(--grayblack);
    margin-bottom: 0.5rem;
}

.page-subtitle-favorites {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0;
}

/* Grid responsive de productos */
.products-grid-favorites {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .products-grid-favorites {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .products-grid-favorites {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .products-grid-favorites {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Mensaje cuando no hay productos */
.no-products-message {
    text-align: center;
    padding: 4rem 2rem;
}

/* Ajustes específicos para el grid (no carrusel) */
.products-grid-favorites .product-suggestion-card-suggest {
    width: 100%;
    flex: none;
}

/* Desktop: ajustes del header */
@media (min-width: 768px) {
    .page-title-favorites {
        font-size: 24px;
    }

    .page-subtitle-favorites {
        font-size: 1.25rem;
    }
}

/* Botón cargar más */
.load-more-btn {
    min-width: 250px;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.load-more-btn:disabled {
    opacity: 0.8;
    cursor: wait;
}

/* Control de visibilidad de estados del botón */
.load-more-btn .btn-loader {
    display: none;
}

.load-more-btn:disabled .btn-text {
    display: none;
}

.load-more-btn:disabled .btn-loader {
    display: inline-block;
}

/* Mensaje final cuando no hay más productos */
.final-message {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 2rem 1rem;
    margin: 1rem 0;
}

/* Círculos decorativos en el mensaje final */
.final-message::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--primary);
    border-radius: 50%;
    top: -50px;
    right: -30px;
    opacity: 0.1;
    z-index: 0;
}

.final-message::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--secondary);
    border-radius: 50%;
    bottom: -40px;
    left: -20px;
    opacity: 0.08;
    z-index: 0;
}

.final-message > * {
    position: relative;
    z-index: 1;
}

.final-message h5 {
    margin-bottom: 0.75rem;
}

.final-message .text-success {
    color: #10b981 !important;
}

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

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

/* Responsive para mobile */
@media (max-width: 767px) {
    .final-message {
        padding: 1.5rem 1rem;
        margin: 0.5rem 0;
    }

    .final-message i.fa-circle-check {
        font-size: 2rem !important;
    }

    .final-message h5 {
        font-size: 1.25rem;
    }

    .final-message p.small {
        font-size: 0.875rem;
    }

    .page-header-favorites {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
        border-radius: 0; /* Sin bordes en mobile para aprovechar todo el ancho */
    }

    /* Círculos más pequeños en mobile */
    .page-header-favorites::before {
        width: 300px;
        height: 300px;
        top: -80px;
        right: -10px;
        opacity: 0.1;
    }

    .page-header-favorites::after {
        width: 360px;
        height: 360px;
        bottom: -10px;
        left: -40px;
        opacity: 0.08;
    }

    .page-title-favorites {
        font-size: 18px;
        margin-bottom: 0.375rem;
    }

    .page-subtitle-favorites {
        font-size: 0.9375rem;
    }
}

/* Animación para productos nuevos */
.product-suggestion-card-suggest.new-product {
    animation: fadeInScale 0.4s ease-out forwards;
    opacity: 0;
}

/* Delay escalonado para cada producto */
.product-suggestion-card-suggest.new-product:nth-child(1) {
    animation-delay: 0s;
}

.product-suggestion-card-suggest.new-product:nth-child(2) {
    animation-delay: 0.05s;
}

.product-suggestion-card-suggest.new-product:nth-child(3) {
    animation-delay: 0.1s;
}

.product-suggestion-card-suggest.new-product:nth-child(4) {
    animation-delay: 0.15s;
}

.product-suggestion-card-suggest.new-product:nth-child(5) {
    animation-delay: 0.2s;
}

.product-suggestion-card-suggest.new-product:nth-child(6) {
    animation-delay: 0.25s;
}

.product-suggestion-card-suggest.new-product:nth-child(7) {
    animation-delay: 0.3s;
}

.product-suggestion-card-suggest.new-product:nth-child(8) {
    animation-delay: 0.35s;
}

.product-suggestion-card-suggest.new-product:nth-child(9) {
    animation-delay: 0.4s;
}

.product-suggestion-card-suggest.new-product:nth-child(10) {
    animation-delay: 0.45s;
}

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

/* Transición suave para el grid cuando se agregan elementos */
.products-grid-favorites {
    transition: all 0.3s ease;
}

/* Mensaje de conteo de productos */
.products-count-message {
    padding: 1rem;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 8px;
    border: 1px dashed rgba(16, 185, 129, 0.2);
}

.products-count-message p {
    margin: 0;
}