/* ============================================================
   NURTENYA — ÜRÜNLER.CSS  (Modern Versiyon)
   ============================================================ */

/* ── SAYFA BANNER ── */
.urun-banner {
    background: linear-gradient(135deg, #228B22, #2fa52f);
    padding: 40px 0 50px;
    position: relative;
    overflow: hidden;
}
.urun-banner::before {
    content: '';
    position: absolute; top: -60px; right: -60px;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.urun-banner::after {
    content: '';
    position: absolute; bottom: -40px; left: -40px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}
.urun-banner-icerik {
    position: relative; z-index: 1;
    text-align: center;
}
.urun-banner h1 {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 900; color: #fff;
    margin-bottom: 10px;
}
.urun-banner p {
    font-size: 15px; color: rgba(255,255,255,0.8);
    line-height: 1.6; max-width: 600px; margin: 0 auto 24px;
}

/* Avantaj çubukları */
.urun-avantaj-grid {
    display: flex; gap: 14px; justify-content: center;
    flex-wrap: wrap; margin-top: 20px;
}
.urun-avantaj {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff; font-size: 12px; font-weight: 700;
    padding: 8px 18px; border-radius: 50px;
    display: flex; align-items: center; gap: 6px;
}

/* ── ARAMA + FİLTRE ── */
.urun-arama-section {
    background: #fff;
    padding: 20px 0;
    position: sticky; top: 90px; z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-bottom: 1px solid #f0f0f0;
}
.urun-arama-icerik {
    display: flex; gap: 16px; align-items: center;
    flex-wrap: wrap;
}
.urun-arama-input-wrap {
    flex: 1; min-width: 200px; position: relative;
}
.urun-arama-icon {
    position: absolute; left: 16px; top: 50%;
    transform: translateY(-50%);
    font-size: 16px; color: #aaa; pointer-events: none;
}
.urun-arama-input {
    width: 100%; padding: 13px 16px 13px 46px;
    border: 2px solid #e8f5e8;
    border-radius: 14px;
    font-size: 14px; font-family: Arial, sans-serif;
    background: #f9fff9; outline: none;
    transition: 0.25s;
}
.urun-arama-input:focus { border-color: #228B22; background: #fff; box-shadow: 0 0 0 4px rgba(34,139,34,0.08); }

.urun-filtre-grid {
    display: flex; gap: 8px; flex-wrap: wrap;
}
.urun-filtre-btn {
    padding: 10px 18px; border-radius: 50px;
    border: 2px solid #e0e0e0;
    background: #fff; color: #555;
    font-size: 12px; font-weight: 700;
    cursor: pointer; transition: 0.2s;
    white-space: nowrap;
}
.urun-filtre-btn:hover { border-color: #228B22; color: #228B22; }
.urun-filtre-btn.aktif { background: #228B22; border-color: #228B22; color: #fff; }

#sonucBulunamadi {
    display: none; text-align: center;
    color: #d9534f; font-weight: 700;
    padding: 12px; font-size: 14px;
}

/* ── KATEGORİ BAŞLIĞI ── */
.urun-kategori-baslik {
    display: flex; align-items: center; gap: 14px;
    margin: 40px 0 24px;
}
.urun-kategori-baslik h2 {
    font-size: 22px; font-weight: 900; color: #111;
    white-space: nowrap;
}
.urun-kategori-cizgi {
    flex: 1; height: 2px;
    background: linear-gradient(90deg, #228B22, transparent);
    border-radius: 1px;
}
.urun-kategori-sayi {
    background: #228B22; color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 4px 12px; border-radius: 50px;
    white-space: nowrap;
}

/* ── ÜRÜN GRİDİ ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

/* ── ÜRÜN KARTI ── */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid #eef5ee;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
    display: flex; flex-direction: column;
    position: relative;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(34,139,34,0.12);
    border-color: rgba(34,139,34,0.3);
}

/* İndirim rozeti */
.product-card::before {
    content: 'Üye İndirimi';
    position: absolute; top: 10px; left: 10px;
    background: var(--pink); color: #fff;
    font-size: 10px; font-weight: 800;
    padding: 3px 10px; border-radius: 50px;
    z-index: 2; letter-spacing: 0.03em;
}

/* Görsel */
.product-image-wrap {
    background: linear-gradient(160deg, #f0fff0 0%, #e8f8e8 100%);
    padding: 16px;
    display: flex; justify-content: center; align-items: center;
    height: 140px;
    border-bottom: 1px solid #eef5ee;
}
.product-img {
    max-width: 100%; max-height: 110px;
    object-fit: contain; display: block;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}
.product-img:hover { transform: scale(1.08); }
.product-img.zoom {
    transform: scale(2.2);
    z-index: 100; position: relative;
    cursor: zoom-out;
}

/* İçerik */
.product-content { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.product-title {
    font-size: 12px; font-weight: 700; color: #111;
    line-height: 1.45; margin-bottom: 10px; flex: 1;
}

/* Fiyat */
.product-price {
    background: #f4fff4;
    border: 1px solid #d8f5b8;
    border-radius: 10px; padding: 8px 10px;
    margin-bottom: 10px;
}
.new-price {
    font-size: 12px; font-weight: 800; color: #228B22;
    display: block; margin-bottom: 3px;
}
.old-price {
    font-size: 12px; color: #aaa;
    text-decoration: line-through; display: block;
}

/* Sepet butonu */
.product-toggle {
    width: 100%;
    background: linear-gradient(135deg, #228B22, #2a9a2a);
    color: #fff; border: none;
    border-radius: 10px; padding: 10px;
    font-size: 12px; font-weight: 700;
    cursor: pointer; transition: 0.25s;
    font-family: Arial, sans-serif;
}
.product-toggle:hover { background: linear-gradient(135deg, #1a6b1a, #228B22); transform: translateY(-1px); }
.product-toggle:active { transform: scale(0.98); }

/* ── SEPET İKONU ── */
.cart-icon-wrapper {
    position: fixed; bottom: 28px; right: 28px;
    background: linear-gradient(135deg, var(--pink), #d4046a);
    width: 62px; height: 62px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 24px rgba(252,5,124,0.4);
    cursor: pointer; z-index: 9999;
    border: 3px solid #fff;
    transition: transform 0.25s;
}
.cart-icon-wrapper:hover { transform: scale(1.08); }
.cart-i { font-size: 26px; font-style: normal; }
.cart-count {
    position: absolute; top: -4px; right: -4px;
    background: #111; color: #fff;
    border-radius: 50%; min-width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800;
    border: 2px solid #fff;
}

/* ── SEPET PANELİ ── */
.cart-panel {
    position: fixed; right: 20px; top: 100px;
    width: 340px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 50px rgba(0,0,0,0.15);
    display: none; flex-direction: column;
    z-index: 1000; overflow: hidden;
    border: 1px solid #eee;
}
.cart-header {
    background: linear-gradient(135deg, #228B22, #2fa52f);
    color: #fff; padding: 16px 18px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 8px;
}
.cart-title { font-size: 15px; font-weight: 800; flex: 1; }
.cart-items { max-height: 240px; overflow-y: auto; padding: 12px; }
.empty-msg { color: #bbb; text-align: center; padding: 16px; font-size: 13px; }

.cart-footer { border-top: 1px solid #f0f0f0; }
.total-price { padding: 12px 16px; font-weight: 800; font-size: 15px; color: #111; }

.order-form { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.order-form input,
.order-form textarea {
    border: 1.5px solid #e0e0e0; border-radius: 10px;
    padding: 10px 12px;
    font-family: Arial, sans-serif; font-size: 13px;
    outline: none; transition: 0.2s;
}
.order-form input:focus,
.order-form textarea:focus { border-color: #228B22; }

.btn-whatsapp-order {
    background: linear-gradient(135deg, #25D366, #1da851);
    color: #fff; border: none; border-radius: 12px;
    padding: 13px; font-weight: 800; font-size: 14px;
    cursor: pointer; transition: 0.25s;
    font-family: Arial, sans-serif;
}
.btn-whatsapp-order:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.3); }

/* ── EKLE BİLDİRİMİ ── */
.sepet-bildirim {
    position: fixed; top: 110px; right: 20px;
    background: #228B22; color: #fff;
    padding: 12px 20px; border-radius: 12px;
    font-size: 13px; font-weight: 700;
    box-shadow: 0 6px 24px rgba(34,139,34,0.3);
    z-index: 9999; opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none; max-width: 260px;
}
.sepet-bildirim.goster { opacity: 1; transform: translateX(0); }

/* ── MOBİL ── */
@media (max-width: 1200px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 992px)  { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .cart-panel   { width: calc(100% - 32px); right: 16px; }
    .urun-arama-icerik { flex-direction: column; }
    .urun-arama-input-wrap { width: 100%; }
    .urun-arama-section { top: 90px; }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-image-wrap { height: 110px; }
}
