:root {
    --primary: #c0392b; /* Kurumsal Kırmızı */
    --success: #27ae60; /* Kurumsal Yeşil */
    --bg-color: #f5f6fa;
    --text-dark: #111111; /* Siyah */
    --card-bg: #ffffff;
    --border: #e1e8ed;
}
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: var(--bg-color); margin: 0; color: var(--text-dark); }

/* Merkez Konteyner (Desktop için Profesyonel Genişlik Sınırı) */
.container { max-width: 1200px; margin: 0 auto; width: 100%; box-sizing: border-box; padding: 0 20px; }

/* Üst Menü (Navbar) */
.navbar { background: var(--card-bg); padding: 15px 0; border-bottom: 2px solid var(--primary); position: sticky; top: 0; z-index: 100; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.brand { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin: 0; }
.nav-actions { display: flex; gap: 15px; align-items: center; }
.nav-address-picker { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 12px; border-radius: 4px; background: var(--bg-color); transition: background 0.2s; border: 1px solid var(--border); max-width: 250px; }
.nav-address-picker:hover { background: #eef2f5; }
.nav-address-info { display: flex; flex-direction: column; overflow: hidden; }
.nav-address-title { font-weight: 700; font-size: 0.85rem; color: var(--primary); }
.nav-address-desc { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dashboard-card { background: var(--bg-color); border: 1px solid var(--border); border-radius: 4px; padding: 20px; text-align: center; cursor: pointer; transition: border-color 0.2s; }
.dashboard-card:hover { border-color: var(--primary); }
.dashboard-card h4 { margin: 10px 0 5px 0; color: var(--text-dark); }
.dashboard-card p { margin: 0; font-size: 0.85rem; color: #7f8c8d; }
.nav-btn { background: none; border: 1px solid var(--primary); color: var(--primary); padding: 8px 15px; border-radius: 4px; font-weight: 600; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 6px; }
.nav-btn:hover { background: var(--primary); color: white; }
.nav-btn.filled { background: var(--primary); color: white; }

/* Kampanya Slider Alanı */
.slider-container { position: relative; width: 100%; overflow: hidden; border-radius: 8px; margin-top: 20px; margin-bottom: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); background-color: #eee; }
.slider-track { display: flex; transition: transform 0.5s ease-in-out; }
.slide { min-width: 100%; position: relative; }
.slide img { width: 100%; height: 380px; object-fit: cover; display: block; }
.slide-content { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: white; padding: 60px 20px 20px; box-sizing: border-box; text-align: left; }
.slide-content h2 { margin: 0 0 8px; font-size: 2.2rem; font-weight: 800; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.slide-content p { margin: 0; font-size: 1.1rem; font-weight: 500; text-shadow: 0 2px 4px rgba(0,0,0,0.8); opacity: 0.9; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.4); color: white; border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; z-index: 10; transition: background 0.3s; }
.slider-btn:hover { background: var(--primary); }
.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }
.slider-dots { position: absolute; bottom: 15px; width: 100%; text-align: right; padding-right: 20px; z-index: 10; box-sizing: border-box; }
.dot { display: inline-block; width: 10px; height: 10px; margin: 0 4px; background: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; transition: 0.3s; }
.dot.active { background: var(--primary); width: 25px; border-radius: 10px; }

/* Dükkan Bilgi Çubuğu */
.shop-info-bar { display: flex; flex-wrap: wrap; gap: 15px; background: #fff3cd; border: 1px solid #ffe69c; color: #856404; padding: 15px 20px; border-radius: 4px; margin-bottom: 25px; align-items: center; justify-content: space-around; }
.info-item { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; }
.info-item svg { color: #d39e00; }

/* Arama Çubuğu */
.search-container { padding: 0 0 15px 0; }
.search-box { display: flex; align-items: center; background: var(--card-bg); border: 1px solid var(--border); border-radius: 4px; padding: 14px 18px; gap: 10px; transition: border-color 0.2s; }
.search-box:focus-within { border-color: var(--primary); }
.search-box input { border: none; outline: none; width: 100%; font-size: 1.05rem; color: var(--text-dark); background: transparent; font-family: inherit; }
.search-box input::placeholder { color: #a4b0be; }

/* Kategoriler */
.categories { display: flex; gap: 10px; overflow-x: auto; padding: 0 0 25px 0; margin-bottom: 10px; }
.categories::-webkit-scrollbar { display: none; }
.cat-pill { padding: 10px 20px; background: var(--card-bg); border-radius: 4px; font-weight: bold; white-space: nowrap; border: 1px solid var(--border); cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.cat-pill:hover { border-color: var(--primary); }
.cat-pill.active { border-color: var(--primary); color: var(--primary); }

/* Ürün Listesi */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; padding: 0 0 80px 0; }
.product-card { background: var(--card-bg); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.2s; border: 1px solid var(--border); }
.product-card:hover { border-color: var(--primary); }
.product-img { width: 100%; height: 180px; object-fit: cover; background-color: #eee; border-bottom: 1px solid rgba(0,0,0,0.05); }
.product-info { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-title { font-weight: 700; font-size: 1.15rem; margin-bottom: 8px; flex: 1; color: var(--text-dark); line-height: 1.3; }
.product-price { color: var(--success); font-weight: 800; font-size: 1.3rem; }
.add-btn { margin-top: 15px; background: white; color: var(--success); border: 1px solid var(--success); padding: 12px; border-radius: 4px; font-weight: bold; font-size: 1rem; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.add-btn:hover { background: var(--success); color: white; }

/* Modallar (Auth & Profil) */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; }
.modal-box { background: white; width: 90%; max-width: 400px; border-radius: 4px; overflow: hidden; position: relative; border: 1px solid var(--border); }
.close-btn { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* Auth Form Stilleri */
.auth-tabs { display: flex; border-bottom: 1px solid var(--border); }
.auth-tab { flex: 1; text-align: center; padding: 15px; font-weight: bold; color: #7f8c8d; cursor: pointer; }
.auth-tab.active { color: var(--primary); border-bottom: 2px solid var(--primary); }
.auth-form { padding: 25px; display: none; }
.auth-form.active { display: block; }
.input-box { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid var(--border); border-radius: 4px; box-sizing: border-box; font-family: inherit; outline: none; transition: border-color 0.2s; }
.input-box:focus { border-color: var(--primary); }
.action-btn { width: 100%; padding: 14px; background: var(--primary); color: white; border: none; border-radius: 4px; font-weight: bold; font-size: 1.1rem; cursor: pointer; transition: opacity 0.2s; }
.action-btn:hover { opacity: 0.9; }

/* Profil Menüsü Stilleri */
.profile-menu { padding: 20px; }
.profile-menu h3 { margin-top: 0; border-bottom: 1px solid var(--border); padding-bottom: 10px; display: flex; align-items: center; gap: 8px; color: var(--text-dark); }
.menu-item { display: block; width: 100%; text-align: left; padding: 15px; background: var(--bg-color); border: 1px solid var(--border); margin-bottom: 10px; border-radius: 4px; font-weight: bold; font-size: 1rem; cursor: pointer; }
.menu-item:hover { background: var(--border); }

/* Modern Sepet Tasarımı */
.cart-item-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--border); }
.cart-item-row:last-child { border-bottom: none; }
.cart-item-info { flex: 1; padding-right: 15px; }
.cart-item-title { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.cart-item-qty-control { display: inline-flex; align-items: center; background: var(--card-bg); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.cart-item-qty-control button { border: none; background: transparent; padding: 4px 10px; cursor: pointer; font-weight: bold; color: var(--text-dark); font-size: 1.1rem; transition: background 0.2s; display: flex; align-items: center; justify-content: center; }
.cart-item-qty-control button:hover { background: #eef2f5; }
.cart-item-qty-control span { font-weight: bold; font-size: 0.95rem; min-width: 24px; text-align: center; }
.cart-item-details { font-size: 0.85rem; color: #555; display: flex; flex-direction: column; gap: 3px; margin-top: 5px; }
.cart-item-price-wrap { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-item-price { font-size: 1.1rem; font-weight: 800; color: var(--text-dark); }
.cart-delete-btn { background: white; color: var(--primary); border: 1px solid var(--primary); padding: 4px 8px; border-radius: 4px; cursor: pointer; font-size: 0.85rem; font-weight: bold; display: flex; align-items: center; gap: 5px; transition: 0.2s; }
.cart-delete-btn:hover { background: #ff7675; color: white; }
.cart-summary-box { background: var(--bg-color); border-radius: 4px; padding: 15px; margin-top: 15px; border: 1px solid var(--border); }
.modern-select { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 4px; font-size: 0.95rem; color: var(--text-dark); background: white; margin-top: 5px; font-weight: 600; outline: none; transition: border-color 0.2s; appearance: none; background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%237f8c8d%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 15px top 50%; background-size: 12px auto; }
.modern-select:focus { border-color: var(--primary); }
.cart-label { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* Sipariş Takip Çubuğu (Order Tracker) */
.order-tracker { display: flex; justify-content: space-between; position: relative; margin: 20px 0 20px 0; }
.order-tracker::before { content: ''; position: absolute; top: 15px; left: 12.5%; right: 12.5%; height: 4px; background: #e1e8ed; z-index: 1; border-radius: 2px; }
.tracker-progress { position: absolute; top: 15px; left: 12.5%; height: 4px; background: var(--success); z-index: 1; transition: width 0.5s ease; border-radius: 2px; max-width: 75%; }
.tracker-step { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 25%; }
.step-icon { width: 34px; height: 34px; border-radius: 50%; background: #e1e8ed; color: #a4b0be; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: 0.3s; border: 4px solid #fff; box-sizing: content-box; }
.step-text { font-size: 0.75rem; font-weight: 700; color: #a4b0be; text-align: center; line-height: 1.1; }

.tracker-step.completed .step-icon { background: var(--success); color: white; border-color: #fff; }
.tracker-step.completed .step-text { color: var(--success); }

.tracker-step.active .step-icon { background: var(--primary); color: white; box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.2); animation: pulse 2s infinite; }
.tracker-step.active .step-text { color: var(--primary); font-weight: 800; }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.4); } 70% { box-shadow: 0 0 0 6px rgba(192, 57, 43, 0); } 100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0); } }

/* Yıldız Değerlendirme Sistemi */
.star-rating { display: flex; flex-direction: row-reverse; justify-content: center; gap: 8px; margin-top: 15px; }
.star-rating input { display: none; }
.star-rating label { font-size: 2.8rem; color: #e1e8ed; cursor: pointer; transition: color 0.2s; line-height: 1; }
.star-rating input:checked ~ label, .star-rating label:hover, .star-rating label:hover ~ label { color: #f1c40f; }
.review-text { width: 100%; height: 80px; padding: 12px; margin-top: 15px; border: 1px solid var(--border); border-radius: 4px; resize: vertical; font-family: inherit; font-size: 0.95rem; box-sizing: border-box; }
.btn-rate { background: #f1c40f; color: #856404; border: 1px solid #ffe69c; padding: 10px; border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; transition: 0.2s; }
.btn-rate:hover { background: #f39c12; color: white; border-color: #f39c12; }

/* Tükendi (Out of Stock) Görünümü */
.out-of-stock { opacity: 0.6; filter: grayscale(80%); pointer-events: none; border-color: #bdc3c7; }
.out-of-stock .product-title { color: #7f8c8d; text-decoration: line-through; }
.out-of-stock .product-price { color: #7f8c8d; }
.out-of-stock .add-btn { background: #95a5a6; border-color: #95a5a6; color: white; }

/* Hakkımızda Bölümü */
.about-section { background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 40px 20px; margin-top: 10px; margin-bottom: 40px; text-align: center; position: relative; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.about-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--primary); }
.about-section h2 { color: var(--primary); margin-top: 0; margin-bottom: 15px; font-size: 1.8rem; font-weight: 800; }
.about-section p { color: #555; font-size: 1.05rem; line-height: 1.6; max-width: 800px; margin: 0 auto; }

/* WhatsApp Yüzen Buton Tasarımı */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background-color 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); background-color: #1da851; }

@media (max-width: 768px) {
    .container { padding: 0 15px; }
    .hide-mobile { display: none; }
    .nav-address-picker { max-width: 140px; padding: 5px; gap: 5px; }
    .nav-address-title { font-size: 0.8rem; }
    .nav-address-desc { font-size: 0.7rem; }
    .nav-actions { gap: 8px; }
    .nav-btn { padding: 8px; font-size: 0.9rem; }
    
    /* Mobilde Görünümü Yeniden Sıkıştır */
    .slider-container { margin-top: 10px; margin-bottom: 20px; border-radius: 4px; }
    .slide img { height: 220px; }
    .slide-content { padding: 40px 15px 15px; }
    .slide-content h2 { font-size: 1.6rem; }
    .slide-content p { font-size: 0.9rem; }
    .slider-btn { width: 35px; height: 35px; font-size: 1rem; }
    .shop-info-bar { flex-direction: column; align-items: flex-start; padding: 12px 15px; margin-bottom: 20px; gap: 10px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
    .product-img { height: 130px; }
    .product-info { padding: 12px; }
    .product-title { font-size: 1rem; margin-bottom: 5px; }
    .product-price { font-size: 1.1rem; }
    .add-btn { padding: 10px; font-size: 0.9rem; margin-top: 10px; }
    
    /* Hakkımızda Mobil Ayarı */
    .about-section { padding: 25px 15px; margin-bottom: 20px; }
    .about-section h2 { font-size: 1.5rem; }
    .about-section p { font-size: 0.95rem; text-align: justify; }

    /* WhatsApp Butonu Mobil Ayarı */
    .whatsapp-float { width: 55px; height: 55px; bottom: 20px; right: 20px; }
    .whatsapp-float svg { width: 30px; height: 30px; }
}