/* ===== MODERN & TRENDY STİL (Cozy Bakery Concept) ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #FFF8F0; /* Çok açık krem */
    --card-bg: #ffffff;
    --primary-color: #FF9A8B; /* Pastel Mercan/Pembe */
    --secondary-color: #FF6B6B; /* Canlı Mercan */
    --accent-color: #FFD93D; /* Sıcak Sarı */
    --text-dark: #4A403A; /* Koyu Kahve (Siyah yerine) */
    --text-light: #8C817B; /* Açık Kahve/Gri */
    --shadow-soft: 0 10px 40px -10px rgba(255, 154, 139, 0.3);
    --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    --border-radius-lg: 24px;
    --border-radius-sm: 16px;
    --font-hand: 'Pacifico', cursive;
    --font-main: 'Quicksand', sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    /* Arkaplan deseni - Modern puantiye */
    background-image: radial-gradient(#FF9A8B 0.5px, transparent 0.5px), radial-gradient(#FF9A8B 0.5px, var(--bg-color) 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.logo-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-top: 8px; /* Yazılara göre ortalamak için biraz aşağı aldık */
}

.logo-img:hover {
    transform: rotate(10deg);
}

.logo {
    font-family: var(--font-hand);
    font-size: 2.4rem;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0;
    text-shadow: 2px 2px 0px rgba(255, 230, 230, 0.5);
    transform: rotate(-2deg);
    display: inline-block;
    line-height: 1.2;
}

.tagline {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 5px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 50px 0;
}

.page-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.page-title h2 {
    font-family: var(--font-hand);
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

/* Başlık altı dekoratif çizgi */
.page-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 10px;
}

.page-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 20px;
}

/* ===== KATEGORİLER GRID ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.category-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
    box-shadow: var(--shadow-card);
    position: relative;
    border: 2px solid #fff;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-soft);
    border-color: var(--primary-color);
}

.category-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0; /* Sadece üst köşeler */
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-info {
    padding: 25px;
    text-align: center;
    background: #fff;
    position: relative;
}

/* Kategori ikonu için yüzen daire */
.category-info::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 -5px 10px rgba(0,0,0,0.05);
}

.category-name {
    font-family: var(--font-hand);
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.category-count {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 154, 139, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 5px;
}

/* ===== ÜRÜNLER SAYFASI ===== */
.back-button {
    background: #fff;
    color: var(--text-dark);
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.back-button:hover {
    transform: translateX(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    color: var(--secondary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 15px; /* İç boşluk ekledik, polaroid tarzı */
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    margin-bottom: 15px;
}

.product-info {
    padding: 10px 5px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-family: var(--font-hand);
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.2;
}

.product-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.product-price {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: 800;
    text-align: right;
    background: rgba(255, 107, 107, 0.1);
    padding: 10px 20px;
    border-radius: 15px;
    align-self: flex-end; /* Sağa yasla */
    display: inline-block;
}

/* ===== FOOTER ===== */
.footer {
    background: #fff;
    padding: 40px 0;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer p {
    font-family: var(--font-hand);
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Social Media Button */
.footer-social {
    margin-bottom: 20px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.social-btn.instagram-developer {
    background: linear-gradient(45deg, #111, #333); /* Daha profesyonel, siyah/koyu tema */
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem; /* Biraz daha kibar durması için */
    padding: 10px 20px;
}

.social-btn.instagram-developer:hover {
    background: linear-gradient(45deg, #405de6, #833ab4, #fd1d1d); /* Hover'da instagram renkleri çıksın */
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.copyright {
    font-size: 1.1rem !important; /* Telif yazısını biraz küçültebiliriz */
    opacity: 0.7;
    margin-top: 15px;
}

/* ===== MOBİL UYUMLULUK ===== */
@media (max-width: 768px) {
    .logo {
        font-size: 2.2rem;
    }
    
    .page-title h2 {
        font-size: 2rem;
    }
    
    .category-card {
        margin: 0 10px;
    }
    
    .product-card {
        margin: 0 10px;
    }
}

/* ===== YARDIMCI SINIFLAR ===== */
.hidden {
    display: none !important;
}

/* ===== ANIMASYONLAR ===== */
@keyframes floatUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.category-card, .product-card {
    animation: floatUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }
