/* ============================================
   GENEL STİLLER
   ============================================ */
:root {
    --pink: #F7C6CF;        /* ana toz pembe */
    --pink-soft: #FDE4E8;   /* çok açık arka plan */
    --pink-soft-2: #FAD3DA; /* kart/section */
    --accent: #C97A8B;     /* buton, vurgu */
    --text: #222;
    --muted: #777;
    --border: rgba(0,0,0,0.12);
}



html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    margin-bottom: 60px;
    color: var(--text);
}

/* Fokus (mavi yok, pembe) */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(255,192,203,0.65);
}

/* Linkler (siyah, hover bordo) */
a {
    color: var(--text);
    text-decoration: none;
}

    a:hover {
        color: var(--accent);
    }

/* ============================================
   HEADER (Toz Pembe)
   ============================================ */
.site-header {
    background-color: var(--pink);
    color: #000;
    padding: 15px 0;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: .2px;
    color: #000;
    text-decoration: none;
    flex: 0 0 auto;
}

    .site-logo:hover {
        color: #000;
    }

.header-search {
    flex: 1;
    max-width: 520px;
    margin: 0 30px;
}

    .header-search input {
        width: 100%;
        padding: 10px 14px;
        border: 1px solid var(--border);
        border-radius: 10px;
        background-color: rgba(255,255,255,0.85);
        color: #000;
    }

        .header-search input:focus {
            outline: none;
            border-color: rgba(176,0,42,0.35);
            box-shadow: 0 0 0 3px rgba(176,0,42,0.12);
            background-color: #fff;
        }

.header-links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

    /* Header içi normal linkler (Çıkış, Siparişlerim vs.) */
    .header-links a {
        color: #111;
        font-size: 14px;
        padding: 7px 10px;
        border-radius: 10px;
        transition: background-color .2s ease, color .2s ease, border-color .2s ease;
        font-weight: 600;
    }

        .header-links a:hover {
            color: #000;
            background: rgba(255,255,255,0.45);
        }

        /* Header içi buton gibi görünenler (Sepetim vb.) */
        .header-links a.btn,
        .header-links .btn {
            border: 1px solid rgba(176,0,42,0.6) !important;
            background: rgba(255,255,255,0.9) !important;
            color: var(--accent) !important;
            border-radius: 999px !important;
            padding: 7px 14px !important;
            font-weight: 800 !important;
        }

            .header-links a.btn:hover,
            .header-links .btn:hover {
                background: var(--accent) !important;
                color: #fff !important;
            }

/* ============================================
   ANA İÇERİK ALANI
   ============================================ */
.main-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    width: 250px;
    background-color: #fff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex-shrink: 0;
    height: fit-content;
    border: 1px solid rgba(0,0,0,0.04);
}

    .sidebar h3 {
        margin-top: 0;
        margin-bottom: 15px;
        font-size: 18px;
        color: #111;
        border-bottom: 2px solid #f0f0f0;
        padding-bottom: 10px;
        font-weight: 800;
    }

.category-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .category-menu li {
        margin-bottom: 8px;
    }

    .category-menu a {
        display: block;
        padding: 12px 14px;
        color: #222;
        border-radius: 12px;
        transition: all 0.2s ease;
        border: 1px solid transparent;
        font-weight: 600;
    }

        .category-menu a:hover {
            background-color: var(--pink-soft);
            color: var(--accent);
            border-color: #ffe1e8;
        }

        .category-menu a.active {
            background-color: var(--pink-soft-2);
            color: var(--accent);
            border-color: rgba(255,192,203,0.9);
            font-weight: 800;
        }

/* ============================================
   İÇERİK ALANI
   ============================================ */
.content-area {
    flex: 1;
    min-width: 0;
}

/* Başlıklar daha premium */
h1, h2, h3, h4 {
    color: #111;
    font-weight: 900;
}

/* ============================================
   ÜRÜN KARTLARI
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background-color: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.12);
    }

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.03);
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 16px;
    font-weight: 800;
    color: #111;
    margin-bottom: 8px;
}

.product-price {
    font-size: 20px;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 10px;
}

.product-description {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-actions {
    display: flex;
    gap: 10px;
}

/* Butonlar */
.btn-add-cart, .btn-quick-order {
    flex: 1;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    transition: transform .15s ease, background-color 0.2s ease, border-color .2s ease;
    font-weight: 800;
}

.btn-add-cart {
    background-color: #f3f3f3;
    color: #111;
    border-color: rgba(0,0,0,0.06);
}

    .btn-add-cart:hover {
        background-color: #eaeaea;
        transform: translateY(-1px);
    }

/* Hızlı Sipariş: bordo (ana CTA) */
.btn-quick-order {
    background-color: var(--accent);
    color: #fff;
}

    .btn-quick-order:hover {
        background-color: #8e0022;
        transform: translateY(-1px);
    }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background-color: var(--pink);
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 30px 20px;
    margin-top: 40px;
    color: #111;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

    .footer-links a {
        color: #111;
        font-size: 14px;
        padding: 6px 10px;
        border-radius: 10px;
        transition: background-color .2s ease, color .2s ease;
        font-weight: 700;
    }

        .footer-links a:hover {
            background: rgba(255,255,255,0.45);
            color: var(--accent);
        }

.footer-copyright {
    text-align: center;
    margin-top: 20px;
    color: rgba(0,0,0,0.65);
    font-size: 12px;
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 999px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .whatsapp-float:hover {
        transform: scale(1.06);
        box-shadow: 0 12px 24px rgba(0,0,0,0.22);
        color: #fff;
    }

    .whatsapp-float svg {
        width: 35px;
        height: 35px;
        fill: #fff;
    }

/* ============================================
   FORM STİLLERİ
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        margin-bottom: 6px;
        font-weight: 800;
        color: #111;
    }

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 10px;
    font-size: 14px;
}

    .form-control:focus {
        border-color: rgba(176,0,42,0.35);
        outline: none;
        box-shadow: 0 0 0 3px rgba(176,0,42,0.12);
    }

/* ============================================
   ADMIN PANEL STİLLERİ (dokunmadım)
   ============================================ */
.admin-header {
    background-color: #333;
    color: #fff;
    padding: 15px 20px;
    margin: -20px -20px 20px -20px;
    border-radius: 8px 8px 0 0;
}

.table-responsive {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 12px;
    }

    .header-search {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .main-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

        .whatsapp-float svg {
            width: 28px;
            height: 28px;
        }
}

/* ============================================
   BOOTSTRAP MAVİ OVERRIDE (fix)
   ============================================ */
.btn-primary {
    color: #000 !important;
    background-color: var(--pink) !important;
    border-color: var(--pink) !important;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: #000 !important;
    background-color: var(--pink) !important;
    border-color: var(--pink) !important;
}
/* ===============================
   GLOBAL LINK RENGİ FIX
   =============================== */

/* Tüm a etiketlerini siyaha çek */
a,
a:link,
a:visited {
    color: #111 !important;
    text-decoration: none;
}

    /* Hover */
    a:hover {
        color: #000 !important;
        text-decoration: underline;
    }

/* Bootstrap text-white override */
.text-white,
.text-white * {
    color: #111 !important;
}

/* Navbar / header / footer içindekiler */
.navbar a,
.site-header a,
.site-footer a {
    color: #111 !important;
}

/* Buton gibi görünen linkler */
a.btn,
a.btn-primary,
a.btn-outline-secondary {
    color: #111 !important;
}
/* ===============================
   HARD OVERRIDE: HEADER YAZILARI SİYAH
   =============================== */
.site-header,
.site-header * {
    color: #111 !important;
}

    /* _LoginPartial linkleri bazen nav-link / btn-link / text-white geliyor */
    .site-header a,
    .site-header a.nav-link,
    .site-header a.btn-link,
    .site-header .nav-link,
    .site-header .btn-link,
    .site-header .text-white,
    .site-header .text-white * {
        color: #111 !important;
    }

        /* Header hover */
        .site-header a:hover,
        .site-header a.nav-link:hover,
        .site-header a.btn-link:hover {
            color: #000 !important;
        }
/* ===============================
   ADMIN PANEL – PEMBE TEMAYA UYUMLA
   =============================== */

/* Admin sayfalarda “Admin Panel” başlık barı koyu gri geliyorsa pembe yap */
.admin-header,
.admin-hero,
.admin-banner,
.admin-topbar {
    background: var(--pink) !important;
    color: #111 !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
    border-radius: 14px !important;
}

/* Bazı sayfalarda düz div/section koyu gri arkaplan olabilir */
.bg-dark,
.bg-secondary,
.text-bg-dark,
.text-bg-secondary {
    background-color: var(--pink) !important;
    color: #111 !important;
}

/* Admin dashboard üstteki istatistik kutuları */
.admin-stat,
.stats-card,
.dashboard-stat,
.card.stat-card,
.card.stats {
    border-radius: 14px !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08) !important;
}

/* Kart başlıkları */
.card .card-header,
.card-header {
    background: var(--pink-soft) !important;
    color: #111 !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
    font-weight: 900 !important;
}

/* Kart gövde */
.card,
.table-responsive {
    border-radius: 14px !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: 0 10px 22px rgba(0,0,0,0.08) !important;
}

    /* Admin içindeki “Yönet” butonları pembe/siyah uyum */
    .card .btn,
    .table-responsive .btn,
    .admin-header .btn {
        border-radius: 12px !important;
        font-weight: 900 !important;
    }

/* btn-primary zaten pembe; btn-outline-secondary vb. de uyumlu olsun */
.btn-outline-secondary,
.btn-secondary {
    background: rgba(255,255,255,0.9) !important;
    color: #111 !important;
    border-color: rgba(176,0,42,0.5) !important;
}

    .btn-outline-secondary:hover,
    .btn-secondary:hover {
        background: var(--accent) !important;
        color: #fff !important;
        border-color: var(--accent) !important;
    }

/* Admin sayfalarda linkler siyah kalsın */
.admin-header a,
.card a,
.table-responsive a {
    color: #111 !important;
}

    .admin-header a:hover,
    .card a:hover,
    .table-responsive a:hover {
        color: var(--accent) !important;
    }
.site-logo,
.site-logo:hover,
.site-logo:focus {
    text-decoration: none !important;
}

/* ============================================
   PRINT (A4 DİKEY ZORLAMA – KESİN ÇÖZÜM)
   ============================================ */
@media print {

    /* A4 dikey zorla (Chrome/Edge garantili) */
    @page {
        size: 210mm 297mm;
        margin: 10mm;
    }

    /* Sayfa ölçüsünü kilitle */
    html, body {
        width: 210mm !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        overflow: hidden !important;
    }

    /* Yazdırmada gereksiz alanlar gizlensin */
    .site-header,
    .site-footer,
    .sidebar,
    .whatsapp-float {
        display: none !important;
    }

    /* Ana container flex kır */
    .main-container {
        display: block !important;
        max-width: 190mm !important;
        width: 190mm !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }

    .content-area {
        width: 100% !important;
        max-width: 190mm !important;
    }

    /* Grid / flex taşmasını engelle */
    .products-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10mm !important;
    }

    /* Kartlar taşmasın */
    .product-card {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}
/* ===============================
   PRINT: SADECE A4 DİKEY
   =============================== */
@media print {

    /* A4 PORTRAIT ZORLA */
    @page {
        size: 210mm 297mm;
        margin: 10mm;
    }

    /* Ekran layout'unu printte sıfırla */
    html, body {
        width: 210mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    /* Yazdırmada gereksiz alanlar kapansın */
    .site-header, .site-footer, .sidebar, .whatsapp-float,
    .print-controls, .print-buttons, .orientation-buttons {
        display: none !important;
    }

    /* Ana alan: A4 içinde sabit genişlik */
    .main-container {
        display: block !important;
        width: 190mm !important; /* 210 - (10+10) margin = 190 */
        max-width: 190mm !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .content-area {
        width: 100% !important;
        max-width: 190mm !important;
    }

    /* KUTULAR EŞİT OLSUN: 2 sütun (istersen 1 yaparız) */
    .print-grid, .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6mm !important;
    }

    /* Kartlar sayfa içinde bölünmesin */
    .print-card, .product-card {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }
}
/* === PRODUCT CARD IMAGE FIX + HOVER ZOOM === */

.product-card {
    overflow: hidden;
}

    .product-card img {
        width: 100%;
        height: 260px;
        aspect-ratio: 1 / 1;
        object-fit: contain;
        background: #ffffff;
        display: block;
        transition: transform 0.25s ease;
    }

    .product-card:hover img {
        transform: scale(1.06);
    }
