/* =============================================
   MenToyPlay — Catálogo page v4.0 (High-Fidelity Mockup)
   ============================================= */

.productos-page { 
    background: #F8FAFC; 
    font-family: var(--font-sans);
}

/* ── Hero Banner ─────────────────────────── */
.catalog-hero-banner {
    width: 100%;
    margin-bottom: 40px;
    background: #E0F2FE; /* Color de respaldo si no carga la img */
}
.hero-banner-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 220px;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}
.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-banner-content {
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    padding: 24px 32px;
    border-radius: 16px;
    backdrop-filter: blur(4px);
    max-width: 450px;
}
.hero-banner-content h2 {
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 8px;
}
.hero-banner-content h2 span { color: var(--orange); }
.hero-banner-content p {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
}

/* ── Layout ──────────────────────────────── */
.catalog-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* ── Sidebar (Categorías) ────────────────── */
.catalog-sidebar {
    width: 250px;
    flex-shrink: 0;
}
.sidebar-box {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--gray-200);
}
.sidebar-title-main {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-title-main i { color: var(--orange); }

.cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cat-link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gray-600);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    transition: all 0.2s ease;
}
.cat-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--gray-400);
    transition: color 0.2s ease;
}
.cat-link:hover {
    background: #F1F5F9;
    color: var(--primary);
}
.cat-link:hover i { color: var(--primary); }
.cat-link.active {
    background: #E0F2FE;
    color: var(--primary);
    font-weight: 800;
}
.cat-link.active i { color: var(--primary); }

/* Range Slider */
.price-range-box { padding-bottom: 32px; }
.price-slider-track {
    width: 100%;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    position: relative;
    margin: 24px 0 16px;
}
.price-slider-fill {
    position: absolute;
    left: 0; right: 20%;
    top: 0; bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}
.price-slider-thumb {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    background: var(--primary);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: grab;
}
.price-slider-thumb.left { left: 0; }
.price-slider-thumb.right { right: 20%; }
.price-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-500);
}

.btn-limpiar-filtros {
    width: 100%;
    background: #F1F5F9;
    color: var(--gray-600);
    border: none;
    padding: 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-limpiar-filtros:hover { background: #E2E8F0; color: var(--primary); }

/* ── Main Content ────────────────────────── */
.catalog-main {
    flex-grow: 1;
    min-width: 0;
}
.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 16px;
}
.page-title {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}
.page-title::before {
    content: '\f466'; /* Blocks icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary);
}

.items-count-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-400);
    margin-bottom: 24px;
}

/* ── Top Controls ────────────────────────── */
.top-controls-right {
    display: flex;
    align-items: center;
    gap: 24px;
}
.sort-select.mockup-style {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
}
.sort-select.mockup-style select {
    border: 1px solid var(--gray-200);
    background: var(--white);
    padding: 8px 32px 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3A5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.filter-stock-mockup {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
}
.filter-stock-mockup input { display: none; }
.custom-checkbox {
    width: 18px; height: 18px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
}
.filter-stock-mockup input:checked + .custom-checkbox {
    background: var(--primary);
    border-color: var(--primary);
}
.filter-stock-mockup input:checked + .custom-checkbox::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 10px;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.view-toggles {
    display: flex;
    gap: 8px;
    background: var(--white);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}
.view-toggle {
    width: 32px; height: 32px;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: var(--gray-400);
    cursor: pointer;
    transition: all 0.2s ease;
}
.view-toggle.active {
    background: var(--primary);
    color: var(--white);
}

/* ── Catalog Grid & Mockup Cards ─────────── */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.mockup-card {
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--gray-200);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mockup-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.mc-img-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    background: #F8FAFC;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mc-img-wrap img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.mc-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: #10B981; /* Green */
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
}
.mc-wishlist {
    position: absolute;
    top: 12px; right: 12px;
    background: white;
    border: 1px solid var(--gray-200);
    width: 32px; height: 32px;
    border-radius: 50%;
    color: var(--gray-400);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.mc-wishlist:hover {
    color: #EF4444;
    border-color: #EF4444;
}

.mc-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.mc-info h3 {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
    line-height: 1.3;
}
.mc-desc {
    font-size: 12.5px;
    color: var(--gray-500);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mc-rating {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}
.mc-price {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 900;
    color: var(--primary);
    margin-top: auto;
    margin-bottom: 16px;
}

.mc-add-btn {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.mc-add-btn:hover { background: var(--primary-dark); }
.mc-add-btn:disabled { background: var(--gray-300); cursor: not-allowed; }

/* ── Wavy Footer ─────────────────────────── */
.mockup-footer {
    background: var(--primary);
    position: relative;
    margin-top: 60px;
    padding-top: 40px;
    color: white;
}
.footer-wave {
    position: absolute;
    top: -50px;
    left: 0; right: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.footer-wave svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
    fill: var(--primary);
}

.mockup-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-brand-col { max-width: 250px; }
.footer-brand-col p { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 8px; }

.footer-features {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.feature-item i {
    font-size: 28px;
    color: #3B82F6; /* Bright blue icon */
}
.feature-item strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 2px;
}
.feature-item p {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.footer-social-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}
.social-icons {
    display: flex;
    gap: 12px;
}
.social-icons a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s ease;
}
.social-icons a:hover { background: #3B82F6; }

.slogan-art p {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 900;
    color: var(--orange);
    transform: rotate(-3deg);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 992px) {
    .catalog-layout { flex-direction: column; }
    .catalog-sidebar { width: 100%; display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px;}
    .sidebar-box { min-width: 250px; }
    .catalog-header { flex-direction: column; align-items: flex-start; }
    .hero-banner-content { left: 5%; right: 5%; }
}