/**
 * Pasta La Vista — Sayfa Bolumleri (homepage/subeler gibi sayfalara ozgu
 * duzen kurallari). Yeniden kullanilabilir bilesenler pv-components.css
 * icinde kalir; bu dosya sadece sayfa iskeleti icindir.
 */

.pv-hero {
	position: relative;
	background: linear-gradient(160deg, var(--pv-red) 0%, var(--pv-red-deep) 100%);
	color: var(--pv-white);
	padding: var(--pv-space-xl) 0 calc(var(--pv-space-xl) + 36px);
	text-align: center;
	overflow: hidden;
}

.pv-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 12% 18%, rgba(255,255,255,0.14) 0, transparent 40%),
		radial-gradient(circle at 88% 78%, rgba(232,169,59,0.25) 0, transparent 45%);
	pointer-events: none;
}

.pv-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 48px;
	background: var(--pv-cream);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 Q 150 0 300 30 T 600 30 T 900 30 T 1200 30 L1200 60 L0 60 Z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 Q 150 0 300 30 T 600 30 T 900 30 T 1200 30 L1200 60 L0 60 Z'/%3E%3C/svg%3E");
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
}

.pv-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 720px;
}

.pv-hero h1 {
	color: var(--pv-white);
}

.pv-hero .pv-eyebrow {
	color: var(--pv-gold);
}

.pv-hero .pv-hero-sub {
	color: #fdeae6;
	font-size: var(--pv-text-lg);
	max-width: 520px;
	margin: 0 auto var(--pv-space-md);
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.pv-hero .pv-order-cta {
	justify-content: center;
}

.pv-hero .pv-btn-secondary {
	color: var(--pv-white);
	border-color: rgba(255, 255, 255, 0.55);
}

.pv-hero .pv-btn-secondary:hover {
	background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 480px) {
	.pv-hero {
		padding: var(--pv-space-lg) var(--pv-space-md);
	}

	.pv-hero .pv-order-cta {
		flex-direction: column;
		align-items: stretch;
	}
}

/* ==================== Ana sayfa Hero v2 (gorsel + metin) ==================== */
.pv-hero-v2 {
	position: relative;
	background: linear-gradient(160deg, var(--pv-red) 0%, var(--pv-red-deep) 100%);
	color: var(--pv-white);
	padding: var(--pv-space-lg) 0 calc(var(--pv-space-lg) + 30px);
	overflow: hidden;
}

.pv-hero-v2::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 10% 15%, rgba(255,255,255,0.12) 0, transparent 40%),
		radial-gradient(circle at 92% 85%, rgba(245,169,1,0.25) 0, transparent 45%);
	pointer-events: none;
}

.pv-hero-v2::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 40px;
	background: var(--pv-cream);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 Q 150 0 300 30 T 600 30 T 900 30 T 1200 30 L1200 60 L0 60 Z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 Q 150 0 300 30 T 600 30 T 900 30 T 1200 30 L1200 60 L0 60 Z'/%3E%3C/svg%3E");
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
}

.pv-hero-v2-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: var(--pv-space-lg);
	align-items: center;
}

.pv-hero-v2-text h1 {
	color: var(--pv-white);
	font-size: var(--pv-text-3xl);
	margin-bottom: 10px;
}

.pv-hero-v2-sub {
	color: #fdeae6;
	font-size: var(--pv-text-base);
	max-width: 440px;
	margin: 0 0 var(--pv-space-md);
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

.pv-hero-v2-text .pv-order-cta {
	justify-content: flex-start;
}

.pv-hero-v2-text .pv-btn-ghost {
	color: var(--pv-white);
	border-color: rgba(255, 255, 255, 0.55);
}

.pv-hero-v2-text .pv-btn-ghost:hover {
	background: rgba(255, 255, 255, 0.12);
}

/*
 * GORSEL STIL REHBERI (hero-pasta.jpg icin):
 * - Konteynir orani 4:5 (dikeye yakin dikdortgen); gorsel object-fit:cover
 *   ile otomatik kirpilir, siz kare/genis bir foto da yukleseniz sorun olmaz.
 * - Sicak isikli, tek bir makarna tabaginin ustten/3-4 acili net cekimi
 *   onerilir; buhar/yesillik gibi detaylar sicak/istah acici hissi guclendirir.
 * - Yuvarlatilmis kose + golge otomatik uygulanir, siz sadece duz bir
 *   fotograf yuklemeniz yeterli.
 */
.pv-hero-v2-media {
	position: relative;
	z-index: 1;
	aspect-ratio: 1 / 1;
	width: min(100%, 320px);
	border-radius: var(--pv-radius-lg);
	overflow: hidden;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
	background: var(--pv-cream);
	justify-self: center;
}

.pv-hero-v2-media::before {
	content: "";
	position: absolute;
	inset: -14px;
	z-index: -1;
	border-radius: calc(var(--pv-radius-lg) + 14px);
	background: linear-gradient(135deg, var(--pv-gold), transparent 60%);
	opacity: 0.5;
}

.pv-hero-v2-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pv-hero-v2-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 4.5rem;
	background: repeating-linear-gradient(135deg, var(--pv-cream), var(--pv-cream) 14px, #f3e4cf 14px, #f3e4cf 28px);
}

@media (max-width: 900px) {
	.pv-hero-v2-grid {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.pv-hero-v2-text .pv-order-cta {
		justify-content: center;
	}

	.pv-hero-v2-sub {
		margin-left: auto;
		margin-right: auto;
	}

	.pv-hero-v2-media {
		aspect-ratio: 1 / 1;
		width: min(100%, 280px);
		margin: 0 auto;
	}
}

@media (max-width: 480px) {
	.pv-hero-v2 {
		padding: var(--pv-space-md) 0 calc(var(--pv-space-md) + 24px);
	}

	.pv-hero-v2-text h1 {
		font-size: var(--pv-text-2xl);
	}

	.pv-hero-v2-text .pv-order-cta {
		flex-direction: column;
		align-items: stretch;
	}
}

/* ==================== Kategorili magaza sayfasi ==================== */
.pv-product-card-add-wrap .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--pv-red);
	color: var(--pv-white) !important;
	border: none;
	font-size: 0;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.15s ease, transform 0.15s ease;
	position: relative;
}

.pv-product-card-add-wrap .button::before {
	content: "+";
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1;
}

.pv-product-card-add-wrap .button:hover {
	background: var(--pv-red-deep);
	transform: scale(1.06);
}

.pv-product-card-add-wrap .added_to_cart {
	display: block;
	font-size: 0.7rem;
	text-align: center;
	margin-top: 4px;
	color: var(--pv-green-deep);
	text-decoration: underline;
}

.pv-hero-compact {
	padding: var(--pv-space-lg) 0 !important;
}

.pv-menu-jumpnav {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	padding: 18px 0;
	margin-top: -8px;
}

.pv-menu-jumpnav a {
	font-family: var(--pv-font-body);
	font-weight: 700;
	font-size: 0.85rem;
	text-decoration: none;
	color: var(--pv-dark);
	background: var(--pv-white);
	border: 1px solid var(--pv-border);
	border-radius: var(--pv-radius-pill);
	padding: 8px 18px;
	transition: border-color 0.15s ease, transform 0.15s ease;
	white-space: nowrap;
}

.pv-menu-jumpnav a:hover {
	border-color: var(--pv-red);
	transform: translateY(-2px);
}

/*
 * Mobilde kategori pillari da (ana sayfadaki kategori kartlari gibi)
 * sarmak yerine tek satirda YATAY KAYDIRILIR. Boylece "kategorilerin
 * hemen altindaki ikonlar sağa kaymiyor" sorunu magaza (Menü) sayfasinin
 * ust jumpnav'inda da cozulmus olur.
 */
@media (max-width: 480px) {
	.pv-menu-jumpnav {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
		padding-bottom: 10px;
		margin-left: -4px;
		margin-right: -4px;
		padding-left: 4px;
		padding-right: 4px;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	.pv-menu-jumpnav::-webkit-scrollbar {
		display: none;
	}

	.pv-menu-jumpnav a {
		flex: 0 0 auto;
		scroll-snap-align: start;
	}
}
