:root {
    --bg-body: #FAFAFA;
    --bg-card: #FFFFFF;
    --text-main: #111111;
    --text-muted: #666666;
    --accent: #111111;
    --border-light: #E5E5E5;
    --radius: 10px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
    --font-main: 'Inter', sans-serif;
    --glass: rgba(255, 255, 255, 0.85);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    padding-bottom: 85px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 1. HEADER */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    min-height: 100px;
    /* Logo 80px + padding için arttırıldı */
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* LOGO AREA */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Resim ve yazı arası boşluk */
    font-size: 1.5rem;
    /* Yazı boyutu ince ayar */
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

/* LOGO IMAGE */
#site-logo {
    width: 80px;
    /* Biraz büyütüldü ama header içine sığmalı */
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
}

/* Text Logo Styling */
/* Text Logo Styling */
#text-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.main-title {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    color: var(--text-main);
}

.main-title span {
    font-weight: 300;
    /* SARAY */
    margin-left: 5px;
}

.sub-title {
    font-size: 0.85rem;
    font-weight: 700;
    /* Bold istendi */
    color: #555;
    margin-top: 2px;
}

/* Mobile Specific centering */
@media (max-width: 1023px) {
    .header-inner {
        justify-content: center;
        /* Mobilde her şeyi ortala */
    }

    .logo {
        flex-direction: column;
        text-align: center;
        gap: 2px;
        width: 100%;
        justify-content: center;
    }

    #site-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 5px;
    }

    /* Subtitle'ı mobilde biraz daha belirgin yapalım */
    .sub-title {
        margin-top: 3px;
        font-size: 0.9rem;
    }
}

/* Desktop Specific */
@media (min-width: 1024px) {
    #text-logo {
        flex-direction: row;
        align-items: baseline;
        gap: 10px;
    }

    .sub-title {
        font-size: 1rem;
        font-weight: 400;
        /* Yanında farklı tasarım istendi, belki ince? User: "başka bir tasarımla" */
        border-left: 1px solid #ccc;
        padding-left: 10px;
        margin-left: 0;
        color: #777;
        margin-top: 0;
    }
}


.desktop-nav {
    display: none;
    gap: 30px;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--text-main);
}

.mobile-header-title {
    display: block;
    width: 100%;
    text-align: center;
    font-weight: 600;
}

/* HELAL BANNER */
.halal-banner {
    background-color: #e6f4ea;
    /* Soft yeşil */
    color: #1e7e34;
    /* Koyu yeşil yazı */
    text-align: center;
    padding: 10px 0;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 0;
    /* Header'ın hemen altı */
}

/* 2. KATEGORİ */
.category-bar {
    margin-top: 20px;
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    /* scrollbar-width: none;  --> Erişilebilirlik için kapalı */
}

/* .category-bar::-webkit-scrollbar { display: none; } */

.cat-pill {
    background: transparent;
    border: 1px solid var(--border-light);
    padding: 10px 24px;
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cat-pill.active {
    background: var(--text-main);
    color: #fff;
    border-color: var(--text-main);
}

/* 3. ÜRÜN KARTLARI */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    border-color: var(--border-light);
}

.card-img-wrapper {
    width: 100%;
    padding-top: 100%;
    position: relative;
    background: #f4f4f4;
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-info {
    padding: 15px;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--text-main);
}

.card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 4. MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1050;
    /* Bootstrap standardı gibi makul bir seviye */
    align-items: center;
    justify-content: center;
    padding: 20px;
    overscroll-behavior: contain;
}

.modal-card {
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-card::-webkit-scrollbar {
    display: none;
}

.modal-body {
    padding: 20px;
    padding-bottom: 80px;
}

.modal-body img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
    display: block;
    object-fit: cover;
}

.modal-body h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #111;
}

.modal-body p {
    line-height: 1.6;
    color: #555;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    cursor: pointer;
}

.modal-footer {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.modal-footer h4 {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    color: #111;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 0.95rem;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #111;
}

.input-group label {
    position: absolute;
    left: 15px;
    top: 12px;
    color: #999;
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.3s;
}

.input-group input:focus+label,
.input-group input:not(:placeholder-shown)+label,
.input-group textarea:focus+label,
.input-group textarea:not(:placeholder-shown)+label {
    top: -10px;
    left: 10px;
    font-size: 0.75rem;
    background: #fff;
    padding: 0 5px;
    color: #111;
}

.btn-black {
    width: 100%;
    padding: 15px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

/* 5. BOTTOM NAV */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 65px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #999;
    font-size: 11px;
    font-weight: 500;
    width: 100%;
    height: 100%;
}

.nav-item.active {
    color: #111;
}

.nav-item svg {
    margin-bottom: 4px;
    stroke: #999;
}

.nav-item.active svg {
    stroke: #111;
    transform: translateY(-2px);
}

/* --- MENÜ GİZLEME KURALI (Modal açılınca çalışır) --- */
body.modal-open .bottom-nav {
    display: none !important;
}

/* RESPONSIVE */
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .bottom-nav {
        display: none !important;
    }

    .desktop-nav {
        display: flex !important;
    }

    .mobile-header-title {
        display: none;
    }

    .logo {
        font-size: 1.5rem;
    }

    body {
        padding-bottom: 0;
    }
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 10px;
    }

    .modal-card {
        max-height: 95vh;
    }
}

/* ADMIN DASHBOARD STYLES */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #111;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #111;
}

.menu-item svg {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    stroke: #111;
    stroke-width: 1.5;
}

.menu-item h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.menu-item p {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
}

/* SITE FOOTER */
.site-footer {
    text-align: center;
    padding: 40px 20px 100px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.02), transparent);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    color: #888;
    font-size: 0.85rem;
}

.footer-contact {
    margin-bottom: 30px;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-contact h4 {
    color: #111;
    font-weight: 600;
    margin: 0 0 10px 0;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.footer-contact p {
    margin: 4px 0;
}

.footer-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    width: 200px;
    margin: 20px auto;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    font-family: 'Inter', sans-serif;
}

.copyright {
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #555;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.separator {
    color: #ccc;
    font-size: 0.8rem;
}

/* Premium Badge for Nimedya */
.nimedya-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nimedya-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: #111;
}

.design-by {
    font-size: 0.65rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-name {
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #000;
}

/* PREMIUM BANK CARDS */
.bank-section {
    margin: 60px auto;
    padding: 20px;
    max-width: 1000px;
}

.bank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.bank-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    /* Premium soft shadow */
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.bank-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.1);
}

.bank-header {
    padding: 20px 25px;
    background: linear-gradient(to right, #fcfcfc, #ffffff);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Updated Icon Wrapper (Clean & Minimal) */
.bank-icon-premium {
    /* Previously defined, removed duplicate wrapper in HTML */
    width: 42px;
    height: 42px;
    background: #111;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.bank-title h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.2px;
}

.bank-body {
    padding: 20px 25px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    font-weight: 600;
}

/* Row wrapper for Value + Copy Button */
.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: border-color 0.2s;
    width: 100%;
    /* Force full width alignment */
}

.detail-row:hover {
    border-color: #e0e0e0;
}

.detail-value {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
    padding: 12px 15px;
    /* Slightly more padding */
    word-break: break-all;
    flex-grow: 1;
}

/* IBAN Text Specifics */
.iban-text {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #000;
}

/* Copy Button Styling */
.copy-btn {
    background: transparent;
    border: none;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    color: #888;
    padding: 0;
    width: 50px;
    /* Fixed width for perfect symmetry */
    height: 100%;
    min-height: 44px;
    /* Ensure touch target size */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
    flex-shrink: 0;
    /* Prevent shrinking */
}

.copy-btn:hover {
    background: #eee;
    color: #111;
}

.copy-btn:active {
    background: #ddd;
}


.toast {
    visibility: hidden;
    min-width: 200px;
    background-color: #111;
    color: #fff;
    text-align: center;
    border-radius: 50px;
    padding: 12px 24px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 90px;
    transform: translateX(-50%);
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.toast.show {
    visibility: visible;
    animation: fadein 0.3s, fadeout 0.3s 2.7s;
}

@keyframes fadein {
    from {
        bottom: 50px;
        opacity: 0;
    }

    to {
        bottom: 90px;
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        bottom: 90px;
        opacity: 1;
    }

    to {
        bottom: 50px;
        opacity: 0;
    }
}