/* ============================
   BREADCRUMB
============================ */
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; font-weight: 700; }
p, span, label, input, select, button, a, li { font-family: 'Poppins', sans-serif; font-weight: 400; }

.breadcrumb-bar {
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 10px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.83rem;
    color: rgba(255,255,255,0.5);
}

.breadcrumb a {
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}
.breadcrumb a:hover { color: #00a8e6; }
.breadcrumb .current { color: rgba(255,255,255,0.9); font-weight: 500; }
.breadcrumb i { font-size: 0.7rem; }

/* ============================
   HERO DE PÁGINAS POR BADGE (Destacados / Novedades)
============================ */
.badge-page-hero {
    padding: 36px 0;
    margin-bottom: 0;
}
.badge-page-hero--hot {
    background: linear-gradient(135deg, #1a0a00 0%, #2d1200 40%, #1a0a00 100%);
    border-bottom: 2px solid rgba(243,156,18,0.3);
}
.badge-page-hero--new {
    background: linear-gradient(135deg, #0d0020 0%, #1a0038 40%, #0d0020 100%);
    border-bottom: 2px solid rgba(155,89,182,0.3);
}
.bph-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}
.bph-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}
.badge-page-hero--hot .bph-icon {
    background: rgba(243,156,18,0.15);
    color: #f39c12;
    border: 1px solid rgba(243,156,18,0.3);
}
.badge-page-hero--new .bph-icon {
    background: rgba(155,89,182,0.15);
    color: #9b59b6;
    border: 1px solid rgba(155,89,182,0.3);
}
.bph-text { flex: 1; }
.bph-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
}
.bph-text p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}
.bph-badge {
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
}
.bph-badge--new {
    background: linear-gradient(135deg, #9b59b6, #6c3483);
}
@media (max-width: 600px) {
    .bph-badge { display: none; }
    .bph-text h1 { font-size: 1.2rem; }
}

/* ============================
   LAYOUT
============================ */
.cat-main { padding: 30px 0 60px; }

.cat-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

/* ============================
   SIDEBAR
============================ */
.cat-sidebar {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-header h3 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-header h3 i { color: #00a8e6; }

.clear-filters {
    background: none;
    border: none;
    color: #00a8e6;
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}
.clear-filters:hover { color: #ff6b35; }

.filter-block {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.filter-block:last-child { border-bottom: none; }

.filter-block h4 {
    color: rgba(255,255,255,0.9);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.toggle-icon { color: rgba(255,255,255,0.4); font-size: 0.75rem; }

.filter-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px 12px;
}
.filter-search i { color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.filter-search input {
    background: none;
    border: none;
    outline: none;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    width: 100%;
}
.filter-search input::placeholder { color: rgba(255,255,255,0.3); }

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    transition: color 0.2s;
    user-select: none;
}
.filter-check:hover { color: white; }

.filter-check input[type="checkbox"],
.filter-check input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #00a8e6;
    cursor: pointer;
    flex-shrink: 0;
}

.badge-count {
    margin-left: auto;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.72rem;
    padding: 1px 7px;
    border-radius: 50px;
}

.stars-mini { color: #f39c12; font-size: 0.8rem; }

/* Price Range */
.price-range { display: flex; flex-direction: column; gap: 12px; }

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-input-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 6px 10px;
    flex: 1;
    color: rgba(255,255,255,0.6);
    font-size: 0.82rem;
}
.price-input-wrap input {
    background: none;
    border: none;
    outline: none;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    width: 100%;
}
.price-sep { color: rgba(255,255,255,0.4); }

.price-slider {
    width: 100%;
    accent-color: #00a8e6;
    cursor: pointer;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

.btn-apply-price {
    background: #00a8e6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-apply-price:hover { background: #0090c5; }

/* ============================
   RESULTS HEADER
============================ */
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.results-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}
.results-info p {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}

.results-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-toggle {
    display: flex;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    overflow: hidden;
}

.view-btn {
    padding: 8px 12px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}
.view-btn.active { background: #00a8e6; color: white; }

.sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.sort-select {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    padding: 8px 12px;
    cursor: pointer;
    outline: none;
}
.sort-select option { background: #0d1b2a; }

/* ============================
   ACTIVE FILTERS CHIPS
============================ */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    min-height: 0;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,168,230,0.15);
    border: 1px solid rgba(0,168,230,0.3);
    color: #00a8e6;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-chip:hover { background: rgba(255,107,53,0.15); border-color: rgba(255,107,53,0.3); color: #ff6b35; }
.filter-chip i { font-size: 0.7rem; }

/* ============================
   PRODUCTS GRID
============================ */
.products-grid-cat {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    transition: all 0.3s;
}

/* List view */
.products-grid-cat.list-view {
    grid-template-columns: 1fr;
}
.products-grid-cat.list-view .product-card-cat {
    display: grid;
    grid-template-columns: 180px 1fr;
}
.products-grid-cat.list-view .pcard-img {
    height: 100%;
    min-height: 160px;
}
.products-grid-cat.list-view .pcard-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ============================
   PRODUCT CARD
============================ */
.product-card-cat {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card-cat:hover {
    transform: translateY(-5px);
    border-color: rgba(0,168,230,0.3);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.pcard-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.badge-hot  { background: #ff6b35; color: white; font-size: 0.65rem; font-weight: 700; padding: 3px 8px; border-radius: 50px; }
.badge-sale { background: #e74c3c; color: white; font-size: 0.65rem; font-weight: 700; padding: 3px 8px; border-radius: 50px; }
.badge-new  { background: #27ae60; color: white; font-size: 0.65rem; font-weight: 700; padding: 3px 8px; border-radius: 50px; }

.pcard-img {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.85);
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}
.product-card-cat:hover .pcard-img { transform: scale(1.04); }
.pcard-img[style*="cursor: pointer"]::after {
    content: 'Ver detalle';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 8px 0;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.pcard-img[style*="cursor: pointer"]:hover::after { opacity: 1; }

.pcard-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pcard-subcat {
    font-size: 0.72rem;
    font-weight: 600;
    color: #00a8e6;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.pcard-body h3 {
    font-size: 0.92rem;
    font-weight: 600;
    color: white;
    line-height: 1.35;
}
.pcard-body h3[style*="cursor: pointer"]:hover { color: #38b6e6; text-decoration: underline; }

.pcard-stars { display: none; }

.pcard-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}
.p-old { font-size: 0.82rem; color: #e74c3c; text-decoration: line-through; }
.p-new { font-size: 1.3rem; font-weight: 700; color: #00a8e6; display: inline-block; border: 1px solid rgba(0,168,230,0.5); border-radius: 6px; padding: 2px 8px; box-shadow: 0 0 8px rgba(0,168,230,0.3); }

.pcard-stock {
    font-size: 0.62rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}
.pcard-stock i { font-size: 0.5rem; }
.in-stock  { color: #27ae60; }
.out-stock { color: #e74c3c; }

.pcard-actions {
    margin-top: auto;
    display: flex;
    gap: 6px;
    align-items: center;
}
.btn-cart {
    flex: 1;
    padding: 10px;
    background: #00a8e6;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-cart:hover { background: #0090c5; transform: translateY(-1px); }
.btn-notify { background: rgba(255,255,255,0.1); }
.btn-notify:hover { background: rgba(255,255,255,0.18); }
.btn-fav {
    width: 38px; min-width: 38px; height: 38px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.btn-fav:hover { color: #e74c3c; border-color: rgba(231,76,60,0.4); background: rgba(231,76,60,0.08); }
.btn-fav.active { color: #e74c3c; border-color: rgba(231,76,60,0.5); background: rgba(231,76,60,0.1); }

/* ============================
   SKELETON LOADING
============================ */
@keyframes shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position:  400px 0; }
}
.skeleton-card { pointer-events: none; }
.skeleton-img {
    width: 100%; aspect-ratio: 1; border-radius: 10px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.4s infinite linear;
}
.skeleton-line {
    height: 12px; border-radius: 6px; margin: 10px 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.4s infinite linear;
}
.skeleton-line.short  { width: 50%; }
.skeleton-line.medium { width: 70%; }
.skeleton-btn {
    height: 36px; border-radius: 8px; margin-top: 12px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.4s infinite linear;
}

/* ============================
   NO RESULTS
============================ */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255,255,255,0.4);
}
.no-results i { margin-bottom: 16px; opacity: 0.3; }
.no-results h3 { color: rgba(255,255,255,0.7); font-size: 1.2rem; margin-bottom: 8px; }
.no-results p { font-size: 0.9rem; margin-bottom: 20px; }

/* ============================
   PAGINATION
============================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
}

.page-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.6);
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-btn:hover { border-color: #00a8e6; color: #00a8e6; }
.page-btn.active { background: #00a8e6; border-color: #00a8e6; color: white; font-weight: 700; }
.page-ellipsis { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.35); font-size: .9rem; }

/* ============================
   HIDDEN CARD
============================ */
.product-card-cat.hidden {
    display: none;
}

/* ============================
   MOBILE FILTER BUTTON
============================ */
.mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: rgba(255,255,255,0.85);
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 14px;
}
.mobile-filter-btn:hover { background: rgba(56,182,230,0.12); border-color: rgba(56,182,230,0.3); color: #38b6e6; }
.mobile-filter-btn i { color: #38b6e6; }

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 1024px) {
    .cat-layout { grid-template-columns: 220px 1fr; }
    .products-grid-cat { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .mobile-filter-btn { display: flex; }
    .cat-layout { grid-template-columns: 1fr; }
    .cat-sidebar {
        position: static;
        display: none;
        margin-bottom: 16px;
    }
    .cat-sidebar.open { display: block; }
    .products-grid-cat { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .products-grid-cat { grid-template-columns: 1fr; }
}
