/**
 * View Toggle Styles
 * 
 * Handles view toggle button, per-page dropdown, and grid/list switching
 * 
 * Version: 1.0.0
 */

/* ============================================
   View Toggle Wrapper
   ============================================ */

.view-toggle-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
    pointer-events: none; /* Allow clicks to pass through to elements below */
    /* Positioning now controlled by parent .content-header-controls */
}

.view-toggle-wrapper > * {
    pointer-events: auto; /* Re-enable clicks on actual controls */
}

/* Hide view toggle on smaller screens */
@media (max-width: 1023px) {
    .view-toggle-wrapper {
        display: none !important;
    }
}

/* ============================================
   Page-Specific Positioning
   ============================================ */

.category .entry-content,
.category .entry-product .entry-content {
    margin-top: 90px !important;
}

@media (max-width: 768px) {
    .category .entry-content,
    .category .entry-product .entry-content {
        margin-top: 0 !important;
    }
}

/* ============================================
   Per-Page Dropdown
   ============================================ */

.per-page-label {
    color: #94a3b8;
    font-size: 14px;
    margin-right: 4px;
}

.per-page-select {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #f1f5f9;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    height: 38px;
}

.per-page-select:hover {
    border-color: #475569;
}

/* ============================================
   View Toggle Buttons
   ============================================ */

.view-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-toggle-btn:hover {
    background: #334155;
    color: #f1f5f9;
}

.view-toggle-btn.active {
    background: #2c5282;
    border-color: #2c5282;
    color: #fff;
}
