* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* ============================================
   CONTAINER & LAYOUT
============================================ */
.container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 30px;
    align-items: flex-start;

}

/* ============================================
   SIDEBAR - SOL TARAF
============================================ */
.sidebar {
    width: 280px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);

    flex-shrink: 0;
}

/* Arama Kutusu */
.search-box {
    margin-bottom: 25px;
}

.search-box input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: #007bff;
}

/* Filtre Grupları */
.filters {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-group {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    padding: 5px 0;
}

.filter-option input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.filter-option input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.filter-option span {
    color: #555;
}

.filter-option:hover span {
    color: #007bff;
}

/* ============================================
   PRODUCTS SECTION - SAĞ TARAF
============================================ */
.products-section {
    flex: 1;
}

/* Ürün Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

/* Ürün Kartı */
.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: #f9f9f9;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.4;
}

.product-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ============================================
   LOAD MORE BUTTON
============================================ */
.load-more-container {
    text-align: center;
    margin-top: 30px;
}

.load-more-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.load-more-btn:hover {
    background-color: #0056b3;
}

.load-more-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.load-more-btn.hidden {
    display: none;
}

/* ============================================
   MODAL / POPUP
============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 1100px;
    position: relative;
    animation: modalFadeIn 0.3s;
    overflow: hidden;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #000;
}

.modal-body {
    display: flex;
    gap: 30px;
    padding: 40px;
}

.modal-image {
    flex: 1;
    max-width: 50%;
}

.modal-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.modal-info p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */

/* Tablet (3 sütun) */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet (2 sütun) */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }
}

.product-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
}