/* Genel Ayarlar ve Değişkenler */
:root {
    --primary-color: #004d40; /* Koyu Yeşil */
    --secondary-color: #00796b; /* Orta Yeşil */
    --light-gray-color: #f4f4f4;
    --dark-color: #333;
    --white-color: #fff;
    --font-family: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
}

/* Genel Bileşenler */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-color);
}

section {
    padding: 60px 20px;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

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

/* Header & Navbar */
header {
    background-color: #FAF5F1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    max-width: 1300px;
    margin: 0 auto;
    height: 80px; /* Fixed height for the navbar */
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    height: 100%;
    padding: 0;
    margin: 0;
}

.logo img {
    height: 60%;
    width: auto;
    object-fit: contain;
    margin: 0;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

#language-switcher {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

#language-switcher:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('bg1.png') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white-color);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Products Section */
.products-section {
    background: var(--light-gray-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: var(--white-color);
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.product-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
}

/* About Section */
.about-section {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-intro {
    font-size: 1.1rem;
    margin-bottom: 50px;
	text-align: justify;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}

.detail-card {
    background: var(--light-gray-color);
    padding: 30px;
    border-radius: 10px;
}

.detail-card h3 {
    color: var(--primary-color);
}

.detail-card ul {
    list-style-position: inside;
}

/* Footer */
:root {

    --dark-color: #2c3e50;    /* Koyu renk */
    --light-color: #ecf0f1;   /* Açık renk */
    --white-color: #ffffff;
}

footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding-top: 60px;
    text-align: left;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-about, .footer-links, .footer-social {
    flex: 1;
    min-width: 250px;
}

.footer-about h3, .footer-links h3, .footer-social h3 {
    color: var(--white-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.footer-about p {
    line-height: 1.6;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a, .footer-links ul li span {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-links i {
    color: #ffffff;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.footer-social .social-icons a {
    color: var(--light-color);
    background: #3a4c5e;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-social .social-icons a:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.footer-bottom {
    background: #222;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #444;
}

/* Responsive Tasarım */
@media (max-width: 992px) {
    h2 {
        font-size: 2.2rem;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .products-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px; /* Navbar height */
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.5s ease;
    }
    .nav-links.active {
        left: 0;
    }
    .nav-links li {
        margin: 20px 0;
    }
    .hamburger-menu {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}
/* Sayfa Konteyneri ve Başlığı */
.page-container {
    padding-top: 100px; /* Sabit header için boşluk */
    max-width: 1300px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--light-gray-color);
    padding-bottom: 20px;
}

.page-header h1 {
    color: var(--primary-color);
    font-size: 2.8rem;
}


/* Ürünler Sayfası Layout */
.products-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Kategori Kenar Çubuğu (Sidebar) */
.category-sidebar {
    flex: 0 0 250px; /* Genişliği sabit */
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.category-sidebar h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--light-gray-color);
    padding-bottom: 10px;
}

.category-sidebar ul {
    list-style: none;
}

.category-sidebar li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--dark-color);
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 500;
}

.category-sidebar li a:hover,
.category-sidebar li a.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* Ürün Grid'i */
.products-grid-container {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-item {
    background: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: block; /* Tıklanabilir alan için */
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.product-item a {
    text-decoration: none;
    color: inherit;
}

.product-image {
    background-color: #f0f8ff; /* Açık mavi arka plan */
    padding: 20px;
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-oem {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.product-category {
    color: #c0392b; /* Kırmızı renk */
    font-size: 0.9rem;
    font-weight: 600;
}

/* Ürün Detay Sayfası */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: flex-start;
    padding: 40px 0;
}

.product-detail-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-detail-info h1.product-detail-oem {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.product-detail-category {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #555;
}

.product-description {
    margin-top: 30px;
    border-top: 1px solid var(--light-gray-color);
    padding-top: 20px;
}

.product-description h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.product-detail-info .btn {
    margin-top: 30px;
}

/* Responsive Düzenlemeler */
@media (max-width: 992px) {
    .products-layout {
        flex-direction: column;
    }
    .category-sidebar {
        width: 100%;
        margin-bottom: 30px;
    }
    .product-detail-layout {
        grid-template-columns: 1fr;
    }
}

/* Lightbox Stilleri */
.modal {
    display: none; /* Varsayılan olarak gizli */
    position: fixed; /* Ekranı kaplar */
    z-index: 1000; /* Diğer elementlerin üzerinde */
    padding-top: 60px; /* Üstten boşluk */
    left: 0;
    top: 0;
    width: 100%; /* Tam genişlik */
    height: 100%; /* Tam yükseklik */
    overflow: auto; /* Gerekirse kaydırma çubuğu */
    background-color: rgba(0,0,0,0.9); /* Siyah, yarı şeffaf arka plan */
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    height: auto; /* Oranları koru */
    max-height: 80vh; /* Ekran yüksekliğinin %80'ini geçmesin */
    object-fit: contain; /* Resmin tamamının görünmesini sağlar */
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Sayfalama Stilleri */
.pagination {
    display: flex;
    /* justify-content: center;  Bu satırı kaldırın veya comment'leyin */
    justify-content: flex-end; /* Sayfa numaralarını sağa hizalar */
    margin-top: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
    padding-right: 20px; /* Sağdan biraz boşluk bırakmak isterseniz */
}

.pagination a {
    color: #333;
    padding: 10px 15px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 500;
}

.pagination a.active-page {
    background-color: #00223a; /* Aktif sayfa rengi */
    color: white;
    border-color: #007bff;
}

.pagination a:hover:not(.active-page) {
    background-color: var(--primary-color);
}

/* Kategori menüsü için aktif sınıf stili (varsa güncelleyin) */
.category-sidebar ul li a.active {
    background-color: #e0e0e0;
    font-weight: 600;
    color: var(--primary-color);
}

/* Ürün ızgarası için küçük ekran düzenlemesi */
@media (max-width: 768px) {
	.pagination {
        justify-content: flex-end; /* Küçük ekranlarda da sağa hizala */
        padding-right: 15px; /* Küçük ekranlarda sağdan boşluk */
    }
    .products-layout {
        flex-direction: column;
    }
    .category-sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    .products-grid-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .modal-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .products-grid-container {
        grid-template-columns: 1fr; /* Tek sütun */
    }
}