@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Dancing+Script:wght@700&display=swap&text=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789ÇĞIİÖŞÜçğıöşü');

:root {
    --primary-gradient: linear-gradient(135deg, #ff7e5f, #feb47b);
    --bg-color: #f8f9fa;
    --text-color: #333;
    --heading-color: #111;
    --accent-color: #ff7e5f;
    --card-bg: #ffffff;
    --box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

body {
    font-family: 'Poppins', sans-serif;
    margin:0;
    padding:0;
    background: var(--bg-color);
    color: var(--text-color);
}

/* HEADER */
header {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top:0;
	height:110px;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 20px;
    box-sizing:border-box;
    position: relative;
}

/* Logo solda, başlık ortada */
header .logo {
    position:absolute;
    left:20px;
    top:50%;
    transform: translateY(-50%);
}


header h1 {
    margin: 0;
    font-size: 28px;
    font-weight:600;
    letter-spacing: 1px;
    color: var(--heading-color);
    font-family: 'Dancing Script', cursive;
    text-align:center;
}

/* BANNER */
.banner {
    width:100%;
    height:300px;
    background:#ccc center center no-repeat;
    background-size: cover;
    display:flex;
    align-items:center;
    justify-content:center;
    position: relative;
}

.banner h2 {
    font-size: 32px;
    font-weight:700;
    color:#fff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

main {
    max-width:1200px;
    margin:40px auto;
    padding:0 20px;
    box-sizing: border-box;
}

/* Kategori Kısayolları */
.category-shortcuts {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    justify-content: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.category-shortcut-link {
    text-decoration: none;
    color: #333;
}

.category-shortcut {
    width: 120px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap:10px;
    text-align:center;
}

.category-shortcut img {
    width: 120px; 
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.category-shortcut img:hover {
    transform: scale(1.05);
}

.category-shortcut span {
    font-size:14px;
    font-weight:500;
    color:#333;
    display:block;
    margin-top:5px;
}

@media (max-width:600px) {
    .category-shortcut {
        width:90px;
    }
    .category-shortcut img {
        width:110px;
        height:110px;
    }
    .category-shortcut span {
        font-size:12px;
    }
}

.category-section {
    background: var(--card-bg);
    margin-bottom: 30px;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-section:hover {
    transform: translateY(-2px);
}

.category-section h2 {
    margin-top:0;
    margin-bottom:20px;
    font-size: 24px;
    font-weight:600;
    color: var(--heading-color);
    position: relative;
    display:inline-block;
}

.category-section h2::after {
    content: '';
    display:block;
    width:50px;
    height:3px;
    background: var(--primary-gradient);
    margin-top:5px;
    border-radius: 2px;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.product-item {
    background: var(--card-bg);
    width: calc(33% - 20px);
    border-radius: 15px;
    padding: 30px 20px;
    box-sizing: border-box;
    text-align:center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.product-image {
    width:120px;
    height:120px;
    margin:0 auto 15px auto;
    overflow:hidden;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    box-shadow:0 0 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-image img {
    width:100%;
    height:100%;
    object-fit: cover;
    border-radius:50%;
}

.product-image:hover {
    transform: scale(1.05);
    box-shadow:0 0 15px rgba(0,0,0,0.15);
}

.product-item h3 {
    margin-top:10px;
    margin-bottom:10px;
    font-size:18px;
    font-weight:500;
    color: var(--heading-color);
}

.price {
    font-weight:600;
    color: var(--accent-color);
    margin-bottom:10px;
    font-size:16px;
}

.desc {
    font-size:14px;
    color:#666;
    line-height:1.5;
}

@media (max-width: 992px) {
    .product-item {
        width: calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .product-list {
        flex-direction: column;
    }
    .product-item {
        width: 100%;
    }
}

/* Admin Paneli Stil */
.admin-container {
    max-width:1200px;
    margin:40px auto;
    padding:20px;
    background:#fff;
    border-radius:10px;
    box-shadow: var(--box-shadow);
}

.admin-header {
    display:flex;
    align-items:center;
    justify-content: space-between;
    margin-bottom:30px;
}

.admin-header h1 {
    font-size:24px;
    font-weight:600;
    color: var(--heading-color);
    margin:0;
}

.admin-header a {
    background: var(--accent-color);
    color:#fff;
    padding:10px 20px;
    border-radius:5px;
    text-decoration:none;
    transition: background 0.3s ease;
    font-weight:500;
}

.admin-header a:hover {
    background: #e66d50;
}

.admin-table {
    width:100%;
    border-collapse: collapse;
    margin-bottom:30px;
}

.admin-table th, .admin-table td {
    text-align:left;
    padding:10px;
    border-bottom:1px solid #ddd;
    font-size:14px;
}

.admin-table th {
    background:#f2f2f2;
    font-weight:600;
}

.admin-table img {
    border-radius:5px;
    width:50px;
    height:50px;
    object-fit: cover;
}

.form-inline {
    display:flex;
    gap:10px;
    margin-bottom:20px;
    flex-wrap: wrap;
}

.form-inline input[type="text"],
.form-inline textarea,
.form-inline select {
    flex:1;
    padding:10px;
    border-radius:5px;
    border:1px solid #ccc;
    font-size:14px;
    box-sizing:border-box;
}

.form-inline input[type="file"] {
    border:none;
}

.banner-form {
    margin-bottom:20px;
    display:flex;
    align-items:center;
    gap:10px;
}

.banner-form input[type="file"] {
    flex:1;
}

/* Global buton stili */
button, input[type="submit"] {
    padding:10px 20px;
    background: var(--accent-color);
    color:#fff;
    border:none;
    border-radius:5px;
    cursor:pointer;
    font-weight:500;
    transition: background 0.3s ease;
    font-size:14px;
}

button:hover, input[type="submit"]:hover {
    background:#e66d50;
}

/* Açılır Pencere (Accordion) Stil */
.accordion-section {
    margin-bottom:20px;
}

.accordion-header {
    display:flex;
    justify-content: space-between;
    align-items:center;
    cursor:pointer;
    background:#f2f2f2;
    padding:10px;
    border-radius:5px;
    margin-bottom:5px;
}

.accordion-header h2 {
    margin:0;
    font-size:18px;
    font-weight:600;
    color: var(--heading-color);
}

.accordion-header span {
    font-size:18px;
    transition:transform 0.3s ease;
}

.accordion-content {
    display:none;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {opacity:0;}
  to {opacity:1;}
}

.accordion-header.open span {
    transform:rotate(180deg);
}
/* Yukarı Çık (Scroll to Top) Butonu */
#scrollTopBtn {
    position: fixed;
    right: 20px;
    bottom: 60px;
    width: 50px; 
    height: 50px; 
    background: #ff7e5f;
    color: #fff;
    border-radius: 50%; /* Tam daire */
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: pointer;
    display: none;
    font-size: 24px;
    line-height: 50px;
    text-align: center;
    z-index: 1001;
    transition: background 0.3s ease;
}

#scrollTopBtn:hover {
    background: #e66d50;
}

/* Header Yazısı Gizleme */
header h1 {
    display: none; /* Sadece başlık gizlendi */
}

/* Kategori Kartları Resimleri Düzeltme */
.category-shortcut img {
    width: 120px; 
    height: 120px; 
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

/* Mobilde Boşluk (gap) Küçültme */
@media (max-width: 600px) {
    .category-shortcuts {
        gap: 20px; /* Önce 30 yapmıştık, biraz daha düşürdük */
    }
}

/* Admin Paneli Düzenlemeleri */

/* Şifre Değiştir ve Çıkış Butonlarının Yanyana Gelmesi */
.admin-header div {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* dar ekranda gerekirse alt satıra iner ama üst üste binmez */
}

/* Ürün Yönetiminde Alt Başlık */
.accordion-section .accordion-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}
.accordion-section .accordion-content h3 {
    font-size: 16px; /* Alt başlık ana başlıktan küçük */
    font-weight: 600;
}

/* İsteğe bağlı: Admin panelindeki .accordion-section .accordion-header h2 {
    font-size:18px;
} 
   Böylece ana başlık > alt başlık hiyerarşisi netleşir */
