/* =========================================================
   Şahbey Mobilya — Tema
   Beyaz tonlu, sade, kurumsal. Anahtar renk: antrasit.
   Tek renkli vurgu: sadece WhatsApp yeşili.
   ========================================================= */

:root {
    --bg:        #ffffff;
    --bg-soft:   #f6f7f8;   /* çok açık, hafif sıcak gri */
    --bg-panel:  #fbfbfc;
    --ink:       #16191d;   /* antrasit metin */
    --ink-soft:  #5c6570;   /* ikincil metin */
    --line:      #e6e8eb;   /* ince çizgiler */
    --line-2:    #d7dade;
    --brand:     #16191d;   /* butonlar / vurgu (kurumsal antrasit) */
    --brand-ink: #ffffff;
    --wa:        #25d366;   /* WhatsApp */
    --wa-dark:   #1da851;
    --radius:    10px;
    --radius-lg: 16px;
    --shadow:    0 1px 2px rgba(16,19,23,.04), 0 6px 24px rgba(16,19,23,.06);
    --shadow-sm: 0 1px 3px rgba(16,19,23,.06);
    --maxw:      1180px;
    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 640px; margin-bottom: 40px; }
.section__head--center { margin-inline: auto; text-align: center; }
.eyebrow {
    display: inline-block; font-size: .78rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
    margin-bottom: 12px;
}
.lead { color: var(--ink-soft); font-size: 1.06rem; }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 600; font-size: .96rem; line-height: 1;
    padding: 14px 22px; border-radius: var(--radius);
    border: 1px solid transparent; cursor: pointer;
    transition: transform .12s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-dark); }
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* ---------- Üst şerit ---------- */
.topbar {
    background: var(--ink); color: #eef0f2; font-size: .82rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #eef0f2; opacity: .9; }
.topbar a:hover { opacity: 1; }
.topbar__group { display: flex; align-items: center; gap: 20px; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Header / Nav ---------- */
.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 20px; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.brand__tag { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }

.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu > li > a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 14px; font-weight: 600; font-size: .95rem; color: var(--ink);
    border-radius: 8px;
}
.menu > li > a:hover { background: var(--bg-soft); }
.menu__caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .5; }

/* Mega dropdown */
.mega {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); padding: 14px; width: 560px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease;
}
.menu > li:hover .mega, .menu > li:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega__item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; }
.mega__item:hover { background: var(--bg-soft); }
.mega__thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; background: var(--bg-soft); }
.mega__title { font-weight: 700; font-size: .95rem; }
.mega__desc { font-size: .8rem; color: var(--ink-soft); }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
    display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: .2s;
}
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 72px 0; }
.hero__title { margin-bottom: 18px; }
.hero__text { color: var(--ink-soft); font-size: 1.12rem; max-width: 46ch; margin-bottom: 28px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__media { position: relative; }
.hero__media img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero__badge {
    position: absolute; left: -18px; bottom: 26px; background: #fff; border: 1px solid var(--line);
    border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); max-width: 230px;
}
.hero__badge strong { display: block; font-size: 1.5rem; }
.hero__badge span { font-size: .82rem; color: var(--ink-soft); }

/* ---------- Trust bar ---------- */
.trust { border-block: 1px solid var(--line); background: var(--bg-panel); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px 0; }
.trust__item { display: flex; gap: 12px; align-items: flex-start; }
.trust__ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.trust__ico svg { width: 20px; height: 20px; stroke: var(--ink); }
.trust__t { font-weight: 700; font-size: .95rem; }
.trust__d { font-size: .82rem; color: var(--ink-soft); }

/* ---------- Kategori / ürün kartları ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title { font-size: 1.08rem; font-weight: 700; }
.card__desc { font-size: .9rem; color: var(--ink-soft); flex: 1; }
.card__link { margin-top: 10px; font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.card__link .arw { transition: transform .2s ease; }
.card:hover .card__link .arw { transform: translateX(4px); }

/* Büyük kategori bloğu (ana sayfa) */
.catrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cattile { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; color: #fff; }
.cattile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cattile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.68) 100%); }
.cattile:hover img { transform: scale(1.05); }
.cattile__body { position: relative; z-index: 1; padding: 22px; width: 100%; }
.cattile__t { font-size: 1.35rem; font-weight: 800; margin-bottom: 4px; }
.cattile__d { font-size: .9rem; opacity: .92; }
.cattile--wide { grid-column: span 2; }

/* ---------- Mağaza CTA ---------- */
.storecta { background: var(--ink); color: #fff; border-radius: var(--radius-lg); overflow: hidden; }
.storecta__grid { display: grid; grid-template-columns: 1fr 1fr; }
.storecta__body { padding: 56px 48px; }
.storecta__body h2 { color: #fff; }
.storecta__body p { color: #c9ced4; }
.storecta__media { min-height: 320px; position: relative; }
.storecta__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.storecta__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.storecta__cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.storecta__cta .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: .85rem; color: var(--ink-soft); padding: 20px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.crumb span { color: var(--line-2); }

/* ---------- Sayfa başlığı ---------- */
.pagehead { padding: 40px 0 8px; }
.pagehead h1 { margin-bottom: 10px; }
.pagehead p { color: var(--ink-soft); max-width: 60ch; }

/* ---------- Ürün detay ---------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; padding: 28px 0 8px; }
/* Sabit en-boy oranı: portre stok görseller sayfayı aşağı doğru uzatmasın.
   height:auto şart — <img> üzerindeki height attribute'u yoksa aspect-ratio ezilir. */
.product__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.product__cat { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
.product__desc { color: var(--ink-soft); }
.feature-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; }
.feature-list svg { width: 18px; height: 18px; stroke: var(--ink); flex: none; margin-top: 3px; }
.product__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.product__note { margin-top: 16px; font-size: .85rem; color: var(--ink-soft); }
.callout { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-top: 24px; }
.callout strong { display: block; margin-bottom: 4px; }

/* ---------- İletişim ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.infolist { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.infolist li { display: flex; gap: 14px; align-items: flex-start; }
.infolist .ico { width: 42px; height: 42px; flex: none; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; }
.infolist .ico svg { width: 20px; height: 20px; stroke: var(--ink); }
.infolist .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.infolist .v { font-weight: 600; }
.map { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; min-height: 380px; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Hakkımızda ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about img { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.stat b { display: block; font-size: 1.8rem; }
.stat span { font-size: .82rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #c9ced4; padding: 56px 0 28px; margin-top: 8px; }
.footer a { color: #c9ced4; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand p { font-size: .9rem; margin-top: 12px; max-width: 32ch; }
.footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .9rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }
.footer__social { display: flex; gap: 12px; }
.footer__social a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; display: grid; place-items: center; }
.footer__social a:hover { border-color: #fff; }
.footer__social svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

/* ---------- Sabit WhatsApp ---------- */
.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 60;
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--wa); color: #fff; font-weight: 700; font-size: .95rem;
    padding: 14px 18px; border-radius: 999px; box-shadow: 0 8px 30px rgba(37,211,102,.4);
    transition: transform .16s ease, background .2s ease;
}
.wa-float:hover { background: var(--wa-dark); transform: translateY(-2px); }
.wa-float svg { width: 22px; height: 22px; fill: #fff; }
.wa-float__label { }

/* ---------- Yardımcılar ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.section__cta { margin-top: 36px; text-align: center; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
    .hero__grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
    .hero__media { order: -1; }
    .storecta__grid { grid-template-columns: 1fr; }
    .storecta__media { min-height: 240px; order: -1; }
    .product { grid-template-columns: 1fr; gap: 28px; }
    .contact { grid-template-columns: 1fr; }
    .about { grid-template-columns: 1fr; gap: 28px; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .trust__grid { grid-template-columns: repeat(2, 1fr); }
    .grid--4 { grid-template-columns: repeat(3, 1fr); }
    .catrow { grid-template-columns: repeat(2, 1fr); }
    .cattile--wide { grid-column: span 2; }
}

@media (max-width: 720px) {
    .section { padding: 52px 0; }
    .nav__toggle { display: flex; }
    /* Menü: sticky header'ın hemen altına sabitlenir (topbar yüksekliğinden bağımsız) */
    .menu {
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; flex-direction: column; align-items: stretch; gap: 0;
        padding: 6px 16px 14px; border-top: 1px solid var(--line);
        box-shadow: 0 16px 28px rgba(16,19,23,.12); max-height: calc(100dvh - 100%); overflow-y: auto;
        transform: translateY(-10px); opacity: 0; visibility: hidden; pointer-events: none;
        transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    }
    .menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
    .menu > li { border-bottom: 1px solid var(--line); }
    .menu > li:last-child { border-bottom: 0; }
    .menu > li > a { padding: 15px 6px; justify-content: space-between; border-radius: 0; }

    /* Mega = akordeon. :hover/:focus-within masaüstü transform'unu MUTLAKA ez,
       yoksa dokununca içerik translateX(-50%) ile sola kayıp kırpılır. */
    .mega,
    .menu > li:hover .mega,
    .menu > li:focus-within .mega {
        position: static; transform: none; width: auto;
        grid-template-columns: 1fr; gap: 2px;
        opacity: 1; visibility: visible; box-shadow: none; border: 0; border-radius: 0;
        padding: 0; margin: 0; display: grid;
        max-height: 0; overflow: hidden; transition: max-height .28s ease;
    }
    .menu > li.is-expanded .mega { max-height: 640px; padding-bottom: 8px; }
    .mega__item { padding: 10px 6px; }
    .mega__thumb { width: 46px; height: 46px; }
    .menu__caret { transition: transform .2s; }
    .menu > li.is-expanded .menu__caret { transform: rotate(-135deg) translateY(-2px); }

    /* Hero: mobilde ilk görünümü sıkılaştır — görsel kısalsın, başlık/butonlar yukarı gelsin */
    .hero__grid { padding: 20px 0 36px; gap: 22px; }
    .hero__media img { max-height: 320px; }
    .hero__badge { left: 6px; bottom: 12px; padding: 12px 16px; }
    .hero__badge strong { font-size: 1.3rem; }
    .hero__text { font-size: 1.02rem; margin-bottom: 22px; }

    /* CTA butonları: mobilde tam genişlik, düzgün hizalı (dağınık görünmesin) */
    .hero__cta, .storecta__cta, .product__actions { flex-direction: column; align-items: stretch; }
    .hero__cta .btn, .storecta__cta .btn, .product__actions .btn { width: 100%; max-width: 100%; justify-content: center; }

    .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr 1fr; }
    .trust__grid { grid-template-columns: 1fr 1fr; }
    .catrow { grid-template-columns: 1fr; }
    .cattile--wide { grid-column: span 1; }
    .footer__grid { grid-template-columns: 1fr; }
    .storecta__body { padding: 40px 26px; }
    .wa-float__label { display: none; }
    .wa-float { padding: 14px; }
    .topbar__group--left { display: none; }
}

@media (max-width: 460px) {
    .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
    .stat-row { grid-template-columns: 1fr; }
}
