body,
html {
    position: relative;
    margin: 0;
    background-color: #faf6f5;
    width: 100%
}
body {
    touch-action: manipulation;
  }
.header,
.list>div,
body,
html {
    width: 100%
}
.line,
.list,
body {
    overflow-x: hidden
}
.bottom-bar a,
a:focus {
    outline: 0;
    -webkit-tap-highlight-color: transparent
}
body,
html {
    scroll-behavior: smooth
}
body {
    height: 100 dvh;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none
}
.header {
    height: 75px;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    box-sizing: border-box;
    z-index: 100
}
.logo {
    display:inherit;
}
.list {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 65px 20px 100px;
    text-transform: capitalize;
}
.menu-text,
h2 {
    font-family: 'Bungee Shade';
    font-weight: 400;
    font-size: 40px;
    align-items: center;
    font-style: normal;
    line-height: 26px;
    display: flex
}

h2 {
    color: #000
}
/* uzun kategori adı iki satıra kırılınca satırlar üst üste binmesin; tek satırda toplam yükseklik eskisiyle aynı */
h2[id],
h2.iw-section-title {
    line-height: 42px;
    margin-block: calc(.83em - 8px)
}
.menu-text {
    color: #fff;
    text-transform: capitalize;
}
.list > div {
    max-width: 720px
}
.line {
    width: 2000%;
    height: 1px;
    position: relative;
    background-image: url("data:image/svg+xml, %3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='12' ry='12' stroke='%23333' stroke-width='2' stroke-dasharray='20%2c28' stroke-dashoffset='53' stroke-linecap='butt'/%3e%3c/svg%3e");
    border-radius: 12px
}
.subcategory-title {
    font-family: Effra;
    font-style: normal;
    font-weight: 700;
    font-size: 28px;
    line-height: 26px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    color: #000
}
.u-container-layout {
    display: flex;
    flex-direction: column
}
.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: -30px 0 0
}
.item-price,
.menu-item {
    font-family: Effra;
    font-style: normal;
    line-height: 29px;
    align-items: center
}
.menu-item {
    font-weight: 400;
    font-size: 20px;
    display: flex;
    color: #111;
    flex-grow: 1
}
.item-price {
    font-weight: 300;
    font-size: 18px;
    display: flex;
    text-align: right;
    color: #111
}
.bottom-bar a,
.u-container-layout {
    padding-left: 10px;
    padding-right: 10px
}
.bottom-bar a,
.item-description {
    font-family: Effra;
    font-style: normal;
    font-weight: 300;
    line-height: 26px;
    color: #111;
    display: flex
}
.item-description {
    font-size: 16px;
    align-items: center;
    margin-top: -20px
}
.bottom-bar {
    display: flex;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 55px;
    background-color: #fff;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}
.bottom-bar-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* updated align-items property */
    margin-bottom:-10px;
    width: 20%; /* add a fixed width */

    text-align: center; /* add a text align property */
}

.bottom-bar a {
    justify-content: center;
    align-items: center;
    font-size: 14px;
    align-items: center;
    text-align: center;
    text-decoration: none;
    scroll-behavior: smooth;
    overflow: hidden; /* add overflow property */
    text-overflow: ellipsis; /* add text-overflow property */
}
.bottom-bar-item img {
    transition: opacity 1s;
  }
  
  .bottom-bar-item img.active {
    opacity: 1;
  }
  
  .bottom-bar-item img.inactive {
    opacity: 1;
  }  
  
.bottom-bar a {
    justify-content: center;
    align-items: center;
    font-size: 14px;
    align-items: center;
    text-align: center;
    text-decoration: none;
    scroll-behavior: smooth
}
.bottom-bar a img {
    width: 24px;
    height: 24px;
}
.bottom-bar-container {
    display: flex;
    justify-content: space-between;
    max-width: 762px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    align-items: center
}

h2[id],
h3[id],
h4[id],
h5[id],
h6[id] {
    scroll-margin-top: 100px;
}
.space {
    margin-top: 20px
}

.header-container {
    display: flex;
    justify-content: space-between;
    max-width: 762px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    align-items: center;
}

.button-container {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Add this line */
    width: 100%;
}

  .language-button {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    color: white;
    cursor: pointer;
    text-decoration: none;
    font-family: Effra;
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    padding-left: 10px;
    padding-right: 10px;
  }


.promo-image {
    width: 100%;
    max-width: 100%;
}

/* Dynamic categories: items keep a 20% minimum width, the bar scrolls sideways when they do not fit */
.bottom-bar-container.scrollable {
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.bottom-bar-container.scrollable::-webkit-scrollbar {
    display: none;
}
.bottom-bar-container.scrollable .bottom-bar-item {
    flex: 0 0 auto;
    min-width: 20%;
    width: auto;
    box-sizing: border-box;
}
.bottom-bar-container.scrollable .bottom-bar-item span {
    white-space: nowrap;
}

/* İstanbul Workshops tanıtımı (veri: /promo.json ← IW kataloğu). İki stil dönüşümlü; kutu, gölge, yuvarlak köşe yok. */
.iw-promo { display: block; text-decoration: none; text-transform: none; font-family: Effra, sans-serif; color: #111; }
.iw-promo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.iw-promo--loading { pointer-events: none; }
.iw-promo .iw-promo__kicker { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* atölye adı en çok iki satır; kesik ad menüde hata gibi durur */
.iw-promo .iw-promo__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }

/* Slider: kategoriler arasında kendi bölümü (h2 + .line). Kaydırma Swiper 11'in; metin menü satırının sınıfları
   (.item-header / .menu-item / .item-price / .item-description), bu yüzden ürünlerle aynı ızgarada durur. */
.iw-slider { --swiper-theme-color: #111; --swiper-pagination-bullet-inactive-color: #111; --swiper-pagination-bullet-inactive-opacity: .25;
  --swiper-pagination-bullet-size: 8px; --swiper-pagination-bullet-horizontal-gap: 6px; margin: 0 0 8px; text-transform: none; }
/* asıl kanca: okunur boyda (13px büyük harf küçük kalıyordu) */
.iw-slider__sub { margin: 18px 10px 16px; text-align: center; font-family: Effra, sans-serif; font-size: 17px; line-height: 22px; font-weight: 700; color: #111; }
.iw-slider .swiper { padding-bottom: 36px; }
.iw-slider .swiper-pagination { bottom: 0; }
/* nokta küçük görünür, dokunma alanı 28px (WCAG 2.5.8) */
.iw-slider .swiper-pagination-bullet { position: relative; }
.iw-slider .swiper-pagination-bullet::after { content: ""; position: absolute; inset: -10px; }
.iw-slider .swiper-slide { height: auto; }
.iw-slide { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.iw-slide__img { display: block; aspect-ratio: 16 / 9; background: #ebe5e2; }
.iw-slide__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Kartın tüm öğeleri görselin kenarlarına hizalı (metin içeriden başlamaz).
   Ad alanı her kartta iki satırlık: puan, canlı satır ve düğme yan yana kartlarda aynı hizada. */
.iw-slide__text.u-container-layout { padding: 30px 0 0; }
/* süre, menüdeki fiyat gibi adın ilk satırına hizalı */
.iw-slide__text .item-header { align-items: flex-start; }
.iw-slide__text .menu-item { height: 58px; align-items: flex-start; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.iw-slide__text .item-price { flex-shrink: 0; margin-left: 12px; }
.iw-slide__live { font-weight: 700; }
.iw-slide__cta { display: flex; align-items: center; justify-content: center; height: 48px; margin-top: 12px; background: #000; color: #fff; font-family: Effra, sans-serif; font-size: 17px; font-weight: 700; }
.iw-slider--loading { --slide-w: calc(((100vw - 40px) - 1.44px) / 1.12); min-height: calc(56px + var(--slide-w) * 9 / 16 + var(--slide-text) + 36px); }
.iw-slider { --slide-text: 202px; }
@media (min-width: 760px) {
  .iw-slider--loading { --slide-w: calc((720px - 19.2px) / 2.2); }
}

/* Küçük kart: kenardan kenara siyah şerit (üst barın dili), kare küçük görsel */
.iw-promo--serit { display: flex; align-items: center; gap: 14px; margin: 22px -20px; padding: 14px 20px; background: #000; color: #fff; }
.iw-promo--serit.iw-promo--loading { min-height: 104px; }
.iw-promo--serit .iw-promo__img { flex: 0 0 104px; width: 104px; height: 104px; background: #222; }
.iw-promo--serit .iw-promo__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.iw-promo--serit .iw-promo__kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.iw-promo--serit .iw-promo__title { font-size: 19px; font-weight: 700; line-height: 1.2; }
.iw-promo--serit .iw-promo__meta { font-size: 14px; font-weight: 300; opacity: .9; }
.iw-promo--serit .iw-promo__arrow { margin-left: auto; padding-left: 4px; font-size: 26px; }
@media (min-width: 760px) {
  .iw-promo--serit { margin: 22px calc(50% - 50vw); padding-inline: calc(50vw - 50%); }
}

/* Yedek banner (atölye görseli gelmezse): boyutu baştan belli, bölüm kartıyla aynı boşluk */
.promo-fallback { display: block; margin: 26px 0 30px; }
.promo-fallback .promo-image { display: block; height: auto; aspect-ratio: 840 / 391; }

/* Not satırı (admin'de "Not"): bölüm altında ortalanmış ara metin, menünün kesik çizgisiyle biter. Kutu yok. */
.menu-note { max-width: 30em; margin: -4px auto 24px; padding: 0 10px; text-align: center; text-transform: none; font-family: Effra, sans-serif; color: #2b2b2b; }
.menu-note p { margin: 0; }
/* başlık menüdeki ürün adlarıyla aynı ölçüde (.menu-item: 20px / 400 / 29px) */
.menu-note__title { margin-bottom: 2px !important; font-size: 20px; font-weight: 400; line-height: 29px; color: #111; text-wrap: balance; }
/* Effra'nın italik kesimi yüklü değil; sahte eğik yerine düz Light */
.menu-note__text { font-size: 17px; line-height: 26px; font-weight: 300; text-wrap: pretty; }
/* menünün bölüm ayracıyla aynı kesik çizgi (20/28), üç parça */
.menu-note::after { content: ""; display: block; width: 116px; height: 1px; margin: 16px auto 0; background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='116' height='1'%3e%3cline x1='0' y1='0.5' x2='116' y2='0.5' stroke='%23333' stroke-width='1' stroke-dasharray='20%2c28'/%3e%3c/svg%3e") no-repeat; }
/* art arda notlar tek blok: çizgi yalnız sonuncunun altında */
.menu-note:has(+ .menu-note) { margin-bottom: 14px; }
.menu-note:has(+ .menu-note)::after { display: none; }
