/* Genel Stil */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    /* Alt çizgiyi kaldırır */
    color: inherit;
}

/* Header */
.header {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #006cb3;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header .logo img {
    height: 60px;
}

.header nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header nav a {
    color: #006cb3;
    padding: 10px 5px;
    transition: background-color 0.3s ease;
}

.header nav a:hover {
    background-color: #f0f0f0;
    border-radius: 5px;
}

/* Dropdown Menü */
.header .dropdown {
    position: relative;
}

.header .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 1000;
    padding: 10px 0;
    min-width: 200px;
}

.header .dropdown:hover .dropdown-menu {
    display: block;
}

.header .dropdown-menu a {
    color: #006cb3;
    padding: 10px 15px;
    display: block;
}

/* Burger Menü (Mobil Cihazlar) */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger-menu .line {
    width: 25px;
    height: 3px;
    background-color: #006cb3;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .header nav {
        display: none;
        flex-direction: column;
        background-color: #ffffff;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 20px;
    }

    .header nav.active {
        display: flex;
    }

    .burger-menu {
        display: flex;
    }
}

/* Ana İçerik */
.content {
    padding: 100px 20px 40px;
    /* Header yüksekliğine göre üst boşluk */
    max-width: 1200px;
    margin: 0 auto;
}

/* Arama Çubuğu (Hizalama ve Yükseklik) */

.search-box {
    display: flex;
    align-items: center;
    /* Dikey hizalama */
    height: 100%;
    /* Diğer menü öğeleriyle aynı yükseklikte olsun */
}

.search-bar input {
    border: 1px solid #006cb3;
    border-radius: 5px;
    padding: 0 10px;
    /* Arama çubuğuna iç boşluk */
    height: 30px;
    /* Menü öğeleriyle aynı yükseklik */
    font-size: 14px;
    /* Yazı boyutunu diğer menülerle uyumlu hale getir */
}

/* Slider */
.slider {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
    background-color: rgba(0, 108, 179, 0.1);
}

.slider-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-text {
    position: absolute;
    top: 5%;
    left: 16%;
    transform: translateX(-50%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    padding: 20px 30px;
    border-radius: 10px;
    max-width: 60%;
    text-align: left;
    font-size: 18px;
    opacity: 0;
    animation: slide-up 1s ease forwards;
}

.slider-text.animate {
    animation: slide-up 1s ease forwards;
}


@keyframes slide-up {
    0% {
        opacity: 0;
        transform: translate(-50%, 50px);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.slider-text h2 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: bold;
}

.slider-text p {
    font-size: 16px;
    margin: 0;
}

.controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.controls button {
    background-color: rgba(0, 108, 179, 0.8);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.controls button:hover {
    background-color: rgba(0, 108, 179, 1);
}


/* Ürünler */
.products-section {
    padding: 20px;
    text-align: center;
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product-card:hover img {
    transform: scale(1.05);
}

.products-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.product-card {
    width: 250px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: white;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    background-color: #f8f8f8;
    display: block;
}

.product-card h3 {
    font-size: 18px;
    margin: 10px 0;
    color: #333;
}

.product-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 10px 0;
}

.product-card a {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

.product-card a:hover {
    text-decoration: none;
}


/* Responsive Design */
@media (max-width: 768px) {
    .slider {
        height: 400px;
    }

    .slider img {
        object-fit: cover;
    }

    .slider-text {
        top: 30%;
        left: 50%;
        max-width: 90%;
        font-size: 16px;
    }

    .slider-text p {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        max-height: 3em;
        font-size: 12px;

    }

    .slider-text h2 {
        font-size: 20px;
    }


    .controls button {
        padding: 8px 15px;
        font-size: 16px;
    }

    .product-card {
        width: 180px;
        padding: 10px;
    }

    .product-card img {
        height: 120px;
    }

    .product-card h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .slider {
        height: 300px;
    }

    .slider-text {
        top: 30%;
        left: 50%;
        font-size: 14px;
    }

    .slider-text h2 {
        font-size: 18px;
    }

    .slider-text p {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 2;
        /* Görünen satır sayısını belirler */
        max-height: 3em;
        /* Satır yüksekliği ile eşleşmeli */
        font-size: 12px;

    }

    .product-card {
        width: 150px;
        padding: 8px;
    }

    .product-card img {
        height: 100px;
    }

    .product-card h3 {
        font-size: 14px;
    }
}

.pagination a {
    padding: 10px 15px;
    margin: 5px;
    text-decoration: none;
    color: #007bff;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.pagination a.active {
    background-color: #0056b3;
    color: white;
    border-color: #0056b3;
    font-weight: bold;
}

.pagination a:hover {
    background-color: #0056b3;
    color: white;
}

/* WhatsApp Butonu
.whatsapp-icon {
    animation: vibrate 1.5s linear infinite;
    cursor: pointer;
}

.whatsapp-icon:hover {
    animation: none;
} */


/* Whatsapp ve Telefon Butonları Genel */
.whatsapp-icon img,
.phone-icon img {
    animation: vibrate 1.5s linear infinite;
    width: 50px;
    transition: all 0.3s ease;
}

.whatsapp-icon img:hover,
.phone-icon img:hover {
    transform: scale(1.1);
}

.whatsapp-text,
.phone-text {
    font-size: 14px;
    /* Varsayılan yazı boyutu */
    margin: 5px 0;
    text-align: center;
    transition: all 0.3s ease;
}

/* Mobil Cihazlar için Boyut Düzenlemesi */
@media (max-width: 768px) {

    .whatsapp-icon img,
    .phone-icon img {
        width: 25px;
        /* Daha küçük boyut */
    }

    .whatsapp-text,
    .phone-text {
        font-size: 10px;
        /* Daha küçük yazı boyutu */
    }
}

/* Whatsapp ve Telefon Button */
footer {
    background-color: #006cb3;
    color: white;
    text-align: center;
    padding: 10px 150px;
    position: relative;
    bottom: 0;
    width: 100%;
}

@media (max-width: 768px) {
    footer {
        background-color: #006cb3;
        color: white;
        text-align: center;
        padding: 20px 10px;
        position: relative;
        width: 100%;

    }
}

/* Suggestions Dropdown */
#suggestions {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    background-color: white;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    /* Başlangıçta görünmez */
    z-index: 9999;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Suggestions İçindeki Öğeler */
#suggestions div {
    padding: 10px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Hover Durumu */
#suggestions div:hover {
    background-color: #f0f0f0;
    color: #007bff;
    /* Seçilebilir alanın vurgulanması için */
}

/* Suggestions Boşken Mesaj Gösterimi */
#suggestions div.no-results {
    color: #999;
    text-align: center;
    font-style: italic;
    pointer-events: none;
}

.products-page {
    margin: 80px auto;
    max-width: 1200px;
    padding: 20px;
}


.products-container {
    display: flex;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.product-card {
    text-align: left;
    width: 300px;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* .product-card img {
    width: 100%;
    border-radius: 8px;
} */

.product-card h3 {
    font-size: 18px;
    margin: 10px 0;
}

.product-card a {
    color: #007bff;
    text-decoration: none;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.products-header h2 {
    font-size: 24px;
    color: #333;
    margin: 0;
}

.products-limit-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.products-limit-form label {
    font-weight: bold;
}

.products-limit-form select {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination a {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.pagination a.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination span {
    padding: 8px 12px;
    color: #999;
}

/* İletişim Sayfası */

.products-section h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}


/* Search Results */
.search-results-container {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.search-results-container h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

.search-results-container p {
    font-size: 16px;
    color: #555;
}

.search-results-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.search-result-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #f9f9f9;
    transition: box-shadow 0.3s ease;
}

.search-result-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.search-result-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.search-result-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.search-result-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.4;
}

.search-result-card a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

.search-result-card a:hover {
    text-decoration: underline;
}

.no-results {
    color: #555;
    font-size: 16px;
    margin-top: 20px;
    text-align: center;
}




/* Ürün Detay Sayfası */
.product-detail-container {
    max-width: 1200px;
    margin: 80px auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 20px;
}

/* Ürün Kartı */
.product-card-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    background-color: #fff;
}

.product-title {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

/* Ürün Görsellerine Hover Efekti */
.product-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    position: relative;
    overflow: hidden; /* Taşmaları engelle */
}

.product-image {
    width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-image:hover {
    transform: scale(1.5); /* Görseli büyüt */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 2; /* Görseli ön plana getir */
}

/* Görsel Yakınlaştırma Efekti İçin */
.product-images:hover .product-image:not(:hover) {
    transform: scale(1); /* Diğer görseller küçültülmeden kalsın */
    opacity: 0.6; /* Hover edilmeyen görselleri hafif soluklaştır */
    transition: opacity 0.3s ease;
}

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.5);
    }
}

.product-image:hover {
    animation: zoomIn 0.3s ease forwards;
}



.product-image {
    width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-details {
    margin-top: 20px;
    text-align: center;
}

.product-code {
    font-size: 18px;
    color: #555;
    margin-bottom: 10px;
}

.product-description {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

/* Benzer Ürünler Kartı */
.related-products-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    background-color: #fff;
}

.related-products-title {
    text-align: center;
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.related-products {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.related-product-card {
    width: 250px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.related-product-image {
    width: 100%;
    border-radius: 8px;
}

.related-product-name {
    font-size: 18px;
    margin-top: 10px;
    color: #007bff;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 40px;
    font-size: 16px;
    color: #007bff;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.catalog-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 20px;
    text-align: center;
}

.catalog-container h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.catalog-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.catalog-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalog-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.catalog-item a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    font-size: 16px;
}

.catalog-item a:hover {
    text-decoration: underline;
}


.catalog-item i.catalog-icon {
    font-size: 48px;
    /* Simge boyutu */
    color: #e63946;
    /* PDF simgesi rengi */
    margin-bottom: 10px;
    transition: transform 0.3s, color 0.3s;
}

.catalog-item i.catalog-icon:hover {
    transform: scale(1.2);
    /* Hover büyüme efekti */
    color: #d62828;
    /* Hover rengi */
}

.catalog-item h3 {
    font-size: 18px;
    margin: 0;
    color: #333;
}


.category-header {
    position: relative;
    width: 100%;
    height: 400px;
    background-image: url('<?= $categoryDetail["image"] ?>');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.category-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.category-header-overlay {
    position: relative;
    z-index: 2;
    text-align: left;
    padding: 20px;
}

.category-header h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.category-header p {
    font-size: 18px;
    max-width: 600px;
}

.kurumsalgorsel {
    width: 100%;
    height: 400px;
    position: relative;
}

.certificates-section {
    display: flex;
    align-items: center;
    gap: 20px;
    /* Görsel ve yazı arasındaki boşluk */
    margin-bottom: 20px;
    /* Alt boşluk */
}

.certificate-image {
    height: auto;
    border-radius: 5px;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.1);
}

.certificate-text {
    width: 60%;
    line-height: 1.8;
    font-size: 16px;
    text-align: justify;
}