:root {
    --primary-color: #000000; /* Siyah */
    --secondary-color: #ffffff; /* Beyaz */
    --accent-color: #c2721c; /* Vurgu rengi */
    --text-color-light: #f2eded; /* Açık metin rengi */
    --text-color-dark: #070707; /* Koyu metin rengi */
    --font-family-primary: 'Cambria', Cochin, Georgia, Times, 'Times New Roman', serif; /* Birincil font ailesi */
    --font-family-secondary: 'Poppins', sans-serif; /* İkincil font ailesi */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    padding-top: 100px;
    background-color: var(--primary-color);
    font-family: var(--font-family-secondary);
}

.content-wrapper {
    display: block;
}

/* Ana sayfa için arka plan fotoğrafı */
.container {
    background: url(mp1.jpg) no-repeat center center fixed;
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 30px;
    position: relative;
    color: var(--text-color-dark);
    font-family: sans-serif;
}

/* --- NAVBAR STİLLERİ --- */

.main-navbar {
    /* Tüm durumlarda geçerli olan sabit özellikler */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 5%;
    z-index: 1000;
    transition: background-color 0.3s ease, height 0.3s ease;
    gap: 30px;
    
    /* Normal durum için varsayılan arka plan rengi ve yüksekliği */
    background-color: #000000a4;
    height: 80px;
}

.main-navbar.scrolled {
    /* Sadece sayfa kaydırıldığında geçerli olacak değişken özellikler */
    background-color: rgb(0, 0, 0);
    height: 80px;
}

.main-navbar .logo-container {
    margin-top: 20px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    
}

.main-navbar .logo-container img {
    
    height: 80px;
    width: auto;
}

.main-navbar .nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    font-family: var(--font-family-primary);
}

.main-navbar .nav-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    padding: 5px 50px;
    border-radius: 5px;
    transition: color 0.3s ease, background-color 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.main-navbar .nav-links a:hover {
    color: var(--accent-color);
}

.main-navbar .nav-links a i {
    margin-right: 8px;
    color: var(--accent-color);
    font-size: 18px;
}

/* Mobil için Hamburger Menü */
.menu-icon {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
    margin-left: auto; /* Sağ tarafa yasla */
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 999;
    transition: left 0.3s ease-in-out;
}

.mobile-menu.show {
    left: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-menu ul li {
    margin: 20px 0;
}

.mobile-menu ul li a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    font-family: var(--font-family-primary);
}

.mobile-menu ul li a i {
    margin-right: 10px;
    color: var(--accent-color);
    font-size: 20px;
}

/* Giriş Animasyonları */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.center {
    position: absolute;
    top: 54%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    user-select: none;
    backdrop-filter: blur(10px);
    font-family: var(--font-family-primary);
}

.center h1 {
    font-size: 40px;
    font-weight: bold;
    text-align: center;
    transition: color 0.5s ease, transform 0.5s ease;
    color: var(--secondary-color);
}

.center h1:hover {
    color: rgb(255, 255, 255);
    transform: scale(1.15);
}

.center h2 {
    font-size: 40px;
    font-weight: bold;
    text-align: center;
    transition: color 0.5s ease, transform 0.5s ease;
}

.center h2:hover {
    color: rgb(255, 255, 255);
    transform: scale(1.05);
}

.heading-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 100px;
}

.heading-container h1 {
    font-size: 32px;
    font-weight: bold;
    transition: color 0.5s ease, transform 0.5s ease;
    color: #ffffff;
    text-align: center;
    height: 100px;
}

.heading-container h1:hover {
    color: rgb(255, 255, 255);
    transform: scale(1.15);
}

.buttons button {
    height: 110px; /* Genişlik ve uzunluğu aynı yapmak için */
    width: 110px;
    font-size: 18px;
    font-weight: bold;
    color: rgb(242, 235, 235);
    background: rgba(0, 0, 0, 0.653);
    backdrop-filter: blur(10px);
    border: none;
    cursor: pointer;
    outline: none;
    border-radius: 25px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-family: var(--font-family-primary);
}

.buttons button:hover {
    background: #000000;
    transform: scale(1.1);
}

/* --- Duyarlı Tasarım --- */
@media (max-width: 768px) {
    .main-navbar .nav-links {
        display: none;
    }
    .menu-icon {
        display: block;
        margin-left: auto;
    }
    .main-navbar {
        background-color: rgba(0, 0, 0, 0.8);
        justify-content: unset;
        padding: 15px 20px;
        margin-top: 0px;
    }
    .main-navbar .logo-container {
        
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .main-navbar .logo-container img {
        
        height: 60px;
    }
    body {
        padding-top: 80px;
    }

    .center {
        top: 50%;
        padding: 10px;
        width: 90%;
    }

    .heading-container {
        gap: 20px;
        flex-direction: column;
    }

    .center h1 {
        font-size: clamp(24px, 8vw, 40px);
    }
    .center h2 {
        font-size: clamp(18px, 5vw, 30px) !important;
    }

    /* Mobil görünüm için arka plan resimlerini düzeltme */
    .container, .MENÜ {
        background-attachment: scroll;
        background-position: center top;
    }
    
    /* Yeni alt kategori başlığı stilleri */
    /* Alt kategori başlığı ve logo için flexbox düzenlemesi */
    .sub-category-header {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
        background-color: var(--primary-color);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    /* Logo container'ın mobil görünümde ortalanması */
    .sub-category-header .logo-container {
        flex-grow: 1; /* Logoyu ortalamak için esnek boşluk bırak */
        text-align: center;
        position: absolute; /* Mutlak konumlandırmayı koru */
        left: 50%; /* Ortala */
        transform: translateX(-50%); /* Ortalamak için translateX */
    }

    /* Alt kategori başlığı metninin hizalanması */
    .sub-category-header h1 {
        color: var(--secondary-color);
        margin: 0;
        font-size: 2.5em;
        font-family: var(--font-family-primary);
        font-style: italic;
        flex-grow: 1;
        text-align: center;
    }

    /* Yeni ürün listesi stilleri */
    .product-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 20px;
    }
    .product-item {
        width: 100%; /* Mobil cihazlarda tam genişlik */
        max-width: 400px; /* Belirli bir genişlikten sonra büyümesini engelle */
        margin: 0 auto;
    }
    
    .box {
        width: 180px; /* Kare yapmak için */
        height: 180px; /* Kare yapmak için */
    }
    
    .box-container {
        justify-content: center;
        align-items: center;
    }

    .buttons button {
        width: 100px;
        height: 90px;
    }

}

.center {
    text-align: center;
    padding: 20px;
    max-width: 90%;
    margin: auto;
    max-height: 90%;
}

/* --- Başlık Ayarları --- */
.center h1 {
    font-size: clamp(24px, 6vw, 50px);
    font-weight: bolder;
    color: var(--secondary-color);
    margin-bottom: 10px;
    max-width: 100%;
}

.center h2 {
    font-size: clamp(12px, 3.5vw, 20px) !important;
    font-weight: normal;
    color: var(--secondary-color);
    text-align: center;
    max-width: 90%;
    margin: 10px auto;
    line-height: 2;
    overflow-wrap: break-word;
}

.MENÜ {
    text-align: center;
    padding: 50px 30px;
    background: url(20) no-repeat center center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    font-family: var(--font-family-primary);
}

.MENÜ h1 {
    color: var(--text-color-light);
    font-size: xxx-large;
    margin-bottom: 50px;
    font-style: italic;
}

/* Yeni Kategori Kutusu Stilleri */
.box-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px;
    justify-content: center;
}

.box-link {
    text-decoration: none;
    display: block;
}

.box {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 15px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    /* Arka plan görseli için yeni özellikler */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.box-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1));
    text-align: center;
    transition: background 0.3s ease-in-out;
}

.box:hover .box-content {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2));
}

.box-content h3 {
    margin: 0;
    color: white;
    font-size: 1.6em;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}


/* --- Diğer bölümler --- */

.hakkımızda .row {
    background-color: var(--primary-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    font-family: var(--font-family-primary);
}

.hakkımızda h1 {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    font-family: var(--font-family-primary);
}

.hakkımızda .row .image {
    flex: 1 1 50%;
    max-width: 50%;
}

.hakkımızda .row .image img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: 10px;
}

.hakkımızda .row .content {
    flex: 1 1 100%;
    max-width: 40%;
    padding: 10px;
    text-align: left;
}

.hakkımızda .row .content h3 {
    font-size: 30px;
    color: var(--text-color-light);
    margin-bottom: 30px;
}

.hakkımızda .row .content p {
    font-size: 20px;
    color: var(--text-color-light);
    line-height: 1.9;
}

@media (max-width: 768px) {
    .hakkımızda .row {
        flex-direction: column;
    }
    .hakkımızda .row .image,
    .hakkımızda .row .content {
        max-width: 100%;
    }
    .hakkımızda .row .content h3 {
        font-size: 24px;
    }
    .hakkımızda .row .content p {
        font-size: 16px;
    }
    .box-container {
        grid-template-columns: 1fr;
    }
    .box {
        height: 200px;
    }
    .box-content h3 {
        font-size: 1.4em;
    }
}

.heading {
    font-size: 36px;
    font-weight: bold;
    color: var(--secondary-color);
    margin: 20px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    font-family: "Times New Roman", Times, serif;
}

/* Yeni alt kategori başlığı stilleri */
/* --- YENİ EKLENEN VEYA DEĞİŞEN STİLLER --- */

/* Kategori kutularındaki resimler için */
.box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Bu, resimlerin oranını koruyarak kutuya tam sığmasını sağlar */
}

/* Mobil görünüm için responsive ayarlar */
@media (max-width: 768px) {
    /* Mobil görünümde kutuların içindeki resimler için */
    .box img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Bu, resimlerin oranını koruyarak kutuya tam sığmasını sağlar */
    }
}

/* Ürün listesindeki resimler için */
.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Bu, resimlerin oranını koruyarak kutuya tam sığmasını sağlar */
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}



.sub-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--primary-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.sub-category-header .logo-container {
    
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.sub-category-header .logo-container img {
    
    height: 60px;
}

.sub-category-header h1 {
    color: var(--secondary-color);
    margin: 0;
    font-size: 2.5em;
    font-family: var(--font-family-primary);
    font-style: italic;
    flex-grow: 1;
    text-align: center;
}

/* --- YENİ İLETİŞİM BÖLÜMÜ STİLLERİ --- */

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-item i {
    font-size: 38px;
    color: var(--accent-color);
    background: rgba(194, 114, 28, 0.1);
    padding: 20px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.contact-item:hover i {
    background: var(--accent-color);
    color: var(--secondary-color);
}

.contact-item h3 {
    margin: 0;
    font-size: 20px;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.contact-item p {
    margin: 5px 0 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.contact-item a {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    text-decoration: underline;
    color: #ff9933;
}

.contact-content {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    align-items: center;
}

.map-container {
    flex: 1 1 50%;
    max-width: 50%;
    min-width: 300px;
    box-shadow: 0px 4px 10px rgba(7, 7, 7, 0.2);
    border-radius: 20px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: transparent;
    padding: 30px;
    border-radius: 12px;
    box-shadow: none;
    flex: 1 1 50%;
    max-width: 50%;
    margin: 0;
    font-family: var(--font-family-primary);
}

@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
        align-items: center;
        padding: 0;
        width: 100%;
    }
    .map-container,
    .contact-container {
        width: 100%;
        max-width: 100%;
    }
    .map-container {
        height: 300px;
    }
    .map-container iframe {
        height: 300px;
    }
    .contact-container {
        margin-top: 10px;
        padding: 15px;
    }
    .contact-item {
        flex-direction: row;
        text-align: left;
        gap: 15px;
        padding: 20px;
    }
    .contact-item i {
        font-size: 28px;
        padding: 10px;
    }
    .contact-item h3 {
        font-size: 22px;
    }
    .contact-item p {
        font-size: 16px;
    }
    
    .menu-icon {
        display: block !important;
    }
    
    .box-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px;
        justify-content: center;
    }
    
    .box-link {
        text-decoration: none;
        display: block;
    }

    .box {
        width: 100%;
        max-width: 300px;
        height: 250px;
        margin: 0 auto;
    }
}

footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 20px;
    width: 100%;
    position: relative;
}

.contact {
    margin-bottom: 40px;
}

footer a {
    color: rgb(215, 11, 11);
    font-weight: bolder;
}

footer a:hover {
    color: #3b4f65;
}

/* Yeni ürün listesi stilleri */
.product-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px;
}
.product-item {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    text-align: center;
    padding-bottom: 15px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}
.product-item:hover {
    transform: translateY(-10px);
}
.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}
.product-item h3 {
    font-size: 1.5em;
    color: #000;
    margin-bottom: 10px;
}
.product-item p {
    font-size: 1em;
    color: #000;
    padding: 0 15px;
    margin-bottom: 15px;
}
.product-item .price {
    font-size: 1.4em;
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
}
.back-button-container {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}
.back-button {
    background-color: #34495e;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.back-button:hover {
    background-color: #4a627a;
}
