/* GENEL AYARLAR */
body {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    background-color: #f8f8f8;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 1000;
    height: auto;
}

header a {
    display: flex;
    align-items: center;
}

header .logo {
    height: 60px;
}

/* MAIN */
main {
    margin-top: 80px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ARAMA */
.search-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    position: relative;
    top: 15px;
}

.search-container input {
    padding: 10px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    outline: none;
	font-family: 'Space Grotesk', sans-serif;
}

.search-container button {
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-left: none;
    border-radius: 0 4px 4px 0;
    background-color: #f8f8f8;
    cursor: pointer;
    font-size: 16px;
	font-family: 'Space Grotesk', sans-serif;
}


.kategori-baslik {
    display: block;
    font-weight: 800;
    color: #000;
    margin-bottom: 8px;
    text-align: center; /* Ortalama eklendi */
    font-size: 16px;
    padding: 0 5px;
}


/* KATEGORİ KUTULARI */
.kategori-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
}

.kategori-kutu {
    background-color: #fff;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none; /* Link alt çizgisini kaldır */
    color: inherit; /* Link rengini miras al */
	cursor: pointer;
}

/* Kategori kutucukları içindeki başlık - DAHA KALIN */
.kategori-kutu a {
    display: block;
    font-weight: 800; /* Extra-bold - daha kalın */
    color: #000;
    margin-bottom: 8px;
    align-self: flex-start;
    text-align: center; /* Ortalı */
}

.kategori-kutu:hover {
    transform: scale(1.03);
    text-decoration: none; /* Hover'da alt çizgi olmasın */
    color: inherit; /* Hover'da renk değişmesin */
}

/* Kategori içi görseller ızgara içinde küçük boyut */
.kategori-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.kategori-images img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/*.kategori-images img:hover {
    transform: scale(1.05);
    border-color: #999;
}*/

/* KATEGORİLER BAŞLIĞI */
.kategori-baslik {
    font-size: 24px;
    font-weight: 900;
    color: #000;
    text-align: left;
    margin: 0;
    padding-left: 40px;
    margin-bottom: 20px;
    align-self: flex-start;
    margin-left: 20px;
    margin-top: 15px;
}


/* Kullanıcı Açılır Menüsü */
.kullanici-icon {
    position: relative;
    cursor: pointer;
	/*filter: brightness(0) saturate(100%) invert(35%) sepia(95%) saturate(3958%) hue-rotate(345deg) brightness(86%) contrast(110%) */
}

.kullanici-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1001;
    margin-top: 10px;
}

.kullanici-menu-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.kullanici-menu-item:hover {
    background: #f8f9fa;
}

.kullanici-menu-item.cikis {
    color: #dc3545;
    border-bottom: none;
}

.kullanici-menu-item.cikis:hover {
    background: #f8d7da;
}

/* LAZY LOADING STİLLERİ */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Görsel optimizasyon */
.urun-kutu img {
    background: #f8f8f8;
    border-radius: 4px;
}

/* YENİ: Adres seçim stilleri */
.adres-secim-item {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #f9f9f9;
}

.adres-secim-item label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin: 0;
}

.adres-secim-item input[type="radio"] {
    margin-right: 10px;
    margin-top: 3px;
}

.adres-secim-item:hover {
    background: #f0f0f0;
}

/* Not alanı stilleri */
#siparisNotu {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Space Grotesk', sans-serif;
    resize: vertical;
}

#siparisNotu:focus {
    outline: none;
    border-color: #007bff;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .kategori-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .kategori-images img {
        height: 80px;
    }
}

/* YENİ: Form select stilleri */
.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: 'Space Grotesk', sans-serif;
    background: white;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

/* Hata mesajı stilleri */
.hata-mesaji {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
    border-left: 4px solid #dc3545;
}

/* Kampanya Toggle Button */
.kampanya-toggle-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-switch-kampanya {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.toggle-switch-kampanya input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider-kampanya {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 22px;
}

.toggle-slider-kampanya:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider-kampanya {
    background-color: #dc3545;
}

input:checked + .toggle-slider-kampanya:before {
    transform: translateX(22px);
}

.kampanya-label {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
}

/* Kampanya Kartları */
.kampanya-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.kampanya-karti {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.kampanya-karti:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.kampanya-karti img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.kampanya-karti-content {
    padding: 15px;
}

.kampanya-karti h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.kampanya-karti p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.kampanya-badge {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-top: 12px;
}