@media (min-width: 1200px) {
    .container {
        max-width: 1400px !important;
    }
}
    /* BADGE VENDEDOR USUARIO */
.product-store-badge.seller-badge {
    background: linear-gradient(135deg, #fff7ed, #fff);
    border: 1px solid #fed7aa;
    color: #9a3412;
}

.product-store-badge.seller-badge i {
    color: #ea580c;
    font-size: 16px;
}

.product-badge-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    overflow: hidden;
}

.badge-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.badge-name {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}
/* ============================================
   MARKETPLACE HEADER
   ============================================ */
.marketplace-header {
    background: linear-gradient(135deg, var(--main-secondary_color) 0%, var(--main-primary_color) 100%);
    color: white;
    padding: 52px 0 80px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

/* Círculos decorativos de fondo */
.marketplace-header::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    pointer-events: none;
}
.marketplace-header::after {
    content: '';
    position: absolute;
    bottom: -100px; left: 10%;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}

/* Ola inferior */
.marketplace-header .mp-header-wave {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    line-height: 0;
}
.marketplace-header .mp-header-wave svg {
    display: block;
    width: 100%; height: 48px;
}

.marketplace-header__content {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.marketplace-header__logo {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    object-fit: contain;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.marketplace-header__title {
    font-size: 34px;
    font-weight: 800;
    margin: 0 0 8px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.15);
    letter-spacing: -0.5px;
}

.marketplace-header__description {
    font-size: 15px;
    opacity: 0.88;
    margin: 0 0 20px;
    line-height: 1.6;
    max-width: 680px;
}

.marketplace-header__stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 30px;
    padding: 7px 16px;
    transition: background .2s;
}
.stat-item:hover { background: rgba(255,255,255,0.22); }

.stat-item i {
    font-size: 14px;
    opacity: 0.9;
}

/* ============================================
   SEARCH PAGE — LAYOUT
   ============================================ */
.search-page-wrapper {
    background: #f8f9fa;
    padding: 20px 0 60px;
}

/* ============================================
   PAGE LAYOUT — SIDEBAR
   ============================================ */
.mp-page-wrapper {
    background: #f8f9fa;
    padding: 0 0 60px;
}

.search-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 28px;
    align-items: start;
    margin-top: 28px;
}

.search-results-area {
    min-width: 0;
}

/* Botón móvil */
.search-mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    margin-bottom: 14px;
    transition: all .2s;
}
.search-mobile-filter-btn:hover { border-color: var(--main-primary_color); color: var(--main-primary_color); }
.search-filter-badge { display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;background:var(--main-primary_color);color:white;border-radius:50%;font-size:11px;font-weight:700; }

/* Sidebar */
.search-sidebar {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    position: sticky;
    top: 20px;
    border-top: 3px solid var(--main-primary_color);
}
.search-sidebar__header { display:flex;align-items:center;gap:10px;padding:18px 22px 14px;border-bottom:1px solid #f3f4f6;background:linear-gradient(135deg,rgba(var(--main-primary_color-rgb,35,25,222),.04) 0%,transparent 100%); }
.search-sidebar__title { font-size:14px;font-weight:700;color:#1a1a2e;margin:0;flex:1;display:flex;align-items:center;gap:8px; }
.search-sidebar__title i { color:var(--main-primary_color);font-size:13px; }
.search-sidebar__clear { font-size:12px;color:#ef4444;text-decoration:none;white-space:nowrap;font-weight:500; }
.search-sidebar__clear:hover { text-decoration:underline; }
.search-sidebar__close { display:none;background:none;border:none;font-size:18px;color:#6b7280;cursor:pointer;padding:0 2px; }

/* Secciones */
.search-filter-section { border-bottom:1px solid #f3f4f6; }
.search-filter-section:last-child { border-bottom:none; }
.search-filter-section__head { display:flex;align-items:center;justify-content:space-between;padding:14px 22px;cursor:pointer;user-select:none;transition:background .15s; }
.search-filter-section__head:hover { background:#f9fafb; }
.search-filter-section__title { font-size:12px;font-weight:700;color:#374151;letter-spacing:.5px;margin:0; }
.search-filter-section__icon { font-size:11px;color:#9ca3af; }
.search-filter-section__body { padding:0 22px 14px; }

/* Búsqueda dentro del sidebar */
.mp-sidebar-search { display:flex;align-items:center;gap:10px;background:#f3f4f6;border-radius:10px;padding:10px 14px; }
.mp-sidebar-search i { color:#9ca3af;font-size:14px;flex-shrink:0; }
.mp-sidebar-search input { flex:1;border:none;background:transparent;outline:none;font-size:14px;color:#1a1a2e; }

/* Lista de filtros */
.search-filter-list { list-style:none;padding:0;margin:0;max-height:220px;overflow-y:auto; }
.search-filter-list::-webkit-scrollbar { width:3px; }
.search-filter-list::-webkit-scrollbar-thumb { background:#d1d5db;border-radius:3px; }
.search-filter-list li { margin-bottom:2px; }
.search-filter-link { display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;font-size:13px;color:#374151;text-decoration:none;transition:all .15s; }
.search-filter-link:hover { background:#f3f4f6;color:#1a1a2e; }
.search-filter-link.active { background:linear-gradient(135deg,var(--main-primary_color) 0%,var(--main-secondary_color) 100%);color:white;font-weight:600; }
.search-filter-link.active i { color:white; }
.search-filter-link i { font-size:12px;color:var(--main-primary_color);width:15px;flex-shrink:0; }
.search-store-logo { width:18px;height:18px;border-radius:3px;object-fit:contain;flex-shrink:0; }

/* Select ordenamiento */
.search-sort-select { width:100%;padding:10px 32px 10px 12px;border:2px solid #e5e7eb;border-radius:10px;background:white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%236b7280' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 12px center;appearance:none;font-size:13px;color:#374151;cursor:pointer;transition:border-color .2s; }
.search-sort-select:focus { outline:none;border-color:var(--main-primary_color);box-shadow:0 0 0 3px rgba(35,25,222,.1); }

/* Barra superior resultados */
.search-topbar { display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:14px;padding:14px 20px;background:white;border-radius:14px;box-shadow:0 4px 16px rgba(0,0,0,.07);border-left:4px solid var(--main-primary_color); }
.search-topbar__count { font-size:14px;color:#6b7280; }
.search-topbar__count strong { color:#1a1a2e;font-size:16px; }
.search-topbar__clear { font-size:13px;color:#ef4444;text-decoration:none;font-weight:500;display:flex;align-items:center;gap:4px; }
.search-topbar__clear:hover { text-decoration:underline; }

/* Filtros activos */
.active-filters { display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px;padding:10px 14px;background:white;border-radius:12px;box-shadow:0 2px 8px rgba(0,0,0,.06); }
.active-filters-label { font-size:13px;color:#6b7280;font-weight:500; }
.active-filter-tag { display:inline-flex;align-items:center;gap:8px;padding:5px 12px;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:20px;font-size:13px;color:#374151; }
.remove-filter { display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;background:#ef4444;color:white;border-radius:50%;text-decoration:none;font-size:14px;line-height:1;transition:background .2s; }
.remove-filter:hover { background:#dc2626; }
.clear-all-filters { margin-left:auto;font-size:13px;color:var(--main-primary_color);text-decoration:none;font-weight:500; }
.clear-all-filters:hover { text-decoration:underline; }

/* Overlay móvil */
.search-sidebar-overlay { display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:1040; }
.search-sidebar-overlay.show { display:block; }

/* ============================================
   PRODUCTOS GRID
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.product-card {
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 0 16px 20px;
    height: 100%;
    border-bottom: 3px solid transparent;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.14);
    border-bottom-color: var(--main-primary_color);
}

/* BADGE DE TIENDA */
.product-store-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
    max-width: calc(100% - 80px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-store-badge img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
}

.product-store-badge i {
    font-size: 14px;
    color: var(--main-primary_color);
    flex-shrink: 0;
}

.product-store-badge span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

/* IMAGEN CON ALTURA FIJA */
.product-image-container {
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    height: 220px; /* ✅ ALTURA FIJA */
    background: #f8f9fa;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.3s ease;
}

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

/* PLACEHOLDER CUANDO NO HAY IMAGEN */
.product-no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    gap: 8px;
}

.product-no-image i {
    font-size: 48px;
}

.product-no-image span {
    font-size: 12px;
    color: #9ca3af;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    text-align: center;
    padding: 16px 0 8px;
    line-height: 1.4;
    min-height: 60px; /* ✅ ALTURA MÍNIMA para título */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* PRECIOS */
.product-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 28px; /* ✅ ALTURA MÍNIMA */
}

.price-original {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
}

.price-current {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}

.price-discount {
    color: #10b981;
}

/* RATING */
.rating {
    color: #fbbf24;
    font-size: 14px;
    text-align: center;
    padding: 8px 0;
}

/* BADGE OFERTA */
.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 5;
}

.badge-sale {
    background: #ef4444;
    color: white;
    animation: pulse-sale 2s ease-in-out infinite;
}

@keyframes pulse-sale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* BOTONES DE PRODUCTO */
.product-buttons {
    margin-top: auto; /* ✅ Empuja los botones hacia abajo */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* BOTÓN VISTA RÁPIDA */
.btn-quick-view {
    width: 100%;
    padding: 12px 20px;
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-quick-view:hover {
    border-color: var(--main-primary_color);
    color: var(--main-primary_color);
    background: #f5f3ff;
}

/* BOTÓN CARRITO */
.btn-add-cart {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--main-primary_color)0%, var(--main-secondary_color)100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(35, 25, 222, 0.35);
}

/* ============================================
   WISHLIST BUTTONS
   ============================================ */
.wishlist-buttons-container {
    margin-top: 12px;
    position: relative;
}

.btn-add-to-wishlist,
.btn-add-to-wishlist-dropdown {
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-add-to-wishlist:hover,
.btn-add-to-wishlist-dropdown:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
}

.btn-add-to-wishlist-dropdown .fa-chevron-down {
    font-size: 12px;
    margin-left: auto;
}

/* DROPDOWN MENU */
.wishlist-dropdown-container {
    position: relative;
}

.wishlist-dropdown-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.wishlist-dropdown-menu.show {
    display: block;
}

.wishlist-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    font-size: 14px;
}

.wishlist-dropdown-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
}

.wishlist-dropdown-lists {
    max-height: 200px;
    overflow-y: auto;
}

.wishlist-dropdown-loading {
    padding: 20px;
    text-align: center;
    color: #6b7280;
}

.wishlist-list-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

.wishlist-list-item:hover {
    background: #f9fafb;
}

.wishlist-list-item.added {
    background: #ecfdf5;
    color: #059669;
}

.wishlist-list-item.added::after {
    content: '✓';
    margin-left: auto;
    font-weight: bold;
}

.wishlist-dropdown-footer {
    padding: 12px;
    border-top: 1px solid #e5e7eb;
}

.wishlist-create-new-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--main-primary_color)0%, var(--main-secondary_color)100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* BOTÓN WISHLIST */
.btn-wl-dropdown-trigger {
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    transition: all 0.2s ease;
}
.btn-wl-dropdown-trigger:hover,
.btn-wl-dropdown-trigger.wl-active {
    border-color: #e91e63;
    color: #e91e63;
    background: #fef2f2;
}
.btn-wl-dropdown-trigger.wl-active i.fa-heart {
    font-weight: 900; /* fas */
}
@media (max-width: 768px) {
    .btn-wl-dropdown-trigger span { display: none; }
    .btn-wl-dropdown-trigger { padding: 10px; justify-content: center; }
}

/* PAGINACIÓN */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.pagination a,
.pagination span.page-number {
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    background: #f3f4f6;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #e5e7eb;
}

.pagination .active {
    background: #1a1a2e;
    color: white;
}

/* MODAL */
.wishlist-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    backdrop-filter: blur(4px);
}

.wishlist-modal-overlay.show {
    display: flex;
}

.wishlist-modal {
    background: white;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.wishlist-modal h3 {
    margin: 0 0 20px;
    font-size: 20px;
    color: #1a1a2e;
}

.wishlist-modal h3 i {
    color: #ef4444;
    margin-right: 8px;
}

.wishlist-modal input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.wishlist-modal-buttons {
    display: flex;
    gap: 12px;
}

.wishlist-modal-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.wishlist-modal-btn.cancel {
    background: #f3f4f6;
    color: #374151;
}

.wishlist-modal-btn.confirm {
    background: linear-gradient(135deg, var(--main-primary_color)0%, var(--main-secondary_color)100%);
    color: white;
}

/* ESTADO VACÍO */
.empty-products-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 60px 20px;
}

.empty-products-content {
    text-align: center;
    max-width: 500px;
}

.empty-products-icon {
    font-size: 80px;
    color: #d1d5db;
    margin-bottom: 24px;
}

.empty-products-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.empty-products-description {
    color: #6b7280;
    line-height: 1.6;
}

/* NOTIFICACIÓN */
.wishlist-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    background: #059669;
    color: white;
    font-size: 14px;
    font-weight: 500;
    z-index: 100001;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.wishlist-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* NOTIFICACIÓN QUICK VIEW */
.qv-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 100001;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: #059669;
    color: white;
}

.qv-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.qv-notification.error {
    background: #ef4444;
}

/* ============================================
   MODAL VISTA RÁPIDA
   ============================================ */
.quick-view-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.quick-view-overlay.show {
    display: flex;
}

.quick-view-modal {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.quick-view-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #374151;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.quick-view-close:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

.quick-view-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

/* GALERÍA DE IMÁGENES */
.quick-view-gallery {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 20px 0 0 20px;
}

.quick-view-main-image {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.quick-view-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.quick-view-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-view-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.quick-view-thumb:hover,
.quick-view-thumb.active {
    border-color: var(--main-primary_color);
}

.quick-view-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* INFO DEL PRODUCTO */
.quick-view-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quick-view-store {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 13px;
    color: #374151;
    width: fit-content;
}

.quick-view-store i {
    color: var(--main-primary_color);
}

.quick-view-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
}

.quick-view-price {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
}

.quick-view-price .price-original {
    font-size: 18px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-right: 10px;
}

.quick-view-price .price-discount {
    color: #10b981;
}

.quick-view-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    max-height: 80px;
    overflow-y: auto;
}

/* VARIANTES */
.quick-view-variants {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.variant-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.variant-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variant-option {
    padding: 8px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.variant-option:hover {
    border-color: var(--main-primary_color);
}

.variant-option.selected {
    border-color: var(--main-primary_color);
    background: var(--main-primary_color);
    color: white;
}

/* CANTIDAD */
.quick-view-quantity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.quick-view-quantity label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.quantity-selector button:hover {
    background: #e5e7eb;
}

.quantity-selector input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.quantity-selector input:focus {
    outline: none;
}

/* BOTONES */
.quick-view-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
}

.qv-btn-cart {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--main-primary_color)0%, var(--main-secondary_color)100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.qv-btn-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(35, 25, 222, 0.35);
}

.qv-btn-details {
    width: 100%;
    padding: 14px 24px;
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.qv-btn-details:hover {
    border-color: var(--main-primary_color);
    color: var(--main-primary_color);
}

/* RESPONSIVE MODAL */
@media (max-width: 768px) {
    .quick-view-content {
        grid-template-columns: 1fr;
    }
    
    .quick-view-gallery {
        border-radius: 20px 20px 0 0;
        padding: 20px;
    }
    
    .quick-view-main-image {
        height: 200px;
    }
    
    .quick-view-info {
        padding: 20px;
    }
    
    .quick-view-title {
        font-size: 20px;
    }
    
    .quick-view-price {
        font-size: 24px;
    }
}
/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .search-layout { grid-template-columns: 1fr; }
    .search-mobile-filter-btn { display: flex; }
    .search-sidebar {
        position: fixed;
        top: 0; left: -310px;
        width: 290px; height: 100vh;
        overflow-y: auto;
        border-radius: 0 16px 16px 0;
        z-index: 1050;
        transition: left .3s ease;
        box-shadow: 4px 0 20px rgba(0,0,0,.15);
    }
    .search-sidebar.open { left: 0; }
    .search-sidebar__close { display: block; }
    .search-filter-list { max-height: none; }
    .marketplace-header { padding: 24px 0; }
    .marketplace-header__content { flex-direction: column; text-align: center; }
    .marketplace-header__logo { width: 80px; height: 80px; }
    .marketplace-header__title { font-size: 24px; }
    .marketplace-header__stats { justify-content: center; }
}

@media (max-width: 768px) {
    .search-topbar { flex-direction: column; align-items: flex-start; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card { padding: 0 10px 14px; }
    .product-image-container { width: calc(100% + 20px); margin-left: -10px; margin-right: -10px; height: 160px; }
    .product-store-badge { padding: 4px 8px; font-size: 10px; max-width: calc(100% - 60px); }
    .product-store-badge span { max-width: 80px; }
    .product-title { font-size: 13px; padding: 10px 0 6px; min-height: 50px; }
    .price-current { font-size: 16px; }
    .price-original { font-size: 12px; }
    .rating { font-size: 12px; padding: 4px 0; }
    .btn-quick-view { padding: 10px; font-size: 12px; }
    .btn-add-cart { padding: 10px 14px; font-size: 12px; }
    .btn-wl-dropdown-trigger span { display: none; }
    .btn-wl-dropdown-trigger { padding: 10px; justify-content: center; }
    .product-no-image i { font-size: 32px; }
    .product-no-image span { font-size: 10px; }
}

@media (max-width: 480px) {
    .mp-page-wrapper { padding: 12px 0 40px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ============================================
   EXTRA CLASSES AGREGADAS
   ============================================ */

/* Container XL */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px !important;
    }
}

/* Header decorative wave */
.mp-header-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.mp-header-wave svg {
    display: block;
    width: 100%;
    height: 48px;
}

/* Search page wrapper */
.search-page-wrapper {
    background: #f8f9fa;
    padding: 20px 0 60px;
}

/* Active filters */
.active-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 13px;
    color: #374151;
}

.clear-all-filters {
    margin-left: auto;
    font-size: 13px;
    color: var(--main-primary_color,#2319de);
    text-decoration: none;
    font-weight: 500;
}

/* Notification animations */
.wishlist-notification,
.qv-notification {
    transition: all 0.3s ease;
    transform: translateY(100px);
    opacity: 0;
}

.wishlist-notification.show,
.qv-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Quick view animation */
@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
