:root {
    --theme-red: #d32f2f;
    --theme-red-dark: #b71c1c;
    --theme-bg: #f0f2f5;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --card-border: #e2e8f0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--theme-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--text-dark);
}

.text-theme { color: var(--theme-red) !important; }
.bg-theme { background-color: var(--theme-red) !important; }
.btn-theme { background-color: var(--theme-red); border-color: var(--theme-red); color: #fff; font-weight: 600; padding: 12px 25px; }
.btn-theme:hover { background-color: var(--theme-red-dark); border-color: var(--theme-red-dark); color: #fff; }

.navbar { box-shadow: 0 2px 10px rgba(0,0,0,0.08); padding: 15px 0; background: #fff !important; }
.navbar-brand { font-weight: 800; font-size: 1.8rem; letter-spacing: -1px; color: #111; }
.nav-link { font-weight: 600; color: #334155 !important; transition: all 0.2s; }
.nav-link:hover { color: var(--theme-red) !important; }

/* HERO BÖLÜMÜ */
.hero-wrapper {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 90px 0 130px 0;
    position: relative;
    color: #fff;
}
.hero-title { font-weight: 800; font-size: 3.5rem; line-height: 1.2; letter-spacing: -1px; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.2rem; color: #cbd5e1; font-weight: 400; max-width: 700px; margin: 0 auto; }

/* KATEGORİLER */
.premium-category-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    padding-bottom: 5px;
}

.premium-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 10px;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.premium-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

.premium-cat-img {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    margin-bottom: 12px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e2e8f0;
    transition: all 0.3s ease;
}

.premium-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.premium-category-card:hover .premium-cat-img { box-shadow: 0 0 0 2px #3b82f6; }
.premium-category-card:hover .premium-cat-img img { transform: scale(1.1); }

.premium-cat-title {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.3;
    white-space: normal;
    word-wrap: break-word;
    width: 100%;
}

/* ÜRÜN KARTLARI */
.ecommerce-product-card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    transition: all 0.2s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.ecommerce-product-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
    z-index: 2;
}
.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    border-bottom: 1px solid var(--card-border);
    background: #fff;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}
.product-image-container img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.3s ease;
}
.ecommerce-product-card:hover .product-image-container img { transform: scale(1.05); }

.product-badge-premium {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--theme-red);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}
.product-info-box {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.brand-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.product-title-premium {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ecommerce-product-card:hover .product-title-premium { color: var(--theme-red); }

.rating-stars { color: #ffc107; font-size: 0.8rem; margin-bottom: 10px; }
.rating-stars span { color: #94a3b8; margin-left: 5px; }

.price-wrapper {
    margin-top: auto;
    display: flex;
    flex-direction: column;
}
.price-old { font-size: 0.85rem; color: #94a3b8; text-decoration: line-through; margin-bottom: -3px; }
.price-new { font-size: 1.35rem; font-weight: 700; color: var(--theme-red); }

.btn-add-cart {
    background: #fff;
    color: var(--theme-red);
    border: 1px solid var(--theme-red);
    width: 100%;
    padding: 8px 0;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 15px;
    transition: all 0.2s;
}
.btn-add-cart:hover { background: var(--theme-red); color: #fff; }

/* SÜREÇ ALANI */
.process-wrapper {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    padding: 60px 40px;
    margin: 60px 0;
}
.process-icon {
    width: 70px; height: 70px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--text-dark);
    margin: 0 auto 15px auto;
    transition: all 0.3s;
}
.process-step:hover .process-icon { background: var(--theme-red); color: #fff; border-color: var(--theme-red); }

footer { border-top: 4px solid var(--theme-red) !important; }

/* BİLDİRİMLER */
.toast-notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.show {
    bottom: 90px;
    opacity: 1;
    visibility: visible;
}

.toast-notification .toast-icon {
    color: #10b981;
    font-size: 1.3rem;
}


/* =========================================================
   MOBİL CİHAZLAR İÇİN KUSURSUZ OPTİMİZASYON (@media)
   ========================================================= */
@media (max-width: 768px) {
    
    /* 1. Hero Bölümü (Yazı ve Boşluk Daraltma) */
    .hero-wrapper {
        padding: 40px 15px 60px 15px; /* Devasa boşluklar alındı */
    }
    .hero-title {
        font-size: 2rem; /* Başlık küçültüldü */
        margin-bottom: 15px;
    }
    .hero-subtitle {
        font-size: 0.95rem; /* Alt metin küçültüldü */
        padding: 0 10px;
    }

    /* 2. Popüler Kategoriler */
    .premium-category-container {
        grid-template-columns: repeat(3, 1fr); /* Mobilde yan yana 3 tane daha şık durur */
        gap: 10px;
    }
    .premium-category-card {
        padding: 12px 5px;
        border-radius: 12px;
    }
    .premium-cat-img {
        width: 70px; /* Görseller mobilde küçültüldü */
        height: 70px;
        margin-bottom: 8px;
    }
    .premium-cat-title {
        font-size: 0.75rem;
        display: block;
    }

    /* 3. Ürün Kartları (Üst Üste Binme Sorunu Çözümü) */
    .product-info-box {
        padding: 10px;
    }
    /* Kategori Rozeti (Sol Üst) */
    .product-badge-premium {
        top: 5px;
        left: 5px;
        font-size: 0.6rem;
        padding: 3px 6px;
    }
    /* Fırsat Ürünü Rozeti (Sağ Üst - Bootstrap classları ezildi) */
    .position-absolute.top-0.end-0.m-2 {
        margin: 5px !important; 
    }
    .badge.bg-danger {
        font-size: 0.6rem !important;
        padding: 3px 6px !important;
    }
    /* Ürün Başlıkları ve Fiyatları */
    .product-title-premium {
        font-size: 0.85rem; /* Uzun isimler taşıp çirkin durmasın diye */
        margin-bottom: 5px;
    }
    .rating-stars {
        font-size: 0.7rem;
        margin-bottom: 5px;
    }
    .price-new {
        font-size: 1.15rem; /* Fiyat punto ayarı */
    }
    .price-old {
        font-size: 0.75rem;
    }
    
    /* 4. E-Ticaret İşleyiş (Güvenlik Adımları) */
    .process-wrapper {
        padding: 30px 15px; /* Kutu içi gereksiz boşluklar daraltıldı */
        margin: 30px 0;
    }
    .process-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    .process-step h6 {
        font-size: 0.9rem;
    }
    .process-step small {
        font-size: 0.75rem;
    }

    /* 5. Genel Elementler */
    .navbar-brand {
        font-size: 1.4rem;
    }
    .btn-theme {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* Çok çok dar ekranlı eski telefonlar için (iPhone SE vb.) */
@media (max-width: 400px) {
    .premium-category-container {
        grid-template-columns: repeat(2, 1fr); /* Sığmazsa yan yana 2 tane dizilir */
    }
}