/* Ana stil dosyası */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    flex: 1;
}

/* Top header & navigation */
.topbar { font-size: .8rem; letter-spacing: .01em; }
.topbar a { color: #fff; opacity: .9; }
.topbar a:hover { opacity: 1; }

/* ══════════════════════════════════════════
   SITE NAVBAR
══════════════════════════════════════════ */
.site-navbar {
    background: #fff !important;
    border-bottom: 1px solid #eaecf0;
    padding-top: 0;
    padding-bottom: 0;
    transition: box-shadow .25s;
}
.site-navbar--scrolled {
    box-shadow: 0 2px 18px rgba(0,0,0,.09);
}

/* Logo */
.site-nb-brand { padding: 10px 0; }
.site-nb-brand img {
    display: block;
    width: auto;
    height: 50px;
    max-height: 50px;
}
.site-nb-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -.03em;
}

/* Nav links */
.site-nb-link {
    color: #1a1a1a !important;
    font-size: .88rem;
    font-weight: 600;
    padding: .55rem .9rem !important;
    border-radius: 8px;
    transition: background .15s, color .15s !important;
}
.site-nb-link:hover,
.site-nb-link:focus {
    background: #f3f4f6;
    color: var(--bs-primary, #0d6efd) !important;
}
/* Dropdown */
.site-nb-dropdown {
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
    padding: .4rem;
    min-width: 200px;
}
/* Hover ile dropdown aç */
.site-nb-hover-drop { position: relative; }
.site-nb-hover-drop > .dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: .35rem;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.site-nb-hover-drop:hover > .dropdown-menu,
.site-nb-hover-drop:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
/* Küçük ok ikonu */
.site-nb-caret {
    font-size: .6rem;
    margin-left: .25rem;
    vertical-align: middle;
    transition: transform .2s;
}
.site-nb-hover-drop:hover .site-nb-caret {
    transform: rotate(180deg);
}
.site-nb-dd-item {
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 500;
    color: #111;
    padding: .5rem .75rem;
}
.site-nb-dd-item:hover { background: #f3f4f6; color: var(--bs-primary, #0d6efd); }

/* Icon buttons */
.site-nb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #1a1a1a;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background .15s, color .15s;
    flex-shrink: 0;
    line-height: 1;
    padding: 0;
}
.site-nb-icon:hover {
    background: #f3f4f6;
    color: var(--bs-primary, #0d6efd);
}

/* Cart badge */
.site-nb-badge {
    position: absolute;
    top: 2px;
    right: 1px;
    background: var(--bs-primary, #0d6efd);
    color: #fff;
    font-size: .55rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid #fff;
    line-height: 1;
}

/* Hamburger */
.site-nb-toggler {
    border: none;
    background: transparent;
    color: #111;
    font-size: 1.6rem;
    padding: 6px;
    line-height: 1;
}
.site-nb-toggler:focus { box-shadow: none; }

/* Mobile nav links (inside collapse) */
.site-nb-mob-link {
    display: flex;
    align-items: center;
    padding: .6rem 0;
    color: #1a1a1a;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    transition: color .15s;
}
.site-nb-mob-link:hover { color: var(--bs-primary, #0d6efd); }

/* Search panel */
.site-nb-search-wrap {
    border-top: 1px solid #eaecf0;
    background: #fff;
}
.site-nb-search-form {
    display: flex;
    align-items: center;
    padding: .75rem 0;
    gap: .5rem;
}
.site-nb-search-input {
    flex: 1;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: .6rem 1rem;
    font-size: .95rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.site-nb-search-input:focus {
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 0 0 4px rgba(13,110,253,.10);
}
.site-nb-search-btn {
    background: var(--bs-primary, #0d6efd);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .6rem 1.4rem;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .15s;
}
.site-nb-search-btn:hover { opacity: .88; }

/* ── legacy search-box (unused but kept safe) ─ */
.search-box .form-select:focus, .search-box .form-control:focus { box-shadow: none; }

/* ── legacy search-box (unused but kept safe) ─ */
.search-box .form-select:focus, .search-box .form-control:focus { box-shadow: none; }

/* Footer stilleri */
footer {
    margin-top: auto;
}

/* Genel sayfa stilleri */
h1 {
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

p {
    line-height: 1.6;
}

/* Homepage Banner */
.homepage-banner { position: relative; overflow: hidden; border-radius: .5rem; }
.homepage-banner .banner-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.5); }
.homepage-banner .container { position: relative; z-index: 2; }

/* Slider */
#mainSlider .carousel-item img { height: 500px; object-fit: cover; }
#mainSlider .carousel-caption { background: rgba(0,0,0,0.5); padding: 1.5rem; border-radius: .5rem; }

/* Banner Cards */
.banner-card { transition: transform 0.3s ease; }
.banner-card:hover { transform: translateY(-5px); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.banner-card img { transition: opacity 0.3s ease; }
.banner-card a:hover img { opacity: 0.9; }

/* Product card */
.product-card { transition: transform .2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }

/* Global media safety */
img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
    height: auto;
}

/* Responsive improvements: tablet + mobile */
@media (max-width: 991.98px) {
    .container,
    .container-fluid {
        padding-left: 14px;
        padding-right: 14px;
    }

    #mainSlider .carousel-item img {
        height: 340px;
    }

    .site-nb-logo-text {
        font-size: 1.15rem;
    }

    .site-nb-search-form {
        flex-wrap: wrap;
    }

    .site-nb-search-btn {
        width: 100%;
    }

    /* Admin: table-heavy pages and card spacing */
    .content-wrapper .card-body {
        padding: .9rem;
    }

    .content-wrapper .table {
        font-size: .9rem;
    }

    .content-wrapper .table td,
    .content-wrapper .table th {
        white-space: nowrap;
        vertical-align: middle;
    }

    .content-wrapper .btn-group,
    .content-wrapper td .btn-group {
        display: flex;
        gap: .35rem;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 1.45rem;
        margin-bottom: 1rem;
    }

    .topbar {
        font-size: .74rem;
    }

    .site-navbar {
        position: sticky;
        top: 0;
        z-index: 1040;
    }

    .site-nb-brand {
        padding: 8px 0;
    }

    .site-nb-brand img {
        height: 36px;
        max-height: 36px;
    }

    .site-nb-icon {
        width: 36px;
        height: 36px;
        font-size: 1.05rem;
    }

    .site-nb-badge {
        min-width: 15px;
        height: 15px;
        font-size: .52rem;
    }

    #mainSlider .carousel-item img {
        height: 250px;
    }

    #mainSlider .carousel-caption {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: .8rem;
    }

    .homepage-banner {
        border-radius: .35rem;
    }

    .card,
    .product-card,
    .banner-card {
        border-radius: 12px;
    }

    .table-responsive {
        border-radius: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .table-responsive .table {
        margin-bottom: 0;
        min-width: 640px;
    }

    .btn,
    .form-control,
    .form-select {
        min-height: 40px;
    }

    .d-flex.gap-2,
    .d-flex.gap-1 {
        flex-wrap: wrap;
    }

    /* Admin top bar compact layout on mobile */
    .main-header.navbar .navbar-nav .nav-link {
        padding-left: .45rem;
        padding-right: .45rem;
    }

    .main-sidebar .brand-text {
        font-size: .96rem;
    }

    .content-header h1,
    .content-header .h1 {
        font-size: 1.22rem;
    }
}

@media (max-width: 575.98px) {
    .container,
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    .topbar {
        display: none;
    }

    .site-nb-search-input {
        padding: .56rem .8rem;
        font-size: .9rem;
    }

    .site-nb-search-btn {
        padding: .56rem .9rem;
    }

    #mainSlider .carousel-item img {
        height: 210px;
    }

    #mainSlider .carousel-caption {
        font-size: .85rem;
    }

    .content-wrapper .card-body {
        padding: .75rem;
    }

    .content-wrapper .btn,
    .content-wrapper .btn-sm {
        padding: .34rem .52rem;
        font-size: .79rem;
    }
}
