/* Products Page Styles */
.products-page {
    display: flex;
    flex-direction: row-reverse;
    gap: 2rem;
    max-width: 1400px;
    margin: 150px auto 40px;
    padding: 0 20px;
}

/* Sidebar Styles */
.sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
    height: fit-content;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    order: 2;
}

/* Search Box */
.search-container {
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    gap: 10px;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #eee;
}

.search-form input {
    flex: 1;
    border: none;
    background: none;
    padding: 8px;
    font-size: 1rem;
    color: #333;
}

.search-form input::placeholder {
    color: #999;
}

.search-form button {
    background: #990000;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-form button:hover {
    background: #cc0000;
}

/* Category Buttons */
.sidebar h3 {
    color: #333;
    margin-bottom: 18px;
    font-size: 1.4rem;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.category-button {
    display: flex;
    align-items: center;
    width: 89%;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.category-button i {
    margin-right: 10px;
    color: #990000;
}

.category-button:hover, 
.category-button.active {
    background: #990000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(153, 0, 0, 0.2);
}

.category-button:hover i,
.category-button.active i {
    color: white;
}

/* Products Container */
.products-container {
    flex: 1;
    min-width: 0;
    order: 1;
}

/* Products Title */
.products-title {
    color: #333;
    font-size: 2.2rem;
    margin: 0 0 40px 0;
    font-weight: 600;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 20px 0;
}

/* Product Card */
.product {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.product img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product h2 {
    font-size: 1.3rem;
    margin: 15px;
    color: #333;
    font-weight: 600;
}

.product p {
    font-size: 0.95rem;
    color: #666;
    margin: 0 15px 15px;
    line-height: 1.5;
}

.product .price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 15px;
    text-align: center;
}

.product .whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 15px;
    padding: 12px 20px;
    background: #25D366;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product .whatsapp-button:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

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

@media (max-width: 768px) {
    .products-page {
        flex-direction: column;
        margin-top: 100px;
        padding: 15px;
    }

    .sidebar {
        width: 100%;
        position: static;
        margin-bottom: 20px;
        order: unset;
    }

    .products-container {
        order: unset;
    }

    .products-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .product img {
        height: 200px;
    }
}

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

    .products-title {
        font-size: 1.8rem;
    }

    .product .whatsapp-button {
        font-size: 0.9rem;
    }
}

/* Footer Styles */
footer {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

.social-media {
    margin-top: 20px;
}

.social-media a {
    margin: 0 10px;
    opacity: 0.8;
    transition: var(--transition);
}

.social-media img {
    width: 24px;
    height: 24px;
    filter: invert(100%);
}

.social-media a:hover {
    opacity: 1;
    transform: translateY(-5px);
}

/* Responsive Footer */
@media (max-width: 768px) {
    footer {
        padding: 30px 20px;
    }
    
    .social-media {
        margin-top: 15px;
    }
    
    .social-media a {
        margin: 0 8px;
    }
}

/* Mobil Uyumluluk İyileştirmeleri */
@media (max-width: 768px) {
    .main-header {
        padding: 10px 0;
    }

    .main-nav ul {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(153, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 30px;
        z-index: 1000;
    }

    .main-nav.active ul {
        display: flex;
    }

    .main-nav ul li {
        margin: 15px 0;
    }

    .main-nav ul li a {
        font-size: 1.2rem;
        padding: 10px 20px;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger span {
        background-color: white;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Ürün Grid Düzenlemeleri */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
        padding: 10px;
    }

    .product-card {
        margin-bottom: 15px;
    }

    .product-image {
        height: 160px;
    }

    .product-info {
        padding: 15px;
    }

    .product-info h3 {
        font-size: 1rem;
    }

    .product-footer {
        flex-direction: column;
        gap: 10px;
    }

    .whatsapp-button {
        width: 100%;
        justify-content: center;
    }

    /* Sidebar Düzenlemeleri */
    .sidebar {
        position: static;
        width: 100%;
        margin-bottom: 20px;
    }

    .search-form {
        width: 100%;
    }

    .categories-filter ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .categories-filter li {
        flex: 1 1 calc(50% - 10px);
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .products-page {
        margin-top: 60px;
        padding: 10px;
    }

    .products-header h1 {
        font-size: 1.5rem;
    }

    .product-card {
        width: 100%;
    }

    .categories-filter li {
        flex: 1 1 100%;
    }

    .search-form input {
        font-size: 0.9rem;
    }

    .whatsapp-button {
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    .price {
        font-size: 1.1rem;
    }
}

/* Scroll Bar Stilini Özelleştirme */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Sayfa Yükleme Animasyonu */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Touch Cihazlar için Hover Efektlerini İyileştirme */
@media (hover: none) {
    .product-card:hover {
        transform: none;
    }

    .whatsapp-button:hover {
        transform: none;
    }

    .categories-filter a:hover {
        transform: none;
    }
}

/* Ürünler Başlığı */
.products-title {
    color: #333;
    font-size: 2rem;
    margin: 0 0 30px 0;
    padding-left: 20px;
    border-left: 4px solid var(--primary-color);
}

/* Active Filters */
.active-filters {
    margin: 10px 0 20px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
}

.search-term {
    color: #666;
}

.clear-filters {
    color: #990000;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.clear-filters:hover {
    color: #cc0000;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 40px;
    background: #f5f5f5;
    border-radius: 12px;
    margin: 20px 0;
}

.no-results i {
    font-size: 3rem;
    color: #999;
    margin-bottom: 15px;
}

.no-results p {
    color: #666;
    font-size: 1.1rem;
} 