/* ============================================================
   FAZ "Menu Modernizasyonu" - restaurant-classic EK stil dosyasi.
   Mevcut style.css'e DOKUNULMADI - bu, SADECE yeni bolumleri
   (arama, kategori pill navigasyonu, urun kartlari, scroll-top
   butonu) stilleyen bagimsiz bir katman. Renkler, mevcut palet
   dosyalarindaki (--theme-primary gibi) degiskenleri KULLANIR.
   ============================================================ */

.qm-search-wrap {
	max-width: 720px;
	margin: 0 auto;
	padding: 20px 16px 0;
}
.qm-search-box {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	border: 1px solid #E5E5E5;
	border-radius: 14px;
	padding: 12px 16px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.qm-search-box i { color: #999; font-size: 16px; }
.qm-search-box input {
	border: none;
	outline: none;
	flex: 1;
	font-size: 15px;
	font-family: inherit;
	background: transparent;
}
.qm-search-empty {
	max-width: 720px;
	margin: 24px auto;
	text-align: center;
	color: #888;
	font-size: 14px;
	padding: 0 16px;
}
.qm-search-empty i { display:block; font-size: 28px; margin-bottom: 8px; }

.qm-pills-wrap {
	position: sticky;
	top: 0;
	z-index: 20;
	background: #fff;
	border-bottom: 1px solid #EFEFEF;
	padding: 14px 0;
	margin-top: 18px;
}
.qm-pills {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 0 16px;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.qm-pills::-webkit-scrollbar { display: none; }
.qm-pill {
	flex-shrink: 0;
	padding: 9px 18px;
	border-radius: 999px;
	background: #F4F4F4;
	color: #444;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s, color .15s;
}
.qm-pill.is-active {
	background: var(--theme-primary, #B91C1C);
	color: #fff;
}

.qm-section {
	max-width: 960px;
	margin: 0 auto;
	padding: 32px 16px 8px;
	scroll-margin-top: 76px;
}
.qm-section-title {
	position: relative;
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 20px;
	color: #222;
	z-index: 1;
}

/* FAZ - kategoriye gorsel yuklenmisse (bulk gorsel yukleme veya tek
   kategori formundan) - baslik, fotograf uzerine bindirilmis bir
   banner olarak gosterilir. Tum temalarda AYNI sinif adlari (qm-
   on eki, .qm-pill/.qm-product-card gibi mevcut PAYLASILAN JS-hook
   deseniyle tutarli) kullaniliyor, gorunum her temanin kendi
   dosyasinda ayri tanimli. */
.qm-cat-banner {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	min-height: 120px;
	display: flex;
	align-items: flex-end;
	margin-bottom: 20px;
	padding: 18px 22px;
	background-size: cover;
	background-position: center;
}
.qm-cat-banner-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.68), rgba(0,0,0,0.05) 70%);
}
.qm-cat-banner-title {
	position: relative;
	z-index: 1;
	color: #fff !important;
	margin: 0 !important;
	text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.qm-cat-banner-title::before { content: none; }

.qm-section-title::before {
	content: attr(data-text);
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: 46px;
	font-style: italic;
	font-weight: 400;
	color: #000;
	opacity: 0.04;
	white-space: nowrap;
	z-index: -1;
	pointer-events: none;
}

.qm-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px;
}
.qm-product-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,0.06);
	transition: transform .15s;
}
.qm-product-image {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #F2F2F2;
	overflow: hidden;
}
.qm-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.qm-product-placeholder,
.qm-img-broken {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #C4C4C4;
	font-size: 30px;
	background: #F2F2F2;
}
.qm-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 9px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.qm-badge-spicy { background: #FEE2E2; color: #B91C1C; }

.qm-product-body { padding: 14px 16px 16px; }
.qm-product-name { font-size: 15px; font-weight: 700; color: #222; text-transform: uppercase; letter-spacing: 0.01em; }
.qm-product-desc { font-size: 13px; color: #888; margin-top: 4px; line-height: 1.4; }
.qm-product-allergen { font-size: 11px; color: #A88; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.qm-product-price { font-size: 16px; font-weight: 700; color: #222; margin-top: 10px; }

.qm-product-card.qm-hidden { display: none; }
.qm-section.qm-hidden { display: none; }

.qm-scroll-top {
	position: fixed;
	bottom: 22px;
	right: 18px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--theme-primary, #B91C1C);
	color: #fff;
	border: none;
	font-size: 18px;
	box-shadow: 0 6px 16px rgba(0,0,0,0.25);
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 30;
}
.qm-scroll-top.is-visible { display: flex; }

@media (max-width: 600px) {
	.qm-product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.qm-section-title::before { font-size: 34px; }
	.qm-product-name { font-size: 13px; }
	.qm-product-price { font-size: 14px; }
}

/* ---- FAZ E - Dil secici (sadece 1'den fazla dil aktifse gorunur) ---- */
.qm-header { position: relative; }
.qm-lang-switch {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 5;
	display: flex;
	gap: 6px;
	background: rgba(255,255,255,0.9);
	border-radius: 999px;
	padding: 4px;
}
.qm-lang-pill {
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	color: #555;
	text-decoration: none;
}
.qm-lang-pill.is-active {
	background: var(--theme-primary, #B91C1C);
	color: #fff;
}
