/* Products Page Layout */
.products-page {
    padding: 120px 5% 60px; /* Leave space for fixed navbar */
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Sidebar Filters */
.filter-sidebar {
    flex: 0 0 280px;
    background: var(--brand-gray);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 100px;
}

.filter-sidebar h3 {
    font-size: 1.4rem;
    color: var(--brand-secondary);
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.filter-group select {
    width: 100%;
    padding: 12px 40px 12px 12px;
    background-color: var(--brand-dark);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a0aabf' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: border-color var(--transition-speed);
}

.filter-group select:focus {
    border-color: var(--brand-primary);
}

/* Category Tabs (Lastik/Jant) */
.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.category-tab {
    flex: 1;
    padding: 10px;
    background: var(--brand-dark);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.category-tab.active {
    background: var(--brand-primary);
    color: var(--brand-secondary);
    border-color: var(--brand-primary);
}

/* Products Grid */
.products-content {
    flex: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

/* Product Card */
.product-card {
    background: var(--brand-gray);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(225, 14, 30, 0.3); /* using similar primary color with opacity */
}

.product-img-wrapper {
    height: 220px;
    padding: 20px;
    background: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.2rem;
    color: var(--brand-secondary);
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
}

.product-specs {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    flex: 1;
    line-height: 1.8;
}

.product-specs span {
    display: block;
}

.product-price-action {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.btn-buy {
    background: rgba(225, 14, 30, 0.1);
    color: var(--brand-primary);
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-speed);
    border: 1px solid rgba(225, 14, 30, 0.3);
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.btn-buy:hover {
    background: var(--brand-primary);
    color: var(--brand-secondary);
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    background: var(--brand-gray);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 900px) {
    .products-page {
        flex-direction: column;
    }
    .filter-sidebar {
        width: 100%;
        position: static;
    }
}
