/* Responsive Tasarım */

@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 36px;
    }
    .about-short .container,
    .contact-short .container {
        grid-template-columns: 1fr;
    }
    .about-image {
        order: -1;
    }
    .top-bar .container {
        flex-wrap: wrap;
    }
    .social-links {
        order: 3;
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
    .search-box {
        margin-left: auto;
    }
    .logo img {
        height: 45px;
        /* Tablet için logo boyutu */
    }
    /* Ürünler sayfası için düzenlemeler */
    .main-content .container {
        flex-direction: column;
    }
    .contact-sidebar {
        width: 100%;
    }
    .product-category-row {
        flex-wrap: wrap;
    }
    .product-category-item {
        width: 48%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
        /* Mobil headerın yüksekliğine göre ayarlandı */
    }
    .top-bar {
        padding: 10px 0;
        /* Mobil görünümde top-bar'ı gizledik */
    }
    .top-bar .container {
        flex-direction: column;
        align-items: center;
    }
    .contact-info {
        margin-bottom: 10px;
        flex-direction: column;
        align-items: center;
    }
    .contact-info a {
        margin: 5px 0;
    }
    .social-links {
        margin: 10px 0;
        justify-content: center;
        flex-wrap: wrap;
    }
    .search-box {
        margin: 10px 0;
        width: 100%;
        justify-content: center;
    }
    .search-box input {
        width: calc(100% - 30px);
        max-width: 250px;
    }
    .language-selector {
        margin: 10px 0;
    }
    header .container {
        flex-direction: row;
        /* Yan yana düzeni koruyoruz */
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }
    .logo {
        margin-bottom: 0;
    }
    .logo img {
        width: 80px;
        /* Mobil görünümde logo boyutu küçültüldü */
        height: auto;
    }
    /* Menü ve menü simgesi */
    .menu-icon {
        display: block;
        font-size: 24px;
        cursor: pointer;
        color: #333;
        z-index: 1001;
    }
    nav {
        position: relative;
    }
    /* Checkbox'u gizle ama fonksiyonelliğini koru */
    #menu-toggle {
        display: none;
    }
    /* Ana menüyü başlangıçta gizle */
    nav ul.menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 0;
        margin-top: 10px;
    }
    /* Checkbox işaretlendiğinde menüyü göster */
    #menu-toggle:checked~ul.menu {
        display: block;
    }
    /* Menü öğeleri */
    nav ul.menu li {
        margin: 0;
    }
    nav ul.menu li a {
        display: block;
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
        text-align: left;
        color: #333;
        font-weight: 600;
    }
    /* Alt menüler */
    .dropdown .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: #f8f8f8;
        display: none;
        padding: 0;
        width: 100%;
    }
    /* Alt menü öğeleri */
    .submenu li a {
        padding-left: 30px;
        font-size: 14px;
    }
    /* Menü simgesi X işaretine dönüşsün */
    #menu-toggle:checked~.menu-icon i:before {
        content: "\f00d";
        /* X ikonu */
    }
    /* Hover ile alt menü açılmasını devre dışı bırak */
    .dropdown:hover .submenu {
        display: none;
    }
    /* Sadece JavaScript ile alt menüyü kontrol et */
    .dropdown .submenu.active {
        display: block;
    }
    .hero {
        height: 400px;
        margin-top: 0;
    }
    .hero-content h2 {
        font-size: 30px;
    }
    .section-title {
        font-size: 26px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .social-media {
        margin-bottom: 15px;
    }
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 26px;
        bottom: 15px;
        right: 15px;
    }
    /* Ürünler sayfası için */
    #hero-section1 {
        height: 180px;
    }
    .product-category-item {
        width: 100%;
    }
    .product-category-row {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 350px;
    }
    .hero-content h2 {
        font-size: 26px;
    }
    .product-card {
        max-width: 100%;
    }
    .features {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .footer-logo,
    .footer-links,
    .footer-products,
    .footer-contact {
        text-align: center;
        margin-bottom: 30px;
    }
    .footer-contact p {
        justify-content: center;
    }
    .search-box input {
        width: calc(100% - 30px);
        max-width: 200px;
    }
    .social-links a {
        margin: 2px;
    }
}


/* Mobil menü için özel CSS sınıfı - JavaScript ile kullanılacak */

nav ul.menu.active {
    display: block !important;
}

@media (max-width: 768px) {
    nav ul.menu {
        position: fixed;
        top: 60px;
        /* header yüksekliğine göre */
        left: 0;
        width: 100vw;
        background-color: #fff;
        z-index: 1000;
        display: none;
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    nav ul.menu.active {
        display: block !important;
    }
}


/* Tablet ve Mobil İçin Responsive Düzenleme */

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .gallery-item .product-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .gallery-item .product-image {
        height: 150px;
    }
    .gallery-container {
        padding: 15px;
    }
    .filter-btn {
        font-size: 12px;
        padding: 6px 12px;
        margin-bottom: 5px;
    }
}


/* Mobil cihazlar için iletişim öğeleri düzenlemeleri */

@media (max-width: 768px) {
    /* İletişim kenar çubuğu genişliği */
    .contact-sidebar {
        width: 100%;
        padding: 0 10px;
        margin-bottom: 20px;
    }
    /* İletişim öğesi genel stili */
    .contact-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px 10px;
        margin-bottom: 10px;
    }
    /* İkon ve başlık içeren kısım */
    .contact-inner {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-bottom: 10px;
    }
    /* İkon containeri */
    .contact-icon {
        width: 30px;
        height: 30px;
        margin-right: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    /* İkon boyutu */
    .contact-icon img,
    .contact-icon i {
        font-size: 18px;
        width: 100%;
        height: auto;
    }
    /* Başlık stili */
    .contact-info h3 {
        font-size: 14px;
        margin: 0;
        text-align: center;
    }
    /* İletişim numarası/mail adresi kısmı */
    .contact-number {
        padding: 0;
        text-align: center;
        width: 100%;
    }
    /* İletişim numarası/mail linki */
    .contact-number a {
        font-size: 16px;
        display: block;
        text-align: center;
    }
}


/* Daha küçük mobil ekranlar için */

@media (max-width: 480px) {
    /* Alt alta dizilen iletişim öğeleri için */
    .contact-item-alt {
        padding: 12px 8px;
    }
    /* İkon, başlık ve numara düzenlemesi */
    .contact-item-alt .contact-inner {
        margin-bottom: 8px;
    }
    .contact-info h3 {
        font-size: 13px;
    }
    .contact-number a {
        font-size: 15px;
    }
    /* İkon boyutunu küçült */
    .contact-icon {
        width: 25px;
        height: 25px;
    }
}