/*
 * ============================================================
 * Ahmadiyad - Premium Women's Undergarments E-Commerce
 * Developed by: Etarnity Global Innovation
 * Website: https://etarnity.com
 * ============================================================
 */

/* ============================================================
 * ALL PRODUCTS PAGE
 * Layout: Left sidebar (filters) + Right (product grid)
 * Mobile: Sidebar hidden, filter button opens slide-in panel
 * ============================================================
 */

.all-products-section {
    padding: 24px 0 60px;
}

.all-products-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Page Header --- */
.ap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.ap-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.ap-subtitle {
    font-size: 13px;
    color: #999;
    margin-top: 2px;
}

.ap-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ap-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ap-sort label {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.ap-sort select {
    padding: 8px 32px 8px 12px;
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 13px;
    color: var(--text);
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right 10px center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: var(--transition);
}

.ap-sort select:focus {
    outline: none;
    border-color: var(--secondary);
}

.ap-filter-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--white);
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.ap-filter-toggle:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

/* --- Active Filter Tags --- */
.ap-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.ap-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(213, 0, 109, 0.08);
    border: 1px solid rgba(213, 0, 109, 0.2);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    color: var(--secondary);
    cursor: pointer;
    transition: var(--transition);
}

.ap-filter-tag:hover {
    background: rgba(213, 0, 109, 0.15);
}

.ap-filter-tag i {
    font-size: 11px;
}

/* --- Top Bar Filters --- */
.ap-top-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.ap-top-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ap-top-filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.ap-top-filter-group select {
    padding: 10px 16px;
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background-color: var(--white);
    outline: none;
    cursor: pointer;
    transition: var(--transition);
    min-width: 150px;
}

.ap-top-filter-group select:focus {
    border-color: var(--secondary);
}

.ap-clear-all {
    margin-left: auto;
    padding: 10px 20px;
    background-color: rgba(213, 0, 109, 0.1);
    color: var(--secondary);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.ap-clear-all:hover {
    background-color: rgba(213, 0, 109, 0.2);
}

/* ============================================================
 * Product Grid
 * ============================================================
 */

.ap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}


/* --- No Results --- */
.ap-no-results {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.ap-no-results i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #ddd;
}

.ap-no-results h3 {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 8px;
}

.ap-no-results p {
    font-size: 14px;
    margin-bottom: 20px;
}

.ap-no-results button {
    padding: 10px 24px;
    background: var(--text);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.ap-no-results button:hover {
    background: var(--secondary);
}

/* ============================================================
 * MOBILE OVERLAY
 * ============================================================
 */
.ap-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 998;
}

.ap-mobile-overlay.active {
    display: block;
}

/* ============================================================
 * PAGINATION
 * ============================================================
 */
.ap-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.ap-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.ap-page-btn:hover:not(:disabled):not(.active) {
    border-color: var(--secondary);
    color: var(--secondary);
}

.ap-page-btn.active {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.ap-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ap-page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #999;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
}




