/* ====================================================
   Mete Gıda – Markalar Eklentisi – Ön Yüz CSS v2
   Ürün kartı: görsel + overlay başlık + gramaj satırı
   ==================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

.mgb-brands-wrap,
.mgb-single-wrap {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ====================================================
   SEKMELER
   ==================================================== */
.mgb-tabs {
	display: flex;
	justify-content: center;
	gap: 16px;
	border-bottom: 1px solid #e5e7eb;
	margin-bottom: 40px;
	padding-bottom: 32px; /* Butonlar ile alt çizgi arası bağımsız geniş boşluk */
	flex-wrap: wrap;
}
.mgb-tab {
	position: relative;
	padding: 12px 24px;
	background: #ffffff !important;
	box-shadow: 0 2px 4px rgba(0,0,0,0.04) !important;
	border: 1px solid #f3f4f6 !important;
	border-bottom: 3px solid transparent !important;
	border-radius: 8px;
	margin: 0;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: #6b7280;
	cursor: pointer;
	letter-spacing: .5px;
	text-transform: uppercase;
	transition: all .2s ease;
	white-space: nowrap;
}
.mgb-tab:hover {
	color: #1f2937 !important;
	box-shadow: 0 8px 16px rgba(0,0,0,0.08) !important;
	transform: translateY(-2px);
}
.mgb-tab--active {
	/* Renkler ayarlar sayfasından dinamik olarak çekiliyor */
	box-shadow: 0 8px 16px rgba(0,0,0,0.08) !important;
	transform: translateY(-2px);
}
.mgb-tab-panel { display: none; animation: mgbFadeIn .25s ease; }
.mgb-tab-panel--active { display: block; }
@keyframes mgbFadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ====================================================
   MARKA GRID
   ==================================================== */
.mgb-grid {
	display: grid;
	/* kolon sayısı ayarlar sayfasından dinamik CSS ile belirlenir */
	gap: 24px; /* Kartlar arası boşluk eklendi */
}
.mgb-brand-item {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px; /* Logoya daha fazla yer açmak için padding azaltıldı */
	text-decoration: none;
	background: #ffffff;
	border: 1px solid #f3f4f6;
	border-radius: 16px;
	min-height: 160px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
}
.mgb-brand-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
	border-color: #e5e7eb;
}
.mgb-brand-item:hover .mgb-brand-logo img { transform: scale(1.08); }
.mgb-brand-logo { display: flex; align-items: center; justify-content: center; width: 100%; }
.mgb-brand-logo img { max-width: 100%; object-fit: contain; transition: transform .3s ease; }
.mgb-brand-name-fallback { font-size: 15px; font-weight: 700; color: #374151; text-align: center; }
.mgb-no-brands { text-align: center; color: #9ca3af; padding: 48px 20px; font-size: 15px; }

/* ====================================================
   TEKİL MARKA SAYFASI
   ==================================================== */
.mgb-single-wrap { padding: 32px 20px 60px; }

.mgb-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #6b7280;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 28px;
	transition: color .2s;
}
.mgb-back-link:hover { color: #c0392b; }
.mgb-back-link svg { transition: transform .2s; }
.mgb-back-link:hover svg { transform: translateX(-3px); }

.mgb-single-hero {
	display: flex;
	align-items: flex-start;
	gap: 40px;
	padding: 32px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	margin-bottom: 40px;
	box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
@media (max-width: 640px) {
	.mgb-single-hero { flex-direction: column; align-items: center; text-align: center; }
}
.mgb-single-logo-wrap {
	flex-shrink: 0;
	width: 200px;
	height: 140px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f9fafb;
	border: 1px solid #f3f4f6;
	border-radius: 12px;
	overflow: hidden;
	padding: 16px;
}
.mgb-single-logo-wrap img { max-width: 100%; max-height: 110px; object-fit: contain; }
.mgb-single-meta { flex: 1; }
.mgb-single-meta h1 { font-size: 28px; font-weight: 800; color: #0f172a; margin: 0 0 10px; }
.mgb-single-desc { font-size: 15px; color: #4b5563; line-height: 1.7; margin: 0 0 16px; }
.mgb-website-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 10px 20px;
	background: #0f172a;
	color: #fff;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background .2s;
}
.mgb-website-btn:hover { background: #1e293b; color: #fff; }

/* ── Ürünler başlığı ── */
.mgb-products-section { margin-top: 8px; }
.mgb-products-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 24px;
}
.mgb-products-header h2 { font-size: 20px; font-weight: 700; color: #0f172a; margin: 0; }
.mgb-products-count {
	display: inline-block;
	padding: 3px 10px;
	background: #f1f5f9;
	color: #475569;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
}

/* ====================================================
   ÜRÜN KARTI – Clean White Card (v3)
   Gri görsel alanı | Ortalı ad | Tek gramaj pill
   ==================================================== */

.mgb-products-grid {
	display: grid;
	/* kolon sayısı ayarlar sayfasından dinamik CSS ile belirlenir */
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

/* ── Kart kabuğu ── */
.mgb-product-card {
	background: #ffffff;
	border-radius: 12px;
	border: 1px solid #ebebeb;
	box-shadow: 0 2px 8px rgba(0,0,0,.06);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: box-shadow .22s ease, transform .22s ease;
	cursor: default;
}
.mgb-product-card:hover {
	box-shadow: 0 8px 28px rgba(0,0,0,.13);
	transform: translateY(-3px);
}

/* ── Görsel Alanı – açık gri kare ── */
.mgb-product-img-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #f4f5f6;
	overflow: hidden;
	flex-shrink: 0;
}
.mgb-product-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 16px;
	transition: transform .3s ease;
}
.mgb-product-card:hover .mgb-product-img-wrap img {
	transform: scale(1.06);
}

/* Görselsiz placeholder */
.mgb-product-img-empty {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #d1d5db;
}
.mgb-product-img-empty svg { opacity: .45; }

/* ── İçerik alanı (beyaz) ── */
.mgb-product-card-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 12px 16px;
	text-align: center;
	flex: 1;
}

/* ── Ürün Adı ── */
.mgb-product-card-body h3 {
	font-size: 14px;
	font-weight: 700;
	color: #1a1a2e;
	line-height: 1.4;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ── Gramaj pill – tek değer ortalı ── */
.mgb-gramaj-single {
	display: inline-block;
	padding: 4px 14px;
	background: #f1f5f9;
	border: 1px solid #dde3ec;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	color: #4a6fa5;
	letter-spacing: .3px;
}

/* Birden fazla gramaj varsa küçük etiketler */
.mgb-gramaj-list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	justify-content: center;
}
.mgb-gramaj-tag {
	display: inline-block;
	padding: 3px 10px;
	background: #f1f5f9;
	border: 1px solid #dde3ec;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	color: #4a6fa5;
}
.mgb-gramaj-tag small { color: #94a3b8; font-weight: 400; font-size: 10px; margin-left: 3px; }

/* Gramaj yoksa ── */
.mgb-no-gramaj { font-size: 12px; color: #d1d5db; }

/* No Products */
.mgb-no-products {
	text-align: center;
	color: #9ca3af;
	padding: 48px 20px;
	font-size: 15px;
	background: #f9fafb;
	border-radius: 12px;
	border: 1px dashed #e5e7eb;
}


