/* =====================================================================
   KÜ Store — Ana Stil Dosyası
   Kastamonu Üniversitesi kurumsal kimliğine uyumlu palet:
     Lacivert #003865 (kastamonu.edu.tr ana rengi)
     Kırmızı  #E31E24 (üniversite armasındaki kırmızı — aksan/CTA)
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. DEĞİŞKENLER
   --------------------------------------------------------------------- */
:root {
    --navy:          #003865;
    --navy-dark:     #001d34;
    --navy-mid:      #0a4b7d;
    --navy-soft:     #e8eef4;

    --red:           #e31e24;
    --red-dark:      #b8161b;
    --red-soft:      #fdecec;

    --page-bg:       #f2f2f4;
    --surface:       #ffffff;
    --surface-alt:   #f8f9fb;
    --border:        #e3e3e8;
    --border-strong: #cfd4dc;

    --text:          #1a1a1a;
    --text-muted:    #5c6672;
    --text-light:    #8d95a0;

    --green:         #0f8b4c;
    --green-soft:    #e7f5ee;
    --amber:         #b26a00;
    --amber-soft:    #fdf3e2;

    --radius:        8px;
    --radius-lg:     14px;
    --shadow-sm:     0 1px 2px rgba(0, 29, 52, .06);
    --shadow:        0 2px 8px rgba(0, 29, 52, .08);
    --shadow-lg:     0 8px 28px rgba(0, 29, 52, .14);

    --wrap:          1240px;
    --font:          'Poppins', 'Segoe UI', Tahoma, sans-serif;

    --header-h:      74px;
}

/* ---------------------------------------------------------------------
   2. SIFIRLAMA / TEMEL
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

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

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

a { color: var(--navy); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--red); }

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    font-weight: 600;
    line-height: 1.25;
    color: var(--navy);
    letter-spacing: -.01em;
}
h1 { font-size: 1.9rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 2px;
    border-radius: 3px;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 18px;
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Klavye kullanıcıları için içeriğe atlama bağlantısı */
.skip-link {
    position: absolute; top: -60px; left: 12px; z-index: 999;
    background: var(--red); color: #fff;
    padding: 10px 18px; border-radius: 0 0 var(--radius) var(--radius);
    font-weight: 600;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------------------------------------------------------------------
   3. ÜST BİLGİ ÇUBUĞU
   --------------------------------------------------------------------- */
.topbar {
    background: var(--navy-dark);
    color: #cbd7e3;
    font-size: 12.5px;
}
.topbar__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; min-height: 38px; flex-wrap: wrap;
}
.topbar__left, .topbar__right {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.topbar a { color: #cbd7e3; }
.topbar a:hover { color: #fff; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ---------------------------------------------------------------------
   4. ANA BAŞLIK (logo + arama + sepet)
   --------------------------------------------------------------------- */
.masthead { background: var(--surface); border-bottom: 1px solid var(--border); }
.masthead__inner {
    display: flex; align-items: center; gap: 24px;
    min-height: var(--header-h); padding: 12px 18px;
}

.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand__logo {
    width: 52px; height: 52px; flex-shrink: 0;
    object-fit: contain;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
    font-size: 1.32rem; font-weight: 700; color: var(--navy);
    letter-spacing: -.02em;
}
.brand__name em { font-style: normal; color: var(--red); }
.brand__sub {
    font-size: 10.5px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .06em; font-weight: 500;
}

/* Arama */
.searchbar { flex: 1 1 auto; max-width: 520px; }
.searchbar__form { display: flex; }
.searchbar__input {
    flex: 1; min-width: 0;
    border: 1.5px solid var(--border-strong); border-right: 0;
    border-radius: var(--radius) 0 0 var(--radius);
    padding: 10px 14px; font-size: 14px; background: var(--surface-alt);
    transition: border-color .15s, background .15s;
}
.searchbar__input:focus {
    outline: 0; border-color: var(--navy); background: #fff;
}
.searchbar__btn {
    border: 0; cursor: pointer;
    background: var(--navy); color: #fff;
    padding: 0 20px; border-radius: 0 var(--radius) var(--radius) 0;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.searchbar__btn:hover { background: var(--red); }
.searchbar__btn svg { width: 18px; height: 18px; }

/* Sepet düğmesi */
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.icon-btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 9px 15px; border-radius: var(--radius);
    border: 1.5px solid var(--border); background: var(--surface);
    color: var(--navy); font-size: 13.5px; font-weight: 600;
    cursor: pointer; transition: all .15s;
    position: relative; white-space: nowrap;
}
.icon-btn:hover { border-color: var(--navy); background: var(--navy-soft); color: var(--navy); }
.icon-btn svg { width: 19px; height: 19px; flex-shrink: 0; }

.icon-btn--cart { background: var(--red); border-color: var(--red); color: #fff; }
.icon-btn--cart:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }

.cart-badge {
    position: absolute; top: -7px; right: -7px;
    min-width: 21px; height: 21px; padding: 0 5px;
    border-radius: 11px; background: var(--navy); color: #fff;
    font-size: 11.5px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}

/* Mobil menü düğmesi */
.nav-toggle {
    display: none; border: 1.5px solid var(--border); background: var(--surface);
    color: var(--navy); border-radius: var(--radius);
    padding: 9px 11px; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------------
   5. ANA MENÜ (mega menü)
   --------------------------------------------------------------------- */
.mainnav {
    background: var(--navy);
    box-shadow: var(--shadow-sm);
    position: relative; z-index: 60;
}
.mainnav__list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; align-items: stretch;
}
.mainnav__item { position: relative; }
.mainnav__link {
    display: flex; align-items: center; gap: 6px;
    padding: 14px 17px;
    color: #eaf1f7; font-size: 14px; font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: background .15s, border-color .15s, color .15s;
}
.mainnav__link:hover,
.mainnav__item:hover > .mainnav__link,
.mainnav__link[aria-current="page"] {
    background: var(--navy-mid); color: #fff; border-bottom-color: var(--red);
}
.mainnav__link svg { width: 12px; height: 12px; opacity: .7; }

/* Açılır alt menü */
.submenu {
    position: absolute; top: 100%; left: 0; z-index: 70;
    min-width: 250px; margin: 0; padding: 8px;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--red);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.mainnav__item:hover > .submenu,
.mainnav__item:focus-within > .submenu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
/* Çok maddeli menüler 2 kolona düşer */
.submenu--wide { min-width: 460px; columns: 2; column-gap: 8px; }

.submenu a {
    display: block; padding: 8px 12px; border-radius: 6px;
    font-size: 13.5px; color: var(--text); font-weight: 400;
}
.submenu a:hover { background: var(--navy-soft); color: var(--navy); }
.submenu__all a {
    color: var(--red); font-weight: 600;
    border-top: 1px solid var(--border); border-radius: 0;
    margin-top: 4px; padding-top: 10px;
}

/* ---------------------------------------------------------------------
   6. SAYFA YAPISI / BREADCRUMB
   --------------------------------------------------------------------- */
main { display: block; min-height: 55vh; }
.section { padding: 34px 0; }
.section--tight { padding: 22px 0; }

.crumbs {
    background: var(--surface); border-bottom: 1px solid var(--border);
    font-size: 12.5px; color: var(--text-muted);
}
.crumbs__inner {
    display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
    padding: 11px 18px;
}
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--red); }
.crumbs span[aria-current] { color: var(--navy); font-weight: 600; }
.crumbs__sep { color: var(--text-light); }

.page-head { margin-bottom: 22px; }
.page-head h1 { margin-bottom: 4px; }
.page-head p { color: var(--text-muted); margin: 0; max-width: 74ch; }

.section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.section-head h2 {
    margin: 0; position: relative; padding-left: 14px;
}
.section-head h2::before {
    content: ''; position: absolute; left: 0; top: .18em; bottom: .18em;
    width: 4px; border-radius: 2px; background: var(--red);
}
.section-head .link-more { font-size: 13.5px; font-weight: 600; color: var(--red); }

/* ---------------------------------------------------------------------
   7. HERO
   --------------------------------------------------------------------- */
.hero {
    background:
        radial-gradient(900px 420px at 88% -10%, rgba(227, 30, 36, .28), transparent 60%),
        linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: #fff; position: relative; overflow: hidden;
}
.hero::after {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 46px 46px;
    pointer-events: none;
}
.hero__inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.25fr .75fr;
    gap: 40px; align-items: center;
    padding: 54px 18px 58px;
}
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    padding: 5px 13px; border-radius: 999px;
    font-size: 11.5px; font-weight: 600; letter-spacing: .07em;
    text-transform: uppercase; margin-bottom: 16px;
}
.hero h1 {
    color: #fff; font-size: clamp(1.75rem, 3.6vw, 2.65rem);
    font-weight: 700; margin-bottom: 14px; max-width: 22ch;
}
.hero h1 em { font-style: normal; color: #ffb3b6; }
.hero p {
    color: rgba(255, 255, 255, .84); font-size: 15.5px;
    max-width: 54ch; margin-bottom: 26px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__art {
    display: flex; align-items: center; justify-content: center;
}
.hero__seal {
    width: 100%; max-width: 260px; aspect-ratio: 1;
    background: #fff; border-radius: 50%;
    display: grid; place-items: center; padding: 22px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .34);
}
.hero__seal img { width: 100%; }

.hero-strip {
    background: var(--navy-dark); color: rgba(255, 255, 255, .9);
    border-top: 1px solid rgba(255, 255, 255, .1);
}
.hero-strip__inner {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 2px; padding: 0 18px;
}
.hero-strip__item {
    display: flex; align-items: center; gap: 11px;
    padding: 16px 12px; font-size: 13px;
}
.hero-strip__item svg { width: 22px; height: 22px; color: #ffb3b6; flex-shrink: 0; }
.hero-strip__item strong { display: block; font-size: 13.5px; color: #fff; font-weight: 600; }
.hero-strip__item span { color: rgba(255, 255, 255, .66); font-size: 12px; }

/* ---------------------------------------------------------------------
   7b. AYIN EN ÇOK SATILAN ÜRÜNÜ
   --------------------------------------------------------------------- */
.bestseller {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 0;
    background:
        radial-gradient(700px 340px at 92% 8%, rgba(227, 30, 36, .32), transparent 62%),
        linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.bestseller::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 46px 46px;
}

.bestseller__media {
    display: block; position: relative; z-index: 1;
    background: rgba(255, 255, 255, .05);
    border-right: 1px solid rgba(255, 255, 255, .1);
}
.bestseller__media img {
    width: 100%; height: 100%; object-fit: cover;
    aspect-ratio: 1; display: block;
}

.bestseller__body {
    position: relative; z-index: 1;
    padding: 30px 34px;
    display: flex; flex-direction: column; gap: 10px;
    color: #fff;
}

.bestseller__badge {
    display: inline-flex; align-items: center; gap: 8px;
    align-self: flex-start;
    background: var(--red);
    padding: 7px 15px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(227, 30, 36, .4);
}
.bestseller__badge svg { width: 14px; height: 14px; }

.bestseller__cat {
    font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase;
    font-weight: 600; color: rgba(255, 255, 255, .58);
}

.bestseller h2 {
    color: #fff; font-size: clamp(1.25rem, 2.3vw, 1.75rem);
    margin: 0; line-height: 1.25;
}
.bestseller h2 a { color: #fff; }
.bestseller h2 a:hover { color: #ffb3b6; }

.bestseller p {
    color: rgba(255, 255, 255, .78);
    font-size: 14px; line-height: 1.65; margin: 0; max-width: 62ch;
}

.bestseller__stats {
    display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px;
}
.bestseller__stat {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px; padding: 7px 13px;
    font-size: 12.5px; color: rgba(255, 255, 255, .8);
}
.bestseller__stat strong { color: #fff; font-size: 14px; }

.bestseller__foot {
    margin-top: auto; padding-top: 18px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 18px; flex-wrap: wrap;
}
.bestseller__price {
    font-size: 2rem; font-weight: 700; letter-spacing: -.03em; color: #fff;
}

@media (max-width: 860px) {
    .bestseller { grid-template-columns: 1fr; }
    .bestseller__media { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
    .bestseller__media img { aspect-ratio: 16 / 10; }
    .bestseller__body { padding: 24px 20px; }
    .bestseller__foot { flex-direction: column; align-items: stretch; }
    .bestseller__foot .flex-row { flex-direction: column; }
    .bestseller__foot .btn { width: 100%; }
}

/* ---------------------------------------------------------------------
   8. DÜĞMELER
   --------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border: 1.5px solid transparent;
    border-radius: var(--radius); cursor: pointer;
    font-size: 14px; font-weight: 600; text-align: center;
    transition: all .15s ease; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }

.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover:not(:disabled) { background: var(--red-dark); color: #fff; }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover:not(:disabled) { background: var(--navy-mid); color: #fff; }

.btn--outline { background: transparent; border-color: var(--border-strong); color: var(--navy); }
.btn--outline:hover:not(:disabled) { border-color: var(--navy); background: var(--navy-soft); color: var(--navy); }

.btn--ghost-light {
    background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); color: #fff;
}
.btn--ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

.btn--danger { background: var(--red); color: #fff; }
.btn--danger:hover:not(:disabled) { background: var(--red-dark); color: #fff; }

.btn--sm { padding: 7px 14px; font-size: 13px; }
.btn--lg { padding: 14px 30px; font-size: 15px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-link {
    background: 0; border: 0; padding: 0; cursor: pointer;
    color: var(--text-muted); font-size: 13px; text-decoration: underline;
}
.btn-link:hover { color: var(--red); }

/* ---------------------------------------------------------------------
   9. KARTLAR / IZGARA
   --------------------------------------------------------------------- */
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.card__body { padding: 20px; }
.card__head {
    padding: 15px 20px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card__head h2, .card__head h3 { margin: 0; font-size: 1rem; }

.grid { display: grid; gap: 18px; }
.grid--products { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.grid--cats     { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.grid--2        { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Ürün kartı */
.product {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.product:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg); border-color: var(--border-strong);
}
.product__media {
    position: relative; display: block;
    aspect-ratio: 1 / 1; background: var(--surface-alt);
    overflow: hidden;
}
.product__media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .3s ease;
}
.product:hover .product__media img { transform: scale(1.04); }

.product__flags {
    position: absolute; top: 10px; left: 10px;
    display: flex; flex-direction: column; gap: 5px; align-items: flex-start;
}
.flag {
    font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; padding: 4px 9px; border-radius: 4px;
    background: var(--navy); color: #fff;
}
.flag--red   { background: var(--red); }
.flag--out   { background: #58606b; }
.flag--low   { background: var(--amber); }
/* Sipariş dışı bölüm (Kafeterya, Spor Kursları) — yalnızca fiyat bilgisi */
.flag--info  { background: #0a4b7d; }

/* Sepet düğmesi yerine gösterilen bilgi işareti */
.product__info {
    width: 38px; height: 38px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 7px; background: var(--navy-soft); color: var(--navy);
    cursor: help;
}
.product__info svg { width: 18px; height: 18px; }

.product__body {
    padding: 14px 15px 16px; display: flex; flex-direction: column;
    flex: 1; gap: 8px;
}
.product__cat {
    font-size: 11px; color: var(--text-light);
    text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
}
.product__name {
    margin: 0; font-size: 14px; font-weight: 600; line-height: 1.4;
    color: var(--text);
}
.product__name a { color: inherit; }
.product__name a:hover { color: var(--red); }
.product__foot {
    margin-top: auto; display: flex; align-items: center;
    justify-content: space-between; gap: 10px;
}
.product__price {
    font-size: 1.08rem; font-weight: 700; color: var(--red);
    letter-spacing: -.02em;
}
.product__stock { font-size: 11.5px; color: var(--text-muted); }
.product__stock--out { color: var(--red); font-weight: 600; }
.product__stock--low { color: var(--amber); font-weight: 600; }

.product__add {
    border: 0; border-radius: 7px; cursor: pointer;
    background: var(--navy); color: #fff;
    width: 38px; height: 38px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.product__add:hover { background: var(--red); }
.product__add:disabled { background: var(--border-strong); cursor: not-allowed; }
.product__add svg { width: 18px; height: 18px; }

/* Kategori kartı */
.cat-card {
    display: flex; flex-direction: column; gap: 4px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px 18px;
    transition: all .18s ease; position: relative; overflow: hidden;
}
.cat-card::after {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--red); transform: translateX(-4px); transition: transform .18s;
}
.cat-card:hover {
    border-color: var(--border-strong); box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.cat-card:hover::after { transform: translateX(0); }
.cat-card__icon {
    width: 42px; height: 42px; margin-bottom: 8px;
    display: grid; place-items: center;
    background: var(--navy-soft); border-radius: 10px; color: var(--navy);
}
.cat-card__icon svg { width: 22px; height: 22px; }
.cat-card__name { font-size: 15px; font-weight: 600; color: var(--navy); }
.cat-card__meta { font-size: 12px; color: var(--text-muted); }

/* ---------------------------------------------------------------------
   10. ÜRÜN DETAY
   --------------------------------------------------------------------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; }
.pdp__media {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden; align-self: start;
}
.pdp__media img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.pdp__cat {
    font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
    font-weight: 600; color: var(--text-light); margin-bottom: 6px;
}
.pdp h1 { font-size: 1.6rem; margin-bottom: 12px; }
.pdp__sku { font-size: 12.5px; color: var(--text-muted); margin-bottom: 18px; }
.pdp__price {
    font-size: 2.05rem; font-weight: 700; color: var(--red);
    letter-spacing: -.03em; margin-bottom: 6px;
}
.pdp__vat { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }
.pdp__desc {
    color: var(--text-muted); font-size: 14.5px; line-height: 1.75;
    padding: 18px 0; border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border); margin-bottom: 22px;
}
.pdp__form { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.pdp__facts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 11px; }
.pdp__facts li {
    display: flex; gap: 11px; align-items: flex-start;
    font-size: 13.5px; color: var(--text-muted);
}
.pdp__facts svg { width: 18px; height: 18px; color: var(--navy); flex-shrink: 0; margin-top: 1px; }

/* Adet seçici */
.qty { display: inline-flex; align-items: stretch; border: 1.5px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; background: #fff; }
.qty button {
    width: 40px; border: 0; background: var(--surface-alt); color: var(--navy);
    cursor: pointer; font-size: 17px; font-weight: 600; line-height: 1;
    transition: background .15s;
}
.qty button:hover { background: var(--navy-soft); }
.qty input {
    width: 56px; border: 0; text-align: center; font-weight: 600;
    -moz-appearance: textfield; background: #fff;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: 0; }

/* ---------------------------------------------------------------------
   11. FORMLAR
   --------------------------------------------------------------------- */
.form-grid { display: grid; gap: 16px; }
.form-grid--2 { grid-template-columns: 1fr 1fr; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--navy); }
.field label .req { color: var(--red); }
.field .hint { font-size: 11.5px; color: var(--text-light); }

.input, .select, .textarea {
    width: 100%; padding: 10px 13px;
    border: 1.5px solid var(--border-strong); border-radius: var(--radius);
    background: #fff; font-size: 14px;
    transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
    outline: 0; border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(0, 56, 101, .1);
}
.textarea { min-height: 96px; resize: vertical; }
.input--error, .textarea--error { border-color: var(--red); background: var(--red-soft); }
.field-error { font-size: 12px; color: var(--red); font-weight: 500; }

.checkline { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; }
.checkline input { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--navy); }

/* ---------------------------------------------------------------------
   12. UYARI / BİLGİ KUTULARI
   --------------------------------------------------------------------- */
.alert {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 13px 16px; border-radius: var(--radius);
    border: 1px solid transparent; font-size: 13.5px; margin-bottom: 16px;
    line-height: 1.55;
}
.alert svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 1px; }
.alert strong { display: block; margin-bottom: 2px; }
.alert--ok    { background: var(--green-soft); border-color: #bfe4cf; color: #0b6b3b; }
.alert--info  { background: var(--navy-soft);  border-color: #c6d6e4; color: var(--navy); }
.alert--warn  { background: var(--amber-soft); border-color: #f0dcb4; color: #8a5200; }
.alert--error { background: var(--red-soft);   border-color: #f4c7c8; color: #a3161b; }

.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.badge--ok     { background: var(--green-soft); color: #0b6b3b; }
.badge--info   { background: var(--navy-soft);  color: var(--navy); }
.badge--warn   { background: var(--amber-soft); color: #8a5200; }
.badge--danger { background: var(--red-soft);   color: #a3161b; }

.empty-state {
    text-align: center; padding: 56px 20px;
    background: var(--surface); border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
}
.empty-state svg { width: 52px; height: 52px; color: var(--border-strong); margin: 0 auto 14px; }
.empty-state h2 { font-size: 1.15rem; }
.empty-state p { color: var(--text-muted); max-width: 46ch; margin: 0 auto 20px; }

/* ---------------------------------------------------------------------
   13. SEPET / ÖDEME
   --------------------------------------------------------------------- */
.checkout-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 350px;
    gap: 24px; align-items: start;
}

.cart-line {
    display: grid; grid-template-columns: 88px 1fr auto;
    gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border);
    align-items: center;
}
.cart-line:last-child { border-bottom: 0; }
.cart-line__img {
    width: 88px; height: 88px; border-radius: var(--radius);
    border: 1px solid var(--border); overflow: hidden; background: var(--surface-alt);
}
.cart-line__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__name { font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
.cart-line__name a { color: var(--text); }
.cart-line__meta { font-size: 12.5px; color: var(--text-muted); }
.cart-line__unit { font-size: 12.5px; color: var(--text-muted); margin-top: 5px; }
.cart-line__right { text-align: right; display: grid; gap: 8px; justify-items: end; }
.cart-line__total { font-size: 1.02rem; font-weight: 700; color: var(--navy); }
.cart-line__controls { display: flex; align-items: center; gap: 8px; }

.summary { position: sticky; top: 16px; }
.summary__rows { list-style: none; margin: 0; padding: 0; }
.summary__rows li {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 9px 0; font-size: 14px; color: var(--text-muted);
}
.summary__rows li span:last-child { color: var(--text); font-weight: 600; }
.summary__rows li.is-free span:last-child { color: var(--green); }
.summary__total {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 12px; margin-top: 12px; padding-top: 14px;
    border-top: 2px solid var(--navy);
}
.summary__total dt { font-size: 14px; font-weight: 600; color: var(--navy); }
.summary__total dd {
    margin: 0; font-size: 1.42rem; font-weight: 700;
    color: var(--red); letter-spacing: -.02em;
}
.shipping-progress {
    margin: 14px 0 0; padding: 11px 13px;
    background: var(--navy-soft); border-radius: var(--radius);
    font-size: 12.5px; color: var(--navy);
}
.shipping-progress__bar {
    height: 5px; border-radius: 3px; background: #c6d6e4;
    margin-top: 8px; overflow: hidden;
}
.shipping-progress__bar i { display: block; height: 100%; background: var(--red); border-radius: 3px; }

/* IBAN kutusu */
.iban-box {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: #fff; border-radius: var(--radius-lg); padding: 26px; margin-bottom: 20px;
}
.iban-box h2 { color: #fff; font-size: 1.15rem; margin-bottom: 4px; }
.iban-box > p { color: rgba(255,255,255,.78); font-size: 13.5px; margin-bottom: 20px; }
.iban-rows { display: grid; gap: 1px; background: rgba(255,255,255,.14); border-radius: var(--radius); overflow: hidden; }
.iban-row {
    display: grid; grid-template-columns: 190px 1fr auto; gap: 14px;
    align-items: center; padding: 13px 16px;
    background: rgba(0, 0, 0, .22);
}
.iban-row dt { font-size: 12.5px; color: rgba(255,255,255,.66); }
.iban-row dd {
    margin: 0; font-size: 14.5px; font-weight: 600; color: #fff;
    font-variant-numeric: tabular-nums; word-break: break-word;
}
.iban-row dd.is-code {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 1.12rem; letter-spacing: .06em; color: #ffb3b6;
}
.copy-btn {
    border: 1px solid rgba(255,255,255,.32); background: rgba(255,255,255,.1);
    color: #fff; border-radius: 6px; padding: 6px 12px;
    font-size: 12px; font-weight: 600; cursor: pointer; transition: all .15s;
    white-space: nowrap;
}
.copy-btn:hover { background: #fff; color: var(--navy); }
.copy-btn.is-copied { background: #fff; color: var(--green); border-color: #fff; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li {
    counter-increment: s; display: grid;
    grid-template-columns: 30px 1fr; gap: 14px;
    font-size: 13.5px; color: var(--text-muted); line-height: 1.6;
}
.steps li::before {
    content: counter(s);
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--navy); color: #fff;
    display: grid; place-items: center;
    font-size: 13px; font-weight: 700;
}
.steps li strong { display: block; color: var(--text); }

/* ---------------------------------------------------------------------
   14. TABLOLAR
   --------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td {
    padding: 11px 13px; text-align: left;
    border-bottom: 1px solid var(--border); vertical-align: middle;
}
.table th {
    background: var(--surface-alt); color: var(--navy);
    font-weight: 600; font-size: 12px;
    text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
}
.table tbody tr:hover { background: var(--surface-alt); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table td.actions { white-space: nowrap; text-align: right; }
.table__thumb {
    width: 44px; height: 44px; border-radius: 6px; object-fit: cover;
    border: 1px solid var(--border);
}

/* Sayfalama */
.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.pager a, .pager span {
    min-width: 38px; height: 38px; padding: 0 11px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--surface); font-size: 13.5px; font-weight: 500;
}
.pager a:hover { border-color: var(--navy); background: var(--navy-soft); }
.pager .is-current { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
.pager .is-disabled { color: var(--text-light); background: var(--surface-alt); }

/* Araç çubuğu (sıralama vb.) */
.toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap; margin-bottom: 18px;
    padding: 12px 16px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius);
}
.toolbar__count { font-size: 13.5px; color: var(--text-muted); }
.toolbar__count strong { color: var(--navy); }
.toolbar form { display: flex; align-items: center; gap: 9px; }
.toolbar label { font-size: 13px; color: var(--text-muted); }
.toolbar .select { width: auto; padding: 7px 11px; font-size: 13px; }

/* Yan filtre */
.sidebar { display: grid; gap: 16px; align-content: start; }
.sidebar .card__body { padding: 16px 18px; }
.sidebar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sidebar-list a {
    display: flex; justify-content: space-between; gap: 10px;
    padding: 8px 10px; border-radius: 6px; font-size: 13.5px; color: var(--text);
}
.sidebar-list a:hover { background: var(--navy-soft); color: var(--navy); }
.sidebar-list a.is-active { background: var(--navy); color: #fff; font-weight: 600; }
.sidebar-list a.is-active .count { color: rgba(255,255,255,.7); }
.sidebar-list .count { color: var(--text-light); font-size: 12px; }

.shop-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }

/* ---------------------------------------------------------------------
   15. FOOTER
   --------------------------------------------------------------------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, .74); margin-top: 46px; }
.footer__top {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 34px; padding: 44px 18px 34px;
}
.footer__brand { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 16px; }
.footer__brand img { width: 62px; height: 62px; flex-shrink: 0; }
.footer__brand strong { display: block; color: #fff; font-size: 1.12rem; font-weight: 700; }
.footer__brand span { font-size: 12px; color: rgba(255,255,255,.6); }
.footer p { font-size: 13px; line-height: 1.7; }
.footer h3 {
    color: #fff; font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .07em; margin-bottom: 15px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { color: rgba(255, 255, 255, .74); font-size: 13px; }
.footer a:hover { color: #fff; }
.footer__contact li { display: flex; gap: 10px; font-size: 13px; line-height: 1.6; }
.footer__contact svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: #ffb3b6; }
.footer__bottom {
    background: var(--navy-dark); font-size: 12.5px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer__bottom-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 15px 18px; flex-wrap: wrap;
}
.footer__bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   16. YÖNETİM PANELİ
   --------------------------------------------------------------------- */
body.admin { background: #eef0f4; }

.admin-bar { background: var(--navy-dark); color: #fff; }
.admin-bar__inner {
    display: flex; align-items: center; gap: 20px;
    padding: 11px 18px; flex-wrap: wrap;
}
.admin-bar__brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; color: #fff; font-size: 15px;
}
.admin-bar__brand img { width: 30px; height: 30px; }
.admin-bar__brand small {
    font-weight: 500; font-size: 10.5px; color: #ffb3b6;
    text-transform: uppercase; letter-spacing: .08em;
    border-left: 1px solid rgba(255,255,255,.25); padding-left: 10px;
}
.admin-bar__right { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 12.5px; }
.admin-bar__right span { color: rgba(255,255,255,.7); }
.admin-bar a { color: rgba(255,255,255,.85); }
.admin-bar a:hover { color: #fff; }

.admin-nav { background: var(--navy); }
.admin-nav ul { list-style: none; margin: 0; padding: 0 18px; display: flex; flex-wrap: wrap; }
.admin-nav a {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; color: #dbe6ef; font-size: 13.5px; font-weight: 500;
    border-bottom: 3px solid transparent;
}
.admin-nav a:hover { background: var(--navy-mid); color: #fff; }
.admin-nav a.is-active { background: var(--navy-mid); color: #fff; border-bottom-color: var(--red); font-weight: 600; }
.admin-nav svg { width: 16px; height: 16px; }

.admin-main { padding: 26px 0 50px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat {
    background: var(--surface); border: 1px solid var(--border);
    border-left: 4px solid var(--navy);
    border-radius: var(--radius); padding: 17px 19px;
}
.stat--red   { border-left-color: var(--red); }
.stat--amber { border-left-color: var(--amber); }
.stat--green { border-left-color: var(--green); }
.stat__label {
    font-size: 11.5px; color: var(--text-muted); font-weight: 600;
    text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px;
}
.stat__value { font-size: 1.7rem; font-weight: 700; color: var(--navy); line-height: 1.1; letter-spacing: -.02em; }
.stat__hint { font-size: 12px; color: var(--text-light); margin-top: 3px; }

/* Giriş ekranı */
.login-page {
    min-height: 100vh; display: grid; place-items: center; padding: 24px;
    background:
        radial-gradient(800px 400px at 20% 0%, rgba(227, 30, 36, .22), transparent 60%),
        linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
}
.login-card {
    width: 100%; max-width: 410px; background: var(--surface);
    border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0, 0, 0, .34);
    padding: 34px 32px;
}
.login-card__head { text-align: center; margin-bottom: 26px; }
.login-card__head img { width: 66px; height: 66px; margin: 0 auto 14px; }
.login-card__head h1 { font-size: 1.22rem; margin-bottom: 3px; }
.login-card__head p { font-size: 12.5px; color: var(--text-muted); margin: 0; }
.login-foot { text-align: center; margin-top: 22px; font-size: 12px; color: var(--text-light); }

/* ---------------------------------------------------------------------
   17. YARDIMCI SINIFLAR
   --------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 12.5px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.fw-600 { font-weight: 600; }
.nowrap { white-space: nowrap; }
.mono { font-family: 'Consolas', 'Courier New', monospace; letter-spacing: .03em; }
.flex-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.flex-between { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   18. DUYARLI TASARIM
   --------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
    .shop-layout { grid-template-columns: 220px minmax(0, 1fr); }
}

@media (max-width: 960px) {
    .hero__inner { grid-template-columns: 1fr; padding: 40px 18px 44px; }
    .hero__art { display: none; }
    .hero-strip__inner { grid-template-columns: 1fr 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .summary { position: static; }
    .pdp { grid-template-columns: 1fr; gap: 24px; }
    .shop-layout { grid-template-columns: 1fr; }
    .sidebar { order: 2; }
}

@media (max-width: 860px) {
    /* Mobilde başlık iki satıra düşer, arama alta geçer */
    .masthead__inner { flex-wrap: wrap; gap: 12px; }
    .searchbar { order: 3; flex-basis: 100%; max-width: none; }
    .nav-toggle { display: inline-flex; }

    /* Menü açılır panele dönüşür */
    .mainnav__list {
        display: none; flex-direction: column;
        background: var(--navy); padding-bottom: 8px;
    }
    .mainnav__list.is-open { display: flex; }
    .mainnav__item { width: 100%; }
    .mainnav__link { padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
    .mainnav__link svg { margin-left: auto; transition: transform .2s; }
    .mainnav__item.is-open > .mainnav__link svg { transform: rotate(180deg); }

    .submenu {
        position: static; opacity: 1; visibility: visible; transform: none;
        display: none; box-shadow: none; border: 0; border-radius: 0;
        background: rgba(0, 0, 0, .2); columns: 1; min-width: 0; padding: 4px 0 8px;
    }
    .mainnav__item.is-open > .submenu { display: block; }
    .submenu a { color: rgba(255,255,255,.82); padding: 9px 30px; border-radius: 0; }
    .submenu a:hover { background: rgba(255,255,255,.1); color: #fff; }
    .submenu__all a { color: #ffb3b6; border-top-color: rgba(255,255,255,.14); }

    .form-grid--2 { grid-template-columns: 1fr; }
    .iban-row { grid-template-columns: 1fr; gap: 5px; }
    .iban-row .copy-btn { justify-self: start; }
    .footer__bottom-inner { justify-content: center; text-align: center; }
}

@media (max-width: 620px) {
    body { font-size: 14.5px; }
    h1 { font-size: 1.5rem; }
    .brand__logo { width: 44px; height: 44px; }
    .brand__name { font-size: 1.14rem; }
    .brand__sub { display: none; }
    .topbar__left .topbar__item:not(:first-child) { display: none; }
    .hero-strip__inner { grid-template-columns: 1fr; }
    .hero-strip__item { padding: 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
    .grid--products { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; }
    .footer__top { grid-template-columns: 1fr; }
    .cart-line { grid-template-columns: 64px 1fr; }
    .cart-line__img { width: 64px; height: 64px; }
    .cart-line__right { grid-column: 1 / -1; justify-items: stretch; text-align: left; }
    .cart-line__controls { justify-content: space-between; }
    .icon-btn span.label { display: none; }
    .pdp__price { font-size: 1.7rem; }
    .section { padding: 24px 0; }
}

/* ---------------------------------------------------------------------
   19. YAZDIRMA
   --------------------------------------------------------------------- */
@media print {
    .topbar, .mainnav, .searchbar, .header-actions, .footer__top,
    .nav-toggle, .btn, .copy-btn, .crumbs { display: none !important; }
    body { background: #fff; font-size: 12px; }
    .card, .iban-box { box-shadow: none; border: 1px solid #ccc; }
    .iban-box { background: #fff !important; color: #000 !important; }
    .iban-box h2, .iban-row dd { color: #000 !important; }
    .iban-row { background: #f4f4f4 !important; }
    .iban-row dt { color: #444 !important; }
}

/* Hareket duyarlılığı */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
