/* =============================================
   CATALOGO.CSS — Shop layout para accesorios
   ============================================= */

/* --- Hero --- */
.section-hero-accesorios {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
@media (min-width: 992px) {
    .section-hero-accesorios { padding: 100px 0; }
}

/* --- Shop Section --- */
.shop-section {
    padding: 50px 0 80px;
}

/* --- Mobile Sidebar Toggle --- */
.shop-sidebar-toggle {
    width: 100%;
    background: #2A2A2A;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    margin-bottom: 24px;
    transition: border-color 0.3s;
}
.shop-sidebar-toggle:hover {
    border-color: #FFD100;
}
.shop-sidebar-toggle i {
    margin-right: 8px;
    color: #FFD100;
}

/* --- Sidebar --- */
.shop-section > .container > .row {
    align-items: flex-start !important;
}
/* Sticky sidebar: solo en desktop donde no hay problemas de overflow */
@media (min-width: 992px) {
    #wrapper {
        overflow: visible !important;
    }
}
.shop-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
}
@media (max-width: 991px) {
    .shop-sidebar {
        position: static;
        display: none;
        margin-bottom: 30px;
    }
    .shop-sidebar.open {
        display: block;
    }
}

.sidebar-block {
    background: #2A2A2A;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Search */
.shop-search {
    display: flex;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s;
}
.shop-search:focus-within {
    border-color: #FFD100;
}
.shop-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px 14px;
    font-size: 13px;
    outline: none;
}
.shop-search input::placeholder {
    color: rgba(255,255,255,0.35);
}
.shop-search button {
    background: #FFD100;
    border: none;
    color: #202020;
    padding: 0 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}
.shop-search button:hover {
    background: #FFE033;
}

/* Category list */
.sidebar-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar-categories li {
    margin-bottom: 2px;
}
.cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    color: rgba(255,255,255,0.65) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.25s ease;
}
.cat-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.05);
}
.cat-link.active {
    color: #202020 !important;
    background: #FFD100;
}
.cat-link.active .cat-count {
    background: rgba(0,0,0,0.15);
    color: #202020;
}
.cat-count {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    min-width: 28px;
    text-align: center;
}

/* Sidebar CTA */
.sidebar-cta {
    text-align: center;
    background: linear-gradient(135deg, #2A2A2A 0%, #333 100%);
    border-color: rgba(255,209,0,0.15);
}
.sidebar-cta i {
    font-size: 32px;
    color: #25D366;
    margin-bottom: 12px;
}
.sidebar-cta h5 {
    font-size: 14px;
    color: #fff;
    margin-bottom: 6px;
}
.sidebar-cta p {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 16px;
}

/* --- Topbar --- */
.shop-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.shop-results {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-weight: 600;
}

/* --- Shop Cards --- */
.shop-card {
    background: #2A2A2A;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.shop-card:hover {
    border-color: #FFD100;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.shop-card-img {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #1a1a1a;
}
.shop-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.shop-card:hover .shop-card-img img {
    transform: scale(1.06);
}

.shop-card-body {
    padding: 20px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    gap: 10px;
}

.shop-card-cat {
    font-size: 11px;
    color: #FFD100;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.shop-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-shop {
    display: block;
    width: 100%;
    background: #FFD100;
    color: #202020 !important;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 11px 0;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    margin-top: 6px;
}
.btn-shop:hover {
    background: #FFE033;
    box-shadow: 0 4px 16px rgba(255,209,0,0.35);
}

/* --- Filtrado --- */
.gallery-item {
    transition: opacity 0.3s ease;
}
.gallery-item.filter-hidden {
    display: none !important;
}
.gallery-item.page-hidden {
    display: none !important;
}

/* --- Paginación --- */
.shop-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-wrap: wrap;
}
.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 50px;
    border: none;
    background: #2A2A2A;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none !important;
}
.page-btn:hover {
    background: #333;
    color: #fff;
}
.page-btn.active {
    background: #FFD100;
    color: #202020;
    box-shadow: 0 4px 16px rgba(255,209,0,0.3);
}
.page-btn.disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
}
.page-dots {
    color: rgba(255,255,255,0.3);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 0 4px;
    user-select: none;
}

/* --- Responsive --- */
@media (max-width: 575px) {
    .shop-card-body {
        padding: 14px 12px;
    }
    .shop-card-title {
        font-size: 13px;
    }
    .btn-shop {
        font-size: 11px;
        padding: 9px 0;
    }
    .shop-section {
        padding: 30px 0 60px;
    }
    .page-btn {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
        padding: 0 10px;
    }
}
