/* "Vitrin" menü tasarımı: mağaza üst çubuğu + soldan açılan çekmece. Renkler --sm-* değişkenlerinden gelir. */

/* ---- Üst çubuk: menü solda, logo ortada, sepet sağda ---- */
#app-nav .custom-header-inner.shop-bar {
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  padding-left: 8px;
  padding-right: 8px;
}

#app-nav .shop-bar .logo,
#app-nav .shop-bar .logo-icon-only {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

#app-nav .shop-bar .logo-main {
  align-self: center;
  font-size: 29px;
  white-space: nowrap;
}

#app-nav .shop-bar .logo-sub {
  font-size: 14px;
  white-space: nowrap;
}

#app-nav .shop-bar .custom-menu-toggle,
#app-nav .shop-bar .shop-bar__bag {
  grid-row: 1;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--app-header-text, #fff);
  cursor: pointer;
}

#app-nav .shop-bar .custom-menu-toggle { grid-column: 1; justify-self: start; }
#app-nav .shop-bar .shop-bar__bag { grid-column: 3; justify-self: end; }

#app-nav .shop-bar .custom-menu-toggle:hover,
#app-nav .shop-bar .shop-bar__bag:hover {
  background: color-mix(in srgb, var(--app-header-text, #fff) 14%, transparent);
}

#app-nav .shop-bar .menu-ico {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Çekmece ---- */
.shop-menu-back {
  position: fixed;
  inset: 0;
  z-index: 100080;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
}

body.side-menu-open .shop-menu-back { opacity: 1; }

.shop-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100100;
  width: min(400px, 90vw);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: var(--sm-bg, #f4f0e8);
  color: var(--sm-ink, #1c1917);
  box-shadow: 24px 0 60px rgba(15, 23, 42, 0.25);
  transform: translateX(-104%);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-align: left;
}

.shop-menu[hidden],
.shop-menu-back[hidden] { display: none !important; }

.shop-menu.is-open { transform: translateX(0); }
.shop-menu:focus { outline: none; }

.shop-menu *,
.shop-menu *::before,
.shop-menu *::after { box-sizing: border-box; }

.shop-menu .menu-ico {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shop-menu a:focus-visible,
.shop-menu button:focus-visible {
  outline: 2px solid var(--sm-accent, #f97316);
  outline-offset: 2px;
}

.shop-menu__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px 20px;
  background: var(--sm-head, #1c1917);
  color: var(--sm-head-ink, #fff);
}

.shop-menu__brand {
  min-width: 0;
  display: block;
  color: inherit !important;
  text-decoration: none !important;
  line-height: 1.15;
}

.shop-menu__brand strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.shop-menu__brand span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--sm-head-ink, #fff);
  opacity: 0.85;
}

.shop-menu__close {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 14%, transparent);
  color: var(--sm-head-ink, #fff);
  cursor: pointer;
}

.shop-menu__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 16px 8px;
}

.shop-menu__label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sm-muted, #78716c);
}

/* Ürün kartları */
.shop-menu__sec { margin-bottom: 16px; }

.shop-menu__products {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 -16px;
  padding: 0 16px 4px;
  scroll-padding-left: 16px;
  scrollbar-width: none;
}

.shop-menu__products::-webkit-scrollbar { display: none; }

.shop-menu__product {
  flex: 0 0 138px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: var(--sm-card, #fff);
  color: var(--sm-ink, #1c1917) !important;
  text-decoration: none !important;
}

.shop-menu__thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  background: var(--sm-line, rgba(28, 25, 23, 0.08));
  color: var(--sm-muted, #78716c);
}

.shop-menu__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-menu__thumb em {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sm-accent, #f97316);
  color: var(--sm-cta-ink, #fff);
  font-size: 0.72rem;
  font-weight: 800;
  font-style: normal;
}

.shop-menu__pinfo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 10px 10px;
  min-width: 0;
}

.shop-menu__pname {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.shop-menu__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
}

.shop-menu__price strong { font-size: 0.92rem; font-weight: 800; }
.shop-menu__price del { font-size: 0.75rem; color: var(--sm-muted, #78716c); }

/* Tek ürün varsa yatay kart */
.shop-menu__products.is-single .shop-menu__product {
  flex: 1 1 100%;
  flex-direction: row;
  align-items: center;
}

.shop-menu__products.is-single .shop-menu__thumb { width: 104px; flex-shrink: 0; }
.shop-menu__products.is-single .shop-menu__pinfo { flex: 1; padding: 10px 14px; }
.shop-menu__products.is-single .shop-menu__pname { font-size: 0.92rem; }

/* Hızlı işlem kutuları */
.shop-menu__tiles {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.shop-menu__tile {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 6px;
  border-radius: 14px;
  background: var(--sm-card, #fff);
  color: var(--sm-ink, #1c1917) !important;
  text-align: center;
  text-decoration: none !important;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
}

.shop-menu__tile .menu-ico { color: var(--sm-icon, #c2410c); width: 22px; height: 22px; }

/* Büyük linkler */
.shop-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 15px 4px;
  border: 0;
  border-bottom: 1px solid var(--sm-line, rgba(28, 25, 23, 0.08));
  background: transparent;
  color: var(--sm-ink, #1c1917) !important;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none !important;
  cursor: pointer;
}

.shop-menu__link .menu-ico {
  width: 18px;
  height: 18px;
  color: var(--sm-muted, #a8a29e);
  transition: transform 0.15s ease, color 0.15s ease;
}

.shop-menu__link:hover .menu-ico { color: var(--sm-icon, #c2410c); transform: translateX(3px); }

.shop-menu__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 6px;
  padding: 0;
  list-style: none;
}

.shop-menu__perks li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px dashed var(--sm-line, rgba(28, 25, 23, 0.2));
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.shop-menu__perks .menu-ico { width: 15px; height: 15px; color: var(--sm-icon, #c2410c); }

.shop-menu__switch { margin: 14px 0 8px; }
.shop-menu__switch > div { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.shop-menu__switch a {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sm-card, #fff);
  color: var(--sm-ink, #1c1917) !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none !important;
}

.shop-menu__switch a.is-active {
  background: var(--sm-head, #1c1917);
  color: var(--sm-head-ink, #fff) !important;
}

/* Alt sipariş düğmesi */
.shop-menu__foot {
  flex-shrink: 0;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--sm-line, rgba(28, 25, 23, 0.08));
}

.shop-menu__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 13px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--sm-accent, #f97316);
  color: var(--sm-cta-ink, #fff) !important;
  font: inherit;
  text-align: left;
  text-decoration: none !important;
  box-shadow: 0 10px 24px var(--sm-cta-shadow, rgba(234, 88, 12, 0.28));
  cursor: pointer;
}

.shop-menu__cta strong { display: block; font-size: 1.02rem; font-weight: 800; }
.shop-menu__cta small { display: block; font-size: 0.74rem; opacity: 0.9; }

/* Menü açıkken sayfa kaymasın, yüzen düğmeler panelin üstüne çıkmasın. */
html:has(body.side-menu-open) { overflow: hidden; }

html body.side-menu-open.homepage-view .scroll-to-top.is-visible,
html body.side-menu-open .scroll-to-top,
html body.side-menu-open .cf-fab,
html body.side-menu-open .social-buttons,
html body.side-menu-open .fk-live-toast,
html body.side-menu-open .sp-ov,
html body.side-menu-open .osb {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .shop-menu,
  .shop-menu-back,
  .shop-menu__link .menu-ico { transition: none; }
}

/* ======== Stil: Sade Liste ======== */
.shop-menu.shop-menu--sade .shop-menu__sec:has(.shop-menu__products),
.shop-menu.shop-menu--sade .shop-menu__perks { display: none; }
.shop-menu.shop-menu--sade .shop-menu__scroll { padding-left: 24px; padding-right: 24px; }
.shop-menu.shop-menu--sade .shop-menu__tiles { gap: 6px; margin-bottom: 14px; }
.shop-menu.shop-menu--sade .shop-menu__tile { flex-direction: row; justify-content: center; gap: 5px; padding: 9px 4px; background: transparent; border: 1px solid var(--sm-line, rgba(28, 25, 23, 0.12)); border-radius: 999px; font-size: 0.7rem; }
:is(#app-nav, body) .shop-menu.shop-menu--sade .shop-menu__tile .menu-ico { width: 15px; height: 15px; }
.shop-menu.shop-menu--sade .shop-menu__link { padding: 17px 0; font-size: 1.15rem; font-weight: 600; border-bottom: 0; }

/* ======== Stil: Kartlı ======== */
.shop-menu.shop-menu--kart .shop-menu__link { margin-bottom: 8px; padding: 15px 16px; border: 0; border-radius: 16px; background: var(--sm-card, #fff); font-size: 1rem; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07); }
:is(#app-nav, body) .shop-menu.shop-menu--kart .shop-menu__link .menu-ico { box-sizing: content-box; padding: 5px; border-radius: 999px; background: var(--sm-accent, #f97316); color: var(--sm-cta-ink, #fff); width: 14px; height: 14px; }
:is(#app-nav, body) .shop-menu.shop-menu--kart .shop-menu__link:hover .menu-ico { color: var(--sm-cta-ink, #fff); }
.shop-menu.shop-menu--kart .shop-menu__tile,
.shop-menu.shop-menu--kart .shop-menu__product { box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07); }

/* ======== Stil: Zarif ======== */
.shop-menu.shop-menu--zarif { font-family: Georgia, "Times New Roman", serif; }
/* Küçük yazılar serifte ince görünüyor: kartlar ve düğme düz yazı tipiyle. */
.shop-menu.shop-menu--zarif :is(.shop-menu__product, .shop-menu__tile, .shop-menu__perks, .shop-menu__cta) { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.shop-menu.shop-menu--zarif .shop-menu__head { position: relative; justify-content: center; text-align: center; border-bottom: 2px solid var(--sm-accent, #c9a24a); }
.shop-menu.shop-menu--zarif .shop-menu__close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.shop-menu.shop-menu--zarif .shop-menu__brand { padding: 0 40px; text-transform: uppercase; letter-spacing: 0.1em; }
.shop-menu.shop-menu--zarif .shop-menu__label { text-align: center; }
.shop-menu.shop-menu--zarif .shop-menu__product,
.shop-menu.shop-menu--zarif .shop-menu__tile { border-radius: 4px; }
.shop-menu.shop-menu--zarif .shop-menu__link { justify-content: center; padding: 16px 4px; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; text-align: center; }
:is(#app-nav, body) .shop-menu.shop-menu--zarif .shop-menu__link .menu-ico { display: none; }
.shop-menu.shop-menu--zarif .shop-menu__perks { justify-content: center; }
.shop-menu.shop-menu--zarif .shop-menu__cta { justify-content: center; text-align: center; border-radius: 4px; letter-spacing: 0.04em; }
:is(#app-nav, body) .shop-menu.shop-menu--zarif .shop-menu__cta .menu-ico { display: none; }

/* ======== Stil: Tam Ekran ======== */
.shop-menu.shop-menu--tam { width: min(480px, 100%); }
.shop-menu.shop-menu--tam .shop-menu__scroll { padding-left: 22px; padding-right: 22px; }
.shop-menu.shop-menu--tam .shop-menu__products { margin-left: -22px; margin-right: -22px; padding-left: 22px; padding-right: 22px; }
.shop-menu.shop-menu--tam .shop-menu__link { padding: 17px 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }
:is(#app-nav, body) .shop-menu.shop-menu--tam .shop-menu__link .menu-ico { width: 22px; height: 22px; }
.shop-menu.shop-menu--tam .shop-menu__tile { padding: 16px 6px; font-size: 0.82rem; }
.shop-menu.shop-menu--tam .shop-menu__cta { padding: 17px 22px; }
