/* ── Component: ecom_product_listing ─────────────────────────── */
/* Inherits tokens from globals.css (OKLCH Engine) */

/* ── Page Shell ──────────────────────────────────────────── */
.collections-page {
    max-width: 1365px;
    margin: 0 auto;
    width: 100%;
}

/* ── Section Wrapper ─────────────────────────────────────── */
.wb-plp {
    padding: 0 0 2rem 0;
    width: 100%;
    font-family: var(--font-body);
}

#wb-grid-zone {
    padding: 2rem 0;
}

/* ── Helpers ─────────────────────────────────────────────── */
.desktop-only {
    display: flex !important;
}

.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }
}

/* ── Mobile Toolbar ─────────────────────────────────────── */
.wb-plp__mobile-toolbar {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 14px 1rem;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 1.5rem;
    background: #fff;
    cursor: pointer;
}

@media (max-width: 768px) {
    .wb-plp__mobile-toolbar {
        display: flex;
    }
}

.wb-plp__mobile-filter-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-ui);
    color: #333;
}

.wb-plp__mobile-filter-btn i {
    font-size: 0.9rem;
    color: #333;
}

/* ── Desktop Toolbar ─────────────────────────────────────── */
.wb-plp__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1rem;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 2.5rem;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
}

.wb-plp__toolbar-left {
    display: flex;
    align-items: center;
    gap: 28px;
}

.wb-plp__filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #777;
    font-family: var(--font-ui);
}

.wb-plp__filter-dropdown {
    position: relative;
    cursor: pointer;
}

.wb-plp__filter-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #333;
    transition: color 0.2s;
    font-family: var(--font-ui);
}

.wb-plp__filter-trigger:hover {
    color: var(--primary);
}

.wb-plp__filter-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: var(--shadow-md);
    min-width: 260px;
    padding: 1.25rem;
    display: none;
    z-index: 110;
    margin-top: 10px;
}

.wb-plp__filter-dropdown:hover .wb-plp__filter-content {
    display: block;
}

.wb-plp__toolbar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.wb-plp__sort-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wb-plp__sort-wrapper label {
    font-size: 0.85rem;
    color: #777;
}

.wb-plp__sort-select {
    border: none;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    font-family: var(--font-ui);
}

/* ── Product Grid ────────────────────────────────────────── */
.wb-plp__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px 24px;
    padding: 0 1rem;
}

@media (max-width: 1400px) {
    .wb-plp__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

@media (max-width: 768px) {
    .wb-plp__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 12px;
        padding: 0 1rem;
    }
}

/* ── Mobile Drawer Specifics ─────────────────────────────── */
.mobile-drawer-filters {
    padding: 10px 0;
}

.drawer-filter-item {
    border-bottom: 1px solid #f2f2f2;
}

.drawer-filter-header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--secondary);
}

.drawer-filter-content {
    display: none;
    padding-bottom: 20px;
}

.drawer-filter-item.active .drawer-filter-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drawer-btn-apply {
    background: var(--secondary);
    color: #fff;
    padding: 15px;
    border: none;
    width: 100%;
    font-weight: 700;
    font-family: var(--font-ui);
    text-transform: uppercase;
}