/* Restaurant Classic - Temel Stil
   NOT: Bu FAZ 17.1'in fonksiyonel surumudur - "premium SaaS" kalitesindeki
   son tasarim FAZ 17.3'te bu dosyanin uzerine gelecek. Simdilik amac,
   token -> tema -> palet -> veri akisinin uctan uca calistigini kanitlamak. */

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background: var(--theme-bg);
	color: var(--theme-text);
}

.qm-header {
	position: relative;
	min-height: 220px;
	background-size: cover;
	background-position: center;
	background-color: var(--theme-primary-dark);
	display: flex;
	align-items: flex-end;
	padding: 20px;
	color: #fff;
	/* DUZELTME (kullanici geri bildirimi: "kapak gorseli bulanik") -
	   bu kutunun eskiden max-width'i YOKTU - masaustunde EKRAN
	   GENISLIGI kadar (orn. 1920px) buyuyebiliyordu. background-size:
	   cover ZORLA buyuttugu icin, orta boy bir gorsel bile bu genislige
	   CEKILINCE pikselleniyor/bulaniyordu. Artik .qm-content ile AYNI
	   (640px) sinira sahip - hem gorsel kalitesi korunuyor hem de
	   masaustunde/mobilde TUTARLI bir genislikte gorunuyor. */
	max-width: 640px;
	margin: 0 auto;
}

.qm-header::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 100%);
}

.qm-header-content {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 14px;
}

.qm-logo {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #fff;
	background: #fff;
	flex-shrink: 0;
}

.qm-header h1 {
	margin: 0 0 4px;
	font-size: 20px;
}

.qm-header p {
	margin: 0;
	font-size: 13px;
	opacity: 0.9;
}

.qm-table-badge {
	display: inline-block;
	margin-top: 8px;
	padding: 4px 10px;
	background: rgba(255,255,255,0.2);
	border-radius: 20px;
	font-size: 12px;
}

.qm-content {
	max-width: 640px;
	margin: 0 auto;
	padding: 20px 16px 60px;
}

/* Kategori Izgarasi - ana sayfa */
.qm-cat-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.qm-cat-card {
	position: relative;
	display: block;
	text-decoration: none;
	color: #fff;
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background-size: cover;
	background-position: center;
	background-color: var(--theme-primary);
}

.qm-cat-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.65) 100%);
}

.qm-cat-card-label {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	z-index: 1;
	padding: 12px;
}

.qm-cat-card-label .name {
	display: block;
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	line-height: 1.25;
}

.qm-cat-card-label .count {
	display: block;
	font-size: 11px;
	opacity: 0.85;
	margin-top: 2px;
}

.qm-cat-card.no-image {
	background: var(--theme-primary);
	display: flex;
	align-items: center;
	justify-content: center;
}

.qm-cat-card.no-image .qm-cat-card-label {
	position: static;
	text-align: center;
	padding: 12px;
}

/* Kategori Detay sayfasi - tek kategorinin urunleri */
.qm-cat-banner {
	position: relative;
	min-height: 160px;
	background-size: cover;
	background-position: center;
	background-color: var(--theme-primary-dark);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 20px;
	color: #fff;
}

.qm-cat-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.4);
}

.qm-cat-banner-content {
	position: relative;
	z-index: 1;
}

.qm-cat-banner h1 {
	margin: 0 0 14px;
	font-size: 22px;
	text-transform: uppercase;
}

.qm-preview-banner {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #1F2937;
	color: #fff;
	text-align: center;
	padding: 10px 16px;
	font-size: 12.5px;
}

.qm-preview-banner a {
	color: #FBBF24;
	text-decoration: underline;
	margin-left: 8px;
}

.qm-cat-card.is-preview {
	cursor: default;
}

.qm-category {
	margin-bottom: 28px;
}

.qm-category h2 {
	font-size: 17px;
	color: var(--theme-primary);
	border-bottom: 2px solid var(--theme-primary);
	padding-bottom: 8px;
	margin: 0 0 14px;
}

.qm-product {
	display: flex;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--theme-border);
}

.qm-product:last-child { border-bottom: none; }

.qm-product img {
	width: 56px;
	height: 56px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
	background: var(--theme-surface);
}

.qm-product-info {
	flex: 1;
	min-width: 0;
}

.qm-product-row {
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.qm-product-name {
	font-weight: 600;
	font-size: 14.5px;
}

.qm-product-dots {
	flex: 1;
	border-bottom: 1px dotted var(--theme-text-muted);
	margin-bottom: 4px;
}

.qm-product-price {
	font-weight: 700;
	color: var(--theme-primary);
	font-size: 14.5px;
	white-space: nowrap;
}

.qm-product-desc {
	font-size: 12.5px;
	color: var(--theme-text-muted);
	margin-top: 2px;
}

.qm-empty {
	text-align: center;
	color: var(--theme-text-muted);
	padding: 40px 20px;
}

.qm-footer {
	background: var(--theme-surface);
	padding: 30px 20px;
	text-align: center;
}

.qm-footer h3 {
	margin: 0 0 6px;
	font-size: 16px;
}

.qm-footer .qm-address {
	font-size: 13px;
	color: var(--theme-text-muted);
	margin-bottom: 16px;
}

.qm-social-icons {
	display: flex;
	justify-content: center;
	gap: 14px;
	margin-bottom: 18px;
}

.qm-social-icons a {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--theme-bg);
	border: 1px solid var(--theme-border);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--theme-text);
	text-decoration: none;
	font-size: 17px;
}

.qm-action-buttons {
	display: flex;
	gap: 10px;
	max-width: 400px;
	margin: 0 auto;
}

.qm-action-buttons a {
	flex: 1;
	border: 1px solid var(--theme-primary);
	color: var(--theme-primary);
	text-decoration: none;
	padding: 12px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
}
