/* Theme: İzmir Blackberry (Böğürtlen)
 * Renk Paleti: Koyu Mor, Lila, Canlı Pembe
 * Konum: İzmir ve İlçeleri
 * Versiyon: 5.1 (Button Fix)
 */
:root {
    /* --- Ana Renk Paleti (Böğürtlen) --- */
    --card-header-bg-color:#7c43bd;
    --card-header-text-color:#fff;

    --primary-color: #4a148c;       /* Derin Mor */
    --primary-light: #7c43bd;       /* Açık Mor */
    --primary-hover: #12005e;       /* Çok Koyu Mor */
    
    --secondary-color: #c2185b;     /* Böğürtlen Pembesi */
    --secondary-hover: #8c0032;     /* Koyu Pembe */
    
    --accent-color: #ffd740;        /* Altın Sarısı */

    /* --- Arkaplan Renkleri --- */
    --bg-creamy: #f3e5f5;           /* Lila Zemin */
    --body-bg: var(--bg-creamy);    
    --card-bg: #ffffff; 
    --footer-bg: #1a0524;           /* Siyahımsı Mor */
    
    /* --- Metin Renkleri --- */
    --text-dark: #210e28;           
    --text-muted: #6a5a75;          
    
    /* --- Diğer --- */
    --border-radius: 1rem;          
    --btn-radius: 50px;             
    
    --shadow-soft: 0 10px 30px rgba(74, 20, 140, 0.08);
    --shadow-hover: 0 15px 40px rgba(74, 20, 140, 0.2);
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: linear-gradient(135deg, #f3e5f5 0%, #ffffff 50%, #f8bbd0 100%);
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .price-tag, .btn {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
}

a { text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

/* ==================== ANIMATIONS ==================== */
@keyframes floatUp {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
.animate-up { animation: floatUp 0.8s ease-out forwards; }
.hover-scale:hover { transform: scale(1.03); }

/* ==================== NAVBAR ==================== */
.navbar-sweet {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(74, 20, 140, 0.06);
    padding: 0.8rem 0;
    border-bottom: 2px solid rgba(74, 20, 140, 0.05);
}

.brand-text {
    font-family: 'Pacifico', cursive;
    font-size: 1.8rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: var(--btn-radius);
}
.nav-link:hover {
    color: var(--secondary-color) !important;
    background: rgba(194, 24, 91, 0.05);
}

.badge-count {
    background: var(--secondary-color);
    color: white;
    font-size: 0.7rem;
    position: absolute; top: -5px; right: -5px;
    width: 22px; height: 22px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid white;
}

/* ==================== MOBILE CATEGORY BUTTON ==================== */
.mobile-cat-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(74, 20, 140, 0.25);
}
.mobile-cat-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(74, 20, 140, 0.35); }

/* ==================== SIDEBAR CATEGORIES (DESKTOP) ==================== */
.category-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.6);
}
.category-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
    color: white;
    padding: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.95rem;
}
.cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.cat-link:hover {
    background: rgba(74, 20, 140, 0.03);
    color: var(--primary-color);
    padding-left: 25px;
}
.cat-link.active {
    background: linear-gradient(90deg, rgba(74, 20, 140, 0.1), transparent);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    padding: 5rem 0 7rem 0;
    background: radial-gradient(circle at top right, rgba(124, 67, 189, 0.15), transparent 50%),
                radial-gradient(circle at bottom left, rgba(194, 24, 91, 0.1), transparent 50%);
}
.hero-title {
    font-size: 3.2rem;
    background: linear-gradient(45deg, var(--primary-color), #000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==================== PRODUCT CARDS (FIXED) ==================== */
.product-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s ease;
    overflow: hidden; /* Kartın dışına taşmayı engeller */
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover) !important;
    border-color: rgba(194, 24, 91, 0.2);
}

/* Resim Alanı */
.product-img-wrapper {
    background: #fff;
    position: relative;
    overflow: hidden; /* Resim büyürken taşmasın */
}

.product-img {
    transition: transform 0.6s ease;
    width: 100%;
    height: 100%;
    object-fit: contain; 
}
.product-card:hover .product-img { transform: scale(1.1) rotate(2deg); }

.price-tag {
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 800;
}

/* Sepet Butonu Düzeltmesi */
.btn-add-floating {
    position: absolute;
    bottom: 15px !important; /* Negatif değer kaldırıldı, içeri alındı */
    right: 15px !important;
    
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-light)) !important;
    color: white !important;
    width: 42px !important; 
    height: 42px !important;
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    border-radius: 50% !important;
    border: 2px solid white !important; /* Görünürlük için beyaz çerçeve */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    z-index: 10;
    opacity: 1 !important; /* Her zaman görünür */
}

.btn-add-floating:hover { 
    transform: scale(1.15) !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    box-shadow: 0 8px 20px rgba(194, 24, 91, 0.4) !important;
}

/* ==================== BUTTONS ==================== */
.btn-sweet, .btn-theme, .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border: none;
    color: white;
    border-radius: var(--btn-radius);
    padding: 12px 30px;
    box-shadow: 0 8px 20px rgba(74, 20, 140, 0.25);
    transition: all 0.3s ease;
}
.btn-sweet:hover, .btn-theme:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(74, 20, 140, 0.35);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
}
.btn-outline-sweet {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: var(--btn-radius);
    padding: 10px 25px;
    font-weight: 700;
}
.btn-outline-sweet:hover {
    background: var(--primary-color);
    color: white;
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 4rem;
    margin-top: 5rem;
    border-radius: 50px 50px 0 0;
    border-top: 4px solid var(--secondary-color);
}
footer h5, footer h6 { color: white; }
footer a:hover { color: var(--secondary-color); padding-left: 5px; }
.social-links a:hover { background: var(--secondary-color); border-color: transparent; }

/* ==================== UTILS ==================== */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background: var(--primary-color) !important; }
.badge-trend {
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    color: white;
    z-index: 10;
}

@media (max-width: 991px) {
    .hero-title { font-size: 2.2rem; }
}

/* Card Shine */
.card-shine { position: relative; overflow: hidden; }
.card-shine::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 100%);
    transform: skewX(-25deg); transition: 0.5s;
}
.card-shine:hover::after { left: 150%; transition: 0.7s; }