/* EBRULİ MUTFAK - MASTER STYLE (TAM VE NİHAİ KOD) */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Inter:wght@400;600;700;800&display=swap');

:root { 
    --primary: #e67e22; --secondary: #27ae60; --dark: #1e272e; --white: #ffffff; 
    --glass: rgba(0, 0, 0, 0.25); --bg-warm: #fffaf7;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05); --shadow-strong: 0 20px 40px rgba(0,0,0,0.15);
    --accent: #e74c3c;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background: #fdfdfd; color: var(--dark); overflow-x: hidden; scroll-behavior: smooth; width: 100%; }
a { text-decoration: none; transition: 0.3s ease; }

/* NAVBAR GLASSMORPHISM */
.navbar { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 0 8% !important; height: 90px; position: fixed; top: 0; left: 0; width: 100%; z-index: 10000; 
    background: var(--glass); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); transition: 0.4s;
}
.navbar.scrolled { background: rgba(255, 255, 255, 0.95); height: 75px; box-shadow: var(--shadow-strong); border-bottom: 1px solid #eee; }
.logo { font-family: 'Dancing Script', cursive; font-size: 38px; color: var(--white); }
.navbar.scrolled .logo { color: var(--primary); }

.nav-links { display: flex; list-style: none; gap: 25px; }
.nav-links a { color: var(--white); font-weight: 700; font-size: 14px; }
.navbar.scrolled .nav-links a { color: var(--dark); }

/* MERCEK ARAMA */
.search-wrapper { display: flex; align-items: center; position: relative; }
.nav-search-form { display: flex; align-items: center; background: rgba(255,255,255,0.2); border-radius: 50px; overflow: hidden; width: 0; opacity: 0; transition: 0.4s; }
.nav-search-form.active { width: 180px; opacity: 1; padding: 5px 15px; border: 1px solid rgba(255,255,255,0.3); }
.navbar.scrolled .nav-search-form.active { background: #f1f1f1; border: 1px solid #ddd; }
.nav-search-input { background: transparent; border: none; outline: none; color: white; width: 100%; font-size: 12px; }
.navbar.scrolled .nav-search-input { color: var(--dark); }
.search-trigger { color: white; cursor: pointer; font-size: 18px; padding: 5px; }
.navbar.scrolled .search-trigger { color: var(--dark); }

.nav-icons { display: flex; gap: 15px; align-items: center; }
.btn-cart-nav { background: var(--secondary); color: white !important; padding: 10px 22px; border-radius: 50px; text-decoration: none; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; }
.menu-toggle { display: none; font-size: 24px; color: white; cursor: pointer; z-index: 10001; }
.navbar.scrolled .menu-toggle { color: var(--dark); }

/* HERO SLIDER (%30 KÜÇÜK) */
.hero-slider { width: 100%; height: 70vh; position: relative; overflow: hidden; background: #000; z-index: 1; }
.slide { width: 100%; height: 100%; position: absolute; background-size: cover; background-position: center; display: none; align-items: center; justify-content: center; text-align: center; color: white; transition: 0.8s; }
.slide.active { display: flex; }
.slide::before { content: ''; position: absolute; width:100%; height:100%; background: rgba(0,0,0,0.45); }
.slide-content h1 { font-family: 'Dancing Script', cursive; font-size: 5rem; margin-bottom: 15px; }

/* SAYAÇLAR (%50 KÜÇÜK) */
.stats-bar-wrapper { width: 100%; display: flex; justify-content: center; margin-top: -35px; position: relative; z-index: 999; padding: 0 10px; }
.stats-bar { 
    background: white; width: 70%; display: grid; grid-template-columns: repeat(3, 1fr); 
    border-radius: 15px; padding: 15px; box-shadow: var(--shadow-strong); text-align: center;
}
.stat-item h2 { font-size: 1.5rem; color: var(--primary); font-weight: 800; line-height: 1; font-family: 'Inter', sans-serif; }
.stat-item p { font-size: 10px; font-weight: 700; color: #888; text-transform: uppercase; margin-top: 5px; font-family: 'Inter', sans-serif; }

/* GRID SİSTEMLERİ */
.section-padding { padding: 100px 8% 60px !important; width: 100%; }
.section-title { text-align: center; font-family: 'Dancing Script', cursive; font-size: 4.2rem; color: var(--primary); margin-bottom: 50px; }
.grid-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; width: 100%; }

/* KARTLAR (OVAL ÇERÇEVE) */
.cat-card, .product-card, .feature-box { 
    background: white; border-radius: 20px; overflow: hidden; 
    box-shadow: var(--shadow-soft); transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
    border: 1px solid #f2f2f2; display: flex; flex-direction: column; position: relative;
}
.cat-card:hover, .product-card:hover, .feature-box:hover { transform: translateY(-12px); box-shadow: var(--shadow-strong); border-color: #eee; }

.img-wrapper { width: 100%; height: 230px; overflow: hidden; position: relative; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s ease; }
.cat-card:hover .card-img, .product-card:hover .card-img { transform: scale(1.12); }
.cat-card:hover h4, .product-card:hover h3 { color: var(--primary); }

.card-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }

/* SALE BADGE (ALEV) */
.sale-badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: white; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; z-index: 10; box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4); animation: bounce 2s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* FİYAT VE OVAL BUTONLAR */
.p-footer { display: flex; flex-direction: column; gap: 12px; margin-top: 15px; border-top: 1px solid #f9f9f9; padding-top: 15px; }
.p-price-group { text-align: left; }
.old-price { font-size: 13px; color: #aaa; text-decoration: line-through; font-weight: 600; margin-bottom: 2px; }
.price-row { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.new-price { font-size: 20px; font-weight: 800; color: var(--secondary); line-height: 1.1; }
.p-unit { color: var(--primary); font-size: 12px; font-weight: 700; }

.p-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.btn-action { height: 42px; border-radius: 50px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 13px; gap: 10px; border: none; cursor: pointer; transition: 0.3s; background: var(--primary); }
.btn-wa { background: var(--secondary); }

/* KATEGORİ SEÇİCİ (kategoriler.php) - MOBİLDE IZGARA */
.category-nav-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 25px 8%; background: white; border-bottom: 1px solid #eee; position: sticky; top: 75px; z-index: 999; }
.cat-nav-item { text-decoration: none; padding: 12px 25px; border-radius: 50px; font-weight: 700; font-size: 14px; background: #f8f9fa; color: #555; border: 1px solid #eee; transition: 0.3s; }
.cat-nav-item.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 5px 15px rgba(230,126,34,0.2); }

/* FARKIMIZ */
.why-us-section { background: var(--bg-warm); padding: 100px 8%; border-top: 1px solid #f2e7de; border-bottom: 1px solid #f2e7de; }
.feature-box { padding: 45px 25px; text-align: center; }
.feature-icon { width: 75px; height: 75px; background: #fff4ed; color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 25px; font-size: 30px; transition: 0.4s; }
.feature-box:hover .feature-icon { background: var(--primary); color: white; transform: rotateY(360deg); }

/* GERİ DÖN */
.btn-back { position: absolute; top: 115px; left: 8%; z-index: 1001; background: var(--white); color: var(--dark); padding: 10px 22px; border-radius: 50px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow-soft); display: flex; align-items: center; gap: 8px; border: 1px solid #eee; }

/* MOBİL VE TABLET */
@media (max-width: 992px) {
    .menu-toggle { display: block !important; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: white; flex-direction: column; padding: 100px 30px; transition: 0.4s; box-shadow: -10px 0 30px rgba(0,0,0,0.1); }
    .nav-links.active { right: 0 !important; }
    .nav-links a { color: var(--dark) !important; text-align: center; border-bottom: 1px solid #f5f5f5; padding-bottom: 10px; }
    .nav-search-form { display: none; }
    
    .grid-container { grid-template-columns: repeat(2, 1fr) !important; gap: 15px; }
    #kategoriler .grid-container { grid-template-columns: 1fr !important; } /* ANASAYFA KATEGORİ TEK LİSTE */
    
    .stats-bar { grid-template-columns: 1fr; width: 90%; margin-top: -30px; }
    .section-title { font-size: 3rem; }
    .section-padding { padding: 80px 5% 40px !important; }
}
@media (max-width: 600px) { .grid-container { grid-template-columns: 1fr !important; } #kategoriler .grid-container { grid-template-columns: 1fr !important; } }