/* ============================================================
   Door Pe Store — Products Page CSS
   Path: app/dist/assets/vendor/css/products.css
============================================================ */

/* ── Title Bar ── */
.products-title-bar {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 10px 0 10px;
    gap: 10px;
}
.ptb-left {
    display: flex; align-items: center; gap: 10px; min-width: 0;
}
.back-btn {
    width: 34px; height: 34px; border-radius: 10px;
    background: #fff; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-primary); font-size: 1rem;
    flex-shrink: 0; text-decoration: none;
    transition: all 0.15s;
}
.back-btn:hover { background: var(--green-light); border-color: var(--green); color: var(--green); }
.ptb-title {
    font-size: 0.95rem; font-weight: 800;
    color: var(--text-primary); line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 180px;
}
.ptb-count { font-size: 0.72rem; color: var(--text-muted); }
.ptb-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sort-select {
    border: 1.5px solid var(--border); border-radius: 8px;
    padding: 6px 10px; font-size: 0.78rem; font-family: inherit;
    background: #fff; color: var(--text-primary);
    cursor: pointer; outline: none;
}
.sort-select:focus { border-color: var(--green); }
.filter-btn {
    background: var(--green); color: #fff;
    border: none; border-radius: 8px;
    padding: 7px 12px; font-size: 0.78rem; font-weight: 700;
    display: flex; align-items: center; gap: 5px;
    cursor: pointer; font-family: inherit;
}

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

/* ── Sidebar ── */
.products-sidebar {
    flex: 0 0 200px;
    position: sticky; top: calc(var(--header-h) + 12px);
    background: #fff; border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
}
.sidebar-section { border-bottom: 1px solid var(--border); }
.sidebar-section:last-child { border-bottom: none; }
.sidebar-section-title {
    padding: 10px 14px 8px;
    font-size: 0.72rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .05em;
    color: var(--text-muted); background: #fafafa;
}
.sidebar-item {
    display: flex; align-items: center;
    padding: 8px 14px; gap: 8px;
    font-size: 0.8rem; cursor: pointer;
    transition: background 0.15s; color: var(--text-primary);
    border: none; background: none; width: 100%;
    font-family: inherit; text-align: left;
}
.sidebar-item:hover { background: var(--green-light); }
.sidebar-item.active {
    background: var(--green-light);
    color: var(--green); font-weight: 700;
    border-right: 3px solid var(--green);
}
.sidebar-item .item-count {
    margin-left: auto; font-size: 0.68rem;
    color: var(--text-muted); background: #f0f0f0;
    padding: 1px 6px; border-radius: 10px;
}

/* ── Products Content ── */
.products-content { flex: 1; min-width: 0; }

/* ── Product Grid ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
@media (min-width: 768px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── No products ── */
.no-products {
    grid-column: 1/-1; padding: 50px 20px;
    text-align: center; color: var(--text-muted);
}
.no-products i { font-size: 3rem; display: block; margin-bottom: 12px; color: #ddd; }
.no-products-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--text-sec); }

/* ── Active filter chips (top of grid) ── */
.active-chips {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 10px;
}
.active-chip {
    display: flex; align-items: center; gap: 4px;
    background: var(--green-light); color: var(--green);
    border: 1px solid var(--green);
    border-radius: 20px; padding: 3px 10px;
    font-size: 0.72rem; font-weight: 700; cursor: pointer;
    transition: all 0.15s;
}
.active-chip:hover { background: var(--green); color: #fff; }

/* ── Mobile filter offcanvas body ── */
.mob-filter-section { border-bottom: 1px solid var(--border); padding: 12px 14px; }
.mob-filter-title {
    font-size: 0.72rem; font-weight: 800;
    text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 8px;
}
.mob-filter-item {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 0; font-size: 0.82rem; cursor: pointer;
    color: var(--text-primary); border: none; background: none;
    width: 100%; font-family: inherit; text-align: left;
}
.mob-filter-item.active { color: var(--green); font-weight: 700; }
.mob-filter-item .mob-item-count {
    margin-left: auto; font-size: 0.68rem; color: var(--text-muted);
}
