/* ==========================================================================
   PREMIUM SOLID E-COMMERCE THEME
   Keskin hatlar, net renkler, %100 Mobil Kayma Koruması
   ========================================================================== */

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

:root {
	/* Solid E-Commerce Palette */
	--primary-dark: #0A1C15;    /* Deep Header/Footer */
	--primary: #1B4332;         /* Brand Green */
	--primary-light: #2D6A4F;   /* Hover Green */
	
	--accent: #EAB308;          /* Solid Gold/Yellow */
	--accent-hover: #CA8A04;    
	
	--danger: #DC2626;          
	--danger-light: #EF4444;

	--text-main: #1F2937;
	--text-muted: #6B7280;
	
	--bg-body: #F3F4F6;         /* Light Gray Background for contrast */
	--bg-surface: #FFFFFF;      /* Pure White Cards */

	/* Layout & Spacing */
	--radius-sm: 6px;
	--radius: 12px;
	--radius-lg: 16px;
	--container: 1200px;
	
	/* Solid Shadows */
	--shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
	--shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.12);

	/* Typography */
	--font-heading: 'Outfit', sans-serif;
	--font-body: 'Inter', sans-serif;
	
	--header-h: 85px; /* Standart, şık e-ticaret menü yüksekliğine çekildi */
}

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

/* THE MOST IMPORTANT FIX: Prevent any horizontal overflow on mobile */
html, body { 
	overflow-x: hidden !important; 
	max-width: 100vw;
}

html { font-size: 16px; scroll-behavior: smooth; }

body.site-body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--text-main);
	line-height: 1.6;
	background-color: var(--bg-body);
}

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; color: var(--primary-dark); margin: 0; }
a { color: var(--primary); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--accent-hover); }

/* Containers */
.container { 
	width: 100%; 
	max-width: var(--container); 
	margin: 0 auto; 
	padding: 0 1rem; 
}
@media (min-width: 768px) {
	.container { padding: 0 1.5rem; }
}
.narrow { max-width: 768px; }

/* ==========================================================================
   HEADER (SOLID GREEN THEME)
   ========================================================================== */
.site-header {
	background: var(--primary);
	color: #ffffff;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-h);
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 1.6rem;
	color: #ffffff;
	letter-spacing: -0.5px;
	text-transform: uppercase;
}
.brand-logo { max-height: 60px; width: auto; object-fit: contain; }

.brand-text { display: flex; align-items: center; gap: 0.5rem; }
.brand-icon { color: var(--accent); font-size: 1.8rem; line-height: 1; }
.brand-logo { max-height: 60px; width: auto; object-fit: contain; }

.main-nav {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.main-nav a:not(.btn) {
	font-weight: 500;
	color: #ffffff;
	padding: 0.5rem 0;
	opacity: 0.9;
}
.main-nav a:not(.btn):hover {
	opacity: 1;
	color: var(--accent);
}

.nav-toggle {
	display: none;
	background: none;
	border: none;
	color: #ffffff;
	cursor: pointer;
	padding: 0.5rem;
	margin-right: -0.5rem; /* Optical alignment */
}

/* ==========================================================================
   MOBILE MENU (CLASSIC SOLID SLIDEDOWN)
   ========================================================================== */
@media (max-width: 879px) {
	.nav-toggle { display: block; }
	.main-nav {
		display: none; /* Hide by default on mobile */
		position: absolute;
		top: var(--header-h);
		left: 0;
		width: 100%;
		background: var(--primary-dark);
		flex-direction: column;
		padding: 1rem 0;
		box-shadow: 0 10px 15px rgba(0,0,0,0.2);
		z-index: 99;
	}
	.main-nav.is-open {
		display: flex;
	}
	.main-nav a:not(.btn) { 
		width: 100%;
		padding: 1rem 1.5rem; 
		border-bottom: 1px solid rgba(255,255,255,0.05);
		font-size: 1.1rem; 
	}
	.main-nav .btn {
		margin: 1rem 1.5rem;
	}
}

/* ==========================================================================
   HERO / SLIDER (TAM EKRAN KAPLAMA - SIFIR BOŞLUK)
   ========================================================================== */
.site-hero {
	width: 100%;
	position: relative;
	background: #000;
	/* Yüklediğiniz 1600x800 görselin matematiksel oranı tam 2:1'dir. */
	/* Kutuyu resmin orijinal oranıyla kilitliyoruz. Asla kesilme yapmaz! */
	aspect-ratio: 2 / 1;
	height: auto;
	overflow: hidden;
}
@media (min-width: 768px) {
	.site-hero { 
		/* Dev ekranlarda resim aşırı devleşmesin diye tavan yükseklik */
		max-height: 600px; 
	}
}

.site-hero__inner, .site-hero__viewport { width: 100%; height: 100%; }

.site-hero__viewport {
	display: flex;
	scroll-snap-type: x mandatory;
	overflow-x: auto;
	scrollbar-width: none;
	scroll-behavior: smooth;
}
.site-hero__viewport::-webkit-scrollbar { display: none; }

.site-hero__slide {
	position: relative;
	flex: 0 0 100%;
	scroll-snap-align: center;
	height: 100%;
}

.site-hero__media {
	width: 100%;
	height: 100%;
}

.site-hero__img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover; /* Hiçbir boşluk bırakmadan odaya tamamen yayılır */
	object-position: center; /* En önemli yer (orta kısım) her zaman görünür */
}

.site-hero__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 4rem 1.5rem 1.5rem;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
	color: #fff;
	text-align: center;
	font-family: var(--font-heading);
	font-size: clamp(1.2rem, 4vw, 2rem);
	font-weight: 700;
	margin: 0;
}

.site-hero__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 4px; /* Solid square aesthetic */
	background: rgba(255,255,255,0.9);
	border: none;
	color: var(--primary-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	z-index: 10;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.site-hero__nav:hover { background: var(--accent); color: #000; }
.site-hero__prev { left: 0.5rem; }
.site-hero__next { right: 0.5rem; }

.site-hero__dots {
	position: absolute;
	bottom: 1rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 0.5rem;
	z-index: 10;
}
.site-hero__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255,255,255,0.5);
	border: none;
	padding: 0;
	cursor: pointer;
}
.site-hero__dot.is-active {
	background: var(--accent);
	transform: scale(1.2);
}

/* Ana sayfa referans slider (içerik genişliğinde, mobilde dikey oran) */
.ref-hero-shell {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	border: 1px solid #E5E7EB;
	background: #000;
}
.site-hero--references {
	max-height: none;
	aspect-ratio: 16 / 9;
}
@media (max-width: 879px) {
	.site-hero--references {
		/* Mobil: dikey/kare referans görselleri için; mobil görsel + picture source ile tamamlanır */
		aspect-ratio: 4 / 5;
		max-height: min(88vh, 560px);
	}
}
@media (min-width: 880px) {
	.site-hero--references {
		max-height: 520px;
	}
}

.site-hero .site-hero__media--lightbox {
	cursor: zoom-in;
}

.ref-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}
.ref-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}
.ref-lightbox__backdrop {
	position: absolute;
	inset: 0;
	border: none;
	padding: 0;
	margin: 0;
	background: rgba(0, 0, 0, 0.88);
	cursor: zoom-out;
}
.ref-lightbox__panel {
	position: relative;
	z-index: 1;
	max-width: min(96vw, 1400px);
	max-height: 92vh;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}
.ref-lightbox__prev,
.ref-lightbox__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--primary-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	padding: 0;
	transition: background 0.2s ease;
}
.ref-lightbox__prev:hover,
.ref-lightbox__next:hover {
	background: var(--accent);
	color: #000;
}
.ref-lightbox__prev {
	left: 0.35rem;
}
.ref-lightbox__next {
	right: 0.35rem;
}
@media (max-width: 480px) {
	.ref-lightbox__prev {
		left: 0.15rem;
	}
	.ref-lightbox__next {
		right: 0.15rem;
	}
}
.ref-lightbox__counter {
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.875rem;
	font-weight: 600;
	text-align: center;
	min-height: 1.25rem;
}
.ref-lightbox__close {
	position: absolute;
	top: -0.25rem;
	right: -0.25rem;
	z-index: 2;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: var(--radius-sm);
	background: var(--bg-surface);
	color: var(--primary-dark);
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: var(--shadow);
	display: flex;
	align-items: center;
	justify-content: center;
}
.ref-lightbox__close:hover {
	background: var(--accent);
	color: #000;
}
.ref-lightbox__inner {
	position: relative;
	max-width: 100%;
	max-height: calc(92vh - 4rem);
	overflow: auto;
	touch-action: pan-y pinch-zoom;
	border-radius: var(--radius);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
	background: #111;
}
.ref-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: calc(92vh - 3.5rem);
	width: auto;
	height: auto;
	object-fit: contain;
	vertical-align: middle;
}
.ref-lightbox__footer {
	min-height: 1.5rem;
	text-align: center;
}
.ref-lightbox__link {
	color: var(--accent);
	font-weight: 600;
	font-size: 0.95rem;
}
.ref-lightbox__link:hover {
	color: #fff;
	text-decoration: underline;
}

/* ==========================================================================
   BUTTONS (SOLID)
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1rem;
	border-radius: var(--radius-sm);
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
}

.btn-primary {
	background-color: var(--accent);
	color: #000 !important;
	box-shadow: 0 4px 6px rgba(234, 179, 8, 0.3);
}
.btn-primary:hover {
	background-color: var(--accent-hover);
	transform: translateY(-1px);
}

.btn-secondary {
	background-color: var(--primary);
	color: #fff !important;
	box-shadow: 0 4px 6px rgba(27, 67, 50, 0.2);
}
.btn-secondary:hover {
	background-color: var(--primary-light);
	transform: translateY(-1px);
}

.btn-block { width: 100%; }

/* ==========================================================================
   SECTIONS & CARDS (WHITE CARDS, GRAY BG)
   ========================================================================== */
.section { padding: 4rem 0; }
.section-alt { background-color: #E5E7EB; }

.section-title {
	font-size: clamp(1.75rem, 5vw, 2.5rem);
	text-align: center;
	margin-bottom: 2.5rem;
	color: var(--primary-dark);
	position: relative;
}
.section-title::after {
	content: '';
	display: block;
	width: 60px;
	height: 4px;
	background: var(--accent);
	margin: 0.75rem auto 0;
	border-radius: 2px;
}

.cards {
	display: grid;
	/* THE BUG FIX: min(100%, 280px) ensures it never overflows small screens */
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 1.5rem;
}

/* Sabit 3 sütun: değer / bilgi kartları (dar ekranda tek sütun) */
@media (min-width: 900px) {
	.cards--tri {
		grid-template-columns: repeat(3, 1fr);
	}
}

.card {
	background: var(--bg-surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border: 1px solid #E5E7EB;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-lg);
}

.card-img {
	height: 220px;
	background-size: cover;
	background-position: center;
	background-color: #D1D5DB; /* solid fallback */
}
/* Basic placeholders */
.ph-bull { background-image: linear-gradient(135deg, #4B5563, #374151); }
.ph-heifer { background-image: linear-gradient(135deg, #6B7280, #4B5563); }
.ph-sheep { background-image: linear-gradient(135deg, #9CA3AF, #6B7280); }

.card-content { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.35rem; margin-bottom: 0.5rem; color: var(--primary-dark); }
.card p { color: var(--text-muted); margin-bottom: 1.5rem; flex: 1; font-size: 0.95rem; }
.card .btn { margin-top: auto; }

/* Metin ağırlıklı kartlar (büyük görsel yok) */
.card--textual {
	overflow: hidden;
}
.card-accent {
	height: 4px;
	width: 100%;
	background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
	flex-shrink: 0;
}
.card--textual .card-content {
	padding-top: 1.35rem;
}
.card--textual p {
	margin-bottom: 0;
	font-size: 0.95rem;
	line-height: 1.75;
}

/* Testimonials marquee */
.testimonials-section {
	background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
	overflow: hidden;
}
.testimonials-marquee {
	position: relative;
	overflow: hidden;
	mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.testimonials-track {
	display: flex;
	gap: 1rem;
	width: max-content;
	animation: testimonials-scroll 95s linear infinite;
	padding: 0.35rem 0;
}
.testimonials-marquee:hover .testimonials-track {
	animation-play-state: paused;
}
.testimonial-card {
	flex: 0 0 min(88vw, 360px);
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	box-shadow: var(--shadow-sm);
	padding: 1rem 1rem 1.15rem;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}
.testimonial-stars {
	color: #f59e0b;
	letter-spacing: 1px;
	font-size: 1rem;
	font-weight: 700;
}
.testimonial-text {
	margin: 0;
	color: var(--text-main);
	font-size: 0.93rem;
	line-height: 1.65;
}
.testimonial-meta {
	font-family: var(--font-heading);
	font-size: 0.92rem;
	color: var(--primary-dark);
	font-weight: 600;
}
@media (min-width: 900px) {
	.testimonial-card {
		flex-basis: 420px;
	}
}
@keyframes testimonials-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(calc(-50% - 0.5rem)); }
}
@media (prefers-reduced-motion: reduce) {
	.testimonials-track {
		animation: none;
	}
}

/* Product detail */
.product-detail {
	background: var(--bg-surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	border: 1px solid #E5E7EB;
	overflow: hidden;
}
.product-detail__grid {
	display: grid;
	grid-template-columns: 1fr;
}
@media (min-width: 900px) {
	.product-detail__grid {
		grid-template-columns: 1fr 1fr;
		align-items: stretch;
	}
}
.product-detail__media {
	background: #E5E7EB;
	min-height: 220px;
}
.product-detail__img {
	width: 100%;
	height: 100%;
	min-height: 260px;
	object-fit: cover;
	display: block;
	vertical-align: middle;
}
.product-detail__ph {
	min-height: 280px;
	background: linear-gradient(135deg, #4B5563, #374151);
}
.product-detail__body {
	padding: 1.75rem 1.5rem 2rem;
}
@media (min-width: 900px) {
	.product-detail__body { padding: 2rem 2.25rem; }
}
.product-detail__title {
	font-size: clamp(1.5rem, 4vw, 2rem);
	margin-bottom: 0.75rem;
}
.product-detail__price {
	display: inline-block;
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 1.5rem;
	color: var(--accent-hover);
	margin-bottom: 1.25rem;
	text-decoration: underline;
	text-underline-offset: 4px;
}
.product-detail__price:hover {
	color: var(--primary);
}
.product-detail__desc {
	color: var(--text-muted);
	line-height: 1.75;
	font-size: 1rem;
}

/* ==========================================================================
   FORMS (SOLID)
   ========================================================================== */
.form-wrapper {
	background: var(--bg-surface);
	padding: 2rem;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	border: 1px solid #E5E7EB;
}
@media (min-width: 768px) {
	.form-wrapper { padding: 3rem; }
}

.form-row { margin-bottom: 1.5rem; }
.form-row label {
	display: block;
	font-family: var(--font-heading);
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--primary-dark);
}
.form-row input,
.form-row textarea,
.form-row select {
	width: 100%;
	padding: 0.875rem 1rem;
	background: #F9FAFB;
	border: 1px solid #D1D5DB;
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--text-main);
	transition: border-color 0.2s ease;
}
.form-row select:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
	outline: none;
	border-color: var(--primary);
	background: #FFFFFF;
	box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
}

.alert {
	padding: 1rem 1.25rem;
	border-radius: var(--radius-sm);
	margin-bottom: 1.5rem;
	font-weight: 500;
}
.alert-error {
	background: #FEF2F2;
	border: 1px solid #FCA5A5;
	color: #991B1B;
}

/* ==========================================================================
   FOOTER (yalnızca telif)
   ========================================================================== */
.site-footer--copyright-only {
	background: var(--primary-dark);
	color: #9CA3AF;
	margin-top: 3rem;
	padding: 1.25rem 0;
	text-align: center;
}
.site-footer__inner {
	margin: 0 auto;
}
.site-footer__copy {
	display: block;
	font-size: 0.875rem;
	color: #9CA3AF;
	line-height: 1.5;
}

/* Utility Animations */
@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(15px); }
	to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { 
	animation: fadeInUp 0.6s ease-out forwards; 
}
