.page-hero {
    padding: 48px 0 40px;
    position: relative;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 24px; right: 24px;
    height: 1px;
    background: var(--border);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-breadcrumb {
    font-size: .8rem;
    color: var(--mid-gray);
    margin-bottom: 12px;
    letter-spacing: .3px;
}
.page-hero-breadcrumb span { color: var(--orange); font-weight: 600; }
.page-hero h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 6px;
}
.page-hero p {
    color: var(--mid-gray);
    font-size: .95rem;
    max-width: 580px;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.filter-bar-btn {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius);
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
}
.filter-bar-btn:hover { background: var(--dark-gray); }
.filter-bar-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--light-gray);
    transition: border-color var(--transition);
}
.filter-bar-search:focus-within {
    border-color: var(--orange);
    background: var(--white);
}
.filter-bar-search i { color: var(--mid-gray); font-size: .9rem; }
.filter-bar-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 9px 0;
    font-size: .9rem;
    font-family: var(--font);
    outline: none;
}
.filter-bar select {
    padding: 9px 32px 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: .85rem;
    font-family: var(--font);
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    cursor: pointer;
    min-width: 130px;
}

.products-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    padding: 32px 0 80px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sidebar-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.sidebar-title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--mid-gray);
    padding: 14px 16px 0;
    margin-bottom: 6px;
}
.sidebar-links {
    display: flex;
    flex-direction: column;
    padding: 4px 8px 8px;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: var(--radius);
    font-size: .88rem;
    font-weight: 500;
    color: var(--black);
    text-decoration: none;
    transition: all .15s;
}
.sidebar-link:hover { background: var(--orange-lite); color: var(--orange); }
.sidebar-link.active { background: var(--orange-lite); color: var(--orange); font-weight: 700; }
.sidebar-link i { width: 16px; font-size: .85rem; color: var(--mid-gray); }
.sidebar-link.active i { color: var(--orange); }
.sidebar-link .sidebar-count {
    margin-left: auto;
    background: var(--light-gray);
    color: var(--mid-gray);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: .74rem;
    font-weight: 600;
}
.sidebar-link.active .sidebar-count { background: var(--orange); color: #fff; }

.sidebar-help {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
}
.sidebar-help-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: .9;
}
.sidebar-help h4 { color: #fff; font-weight: 700; margin-bottom: 6px; }
.sidebar-help p { font-size: .82rem; opacity: .85; margin-bottom: 14px; line-height: 1.5; }
.sidebar-help .btn { background: #fff; color: var(--black); width: 100%; justify-content: center; }
.sidebar-help .btn:hover { background: var(--light-gray); }

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 16px 14px;
}
.filter-tag {
    padding: 5px 14px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    color: var(--mid-gray);
    background: var(--white);
    user-select: none;
}
.filter-tag:hover { border-color: var(--orange); color: var(--orange); }
.filter-tag.active { background: var(--orange); border-color: var(--orange); color: #fff; }

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.products-count { font-size: .88rem; color: var(--mid-gray); }
.products-count strong { color: var(--black); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    transition: opacity .2s;
}
.product-grid.fading { opacity: .5; }
.loading-grid {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: var(--mid-gray);
}

.prod-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .2s, box-shadow .25s;
    display: flex;
    flex-direction: column;
    position: relative;
}
.prod-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.1);
}
.prod-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--light-gray);
}
.prod-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .45s;
}
.prod-card:hover .prod-img img { transform: scale(1.07); }

.prod-badge {
    position: absolute; top: 10px; left: 10px;
    padding: 3px 10px; border-radius: 20px;
    font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .3px;
}
.prod-badge.sale    { background: #FF3B30; color: #fff; }
.prod-badge.new     { background: var(--orange); color: #fff; }
.prod-badge.popular { background: #30B050; color: #fff; }

.prod-img .prod-actions-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.03);
    opacity: 0;
    transition: opacity .25s;
    display: flex; align-items: center; justify-content: center;
}
.prod-card:hover .prod-actions-overlay { opacity: 1; }
.prod-actions-overlay a {
    transform: translateY(8px);
    transition: transform .25s, background .15s;
    padding: 8px 18px;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--black);
    font-size: .82rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}
.prod-card:hover .prod-actions-overlay a { transform: translateY(0); }
.prod-actions-overlay a:hover { background: var(--orange); color: #fff; }

.prod-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.prod-cat {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--orange);
    font-weight: 700;
    margin-bottom: 4px;
}
.prod-name {
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}
.prod-name a { color: var(--black); transition: color .15s; }
.prod-name a:hover { color: var(--orange); }

.card-btn-row {
    display: flex;
    gap: 6px;
    margin-top: auto;
}
.card-btn-row .btn {
    flex: 1;
    justify-content: center;
    font-size: .78rem;
    padding: 8px 0;
    gap: 5px;
}
.card-btn-row .btn-whatsapp {
    flex: 1;
    font-size: .78rem;
    padding: 8px 0;
}

.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 48px;
    flex-wrap: wrap;
}
.page-btn {
    width: 38px; height: 38px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; font-weight: 600;
    transition: all .15s;
    border: 1.5px solid var(--border);
    color: var(--black);
    background: var(--white);
    cursor: pointer;
}
.page-btn:hover { border-color: var(--orange); color: var(--orange); }
.page-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.page-btn:disabled { opacity: .35; cursor: default; pointer-events: none; }

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--mid-gray);
}
.no-results .icon { font-size: 3.5rem; margin-bottom: 14px; opacity: .5; }
.no-results h3 { font-size: 1.15rem; margin-bottom: 6px; color: var(--black); }
.no-results p { font-size: .9rem; }

.filter-modal {
    position: fixed; inset: 0; z-index: 2100;
    display: none;
    align-items: flex-start;
    justify-content: flex-start;
}
.filter-modal.open { display: flex; }
.filter-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); }
.filter-modal-panel {
    position: relative; z-index: 1;
    background: var(--white);
    width: 300px; height: 100vh;
    overflow-y: auto;
    padding: 24px;
    animation: slideInLeft .25s ease;
}
.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.filter-modal-header h3 { font-weight: 700; font-size: 1.05rem; }
.filter-close { font-size: 1.4rem; color: var(--mid-gray); padding: 4px; }
.filter-close:hover { color: var(--black); }

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@media (max-width: 1100px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .products-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .filter-bar-btn { display: flex; }
}

@media (max-width: 560px) {
    .page-hero { padding: 32px 0 28px; }
    .filter-bar {
        flex-wrap: wrap;
        padding: 10px 12px;
    }
    .filter-bar select {
        min-width: 0;
        flex: 1;
    }
    .filter-bar-search { order: 3; flex-basis: 100%; }
    .filter-bar-search input { font-size: .85rem; }
    .product-grid { gap: 14px; }
    .prod-body { padding: 12px 14px; }
    .pagination { gap: 4px; }
    .page-btn { width: 34px; height: 34px; font-size: .8rem; }
    .filter-modal-panel { width: 85%; padding: 20px 16px; }
}

@media (max-width: 400px) {
    .product-grid { grid-template-columns: 1fr; }
}
