/* ==========================================================================
   Mirsan Rack — ortak site başlığı (kariyer.mirsanrack.com)

   Bu dosya www.mirsanrack.com'daki başlığın birebir kopyasıdır.
   Kaynak: mirsannewwebapp/webroot/css/mirsan.css
     · satır 228–1187  (başlık, mega menü, katalog menüsü, arama, mobil menü)
     · satır 4752–5049 (teklif sepeti düğmesi ve çekmecesi)
     · satır 5689–5740 (başlığa ait duyarlı kurallar)
   Ana sitede stil değişirse bu dosya elle güncellenmelidir.

   Kariyer sitesi kendi tasarım belirteçlerini (--accent, --text …) kullandığı
   için ana sitenin belirteçleri burada .site-* kapsamına değil :root'a
   yazılır; adları çakışmıyor.
   ========================================================================== */

:root {
  --color-ink: #0f172a;
  --color-ink-soft: #475569;
  --color-paper: #f8fafc;
  --color-paper-dim: #eef2f7;
  --color-line: #e2e8f0;
  --color-white: #ffffff;
  --color-dark: #0b1220;
  --color-dark-soft: #94a3b8;
  --color-blue: #0369a1;
  --color-orange: #ed8316;
  --color-orange-hover: #ff9a34;

  --font-display: 'Lexend', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container-x: 64px;
  --header-h: 88px;
}

/* Ana sitede bu kurallar `.mirsan` gövde sınıfından geliyor; burada
   yalnızca başlık ağacına uygulanır ki kariyer sayfasının kendi stilleri
   etkilenmesin. */
.site-header,
.site-header *,
.mobile-menu,
.mobile-menu *,
.search-panel,
.search-panel *,
.basket-drawer,
.basket-drawer * {
  box-sizing: border-box;
}

.site-header,
.mobile-menu,
.search-panel,
.basket-drawer {
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.site-header a,
.mobile-menu a,
.search-panel a,
.basket-drawer a {
  text-decoration: none;
}

.site-header img,
.mobile-menu img,
.basket-drawer img {
  max-width: 100%;
  display: block;
}

/* hidden özniteliği her zaman kazansın. */
.mobile-menu[hidden],
.search-panel[hidden],
.basket-drawer[hidden] {
  display: none !important;
}

/* Başlık yatay boşluğu: ana sitede `.mirsan header` kuralından gelir. */
.site-header {
  padding-left: var(--container-x);
  padding-right: var(--container-x);
}

/* --- Butonlar (yalnızca başlıkta kullanılanlar) --------------------------- */
.site-header .btn,
.mobile-menu .btn,
.search-panel .btn,
.basket-drawer .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 26px;
  border-radius: 3px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}

.site-header .btn:hover,
.mobile-menu .btn:hover,
.search-panel .btn:hover,
.basket-drawer .btn:hover {
  transform: translateY(-1px);
}

.site-header .btn--sm,
.mobile-menu .btn--sm,
.search-panel .btn--sm,
.basket-drawer .btn--sm {
  padding: 12px 22px;
  font-size: 14px;
}

.site-header .btn-primary,
.mobile-menu .btn-primary,
.search-panel .btn-primary,
.basket-drawer .btn-primary {
  background: var(--color-orange);
  color: var(--color-ink);
}

.site-header .btn-primary:hover,
.mobile-menu .btn-primary:hover,
.search-panel .btn-primary:hover,
.basket-drawer .btn-primary:hover {
  background: var(--color-orange-hover);
  color: var(--color-ink);
}

/* ==========================================================================
   Header — koyu cam, yapışkan
   ========================================================================== */
.site-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  /* Sayfanın en üstünde de gri bir perde değil, tam koyu zemin. */
  background: #0b0f14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  backdrop-filter: blur(16px) saturate(1.35);
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.site-header.is-scrolled {
  background: #080b0f;
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

/* Sayfa ilerleme çizgisi — başlığın alt kenarında. */
.site-header__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--color-orange);
  will-change: transform;
}

/* Kaydırma durumunu CSS'in kendi zaman çizelgesiyle sür.
   Bunu JavaScript ile yapmak her kaydırma karesinde scrollY/scrollHeight
   okumayı ve dolayısıyla zorunlu yeniden yerleşimi (forced reflow)
   gerektiriyordu. `scroll()` zaman çizelgesi aynı işi derleyici tarafında,
   ana iş parçacığını hiç meşgul etmeden yapar. Desteklemeyen tarayıcılarda
   site.js eski rAF yöntemine düşer (bkz. webroot/js/site.js). */
@supports (animation-timeline: scroll()) {
  .site-header__progress {
    animation: mirsan-scroll-progress linear both;
    animation-timeline: scroll(root block);
  }

  .site-header {
    animation: mirsan-header-scrolled linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 64px;
  }
}

@keyframes mirsan-scroll-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes mirsan-header-scrolled {
  to {
    background: #080b0f;
    border-bottom-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  }
}

.site-header__logo-link {
  display: flex;
  align-items: center;
  flex: none;
  transition: opacity .2s ease;
}

.site-header__logo-link:hover {
  opacity: 0.82;
}

.site-header__logo {
  height: 30px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-right: auto;
  margin-left: 46px;
}

.site-nav a {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: #c2c9d1;
  padding: 6px 0;
  white-space: nowrap;
  transition: color .2s ease;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--color-blue) 0%,
    #1687b5 38%,
    var(--color-orange) 100%
  );
  box-shadow: 0 0 8px rgba(3, 105, 161, .24), 0 0 8px rgba(237, 131, 22, .18);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .32s cubic-bezier(0.22, 0.68, 0.15, 1);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

/* --- "Kurumsal" mega menü ------------------------------------------------ */
.nav-item--mega {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-item--catalog {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
}

.nav-item--catalog > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-item--catalog:hover .nav-item__chevron,
.nav-item--catalog:focus-within .nav-item__chevron {
  transform: rotate(180deg);
}

.catalog-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  width: min(760px, calc(100vw - 48px));
  padding-top: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-58%, 10px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(0.22, 0.68, 0.15, 1), visibility .22s;
}

.nav-item--catalog:hover .catalog-menu,
.nav-item--catalog:focus-within .catalog-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-58%, 0);
  pointer-events: auto;
}

.catalog-menu__panel {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: rgba(11, 15, 20, .98);
  box-shadow: 0 32px 70px -24px rgba(0, 0, 0, .78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.catalog-menu__panel::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--color-orange);
  content: '';
}

.site-nav .catalog-menu a::after {
  display: none;
}

.catalog-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.catalog-menu__head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-menu__eyebrow {
  color: var(--color-orange);
  font: 600 10px/1 var(--font-mono);
  letter-spacing: .08em;
}

.catalog-menu__head strong {
  color: #f5f7f8;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}

.site-nav .catalog-menu__all {
  display: inline-flex;
  min-width: 66px;
  height: 32px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 999px;
  color: #c8cfd6;
  background: rgba(255, 255, 255, .045);
  font: 600 11px/1 var(--font-mono);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.site-nav .catalog-menu__all:hover {
  border-color: rgba(237, 131, 22, .48);
  color: #fff;
  background: rgba(237, 131, 22, .1);
}

.catalog-menu__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.site-nav .catalog-menu__item {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .085);
  border-radius: 9px;
  color: #e8edf2;
  background: rgba(255, 255, 255, .025);
  opacity: 0;
  transform: translateY(9px);
  white-space: normal;
  transition: transform .25s cubic-bezier(0.22, 0.68, 0.15, 1), border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.nav-item--catalog:hover .catalog-menu__item,
.nav-item--catalog:focus-within .catalog-menu__item {
  animation: catalog-card-in .38s cubic-bezier(0.22, 0.68, 0.15, 1) forwards;
  animation-delay: calc(var(--i) * 42ms);
}

@keyframes catalog-card-in {
  to { opacity: 1; transform: translateY(0); }
}

.site-nav .catalog-menu__item:hover {
  border-color: rgba(237, 131, 22, .48);
  background: rgba(255, 255, 255, .055);
  box-shadow: 0 18px 30px -20px rgba(0, 0, 0, .9);
  transform: translateY(-4px);
}

.catalog-menu__cover {
  position: relative;
  display: flex;
  height: 152px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
  background: linear-gradient(145deg, #e9ecea, #cfd5d2);
}

.catalog-menu__cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 9px 10px rgba(0, 0, 0, .22));
  transition: transform .3s cubic-bezier(0.22, 0.68, 0.15, 1);
}

.catalog-menu__item:hover .catalog-menu__cover img {
  transform: scale(1.045);
}

.catalog-menu__icon {
  display: inline-flex;
  width: 54px;
  height: 70px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 24, 29, .15);
  border-radius: 5px;
  color: var(--color-orange);
  background: #fff;
  font: 700 10px/1 var(--font-mono);
}

.catalog-menu__body {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 5px;
  padding: 11px 11px 12px;
}

.catalog-menu__item strong {
  display: -webkit-box;
  min-height: 34px;
  overflow: hidden;
  color: #eef2f5;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.catalog-menu__item small,
.catalog-menu__empty {
  color: #818b95;
  font: 500 10px/1 var(--font-mono);
}

.catalog-menu__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 5px;
}

.site-nav .catalog-menu__actions a {
  display: inline-flex;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 5px;
  color: #dce2e7;
  background: rgba(255, 255, 255, .045);
  font: 700 9px/1 var(--font-mono);
  letter-spacing: .06em;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.site-nav .catalog-menu__actions a:first-child {
  border-color: rgba(237, 131, 22, .32);
  color: #ffab58;
}

.site-nav .catalog-menu__actions a:hover {
  border-color: var(--color-orange);
  color: #101419;
  background: var(--color-orange);
}

.catalog-menu__empty {
  display: block;
  padding: 12px 10px;
}

.nav-item--mega > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-item__chevron {
  transition: transform .25s cubic-bezier(0.22, 0.68, 0.15, 1);
}

.nav-item--mega:hover .nav-item__chevron,
.nav-item--mega:focus-within .nav-item__chevron {
  transform: rotate(180deg);
}

.mega-menu {
  --mega-cols: 5;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  /* Panel genişliği kart sayısına göre ölçeklenir (bkz. templates/element/site_header.php
     --mega-cols) — bir kart kaldırılıp eklendiğinde boş sütun/oransız geniş panel kalmaz. */
  width: min(calc(168px * var(--mega-cols) + 10px * (var(--mega-cols) - 1) + 44px), 84vw);
  padding-top: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(0.22, 0.68, 0.15, 1), visibility .22s;
}

.nav-item--mega:hover .mega-menu,
.nav-item--mega:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.mega-menu__panel {
  position: relative;
  padding: 24px 24px 26px;
  background: linear-gradient(165deg, #12161c 0%, #0a0d11 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  box-shadow:
    0 48px 96px -32px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  overflow: hidden;
}

.mega-menu__panel::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: -60%;
  left: 50%;
  width: 70%;
  height: 140%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at top, rgba(237, 131, 22, 0.16), transparent 62%);
  pointer-events: none;
}

.mega-menu__panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(237, 131, 22, 0.55), rgba(0, 121, 188, 0.55), transparent);
}

.mega-menu__intro {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mega-menu__intro-eyebrow {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-orange);
}

.mega-menu__intro-eyebrow::before {
  content: '';
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.6;
}

.mega-menu__intro-text {
  font-size: 13px;
  color: #8d959e;
}

.mega-menu__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(var(--mega-cols, 5), 1fr);
  gap: 10px;
}

.mega-menu__tile {
  position: relative;
  /* Kart, menü görselleriyle aynı oranda (16:9): görsel kartı tam doldurur,
     ne kırpılır ne de altında koyu boşluk kalır. Yazı fotoğrafın üzerindedir. */
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background-color: #10151b;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform .35s cubic-bezier(0.22, 0.68, 0.15, 1), border-color .3s ease, box-shadow .3s ease;
  opacity: 0;
  transform: translateY(10px);
}

.nav-item--mega:hover .mega-menu__tile,
.nav-item--mega:focus-within .mega-menu__tile {
  animation: mega-tile-in .45s cubic-bezier(0.22, 0.68, 0.15, 1) forwards;
  animation-delay: calc(var(--i) * 45ms);
}

@keyframes mega-tile-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mega-menu__tile:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(237, 131, 22, 0.55);
  box-shadow:
    0 24px 44px -18px rgba(237, 131, 22, 0.3),
    0 20px 40px -20px rgba(0, 0, 0, 0.65);
}

/* Yazı alanı fotoğrafın altında ayrı bir şerit olduğu için görselin üzerine
   perde çekilmez. */
.mega-menu__tile-scrim {
  display: none;
}

.mega-menu__tile-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}


/* Yazı, fotoğrafın üzerinde duran buzlu cam bir etikette: koyu bant yok,
   görselin altı bulanıklaşarak yazıyı her zeminde okunur kılıyor.
   backdrop-filter desteklenmeyen tarayıcıda arka plan biraz daha koyu kalır. */
.mega-menu__tile-text {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  display: flex;
  gap: 7px;
  padding: 7px 10px 8px;
  border-radius: 8px;
  background: rgba(10, 13, 17, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background .3s ease, transform .3s cubic-bezier(0.22, 0.68, 0.15, 1);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .mega-menu__tile-text {
    background: rgba(10, 13, 17, 0.38);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
  }
}

.mega-menu__tile:hover .mega-menu__tile-text {
  background: rgba(10, 13, 17, 0.5);
  transform: translateY(-2px);
}

.mega-menu__tile-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
}

.mega-menu__tile-desc {
  font-size: 10.5px;
  color: #dfe3e7;
  line-height: 1.3;
  /* Dar kartta uzun açıklama etiketten taşmasın. */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mega-menu__tile-arrow {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-orange);
  color: #fff;
  opacity: 0;
  transform: translate(-4px, 4px) scale(0.8);
  box-shadow: 0 8px 16px -6px rgba(237, 131, 22, 0.7);
  transition: opacity .25s ease, transform .25s ease;
}

.mega-menu__tile:hover .mega-menu__tile-arrow {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

@media (max-width: 1100px) {
  .mega-menu,
  .catalog-menu {
    display: none;
  }
}

/* --- Mobil menüde "Kurumsal" alt bağlantıları ---------------------------- */
.mobile-menu__submenu {
  display: flex;
  flex-direction: column;
  padding-left: 18px;
  margin: -6px 0 6px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s ease, transform .45s cubic-bezier(0.22, 0.68, 0.15, 1);
  transition-delay: calc(var(--i) * 45ms + 60ms);
}

.mobile-menu.is-open .mobile-menu__submenu {
  opacity: 1;
  transform: none;
}

.mobile-menu__submenu a {
  padding: 9px 0;
  font-size: 15px;
  color: #9aa0a6;
}

.mobile-menu__submenu a:hover,
.mobile-menu__submenu a:active {
  color: #fff;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: none;
}

.site-language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 4px;
  color: #fff;
  font: 600 11px/1 var(--font-mono);
  letter-spacing: .08em;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}

.site-language:hover { border-color: var(--color-orange); color: var(--color-orange); }

/* --- Arama --------------------------------------------------------------- */
.header-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #e3e7eb;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.header-search-toggle:hover,
.header-search-toggle[aria-expanded="true"] {
  background: rgba(237, 131, 22, 0.14);
  border-color: rgba(237, 131, 22, 0.4);
  color: var(--color-orange);
}

.search-panel {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 60;
  background: #0b0f14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .3s ease, transform .3s cubic-bezier(0.22, 0.68, 0.15, 1);
}

.search-panel.is-open {
  opacity: 1;
  transform: translateY(0);
}

.search-panel__form {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px var(--container-x);
  color: #8d959e;
}

.search-panel__form input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-family: var(--font-display);
  font-size: 21px;
  padding: 8px 0;
  outline: none;
  transition: border-color .2s ease;
}

.search-panel__form input::placeholder {
  color: #5c6673;
}

.search-panel__form input:focus {
  border-bottom-color: var(--color-orange);
}

.search-panel__close {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #c2c9d1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.search-panel__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

@media (max-width: 640px) {
  .search-panel__form {
    flex-wrap: wrap;
    gap: 10px;
  }

  .search-panel__form input {
    font-size: 17px;
    order: 1;
    width: 100%;
  }
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 500;
  color: #e3e7eb;
  transition: color .2s ease;
}

.phone-link:hover {
  color: #fff;
}

.phone-link__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--color-orange);
  background: rgba(237, 131, 22, 0.14);
  border: 1px solid rgba(237, 131, 22, 0.3);
  transition: background .2s ease, transform .2s ease;
}

.phone-link:hover .phone-link__icon {
  background: rgba(237, 131, 22, 0.24);
  transform: translateY(-1px);
}

/* Hamburger — açıkken çarpıya dönüşür. */
.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .3s cubic-bezier(0.22, 0.68, 0.15, 1), opacity .2s ease;
}

.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }

.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- Mobil menü paneli --------------------------------------------------- */
/* Panel yalnızca JS açtığında (hidden kalkınca) görünür; aksi hâlde
   display:none olmalı — yoksa saydam hâliyle sayfanın üstünü kaplar ve
   tıklamaları yutar. */
.mobile-menu {
  display: none;
}

.mobile-menu:not([hidden]) {
  display: flex;
}

@media (min-width: 961px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu:not([hidden]) {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 45;
  background: linear-gradient(180deg, #0b0f14, #080b0f);
  padding: 26px var(--container-x) 40px;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .28s ease, transform .28s ease;
  overflow-y: auto;
}

.mobile-menu.is-open {
  opacity: 1;
  transform: none;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 2px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: #e8ebee;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(14px);
}

.mobile-menu.is-open .mobile-menu__nav a,
.mobile-menu.is-open .mobile-menu__foot {
  animation: menu-in .45s cubic-bezier(0.22, 0.68, 0.15, 1) forwards;
  animation-delay: calc(var(--i) * 45ms + 60ms);
}

.mobile-menu__nav a.is-active {
  color: var(--color-orange);
}

.mobile-menu__nav a svg {
  color: #5f6a75;
}

.mobile-menu__foot {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(14px);
}

.mobile-menu__foot .btn {
  justify-content: center;
}

.mobile-menu__phone {
  font-family: var(--font-mono);
  font-size: 15px;
  color: #b7bec6;
}

@keyframes menu-in {
  to { opacity: 1; transform: none; }
}


/* ==========================================================================
   Teklif sepeti düğmesi ve çekmecesi
   ========================================================================== */
.basket-button {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #e3e7eb;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.basket-button:hover,
.basket-button.has-items {
  border-color: rgba(237, 131, 22, 0.55);
  color: #fff;
}

.basket-button__count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 100px;
  background: var(--color-orange);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 19px;
  text-align: center;
  transform: scale(0);
  transition: transform .25s cubic-bezier(0.22, 1.4, 0.4, 1);
}

.basket-button__count.is-visible {
  transform: scale(1);
}

.basket-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.basket-drawer[hidden] {
  display: none;
}

.basket-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 12, 0.6);
  opacity: 0;
  transition: opacity .28s ease;
}

.basket-drawer.is-open .basket-drawer__backdrop {
  opacity: 1;
}

.basket-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  background: #0f1319;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(0.22, 0.68, 0.15, 1);
}

.basket-drawer.is-open .basket-drawer__panel {
  transform: none;
}

.basket-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.basket-drawer__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: #fff;
}

.basket-drawer__summary {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #8d959e;
}

.basket-drawer__close {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  background: transparent;
  color: #c2c9d1;
  cursor: pointer;
}

.basket-drawer__close:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.basket-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px;
}

.basket-drawer__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 48px 10px;
  color: #7d868f;
}

.basket-drawer__empty p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 260px;
}

.basket-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.basket-item__media {
  flex: none;
  width: 62px;
  height: 62px;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.basket-item__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.basket-item__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.basket-item__code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-orange);
  margin-top: 2px;
}

.basket-item__options {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #99a1a9;
}

.basket-item__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.qty--sm .qty__btn {
  width: 30px;
  height: 32px;
  font-size: 16px;
}

.qty__value {
  min-width: 34px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: #fff;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  line-height: 32px;
}

.basket-item__remove {
  border: 0;
  background: transparent;
  color: #7d868f;
  font-size: 12.5px;
  cursor: pointer;
  transition: color .2s ease;
}

.basket-item__remove:hover {
  color: #ff7d6b;
}

.basket-drawer__foot {
  padding: 18px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.basket-drawer__note {
  font-size: 12px;
  color: #7d868f;
  margin-bottom: 12px;
}

.basket-drawer__send {
  width: 100%;
  justify-content: center;
}

.basket-drawer__send.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.basket-drawer__clear {
  display: block;
  width: 100%;
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: #7d868f;
  font-size: 12.5px;
  cursor: pointer;
}

.basket-drawer__clear:hover {
  color: #c2c9d1;
}

/* Ekleme bildirimi */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 70;
  padding: 13px 20px;
  border-radius: 6px;
  background: #11161d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 14px;
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: transform .3s cubic-bezier(0.22, 0.68, 0.15, 1), opacity .3s ease;
}

.toast.is-in {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .config-buy__add.is-added {
    animation: none;
    opacity: 1;
    transform: none;
  }
}


/* ==========================================================================
   Responsive — mirsan.css satır 5689–5740'tan başlığa ait kurallar
   ========================================================================== */

/* Sekiz öğeli ana menüyü orta boy masaüstlerinde taşırmadan koru. */
@media (max-width: 1350px) {
  .site-nav {
    gap: 20px;
    margin-left: 30px;
  }

  .site-header .phone-link,
  .site-header__actions > .btn {
    display: none;
  }
}

@media (max-width: 1180px) {
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 960px) {
  :root {
    --container-x: 32px;
    --header-h: 64px;
  }

  .site-nav,
  .site-header .phone-link {
    display: none;
  }

  .site-header__logo {
    height: 24px;
  }

  .site-header__actions {
    gap: 10px;
  }

  /* Aynı CTA mobil menü panelinin altında zaten var; başlıkta yer
     kaplamasın diye gizlenir — aksi hâlde dar ekranda hamburger düğmesi
     görünüm dışına taşabiliyordu. */
  .site-header__actions > .btn {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}

/* --- Sepet öğesi adet kontrolü ve bildirim (mirsan.css 3849–3894, 5020–5041) --- */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.qty__btn {
  width: 40px;
  height: 46px;
  border: 0;
  background: transparent;
  color: #d8dde2;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.qty__btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.qty__input {
  width: 54px;
  height: 46px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #fff;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 15px;
  -moz-appearance: textfield;
}

.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 70;
  padding: 13px 20px;
  border-radius: 6px;
  background: #11161d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 14px;
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: transform .3s cubic-bezier(0.22, 0.68, 0.15, 1), opacity .3s ease;
}

.toast.is-in {
  transform: translate(-50%, 0);
  opacity: 1;
}

