/* Minimal bridge for Next CSS on PHP (admin leftovers + hero slide toggle + footer) */
:root {
  --peach: #f8a48d;
  --peach-dark: #e8896e;
  --peach-soft: #fff1eb;
  --ink: #1a1a1a;
  --line: #e8e4df;
  --mist: #f7f5f3;
  --font-display: "Cormorant Garamond";
  --font-body: "Manrope";
}
html {
  overflow-x: clip;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body), system-ui, sans-serif;
  overflow-x: clip;
  max-width: 100%;
  position: relative;
  width: 100%;
  overscroll-behavior-x: none;
  touch-action: manipulation;
}
body.nav-drawer-open {
  overflow: hidden;
  touch-action: none;
}
.font-display { font-family: var(--font-display), Georgia, serif; }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-slide[hidden] { display: none !important; }
.mega-panel[hidden] { display: none !important; }

/* Sayfa yatay kaymasını engelle — header logo/ikonları ASLA ezilmesin */
main img:not(.k37-img):not(.bank-logo),
main video, main canvas,
.product-card img, .plp img, .pdp img,
footer img {
  max-width: 100%;
  height: auto;
}
#siteHeader img,
#siteHeader svg,
#mobileDrawer svg,
#mobileSearchPanel svg {
  max-width: none !important;
  height: auto;
}
#siteHeader #headerLogo {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
}
#siteHeader a[href="/sepet"],
#siteHeader #mobileSearchOpen,
#siteHeader #burgerBtn {
  flex-shrink: 0 !important;
  min-width: 40px;
  min-height: 40px;
}
img.bank-logo {
  width: auto !important;
  height: 36px !important;
  max-width: 140px !important;
  max-height: 36px !important;
  object-fit: contain !important;
  display: block !important;
}
@media (max-width: 767px) {
  img.bank-logo { height: 28px !important; max-width: 110px !important; max-height: 28px !important; }
  /* ödeme / sepet: size özel ve yukarı çık çakışmasın */
  body.page-checkout .size-tab,
  body.page-checkout .size-panel,
  body.page-checkout .backdrop#sizeBackdrop,
  body.page-checkout .scroll-top {
    display: none !important;
  }
  .atasay-checkout { overflow-x: hidden; }
  .atasay-checkout label.flex { flex-wrap: wrap; }
  .atasay-checkout .iban-copy-btn { margin-left: auto; }
  .scroll-top { z-index: 40 !important; width: 48px !important; height: 48px !important; bottom: 12px !important; right: 8px !important; }
}
.min-h-screen, main, header, footer, .wrap {
  max-width: 100%;
}
.size-tab {
  max-width: 28px;
}
body.k37-open .size-tab,
body.k37-open .size-panel,
body.k37-open .backdrop#sizeBackdrop {
  display: none !important;
}
@media (max-width: 767px) {
  .size-tab {
    display: block !important;
    max-width: 26px;
    padding: 12px 5px;
    font-size: 10px;
    z-index: 80;
  }
  .size-panel {
    left: 8px !important;
    right: 8px;
    width: auto !important;
    max-width: none;
    max-height: 75vh;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
  }
  .size-panel .grid-2 {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
  }
  .scroll-top { width: 56px; height: 56px; right: 10px; bottom: 16px; font-size: 9px; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 16px 10px; }
}

/* Keep legacy admin/forms usable */
.field {
  width: 100%; min-height: 48px; padding: 10px 16px;
  border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px;
}
.btn, .btn-peach, .btn-peach-cart, .btn-ink {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border: 0; cursor: pointer; font-size: 14px;
}
.btn-peach, .btn-peach-cart { background: var(--peach); color: #fff; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.btn-peach:hover, .btn-peach-cart:hover { background: var(--peach-dark); }
.btn-ink { background: #1a1a1a; color: #fff; }
.label { display: block; font-size: 12px; color: #6b6b6b; margin-bottom: 6px; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 24px 16px; }
.footer {
  margin-top: 48px; border-top: 1px solid var(--line); background: #f9f8f7; padding: 40px 16px 24px;
}
.footer-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; font-size: 12px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer h3 { font-size: 11px; letter-spacing: .12em; margin: 0 0 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; color: #6b6b6b; }
.footer li { margin: 0 0 8px; }
.scroll-top {
  position: fixed; right: 16px; bottom: 24px; z-index: 50;
  width: 72px; height: 72px; border-radius: 999px; border: 1px solid var(--line);
  background: #eceae8; display: none; flex-direction: column; align-items: center; justify-content: center;
  font-size: 10px; cursor: pointer;
}
.scroll-top.show { display: flex; }
.size-tab {
  position: fixed; left: 0; top: 50%; z-index: 60; background: #fff; border: 1px solid var(--line); border-left: 0;
  border-radius: 0 8px 8px 0; padding: 16px 6px; writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg); font-size: 11px; letter-spacing: .12em;
  box-shadow: 0 2px 10px rgba(0,0,0,.06); cursor: pointer;
}
.alert { background: #fdecea; color: #b71c1c; padding: 12px; margin: 12px 0; font-size: 14px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
.olcu-wrap { display: grid; gap: 10px; max-width: 420px; }
.olcu-select {
  width: 100%; min-height: 48px; padding: 0 36px 0 14px;
  border: 1px solid #cfc8c0; background: #fff; appearance: none; font: inherit;
}
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

/* Home product rails — mobil: 2 kolon grid (kayma yok), PC: yatay rail */
.home-rail-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.home-rail-scroller {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  padding: 4px 0 8px;
  -webkit-overflow-scrolling: auto;
  overscroll-behavior: auto;
  touch-action: manipulation;
  scrollbar-width: none;
}
.home-rail-scroller::-webkit-scrollbar { display: none; }
.home-rail-scroller[hidden] { display: none !important; }
.home-rail-item {
  min-width: 0;
  max-width: 100%;
  width: auto;
}
.home-rail-item .atasay-card,
.home-rail-item article {
  max-width: 100%;
  min-width: 0;
}
/* Tablet+: yatay kaydırma rail */
@media (min-width: 768px) {
  .home-rail-scroller {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    touch-action: pan-x pan-y;
    padding: 4px 2px 12px;
  }
  .home-rail-item {
    flex: 0 0 auto;
    width: calc((100% - 48px) / 3);
    max-width: none;
    min-width: 180px;
  }
}
@media (min-width: 1024px) {
  .home-rail-scroller { gap: 18px; touch-action: pan-x; }
  .home-rail-item { width: calc((100% - 54px) / 4); min-width: 200px; }
}
@media (min-width: 1280px) {
  .home-rail-item { width: calc((100% - 72px) / 5); min-width: 210px; }
}
.home-rail-arrow {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #111;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
@media (min-width: 768px) {
  .home-rail-arrow { display: inline-flex; width: 40px; height: 40px; }
}
#headerMicBtn.is-listening { color: #f8a48d; }

/* Atasay PLP product grid — 2 col mobile, 4 col desktop (yan yana) */
.atasay-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.atasay-product-grid > * { min-width: 0; max-width: 100%; }
@media (min-width: 768px) {
  .atasay-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 18px; }
}
@media (min-width: 1024px) {
  .atasay-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 22px; }
}
.atasay-product-grid .product-item[hidden] { display: none !important; }
.atasay-card [data-fav-toggle][aria-pressed="true"] { color: #f8a48d; }

/* Filtrele + sort bar */
.atasay-plp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 12px 0 18px;
  border-bottom: 1px solid #ece8e4;
  margin-bottom: 18px;
}
.atasay-filtrele {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #111;
  cursor: pointer;
}
.atasay-filtrele span { color: #f8a48d; font-size: 11px; }
.atasay-sorts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  justify-content: flex-end;
}
.atasay-sort-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #333;
  cursor: pointer;
  white-space: nowrap;
}
.atasay-sort-item input {
  width: 14px;
  height: 14px;
  accent-color: #f8a48d;
  margin: 0;
}
@media (max-width: 640px) {
  .atasay-sorts { width: 100%; justify-content: flex-start; gap: 8px 12px; }
  .atasay-sort-item { font-size: 11px; }
}

/* Footer polish */
.atasay-footer { background: #fff; border-top: 1px solid #ece8e4; }
.atasay-footer .footer-grid { color: #333; }
.atasay-footer a { color: #555; text-decoration: none; }
.atasay-footer a:hover { color: #111; text-decoration: underline; }
.footer-social { margin: 0; font-size: 12px; color: #666; letter-spacing: .02em; }
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
}

/* Eda Ece hero script feel */
.eda-script {
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-weight: 400;
  line-height: 1.1;
}
.eda-triangle {
  background: linear-gradient(135deg, transparent 0%, transparent 42%, rgba(240, 217, 168, .55) 42%, rgba(255,255,255,.9) 100%);
}

/* Sepete eklendi modal */
.cart-added-modal { position: fixed; inset: 0; z-index: 220; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cart-added-modal[hidden] { display: none !important; }
.cart-added-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.cart-added-dialog { position: relative; z-index: 1; width: min(420px, 100%); background: #fff; border-radius: 8px; padding: 22px 22px 20px; box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.cart-added-x { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; font-size: 22px; cursor: pointer; color: #666; line-height: 1; }
.cart-added-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.cart-added-check { width: 28px; height: 28px; border-radius: 999px; background: #fde4d8; color: #f8a48d; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.cart-added-head p { margin: 0; color: #f8a48d; font-weight: 600; font-size: 15px; }
.cart-added-body { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.cart-added-body img { width: 72px; height: 72px; object-fit: contain; background: #f3f3f3; }
.cart-added-name { margin: 0 0 4px; font-size: 13px; color: #111; }
.cart-added-price { margin: 0; font-size: 15px; font-weight: 700; color: #111; }
.cart-added-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cart-added-ghost, .cart-added-solid {
  min-height: 44px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-decoration: none; cursor: pointer;
}
.cart-added-ghost { border: 1px solid #f8a48d; background: #fff; color: #f8a48d; }
.cart-added-solid { border: 0; background: #f8a48d; color: #fff; }

/* iyzico cart banner */
.iyzico-banner {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  border: 1px solid #cfcfcf; background: #f0f0f0; padding: 14px 16px;
}
.iyzico-brand { min-width: 110px; }
.iyzico-mark { display: block; font-weight: 800; color: #1a56db; font-size: 18px; line-height: 1; }
.iyzico-sub { font-size: 12px; color: #333; }
.iyzico-copy strong { display: block; font-size: 14px; margin-bottom: 4px; }
.iyzico-copy ul { margin: 0; padding-left: 16px; font-size: 12px; color: #444; }
.iyzico-copy li { list-style: square; }

/* Üye indirim banner */
.uye-banner {
  background: #f8a48d; text-align: center; padding: 28px 16px; position: relative; overflow: hidden;
}
.uye-banner-top { margin: 0; color: #fff; font-weight: 700; letter-spacing: .08em; font-size: 13px; }
.uye-banner-main { margin: 8px 0 14px; color: #1a1a1a; font-weight: 800; font-size: clamp(16px, 3vw, 26px); letter-spacing: .04em; }
.uye-banner-cta {
  display: inline-flex; min-height: 40px; padding: 0 22px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.85); color: #fff; font-weight: 700; font-size: 12px;
  letter-spacing: .08em; text-decoration: none; align-items: center;
}
.related-peach-price .atasay-card .font-bold { color: #e07a5f; }
.field-error { border-color: #c62828 !important; }

/* Kampanya hero — responsive, mobilde sığar, kayar */
.hero-rotator .hero-slide {
  transition: opacity .55s ease;
}
.hero-kampanya {
  background: linear-gradient(135deg, #faf6f1 0%, #f3ebe3 48%, #efe4d8 100%);
  min-height: clamp(200px, 36vw, 300px);
  max-height: none;
  aspect-ratio: auto !important;
  text-decoration: none;
  color: inherit;
}
.hero-kampanya[hidden] { display: none !important; }
.hero-kampanya.is-active:not([hidden]) { display: block !important; }
.hero-kampanya__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(12px, 3vw, 40px);
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3.5vw, 40px) clamp(16px, 4vw, 56px);
  min-height: inherit;
  box-sizing: border-box;
}
.hero-kampanya__brand {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #b8954a;
}
.hero-kampanya__title {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  color: #14110f;
}
.hero-kampanya__price {
  margin: 0 0 16px;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  color: #14110f;
}
.hero-kampanya__price span {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #b8954a;
  vertical-align: middle;
}
.hero-kampanya__cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  background: #f8a48d;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-kampanya__art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}
.hero-kampanya__art img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  object-fit: contain;
}
@media (max-width: 780px) {
  .hero-kampanya {
    min-height: 0 !important;
    max-height: none;
  }
  .hero-kampanya__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 14px 14px 12px;
    gap: 8px;
    min-height: 0 !important;
  }
  .hero-kampanya__brand {
    margin: 0 0 6px;
    font-size: 10px;
  }
  .hero-kampanya__title {
    font-size: clamp(18px, 5.6vw, 24px);
    margin: 0 0 6px;
  }
  .hero-kampanya__price {
    margin: 0 0 10px;
    font-size: 18px;
  }
  .hero-kampanya__cta {
    min-height: 38px;
    font-size: 10px;
  }
  .hero-kampanya__art {
    order: -1;
    min-height: 0 !important;
    height: auto;
    padding: 0;
    line-height: 0;
  }
  .hero-kampanya__art img {
    max-width: min(78%, 260px);
    max-height: 120px;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    object-position: center top;
    background: transparent;
  }
  .hero-rotator [data-hero-prev],
  .hero-rotator [data-hero-next] {
    top: 22% !important;
    width: 36px;
    height: 36px;
  }
}
