* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

/* ===================== DARK MODE ===================== */
body.dark {
    background: #1a1a2e;
    color: #e0e0e0;
}

body.dark header {
    background: #16213e;
}

body.dark .urun,
body.dark .kategori-card,
body.dark .sepet-urun {
    background: #16213e;
    color: #e0e0e0;
}

body.dark h2 {
    color: #4ade80;
}

body.dark footer {
    background: #16213e;
    color: #aaa;
}

body.dark .galeri-grid img {
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

body.dark .slide-content {
    text-shadow: 2px 2px 15px rgba(0,0,0,0.9);
}

body.dark .urun-info .fiyat {
    color: #4ade80;
}

/* ===================== GENEL ===================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================== HEADER ===================== */
header {
    background: #2c7d59;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.9rem;
}

nav a:hover {
    color: #ffd700;
}

.sepet-link {
    background: #ffd700;
    padding: 6px 14px;
    border-radius: 30px;
    color: #2c7d59 !important;
    font-weight: 600;
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.3rem;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.3s;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.2);
}

/* ===================== HERO ===================== */
.hero {
    height: 90vh;
    position: relative;
    margin-top: 70px;
}

.slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
    max-width: 600px;
}

.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.slide-content p {
    font-size: 1.2rem;
}

/* ===================== KATEGORİLER ===================== */
.kategoriler {
    padding: 4rem 0;
    text-align: center;
}

/* ===================== SECTIONS ===================== */
.section {
    padding: 5rem 0;
    text-align: center;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #2c7d59;
}

/* ===================== GRİDLER ===================== */
.kategori-grid,
.urun-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* ===================== KATEGORİ KART ===================== */
.kategori-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.kategori-card:hover {
    transform: translateY(-8px);
}

.kategori-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.kategori-card h3 {
    padding: 1rem 1.5rem;
    background: #2c7d59;
    color: white;
    font-size: 1rem;
}

/* Yorum kartları için padding */
.kategori-card p {
    padding: 1rem 1.5rem 0;
}

.kategori-card strong {
    display: block;
    padding: 0.5rem 1.5rem 1rem;
    color: #2c7d59;
}

/* ===================== ÜRÜN KARTLARI ===================== */
.urun {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.urun:hover {
    transform: translateY(-8px);
}

.urun img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.urun-info {
    padding: 1.2rem;
}

.urun-info h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.urun-info .fiyat {
    color: #2c7d59;
    font-size: 1.3rem;
    font-weight: 600;
}

.urun button {
    width: 100%;
    padding: 10px;
    background: #ffd700;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.8rem;
    font-family: 'Poppins', sans-serif;
    transition: background 0.3s;
}

.urun button:hover {
    background: #e6c200;
}

/* ===================== GALERİ ===================== */
.galeri-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    cursor: zoom-in;
}

.galeri-grid img:hover {
    transform: scale(1.06) translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    z-index: 2;
    position: relative;
}

/* ===================== SEPET SAYFASI ===================== */
.sepet {
    padding: 120px 20px 60px;
}

.sepet h1 {
    font-size: 2rem;
    color: #2c7d59;
    margin-bottom: 2rem;
}

.sepet-urun {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    gap: 1.5rem;
}

.sepet-urun img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.sepet-urun > div {
    flex: 1;
}

.sepet-urun h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.sil-btn {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    flex-shrink: 0;
}

.sil-btn:hover {
    background: #b71c1c;
}

.sepet-toplam {
    margin-top: 2rem;
    text-align: right;
    font-size: 1.3rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.satin-al {
    background: #2c7d59;
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: background 0.3s;
}

.satin-al:hover {
    background: #1e5a3f;
}

.sepet-bos {
    text-align: center;
    padding: 4rem 0;
    color: #888;
}

.alisveris-yap {
    display: inline-block;
    margin-top: 1rem;
    padding: 12px 24px;
    background: #2c7d59;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
}

.alisveris-yap:hover {
    background: #1e5a3f;
}

/* ===================== İLETİŞİM FORMU ===================== */
section form input,
section form textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

section form input:focus,
section form textarea:focus {
    outline: none;
    border-color: #2c7d59;
}

section form button[type="submit"] {
    padding: 12px 30px;
    background: #2c7d59;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background 0.3s;
}

section form button[type="submit"]:hover {
    background: #1e5a3f;
}

/* ===================== FOOTER ===================== */
footer {
    background: #2c7d59;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* ===================== ADMİN PANELİ ===================== */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #2c7d59;
    color: white;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 25px;
    padding: 0 20px;
    font-size: 1.1rem;
    color: white;
}

.sidebar a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 12px 25px;
    margin: 3px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.sidebar a i {
    margin-right: 8px;
}

.sidebar a:hover,
.sidebar a.active {
    background: #1e5a3f;
}

.main-content {
    flex: 1;
    padding: 30px;
    margin-left: 260px;
    background: #f4f6f9;
    min-height: 100vh;
}

.main-content h1 {
    font-size: 1.8rem;
    color: #2c7d59;
    margin-bottom: 25px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.card h2 {
    font-size: 1.2rem;
    color: #2c7d59;
    margin-bottom: 18px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: #2c7d59;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

/* Admin form elemanları */
.main-content input[type="text"],
.main-content input[type="number"],
.main-content input[type="email"],
.main-content textarea,
.main-content select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 12px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.main-content input:focus,
.main-content textarea:focus {
    outline: none;
    border-color: #2c7d59;
}

.main-content button {
    padding: 12px 28px;
    background: #2c7d59;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: background 0.3s;
}

.main-content button:hover {
    background: #1e5a3f;
}

/* Admin tablo */
.main-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.main-content th,
.main-content td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.main-content th {
    background: #f5f5f5;
    font-weight: 600;
    color: #555;
}

.main-content td img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

/* Galeri preview */
.galeri-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.galeri-preview img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.delete-btn {
    margin-top: 8px;
    width: 100%;
    padding: 7px;
    background: #d32f2f;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.delete-btn:hover {
    background: #b71c1c;
}

/* ===================== RESPONSİF ===================== */
@media (max-width: 768px) {
    .slide-content h1 { font-size: 2rem; }
    .slide-content p { font-size: 1rem; }
    nav ul { flex-wrap: wrap; gap: 0.5rem; }
    nav a { font-size: 0.8rem; }
    
    .sidebar {
        width: 200px;
    }
    .main-content {
        margin-left: 200px;
    }
    
    .sepet-urun {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }
    .main-content {
        margin-left: 0;
    }
}

