/* MODAPIGO: theme.json ile ifade edilemeyen stiller. Metin içermez. */

/* Başlıklar: Jost, büyük harf, okunaklı */
h1, h2, h3, h4, h5, h6, .wp-block-post-title {
	text-wrap: balance;
	hyphens: none;
	overflow-wrap: normal;
}

/* Vitrin başlığı */
.mp-display {
	font-weight: 500 !important;
	line-height: 1.04 !important;
	letter-spacing: 0 !important;
	margin: 0;
}

/* Küçük üst başlık / numara: neon mor */
.mp-accent { color: var(--wp--preset--color--accent); }

/* Klavye odağı her yerde görünür */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

/* Bağlantı altı çizgisi ince ve aralıklı */
a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

/* Üst bant */
.mp-announcement p { margin: 0; letter-spacing: 0.08em; }
.mp-announcement a { color: inherit; }

/* Header ve üst bant da sayfa kenar boşluğuna uyar */
.mp-header,
.mp-announcement {
	padding-left: var(--wp--style--root--padding-left) !important;
	padding-right: var(--wp--style--root--padding-right) !important;
}

/* Header */
.mp-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.mp-header .wp-block-site-logo img { height: auto; }
.mp-header .wp-block-navigation a { text-decoration: none; }
.mp-header .wp-block-navigation a:hover,
.mp-header .wp-block-navigation .current-menu-item > a {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--accent);
	text-underline-offset: 0.5em;
	text-decoration-thickness: 2px;
}
.mp-header .wp-block-navigation .mp-nav-sale a { color: var(--wp--preset--color--accent); }

/* Arama: sade ikon */
.mp-header .wp-block-search__button {
	background: none;
	border: 0;
	color: var(--wp--preset--color--contrast);
	padding: 0.25rem;
	margin: 0;
}
.mp-header .wp-block-search__button svg { width: 22px; height: 22px; }

/* Mobil header: logo solda; arama, hesap, sepet ve menü düğmesi sağda */
@media (max-width: 599px) {
	.mp-header { gap: 0.75rem; }
	.mp-header .wp-block-site-logo { margin-right: auto; }
	.mp-header > .wp-block-navigation { order: 3; flex: 0 0 auto; }
	.mp-header > .wp-block-group { order: 2; gap: 0.75rem; }
}

/* Mobil menü paneli */
.wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.5rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	font-size: 1.125rem;
}

/* Vitrin: metin ve fotoğraf yan yana */
.mp-hero { align-items: stretch !important; }
.mp-hero .mp-hero-text { display: flex; flex-direction: column; justify-content: center; }
.mp-hero .mp-hero-image,
.mp-hero .mp-hero-image img {
	height: 100%;
	width: 100%;
	object-fit: cover;
	object-position: 50% 85%;
	margin: 0;
}
@media (min-width: 782px) {
	.mp-hero .mp-hero-image img { min-height: 78vh; max-height: 88vh; }
}
@media (max-width: 781px) {
	/* Mobilde ayakkabı kadrajın ortasında ve büyük: boş zemin ve kesik bacak görünmez. */
	.mp-hero .mp-hero-image img { aspect-ratio: 1 / 1; height: auto; object-position: 50% 80%; }
}

/* Kategori kartları: başlık kartın tamamını tıklanabilir yapar */
.mp-category { position: relative; isolation: isolate; }
.mp-category .wp-block-cover__image-background { z-index: -2; transition: transform 0.6s ease; }
.mp-category .wp-block-cover__background { z-index: -1; }
.mp-category .wp-block-cover__inner-container { position: static; }
.mp-category h3 a { color: inherit; text-decoration: none; }
.mp-category h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.mp-category:hover .wp-block-cover__image-background { transform: scale(1.03); }
.mp-category:hover h3 a,
.mp-category h3 a:focus-visible {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--accent);
	text-underline-offset: 0.2em;
	text-decoration-thickness: 2px;
}

/* Ürün kartları */
.mp-products .wc-block-components-product-image,
.mp-products .wc-block-components-product-image img {
	background: var(--wp--preset--color--stone);
	aspect-ratio: 4 / 5;
	object-fit: cover;
}
.mp-products .wp-block-post-title {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: 0.06em;
	line-height: 1.35;
	margin-top: 0.75rem;
}
.mp-products .wp-block-post-title a { text-decoration: none; }
.mp-products .wp-block-post-title a:hover { text-decoration: underline; }

/* Mobilde ürünler 2 sütunlu ızgara; sayfa yana kaymaz */
html, body { overflow-x: clip; }
@media (max-width: 781px) {
	.mp-products .wc-block-product-template.is-flex-container,
	.mp-products .wc-block-product-template {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 1.5rem 0.75rem;
	}
	.mp-products .wc-block-product-template > li {
		width: auto !important;
		margin: 0 !important;
	}
	.mp-category { min-height: 420px !important; }
	.wp-block-cover[style*="min-height:720px"] { min-height: 440px !important; }
	.wp-block-buttons.is-content-justification-right { justify-content: flex-start; }
}

/* Değerler: üst çizgili sütunlar, numaralar neon mor */
.mp-values > .wp-block-column {
	border-top: 1px solid var(--wp--preset--color--accent);
	padding-top: 1.25rem;
}
.mp-values .mp-num {
	font-size: 2rem;
	font-weight: 300;
	line-height: 1;
	color: var(--wp--preset--color--accent);
	margin: 0 0 1rem;
}

/* Hakkımızda: felsefe maddeleri */
.mp-philosophy h3 { margin-top: 2rem; }

/* SSS açılır kutular */
.wp-block-details summary {
	cursor: pointer;
	font-weight: 500;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	font-weight: 300;
	font-size: 1.4em;
	line-height: 1;
	color: var(--wp--preset--color--accent);
	transition: transform 0.2s ease;
}
.wp-block-details[open] summary::after { transform: rotate(45deg); }

/* Footer */
.mp-footer a { text-decoration: none; }
.mp-footer a:hover { text-decoration: underline; text-decoration-color: var(--wp--preset--color--accent); }
.mp-footer ul { list-style: none; padding: 0; margin: 0; }
.mp-footer li + li { margin-top: 0.4rem; }
.mp-footer h2 { font-weight: 500; letter-spacing: 0.12em; margin-bottom: 1rem; }
.mp-footer li + li { margin-top: 0.55rem; }
.mp-footer-brand > * + * { margin-top: 1.1rem; }
/* Mobil: bağlantı sütunları ikili ızgara */
@media (max-width: 781px) {
	.mp-footer-cols { display: grid !important; grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem !important; }
	.mp-footer-cols > .mp-footer-brand { grid-column: 1 / -1; }
	.mp-footer-cols > .wp-block-column { flex-basis: auto !important; }
}
/* Footer, sayfa altına süt kahve zeminle oturur */
.mp-footer { margin-bottom: 0 !important; }
.wp-site-blocks > footer, .wp-site-blocks > .wp-block-template-part:last-child { margin-bottom: 0; }
.mp-footer .mp-slogan { font-weight: 500; letter-spacing: 0.03em; }

/* Ürün sayfası */
.mp-buybox .wp-block-post-title {
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.15;
	text-transform: none;
}
.mp-buybox > * + * { margin-top: 1.25rem; }
.mp-buybox .wp-block-post-excerpt { color: var(--wp--preset--color--muted); }
.mp-trust p { margin: 0; }
.wp-block-woocommerce-product-details h3 { font-size: var(--wp--preset--font-size--large); margin-top: 2rem; }

/* "Tümünü gör" tek satırda kalsın */
.wp-block-group.is-nowrap > p { white-space: nowrap; }

/* Ürün galerisi sütunu tam doldurur */
.wp-block-woocommerce-product-image-gallery { max-width: none !important; }
.wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
}
.wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery__image img {
	width: 100%;
	height: auto;
	max-height: 82vh;
	object-fit: contain;
	background: var(--wp--preset--color--stone);
}
.woocommerce-Reviews-title,
#reply-title { font-size: var(--wp--preset--font-size--large) !important; }
.woocommerce-tabs ul.tabs li a { text-decoration: none; }

/* İndirim etiketi neon */
.wc-block-components-product-sale-badge,
.onsale {
	background: var(--wp--preset--color--accent) !important;
	color: var(--wp--preset--color--contrast) !important;
	border: 0 !important;
	border-radius: 0 !important;
}

/* Çerez bandı: varsayılan gizli, JS gösterir */
.mp-cookie {
	position: fixed;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	z-index: 9999;
	max-width: 760px;
	margin: 0 auto !important;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
	display: none !important;
}
.mp-cookie.is-visible { display: flex !important; }
.mp-cookie p { margin: 0; }
.mp-cookie a { color: inherit; }
.mp-cookie .wp-block-button__link { padding: 0.8rem 1.4rem; }
.mp-cookie .is-style-outline .wp-block-button__link { color: var(--wp--preset--color--base); border-color: var(--wp--preset--color--base); background: transparent; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}

/* Çerez bandı mobilde kompakt */
@media (max-width: 599px) {
	.mp-cookie { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; padding: 1rem !important; gap: 0.75rem !important; }
	.mp-cookie .wp-block-buttons { flex-wrap: nowrap; gap: 0.5rem; width: 100%; }
	.mp-cookie .wp-block-button { flex: 1 1 0; }
	.mp-cookie .wp-block-button__link { width: 100%; padding: 0.8rem 0.5rem; letter-spacing: 0.08em; }
}

/* Footer en alt satır: mobilde alt alta, ortalı ve çerez bandının altında kalmaz */
.mp-footer-bottom p { margin: 0; }
@media (max-width: 599px) {
	.mp-footer-bottom { flex-direction: column; align-items: center !important; text-align: center; gap: 0.4rem !important; padding-bottom: 0.5rem; }
	.mp-footer-brand { text-align: left; }
	.mp-footer { padding-bottom: 1.5rem !important; }
}

/* Katalog modu */
.mp-catalog-note { margin: 1.5rem 0; padding: 1.1rem 1.25rem; background: var(--wp--preset--color--accent-soft); border-left: 3px solid var(--wp--preset--color--accent); }
.mp-catalog-note p { margin: 0; }
.mp-catalog-note p + p { margin-top: .9rem; }
.mp-catalog-btn { margin-top: .5rem; }
@media (max-width: 781px) {
	.mp-hero .mp-hero-text .wp-block-buttons { flex-direction: column; align-items: stretch; gap: .6rem; }
	.mp-hero .mp-hero-text .wp-block-button,
	.mp-hero .mp-hero-text .wp-block-button__link { width: 100%; text-align: center; min-height: 3rem; display: flex; align-items: center; justify-content: center; }
}
/* Vitrin videosu */
.mp-hero .mp-hero-video { background: #0A0A0A; overflow: hidden; }
.mp-hero .mp-hero-video video {
	display: block; width: 100%; height: 100%;
	object-fit: cover; object-position: 50% 50%;
}
@media (min-width: 782px) {
	/* Dikey video masaüstünde kırpılmadan, koyu zemin üzerinde ortada. */
	.mp-hero .mp-hero-video video { height: 82vh; min-height: 0; object-fit: contain; }
}
@media (max-width: 781px) {
	.mp-hero .mp-hero-video video { aspect-ratio: 4 / 5; height: auto; }
}
@media (prefers-reduced-motion: reduce) {
	.mp-hero .mp-hero-video video { animation: none; }
}
@media (max-width: 781px) {
	/* Mobilde vitrin fotoğrafı yazının üstünde, düğmelerin altında değil. */
	.mp-hero > .wp-block-column:has(.mp-hero-image) { order: -1; }
	.mp-hero .mp-hero-image img { aspect-ratio: 4 / 3; object-position: 50% 62%; }
}

/* Katalog modu: sepet simgesi ve çekmecesi görünmez */
body.mp-catalog .wp-block-woocommerce-mini-cart,
body.mp-catalog .wc-block-mini-cart__drawer,
body.mp-catalog .wc-block-components-drawer__screen-overlay { display: none !important; }
