/* --- TEMEL AYARLAR --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #f5f6f8; color: #333; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
a { text-decoration: none; color: inherit; }

/* --- HEADER (ÜST BİLGİ) --- */
.main-header { background-color: #ffffff; border-bottom: 1px solid #e1e1e1; }
.header-container { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }

.logo h1 { font-size: 28px; color: #2e3a59; }
.logo h1 span { color: #00b14f; }

.search-box { display: flex; flex: 0 1 500px; border: 2px solid #00b14f; border-radius: 8px; overflow: hidden; }
.search-box input { flex: 1; padding: 12px 15px; border: none; outline: none; font-size: 14px; }
.search-box button { background-color: #00b14f; color: white; border: none; padding: 0 25px; cursor: pointer; font-weight: bold; font-size: 15px; transition: background 0.3s ease; }
.search-box button:hover { background-color: #008a3d; }

.user-actions { display: flex; gap: 25px; }
.action-item { display: flex; flex-direction: column; align-items: center; font-size: 13px; color: #555; position: relative; transition: color 0.3s ease; }
.action-item i { font-size: 20px; margin-bottom: 5px; color: #2e3a59; }
.action-item:hover, .action-item:hover i { color: #00b14f; }

.cart-badge { position: absolute; top: -5px; right: 5px; background-color: #e74c3c; color: white; font-size: 10px; font-weight: bold; padding: 2px 6px; border-radius: 50%; }

/* --- KATEGORİ MENÜSÜ --- */
.category-nav { background-color: #2e3a59; }
.category-nav ul { list-style: none; display: flex; gap: 30px; }
.category-nav ul li a { display: block; padding: 15px 0; color: white; font-size: 14px; font-weight: 500; transition: color 0.3s ease; }
.category-nav ul li a:hover { color: #00b14f; }
.category-nav ul li:first-child a { font-weight: bold; }

/* --- SLIDER ALANI --- */
.hero-slider { position: relative; margin-top: 20px; border-radius: 10px; overflow: hidden; height: 400px; }
.slider-wrapper { position: relative; width: 100%; height: 100%; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease-in-out; }
.slide.active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.8); border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; cursor: pointer; z-index: 2; color: #333; transition: background 0.3s; }
.slider-btn:hover { background: #fff; }
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

.slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; background: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; }
.dot.active { background: #fff; }

/* --- GÜNÜN FIRSATLARI & ÜRÜN KARTLARI --- */
.daily-deals { margin-top: 40px; margin-bottom: 40px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 2px solid #e1e1e1; padding-bottom: 10px; }
.section-header h2 { color: #2e3a59; font-size: 22px; }
.view-all { color: #00b14f; font-weight: 600; font-size: 14px; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product-card { background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; transition: box-shadow 0.3s ease, transform 0.3s ease; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.1); transform: translateY(-5px); }

.product-image { position: relative; width: 100%; height: 220px; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.discount-badge { position: absolute; top: 10px; right: 10px; background: #e74c3c; color: #fff; font-size: 12px; font-weight: bold; padding: 4px 8px; border-radius: 4px; }

.product-info { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.product-title { font-size: 14px; color: #333; font-weight: normal; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 40px; }
.product-rating { color: #f39c12; font-size: 12px; margin-bottom: 10px; }
.product-rating span { color: #999; margin-left: 5px; }
.product-price { margin-bottom: 15px; margin-top: auto; }
.old-price { text-decoration: line-through; color: #999; font-size: 13px; margin-right: 5px; }
.new-price { color: #00b14f; font-size: 18px; font-weight: bold; }

.add-to-cart-btn { width: 100%; padding: 10px; background: #fff; border: 1px solid #00b14f; color: #00b14f; border-radius: 4px; font-weight: bold; cursor: pointer; transition: all 0.3s ease; }
.product-card:hover .add-to-cart-btn { background: #00b14f; color: #fff; }
/* --- FOOTER (ALT BİLGİ) --- */
.main-footer {
    background-color: #2e3a59;
    color: #fff;
    padding-top: 60px;
    margin-top: 60px;
}

.footer-container {
    display: grid;
    /* Mobilde alt alta, bilgisayarda 4 sütun yan yana dizilir */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: #00b14f; /* Çiçeksepeti yeşili vurgu */
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #b3b9c5; /* Açık gri/mavi tonu, okunabilirliği yüksek */
    font-size: 14px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 5px; /* Üzerine gelince hafif sağa kayma efekti */
}

/* Sosyal Medya İkonları */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: #455375;
    border-radius: 50%;
    color: #fff;
    transition: background 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    background-color: #00b14f;
    transform: translateY(-3px);
}

/* Mobil Uygulama Butonları */
.app-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-links a {
    display: inline-block;
    background-color: #1c253d;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.3s ease;
    border: 1px solid #455375;
}

.app-links a i {
    margin-right: 10px;
    font-size: 18px;
    vertical-align: middle;
}

.app-links a:hover {
    background-color: #00b14f;
    border-color: #00b14f;
}

/* Alt Bar (Copyright & Ödeme Logoları) */
.footer-bottom {
    background-color: #1c253d; /* Ana footer'dan bir tık daha koyu */
    padding: 25px 0;
    border-top: 1px solid #455375;
}

.bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Mobilde alta kayması için */
    gap: 20px;
}

.copyright {
    color: #8b95a8;
    font-size: 13px;
}

.payment-logos {
    display: flex;
    gap: 15px;
    font-size: 32px;
    color: #b3b9c5;
}
/* --- POPUP (MODAL) --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Arka planı koyulaştırır */
    z-index: 9999; /* En üstte durmasını sağlar */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Popup aktif olduğunda */
.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: #fff;
    width: 90%;
    max-width: 450px;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(-50px) scale(0.9); /* Başlangıç pozisyonu (yukarıda ve biraz küçük) */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Tatlı bir yaylanma efekti */
}

/* Popup aktif olduğunda içeriğin animasyonu */
.popup-overlay.active .popup-content {
    transform: translateY(0) scale(1);
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: #e74c3c;
}

.popup-icon {
    font-size: 50px;
    color: #f39c12; /* İnşaat/Uyarı sarısı */
    margin-bottom: 20px;
    animation: bounceIcon 2s infinite; /* İkona sürekli bir animasyon */
}

@keyframes bounceIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.popup-content h3 {
    color: #2e3a59;
    font-size: 22px;
    margin-bottom: 15px;
}

.popup-content p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.popup-btn {
    background-color: #00b14f;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.popup-btn:hover {
    background-color: #008a3d;
}