/* Products Page Styles */
.page-header {
    margin-top: 108px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 60px 0;
    text-align: center;
}
.page-header h1 {
    font-size: 36px; font-weight: 800; color: #fff;
    letter-spacing: 2px; margin-bottom: 8px;
}
.page-header p { font-size: 16px; color: rgba(255,255,255,0.7); }

.products-page { padding-top: 40px; }
.products-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; }

/* Sidebar */
.filter-sidebar { position: sticky; top: 130px; align-self: start; }
.filter-section { margin-bottom: 24px; }
.filter-section h3 {
    font-size: 14px; font-weight: 700; color: #1a1a2e;
    margin-bottom: 12px; letter-spacing: 0.5px;
    padding-bottom: 8px; border-bottom: 2px solid #c8a45a;
}
.filter-options { display: flex; flex-direction: column; gap: 6px; }
.filter-options label {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; color: #555; cursor: pointer;
    padding: 6px 8px; border-radius: 4px; transition: background 0.2s;
}
.filter-options label:hover { background: #f5f5f5; }
.filter-options label.active { color: #c8a45a; font-weight: 600; }
.filter-options input[type="checkbox"] {
    accent-color: #c8a45a; width: 16px; height: 16px;
}
.search-box-sidebar input {
    width: 100%; padding: 10px 12px; border: 1px solid #ddd;
    border-radius: 6px; font-size: 14px; outline: none;
    transition: border-color 0.2s;
}
.search-box-sidebar input:focus { border-color: #c8a45a; }
.filter-reset { width: 100%; margin-top: 12px; justify-content: center; }
.filter-mobile-close { display: none; }

/* Toolbar */
.products-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px;
}
.filter-toggle { display: none; gap: 6px; font-size: 13px; padding: 8px 16px; }
.results-info { font-size: 14px; color: #666; }
.results-info span { font-weight: 700; color: #c8a45a; }

/* Product Grid */
.product-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.product-card {
    background: #fff; border: 1px solid #eee; border-radius: 10px;
    overflow: hidden; transition: all 0.3s; cursor: pointer;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #c8a45a;
}
.product-card .card-img {
    height: 200px; background: #f5f5f5; overflow: hidden;
    position: relative;
}
.product-card .card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s;
}
.product-card:hover .card-img img { transform: scale(1.05); }
.product-card .card-img .no-img {
    display: flex; align-items: center; justify-content: center;
    height: 100%; color: #ccc; font-size: 14px;
}
.product-card .card-body { padding: 16px; }
.product-card .card-title {
    font-size: 14px; font-weight: 600; color: #1a1a2e;
    margin-bottom: 8px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; height: 40px;
}
.product-card .card-meta { font-size: 13px; color: #888; margin-bottom: 8px; }
.product-card .card-meta span { display: inline-block; margin-right: 12px; }
.product-card .card-price {
    font-size: 18px; font-weight: 700; color: #c8a45a;
}
.product-card .card-footer {
    padding: 12px 16px; border-top: 1px solid #f0f0f0;
    display: flex; justify-content: space-between; align-items: center;
}
.product-card .card-footer .btn-sm {
    padding: 6px 16px; font-size: 12px;
}

/* Pagination */
.pagination {
    display: flex; justify-content: center; gap: 6px;
    margin-top: 40px; flex-wrap: wrap;
}
.pagination button {
    min-width: 40px; height: 40px; border: 1px solid #ddd;
    background: #fff; border-radius: 6px; cursor: pointer;
    font-size: 14px; color: #555; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.pagination button:hover { border-color: #c8a45a; color: #c8a45a; }
.pagination button.active {
    background: #c8a45a; border-color: #c8a45a; color: #fff;
}
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* Loading */
.loading-spinner {
    grid-column: 1 / -1; text-align: center;
    padding: 60px 0;
}
.spinner {
    width: 40px; height: 40px; border: 3px solid #eee;
    border-top-color: #c8a45a; border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 992px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .products-layout { grid-template-columns: 220px 1fr; }
}

@media (max-width: 768px) {
    .page-header { margin-top: 72px; padding: 40px 0; }
    .page-header h1 { font-size: 28px; }
    .products-layout { grid-template-columns: 1fr; }

    .filter-sidebar {
        position: fixed; inset: 0; z-index: 2000;
        background: #fff; padding: 20px;
        transform: translateX(-100%); transition: transform 0.3s;
        overflow-y: auto; top: 0;
    }
    .filter-sidebar.open { transform: translateX(0); }
    .filter-mobile-close {
        display: flex; position: absolute; top: 16px; right: 16px;
        background: none; border: none; cursor: pointer; color: #333;
    }
    .filter-toggle { display: inline-flex; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card .card-img { height: 150px; }
    .product-card .card-title { font-size: 13px; height: 36px; }
    .product-card .card-price { font-size: 16px; }
}

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

/* No results state */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: #888;
    grid-column: 1 / -1;
}
.no-results .no-results-icon {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 16px;
}
.no-results h3 {
    font-size: 18px;
    color: #555;
    margin: 0 0 8px;
    font-weight: 600;
}
.no-results p {
    font-size: 14px;
    color: #999;
    margin: 0;
}
