/* BYS Cloud site header + footer (includes/header.php, includes/footer.php).
   Tum sayfalarda yuklenir; bazi sayfalar custom.css yuklemedigi icin degiskenler ve font burada tanimlidir. */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400..700&display=swap");

:root {
    --sh-navy-950: #0b1324;
    --sh-navy-900: #111c33;
    --sh-text: #0f172a;
    --sh-body: #334155;
    --sh-muted: #64748b;
    --sh-line: #e2e8f0;
    --sh-accent: #1062fe;
    --sh-accent-hover: #0b4fd4;
    --sh-accent-soft: rgba(16, 98, 254, 0.08);
    --sh-sky: #93c5fd;
    --sh-promo: #ffa42f;
    --sh-radius: 12px;
    --sh-font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --sh-nav-h: 76px;
    /* Header artik akista; eski "ustune binen header" bosluklari sifirlanir */
    --nx-header-h: 0px;
}

.bs-header, .bs-footer { font-family: var(--sh-font); }
.bs-header a, .bs-footer a { text-decoration: none; }

/* ---------- Kampanya bandi ---------- */

.bs-promo { background: linear-gradient(90deg, var(--sh-navy-950), #10306f 60%, var(--sh-navy-950)); color: rgba(255, 255, 255, 0.85); font-size: 13.5px; }
.bs-promo__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; min-height: 42px; padding-top: 6px; padding-bottom: 6px; }
.bs-promo__msg { display: flex; align-items: center; gap: 8px; margin: 0; }
.bs-promo__msg i { color: var(--sh-promo); font-size: 18px; }
.bs-promo__msg strong { color: #fff; }
.bs-promo__code { display: flex; align-items: center; gap: 10px; }
.bs-promo__copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border: 1px dashed rgba(147, 197, 253, 0.6);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
}
.bs-promo__copy:hover { background: rgba(255, 255, 255, 0.12); }
.bs-promo__copy.is-copied { border-style: solid; border-color: #22c55e; }

/* ---------- Ust iletisim cubugu ---------- */

.bs-topbar { border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: var(--sh-navy-900); color: rgba(255, 255, 255, 0.72); font-size: 13.5px; }
.bs-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.bs-topbar__list { display: flex; align-items: center; gap: 4px 22px; margin: 0; padding: 0; list-style: none; }
.bs-topbar__list > li { display: inline-flex; align-items: center; gap: 6px; }
.bs-topbar a { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, 0.72); }
.bs-topbar a:hover { color: #fff; }
.bs-topbar i { font-size: 16px; }
.bs-topbar__status { color: #fff; font-weight: 600; }
.bs-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2); }
.bs-topbar__btn { padding: 5px 12px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; color: #fff !important; font-weight: 600; }
.bs-topbar__btn:hover { border-color: #fff; }

.bs-lang { position: relative; }
.bs-lang__btn { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: rgba(255, 255, 255, 0.72); font-size: 13.5px; }
.bs-lang__btn:hover { color: #fff; }
.bs-lang__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1100;
    display: none;
    min-width: 140px;
    padding: 6px;
    border: 1px solid var(--sh-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
}
.bs-lang.is-open .bs-lang__menu { display: block; }
.bs-lang__menu button { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: none; color: var(--sh-text); font-size: 14px; text-align: left; }
.bs-lang__menu button:hover { background: var(--sh-accent-soft); color: var(--sh-accent); }

/* ---------- Ana menu (yapiskan) ---------- */

/* Sticky ust oge icinde calistigi icin header'in tamami yapisir; JS ust iki bandin yuksekligi kadar
   negatif top verir (--sh-stick), boylece kaydirinca yalnizca ana menu gorunur kalir */
.bs-header { position: sticky; top: var(--sh-stick, 0px); z-index: 1050; }
.bs-nav {
    position: relative;
    border-bottom: 1px solid var(--sh-line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(8px);
    transition: box-shadow 0.2s;
}
.bs-nav.is-stuck { box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); }
.bs-nav__inner { display: flex; align-items: center; gap: 24px; min-height: var(--sh-nav-h); }
.bs-nav__logo { flex: 0 0 auto; }
.bs-nav__logo img { display: block; width: auto; height: 40px; }
.bs-nav__menu { display: flex; align-items: center; gap: 4px; margin: 0 auto; padding: 0; list-style: none; }
.bs-nav__menu > li { position: static; }
.bs-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--sh-text);
    font-family: var(--sh-font);
    font-size: 15px;
    font-weight: 500;
}
.bs-nav__link:hover, .bs-nav__dd.is-open > .bs-nav__link { background: var(--sh-accent-soft); color: var(--sh-accent); }
.bs-nav__link i { font-size: 13px; transition: transform 0.2s; }
.bs-nav__dd.is-open > .bs-nav__link i { transform: rotate(180deg); }
.bs-nav__actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.bs-nav__cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--sh-line);
    border-radius: 10px;
    color: var(--sh-text);
    font-size: 20px;
}
.bs-nav__cart:hover { border-color: var(--sh-text); color: var(--sh-text); }
.bs-nav__cart-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px; border: 2px solid #fff; border-radius: 999px; background: var(--sh-accent, #1062fe); color: #fff; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; }
.bs-nav__cart-count[hidden] { display: none; }
.bs-nav__toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--sh-line); border-radius: 10px; background: #fff; color: var(--sh-text); font-size: 22px; }

.bs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: var(--sh-font);
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
}
.bs-btn--primary { background: var(--sh-accent); color: #fff !important; }
.bs-btn--primary:hover { background: var(--sh-accent-hover); }
.bs-btn--light { min-height: 38px; background: #fff; color: var(--sh-text) !important; }
.bs-btn--light:hover { background: var(--sh-sky); }
.bs-btn i { font-size: 18px; }

/* Acilir mega menu */
.bs-mega {
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    display: none;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;
    width: min(880px, calc(100vw - 32px));
    padding: 20px;
    border: 1px solid var(--sh-line);
    border-radius: 0 0 16px 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
    transform: translateX(-50%);
}
.bs-mega--narrow { grid-template-columns: minmax(0, 1fr); width: min(420px, calc(100vw - 32px)); }
.bs-nav__dd.is-open > .bs-mega { display: grid; }
.bs-mega__title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--sh-accent); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.bs-mega__title::before { content: ""; width: 16px; height: 2px; border-radius: 2px; background: var(--sh-accent); }
.bs-mega__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.bs-mega__grid--one { grid-template-columns: minmax(0, 1fr); }
.bs-mega__item { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 10px; color: var(--sh-muted); font-size: 13px; line-height: 1.45; }
.bs-mega__item:hover { background: #f5f8ff; color: var(--sh-muted); }
.bs-mega__item strong { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; color: var(--sh-text); font-size: 14.5px; }
.bs-mega__item:hover strong { color: var(--sh-accent); }
.bs-mega__icon {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    height: 40px;
    border: 1px solid rgba(16, 98, 254, 0.15);
    border-radius: 10px;
    background: var(--sh-accent-soft);
    color: var(--sh-accent);
    font-size: 20px;
}
.bs-badge { padding: 1px 8px; border: 1px solid rgba(255, 164, 47, 0.5); border-radius: 999px; background: rgba(255, 164, 47, 0.12); color: #b45309; font-size: 10.5px; font-style: normal; font-weight: 700; }
.bs-mega__promo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 20px;
    border-radius: 14px;
    background: var(--sh-navy-950);
    background-image: radial-gradient(90% 80% at 100% 0%, rgba(16, 98, 254, 0.55), transparent 60%);
    color: rgba(255, 255, 255, 0.75);
    font-size: 13.5px;
}
.bs-mega__promo strong { color: #fff; font-size: 18px; line-height: 1.25; }
.bs-mega__promo p { margin: 0 0 6px; }
.bs-pill-dark { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(147, 197, 253, 0.15); color: var(--sh-sky); font-size: 11.5px; font-weight: 700; }

/* ---------- Footer ---------- */

.bs-footer { padding: 56px 0 28px; background: var(--sh-navy-950); color: rgba(255, 255, 255, 0.65); font-size: 14.5px; }
.bs-footer a { color: rgba(255, 255, 255, 0.65); }
.bs-footer a:hover { color: #fff; }
.bs-footer__help {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    margin-bottom: 48px;
    padding: 24px 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}
.bs-footer__help strong { display: block; color: #fff; font-size: 20px; }
.bs-footer__contact { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
.bs-footer__contact a, .bs-footer__contact span { display: inline-flex; align-items: center; gap: 8px; }
.bs-footer__contact i { color: var(--sh-sky); font-size: 18px; }
.bs-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.bs-footer__brand img { width: auto; height: 40px; margin-bottom: 16px; }
.bs-footer__brand p { max-width: 340px; margin: 0 0 16px; line-height: 1.6; }
.bs-footer__ns { margin: 0 0 18px; }
.bs-footer__ns dt { color: #fff; font-size: 13px; font-weight: 600; }
.bs-footer__ns dd { margin: 0; font-size: 13.5px; }
.bs-footer__social { display: flex; gap: 8px; }
.bs-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    font-size: 18px;
}
.bs-footer__social a:hover { border-color: #fff; }
.bs-footer__title { margin: 0 0 14px; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.bs-footer__links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bs-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13.5px;
}
.bs-footer__bottom p { margin: 0; }
.bs-footer__legal { display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; list-style: none; }

/* Yukari cik butonu: eski ceviri butonu kalktigi icin sag alt kose ona kaldi */
.scroll-top { right: 20px !important; bottom: 20px !important; }

/* ---------- Duyarli ---------- */

@media (max-width: 1199.98px) {
    .bs-nav__panel span { display: none; }
    .bs-nav__panel { width: 42px; padding: 0; }
    .bs-nav__link { padding: 10px 10px; }
}

@media (max-width: 991.98px) {
    .bs-nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
    .bs-nav__panel span { display: inline; }
    .bs-nav__panel { width: auto; padding: 0 14px; }
    /* Mobil menu: header altinda acilan panel, alt menuler akordeon */
    .bs-nav__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        max-height: calc(100vh - var(--sh-nav-h));
        margin: 0;
        padding: 12px 16px 20px;
        overflow-y: auto;
        border-bottom: 1px solid var(--sh-line);
        background: #fff;
        box-shadow: 0 24px 40px rgba(15, 23, 42, 0.12);
    }
    .bs-nav.is-menu-open .bs-nav__menu { display: flex; }
    .bs-nav__link { justify-content: space-between; width: 100%; padding: 12px; font-size: 16px; }
    .bs-mega, .bs-mega--narrow { position: static; width: auto; padding: 4px 0 8px; border: 0; border-radius: 0; box-shadow: none; transform: none; grid-template-columns: minmax(0, 1fr); }
    .bs-mega__grid { grid-template-columns: minmax(0, 1fr); }
    .bs-mega__promo { display: none; }
    .bs-mega__title { display: none; }
    .bs-topbar__status { display: none !important; }
}

@media (max-width: 575.98px) {
    .bs-promo__msg { display: none; }
    .bs-promo__inner { justify-content: center; }
    .bs-promo__code span { display: none; }
    .bs-topbar__list { gap: 4px 14px; }
    .bs-nav__inner { gap: 10px; }
    .bs-nav__logo img { height: 32px; }
    .bs-nav__panel span { display: none; }
    .bs-nav__panel { width: 42px; padding: 0; }
    .bs-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bs-footer__brand { grid-column: 1 / -1; }
    .bs-footer__help { padding: 20px; }
    .bs-footer__bottom { padding-right: 56px; } /* sag alttaki "yukari cik" butonuna yer */
}
