/* ==========================================================================
   MutfakDoktoru v2 — koyu header, serif hero, kategori kartlari, sekmeli urunler
   (2026-10-13, referans: "Profesyonel Mutfak Ekipmanları Mağazası.png")
   ========================================================================== */
:root {
  --md-red: #d7212b;
  --md-red-dark: #b3161f;
  --md-dark: #0e0f11;
  --md-dark-2: #17191c;
  --md-gold: #e7c38a;
  --md-soft: #f5f5f6;
  --md-line: #e7e8ea;
  --md-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --color-red: #d7212b;
  --color-red-dark: #b3161f;
}

/* ---------- Header ---------- */
.mdx-header {
  position: relative;
  z-index: 120;
  background: var(--md-dark);
  color: #fff;
  padding-bottom: 14px;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.mdx-header--over {
  position: absolute; top: 0; left: 0; right: 0;
  background: linear-gradient(to bottom, rgba(8,8,9,.88), rgba(8,8,9,.45) 70%, rgba(8,8,9,0));
  box-shadow: none;
}
.mdx-header__top {
  display: flex; align-items: center; gap: 28px;
  padding-top: 10px; padding-bottom: 8px;
}
.mdx-logo { flex-shrink: 0; display: block; }
.mdx-logo img { height: 84px; width: auto; display: block; }

.mdx-search {
  position: relative; flex: 1; max-width: 430px;
  display: flex; align-items: center; gap: 10px;
  background: #fff; color: #6b7075;
  border-radius: 10px; padding: 0 14px; height: 46px;
}
.mdx-search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: 500 14px/1 var(--font-body); color: var(--color-ink); min-width: 0;
}
.mdx-search input::-webkit-search-cancel-button { display: none; }
.mdx-search__results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.25);
  overflow: hidden; display: none; z-index: 30;
}
.mdx-search__results.is-open { display: block; }
.mdx-search__results a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--color-ink); font-size: 13px; border-bottom: 1px solid var(--md-line); }
.mdx-search__results a:last-child { border-bottom: 0; }
.mdx-search__results a:hover { background: var(--md-soft); }
.mdx-search__results img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.mdx-search__results .p { margin-left: auto; font-weight: 800; white-space: nowrap; }
.mdx-search__results .empty { padding: 14px; font-size: 13px; color: #6b7075; }

.mdx-links { display: flex; gap: 26px; margin-left: auto; }
.mdx-links a { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.92); transition: color .2s; white-space: nowrap; }
.mdx-links a:hover { color: #fff; }
.mdx-links a.is-service { color: #ff4d55; display: inline-flex; align-items: center; gap: 8px; }
.mdx-links a.is-service::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff3b45; box-shadow: 0 0 0 4px rgba(255,59,69,.22); }

.mdx-icons { display: flex; align-items: center; gap: 6px; }
.mdx-icon { position: relative; width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: transparent; border: 0; transition: background .2s; }
.mdx-icon:hover { background: rgba(255,255,255,.1); }
.mdx-badge { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--md-red); color: #fff; font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.mdx-burger { display: none; }

.mdx-catbar {
  display: flex; align-items: center; gap: 4px;
  background: rgba(22,23,26,.72);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 6px 6px 6px 10px;
  backdrop-filter: blur(8px);
}
.mdx-catbar__all { display: inline-flex; align-items: center; gap: 9px; background: none; border: 0; color: #fff; font-size: 14px; font-weight: 700; padding: 10px 14px 10px 6px; margin-right: 8px; border-right: 1px solid rgba(255,255,255,.14); }
.mdx-catbar__link { display: block; color: rgba(255,255,255,.9); font-size: 13.5px; font-weight: 600; padding: 10px 13px; border-radius: 8px; white-space: nowrap; transition: background .2s, color .2s; }
.mdx-catbar__link:hover, .mdx-dd:hover .mdx-catbar__link { background: rgba(255,255,255,.08); color: #fff; }
.mdx-catbar__cta { margin-left: auto; background: var(--md-red); color: #fff; font-weight: 700; font-size: 14px; padding: 12px 26px; border-radius: 9px; white-space: nowrap; transition: background .2s, transform .2s; }
.mdx-catbar__cta:hover { background: var(--md-red-dark); }

.mdx-dd { position: relative; }
.mdx-dd__panel {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
  background: #fff; border-radius: 12px; padding: 8px;
  box-shadow: 0 22px 50px rgba(0,0,0,.28);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s; z-index: 40;
}
.mdx-dd__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.mdx-dd:hover .mdx-dd__panel, .mdx-dd.is-open .mdx-dd__panel, .mdx-dd:focus-within .mdx-dd__panel { opacity: 1; visibility: visible; transform: none; }
.mdx-dd__panel a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--color-ink); }
.mdx-dd__panel a:hover { background: var(--md-soft); color: var(--md-red); }
.mdx-dd__panel .mdx-dd__all { font-weight: 700; color: var(--md-red); }
.mdx-dd__panel--wide { width: 640px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }

/* ---------- Ortak ---------- */
.mdx-eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #ff3b45; margin-bottom: 16px; }
.mdx-gold { color: var(--md-gold); background: linear-gradient(180deg, #f6dcae 0%, #e2b773 60%, #c99a55 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mdx-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 999px; font-size: 15px; font-weight: 700; transition: background .2s, color .2s, transform .2s, border-color .2s; }
.mdx-btn:hover { transform: translateY(-2px); }
.mdx-btn--red { background: var(--md-red); color: #fff; box-shadow: 0 10px 26px rgba(215,33,43,.38); }
.mdx-btn--red:hover { background: var(--md-red-dark); }
.mdx-btn--ghost { border: 1.5px solid rgba(255,255,255,.75); color: #fff; }
.mdx-btn--ghost:hover { background: #fff; color: var(--md-dark); }

.mdx-section { padding: 72px 0; }
.mdx-section--tight { padding: 36px 0; }
.mdx-section--soft { background: var(--md-soft); }
.mdx-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.mdx-title { display: flex; align-items: center; gap: 14px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 900; letter-spacing: .01em; text-transform: uppercase; color: var(--md-dark); }
.mdx-title::before { content: ""; width: 34px; height: 4px; border-radius: 2px; background: var(--md-red); }
.mdx-more { display: inline-flex; align-items: center; gap: 7px; color: var(--md-red); font-size: 14px; font-weight: 700; white-space: nowrap; }
.mdx-more:hover { gap: 11px; }

/* ---------- Hero ---------- */
.mdx-hero { position: relative; min-height: 760px; display: flex; color: #fff; background: var(--md-dark); overflow: hidden; }
.mdx-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; transform: scale(1.03); animation: mdxZoom 18s ease-out forwards; }
@keyframes mdxZoom { to { transform: scale(1); } }
.mdx-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,9,.92) 0%, rgba(8,8,9,.72) 38%, rgba(8,8,9,.15) 70%, rgba(8,8,9,.35) 100%), linear-gradient(0deg, rgba(8,8,9,.9) 0%, rgba(8,8,9,0) 35%); }
.mdx-hero__inner { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 230px; padding-bottom: 38px; }
.mdx-hero__content { max-width: 660px; margin-bottom: 64px; }
.mdx-hero__title { font-family: var(--md-serif); font-weight: 700; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -.01em; margin-bottom: 22px; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.mdx-hero__title .mdx-gold { display: block; }
.mdx-hero__desc { font-size: 17px; line-height: 1.65; color: rgba(255,255,255,.86); max-width: 520px; margin-bottom: 32px; }
.mdx-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.mdx-hero__trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); }
.mdx-trust { display: flex; align-items: center; gap: 14px; }
.mdx-trust__ic { width: 50px; height: 50px; flex-shrink: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); display: flex; align-items: center; justify-content: center; color: #fff; }
.mdx-trust strong { display: block; font-size: 14.5px; font-weight: 700; margin-bottom: 3px; }
.mdx-trust small { font-size: 12.5px; color: rgba(255,255,255,.66); }

/* ---------- Kategori kartlari ---------- */
.mdx-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.mdx-cat { position: relative; display: block; padding-bottom: 6px; }
.mdx-cat__img { display: block; height: 170px; border-radius: 12px; overflow: hidden; background: #222; }
.mdx-cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mdx-cat:hover .mdx-cat__img img { transform: scale(1.07); }
.mdx-cat__card {
  position: relative; display: flex; align-items: flex-start; gap: 14px;
  margin: -46px 14px 0 0; background: #fff; border-radius: 0 12px 12px 12px;
  padding: 18px 46px 18px 18px; min-height: 96px;
  box-shadow: 0 12px 30px rgba(15,16,18,.10); transition: box-shadow .25s, transform .25s;
}
.mdx-cat:hover .mdx-cat__card { box-shadow: 0 18px 40px rgba(15,16,18,.16); transform: translateY(-3px); }
.mdx-cat__ic { color: var(--md-red); flex-shrink: 0; margin-top: 2px; }
.mdx-cat__txt strong { display: block; font-size: 16px; font-weight: 800; color: var(--md-dark); line-height: 1.25; margin-bottom: 6px; }
.mdx-cat__txt small { display: block; font-size: 12.5px; line-height: 1.5; color: #6b7075; }
.mdx-cat__go { position: absolute; right: -14px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--md-dark); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,.14); transition: background .2s, color .2s; }
.mdx-cat:hover .mdx-cat__go { background: var(--md-red); color: #fff; }

/* ---------- Urun sekmeleri + kart ---------- */
.mdx-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.mdx-tab { border: 1px solid var(--md-line); background: #fff; color: var(--md-dark); font-size: 14px; font-weight: 600; padding: 12px 26px; border-radius: 10px; transition: all .2s; }
.mdx-tab:hover { border-color: var(--md-dark); }
.mdx-tab.is-active { background: var(--md-red); border-color: var(--md-red); color: #fff; box-shadow: 0 8px 20px rgba(215,33,43,.28); }
.mdx-pgrid { display: none; }
.mdx-pgrid.is-active { display: grid; animation: mdxFade .35s ease; }
@keyframes mdxFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.product-card { border-radius: 14px; border-color: var(--md-line); }
.product-card:hover { box-shadow: 0 16px 36px rgba(15,16,18,.12); transform: translateY(-3px); }
.product-card { transition: box-shadow .25s, transform .25s; }
.product-card__media { background: #fff; }
.product-card__media img { object-fit: contain; padding: 14px; }
.product-card__badge { font-size: 11px; padding: 5px 11px; }
.product-card__badge--red, .product-card__badge--sale { background: var(--md-red); }
.product-card__badge--navy { background: #1d2b4f; }
.product-card__fav { border: 1px solid var(--md-line); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.product-card__fav.is-active { color: var(--md-red); }
.product-card__fav.is-active svg { fill: var(--md-red); }
.product-card__name { font-size: 14.5px; }
.product-card__price { font-size: 19px; font-weight: 900; color: var(--md-dark); }
.product-card__add-btn { background: var(--md-red); border-radius: 8px; text-transform: none; font-size: 14px; letter-spacing: 0; padding: 12px 10px; }
.product-card__add-btn:hover:not(:disabled) { background: var(--md-red-dark); }

/* ---------- Kampanya banner ---------- */
.mdx-promo { position: relative; border-radius: 18px; overflow: hidden; min-height: 400px; display: flex; align-items: center; background: var(--md-dark); color: #fff; }
.mdx-promo__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; }
.mdx-promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,9,.95) 0%, rgba(8,8,9,.78) 42%, rgba(8,8,9,.1) 80%); }
.mdx-promo__body { position: relative; z-index: 2; max-width: 560px; padding: 56px clamp(26px, 5vw, 64px); }
.mdx-promo__title { font-family: var(--md-serif); font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; font-weight: 700; margin-bottom: 18px; }
.mdx-promo__title .mdx-gold { display: block; }
.mdx-promo p { font-size: 16px; line-height: 1.65; color: rgba(255,255,255,.84); margin-bottom: 28px; }

/* ---------- Hizmet kutulari ---------- */
.mdx-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mdx-service { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; background: var(--md-soft); border: 1px solid var(--md-line); border-radius: 14px; padding: 28px 18px; transition: background .2s, box-shadow .2s, transform .2s; }
.mdx-service span { color: var(--md-dark); margin-bottom: 8px; }
.mdx-service strong { font-size: 15.5px; font-weight: 800; color: var(--md-dark); }
.mdx-service small { font-size: 13px; color: #6b7075; }
a.mdx-service:hover { background: #fff; box-shadow: 0 14px 30px rgba(15,16,18,.1); transform: translateY(-3px); }
a.mdx-service:hover span { color: var(--md-red); }

/* ---------- Footer logo + mobil cekmece ---------- */
.footer-brand .brand .brand-krom--clear { background: none; box-shadow: none; height: 120px; border-radius: 0; }
.site-footer { background: var(--md-dark); }
.mdx-drawer .mobile-drawer__panel { background: var(--md-dark); color: #fff; }
.mdx-drawer .mobile-drawer__top img { height: 64px; width: auto; }
.mdx-drawer .mobile-drawer__close { color: #fff; }
.mdx-drawer .mobile-nav a, .mdx-drawer .mdx-mgroup summary { color: #fff; border-color: rgba(255,255,255,.1); }
.mdx-drawer .mobile-nav a.is-service { color: #ff4d55; font-weight: 800; }
.mdx-mgroup summary { cursor: pointer; list-style: none; padding: 14px 0; font-size: 15px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; }
.mdx-mgroup summary::-webkit-details-marker { display: none; }
.mdx-mgroup summary::after { content: "+"; font-weight: 400; color: rgba(255,255,255,.6); }
.mdx-mgroup[open] summary::after { content: "–"; }
.mdx-mgroup a { padding-left: 14px !important; font-size: 14px !important; color: rgba(255,255,255,.75) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .mdx-links { gap: 18px; }
  .mdx-links a:not(.is-service) { display: none; }
  .mdx-catbar__link { padding: 10px 9px; font-size: 13px; }
}
@media (max-width: 1080px) {
  .mdx-catbar { display: none; }
  .mdx-burger { display: inline-flex; }
  .mdx-cats { grid-template-columns: repeat(2, 1fr); }
  .mdx-hero__trust { grid-template-columns: repeat(2, 1fr); }
  .mdx-services { grid-template-columns: repeat(2, 1fr); }
  .mdx-hero { min-height: 680px; }
  .mdx-hero__inner { padding-top: 170px; }
}
@media (max-width: 760px) {
  .mdx-header { padding-bottom: 12px; }
  .mdx-header__top { flex-wrap: wrap; gap: 10px 12px; padding-top: 8px; }
  .mdx-logo img { height: 62px; }
  .mdx-links { display: none; }
  .mdx-icons { margin-left: auto; }
  .mdx-hide-sm { display: none; }
  .mdx-search { order: 3; flex-basis: 100%; max-width: none; height: 44px; }
  .mdx-hero { min-height: 0; }
  .mdx-hero__inner { padding-top: 175px; padding-bottom: 26px; }
  .mdx-hero__content { margin-bottom: 36px; }
  .mdx-hero__desc { font-size: 15px; }
  .mdx-btn { padding: 13px 22px; font-size: 14px; }
  .mdx-hero__trust { gap: 16px 12px; }
  .mdx-trust__ic { width: 40px; height: 40px; }
  .mdx-trust__ic svg { width: 19px; height: 19px; }
  .mdx-trust strong { font-size: 13px; }
  .mdx-trust small { font-size: 11.5px; }
  .mdx-section { padding: 48px 0; }
  .mdx-section--tight { padding: 24px 0; }
  .mdx-head { flex-wrap: wrap; }
  .mdx-cats { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .mdx-cat__img { height: 120px; }
  .mdx-cat__card { margin: -30px 8px 0 0; padding: 12px 26px 12px 12px; gap: 8px; flex-direction: column; min-height: 0; }
  .mdx-cat__ic svg { width: 24px; height: 24px; }
  .mdx-cat__txt strong { font-size: 14px; }
  .mdx-cat__txt small { font-size: 11.5px; }
  .mdx-cat__go { width: 30px; height: 30px; right: -8px; top: 22px; transform: none; }
  .mdx-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .mdx-tab { padding: 10px 18px; font-size: 13px; white-space: nowrap; }
  .mdx-promo { min-height: 0; }
  .mdx-promo::after { background: linear-gradient(0deg, rgba(8,8,9,.95) 20%, rgba(8,8,9,.6) 100%); }
  .mdx-promo__body { padding: 40px 22px; }
  .mdx-services { gap: 12px; }
  .mdx-service { padding: 20px 10px; }
}
@media (prefers-reduced-motion: reduce) { .mdx-hero__bg { animation: none; transform: none; } }
.product-card__media { aspect-ratio: 4 / 3.2; }
.product-card__media img { padding: 10px 18px; }
