/* ==========================================================================
   Masal7art — ana stiller
   ========================================================================== */

/* ---------- Fontlar (yerel) ---------- */
@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Cormorant Garamond";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-latin-ext-500-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Cormorant Garamond";
	font-style: italic;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Cormorant Garamond";
	font-style: italic;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/cormorant-garamond-latin-ext-500-italic.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/inter-latin-ext-400-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/inter-latin-ext-500-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Değişkenler ---------- */
:root {
	--c-cream: #f7f2ea;
	--c-paper: #fcfaf6;
	--c-sand: #e8dccb;
	--c-clay: #b5684a;
	--c-clay-dark: #8f4c33;
	--c-glaze: #6f8a74;
	--c-glaze-dark: #546b59;
	--c-ink: #2b2620;
	--c-muted: #75695c;
	--c-line: #e4dace;

	--f-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--f-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--container: 1240px;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--space: clamp(3.5rem, 8vw, 7rem);
	--radius: 2px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--c-paper);
	color: var(--c-ink);
	font-family: var(--f-sans);
	font-size: 1rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--c-clay); }

h1, h2, h3, h4 {
	margin: 0 0 .5em;
	font-family: var(--f-serif);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -.01em;
}

p { margin: 0 0 1.2em; }

:focus-visible { outline: 2px solid var(--c-clay); outline-offset: 3px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	top: 1rem; left: 1rem; z-index: 100;
	padding: .75rem 1rem;
	background: var(--c-ink); color: #fff;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 760px; }

.section { padding-block: var(--space); }
.section--tight { padding-top: 0; }
.section__header {
	display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
	margin-bottom: clamp(1.5rem, 4vw, 3rem);
}
.section__title { font-size: clamp(2rem, 4vw, 3rem); margin: 0; }

.eyebrow {
	margin-bottom: 1rem;
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--c-glaze-dark);
}

.link-arrow { font-size: .9rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; transition: margin .3s var(--ease); }
.link-arrow:hover::after { margin-left: .25em; }

/* ---------- Butonlar ---------- */
.button {
	display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
	min-height: 3.25rem;
	padding: .9rem 1.75rem;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font: 500 .875rem/1 var(--f-sans);
	letter-spacing: .06em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.button--primary { background: var(--c-glaze); color: #fff; }
.button--primary:hover { background: var(--c-glaze-dark); color: #fff; }
.button--outline { border-color: var(--c-ink); color: var(--c-ink); }
.button--outline:hover { background: var(--c-ink); color: var(--c-paper); }
.button--light { background: var(--c-paper); color: var(--c-ink); }
.button--light:hover { background: var(--c-clay); color: #fff; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; background: var(--c-paper); border-bottom: 1px solid var(--c-line); }
.site-header--overlay { position: absolute; inset: 0 0 auto; background: transparent; border-color: transparent; color: #fff; }

/* Giriş yapılmışken WordPress yönetici çubuğunun altında kal */
.admin-bar .site-header--overlay { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .site-header--overlay { top: 46px; }
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; }

.site-title { font-family: var(--f-serif); font-size: 1.6rem; letter-spacing: .02em; text-decoration: none; }
.site-title:hover { color: inherit; }
.custom-logo { max-height: 48px; width: auto; }

.primary-nav .menu { display: flex; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.primary-nav a { font-size: .85rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.site-header--overlay .primary-nav a:hover { color: var(--c-sand); }
.primary-nav .current-menu-item > a { text-decoration: underline; }

.nav-toggle { display: none; }

@media (max-width: 767px) {
	.nav-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 44px; height: 44px;
		padding: 0; border: 0; background: none; color: inherit; cursor: pointer;
	}
	.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
		display: block; width: 22px; height: 1.5px; background: currentColor;
		transition: transform .3s var(--ease), opacity .3s;
	}
	.nav-toggle__bar { position: relative; }
	.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
	.nav-toggle__bar::before { top: -7px; }
	.nav-toggle__bar::after { top: 7px; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

	.primary-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		background: var(--c-paper); color: var(--c-ink);
		border-bottom: 1px solid var(--c-line);
		display: none;
	}
	.primary-nav.is-open { display: block; }
	.primary-nav .menu { flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1.25rem; }
	.primary-nav a { display: block; padding: .85rem 0; }
	.site-header--overlay .primary-nav a:hover { color: var(--c-clay); }
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	display: flex; align-items: flex-end;
	min-height: 88svh;
	overflow: hidden;
	background: var(--c-clay-dark);
	color: #fff;
}
.hero__media, .hero__image, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity 1s var(--ease); }
.hero__video.is-playing { opacity: 1; }
.hero__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(30, 22, 16, .6), rgba(30, 22, 16, .05) 55%, rgba(30, 22, 16, .25));
}
.hero--plain { background: linear-gradient(135deg, var(--c-clay), var(--c-clay-dark)); }

.hero__content { position: relative; padding-block: clamp(3rem, 10vw, 6.5rem); }
.hero__title { max-width: 14ch; font-size: clamp(3rem, 9vw, 6.5rem); line-height: .98; }
.hero__text { max-width: 36ch; margin-bottom: 2rem; font-size: clamp(1rem, 1.6vw, 1.15rem); opacity: .9; }

/* ---------- Giriş ---------- */
.intro { text-align: center; }
.intro__lead { font-family: var(--f-serif); font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.3; margin: 0; }

/* ---------- Ürün ızgarası ---------- */
.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 2.5vw, 2rem);
}
.product-card__link { display: block; text-decoration: none; }
.product-card__link:hover { color: inherit; }
.product-card__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--c-cream); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.product-card__link:hover .product-card__media img { transform: scale(1.04); }
.product-card__placeholder { display: block; width: 100%; height: 100%; min-height: 240px; background: linear-gradient(160deg, var(--c-cream), var(--c-sand)); }
.product-card__body { padding-top: 1rem; }
.product-card__cat { margin: 0 0 .2rem; font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--c-glaze-dark); }
.product-card__title { margin: 0 0 .25rem; font-size: 1.5rem; }

/* ---------- Kategori filtresi ---------- */
.category-nav {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin-top: 2rem;
}
.page-head .category-nav { margin-top: 2.25rem; }
.category-nav__item {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	min-height: 2.75rem;
	padding: .6rem 1.25rem;
	border: 1px solid #cdbca7;
	border-radius: 999px;
	background: var(--c-cream);
	color: var(--c-ink);
	font-size: .875rem;
	font-weight: 500;
	letter-spacing: .02em;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.category-nav__item:hover { border-color: var(--c-clay); background: var(--c-paper); color: var(--c-clay-dark); }
.category-nav__item.is-active { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-paper); }
.category-nav__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.6rem;
	height: 1.6rem;
	padding: 0 .4rem;
	border-radius: 999px;
	background: var(--c-sand);
	color: var(--c-muted);
	font-size: .72rem;
	font-weight: 500;
}
.category-nav__item.is-active .category-nav__count { background: rgba(255, 255, 255, .16); color: var(--c-paper); }

@media (max-width: 599px) {
	/* Mobilde tek satırda yatay kaydırma */
	.category-nav { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
	.category-nav::-webkit-scrollbar { display: none; }
	.category-nav__item { flex: none; }
}
.page-head .eyebrow a { text-decoration: none; }
.product-card__price { margin: 0; font-size: .9rem; color: var(--c-muted); }

/* ---------- Sayfa başlığı ---------- */
.page-head { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.page-head__title { font-size: clamp(2.75rem, 7vw, 5rem); margin-bottom: .25em; }
.page-head__text { color: var(--c-muted); margin: 0; }

/* ---------- Ürün detayı ---------- */
.product { padding-block: clamp(1.5rem, 4vw, 3rem) var(--space); }
.breadcrumb { display: flex; gap: .5rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); font-size: .8rem; color: var(--c-muted); }
.breadcrumb a { text-decoration: none; }

.product__layout { display: grid; gap: clamp(2rem, 5vw, 5rem); }
.product__media { position: relative; margin: 0; min-width: 0; }

/* ---------- Ürün galerisi / slayt ---------- */
.gallery__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	background: var(--c-cream);
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide {
	flex: 0 0 100%;
	margin: 0;
	aspect-ratio: 4 / 5;
	scroll-snap-align: start;
	display: flex;
	align-items: center;
	justify-content: center;
}
.gallery__slide img { width: 100%; height: 100%; object-fit: contain; }

.gallery__nav {
	position: absolute;
	top: calc(50% - 2rem);
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(252, 250, 246, .88);
	color: var(--c-ink);
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(43, 38, 32, .12);
	transition: background-color .3s var(--ease), opacity .3s var(--ease);
}
.gallery__nav:hover { background: var(--c-paper); }
.gallery__nav--prev { left: .75rem; }
.gallery__nav--next { right: .75rem; }

.gallery__thumbs {
	display: flex;
	gap: .5rem;
	margin-top: .75rem;
	overflow-x: auto;
	scrollbar-width: none;
}
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb {
	flex: none;
	width: 4.5rem;
	height: 4.5rem;
	padding: 0;
	border: 1px solid transparent;
	background: var(--c-cream);
	opacity: .55;
	cursor: pointer;
	transition: opacity .3s var(--ease), border-color .3s var(--ease);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: .85; }
.gallery__thumb.is-active { opacity: 1; border-color: var(--c-ink); }

@media (max-width: 599px) {
	.gallery__nav { width: 2.25rem; height: 2.25rem; }
	.gallery__thumb { width: 3.5rem; height: 3.5rem; }
}
.product__title { font-size: clamp(2.5rem, 5vw, 4rem); }
.product__price { font-size: 1.15rem; color: var(--c-clay-dark); margin-bottom: 2rem; }
.product__content { padding-top: 2rem; border-top: 1px solid var(--c-line); color: #4a4239; }

@media (min-width: 960px) {
	.product__layout { grid-template-columns: 7fr 5fr; align-items: start; }
	.product__summary { position: sticky; top: 2rem; padding-top: 1rem; }
}

.inquiry { margin-top: 2.5rem; padding: 1.75rem; background: var(--c-cream); }
.inquiry__label { font-family: var(--f-serif); font-size: 1.5rem; margin-bottom: 1rem; }
.inquiry__buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.inquiry__buttons .button { flex: 1 1 200px; }
.inquiry__hint { margin: .9rem 0 0; font-size: .8rem; line-height: 1.5; color: var(--c-muted); }
.inquiry__hint.is-copied { color: var(--c-glaze-dark); }

.notice { margin-top: 2rem; padding: 1rem; border-left: 3px solid var(--c-clay); background: var(--c-cream); font-size: .9rem; }

/* ---------- Genel içerik ---------- */
.entry__title { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.entry__media { margin: 0 0 2rem; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content img { height: auto; }
.empty { color: var(--c-muted); }

/* ---------- Sayfalama ---------- */
.pagination { margin-top: clamp(3rem, 6vw, 5rem); }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 2.75rem; height: 2.75rem; padding: 0 .75rem;
	border: 1px solid var(--c-line); text-decoration: none; font-size: .9rem;
}
.pagination .page-numbers.current { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-paper); }

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(3rem, 6vw, 5rem) 2rem; background: var(--c-cream); border-top: 1px solid var(--c-line); font-size: .9rem; }
.site-footer__inner { display: grid; gap: 2rem; }
.site-footer__title { font-family: var(--f-serif); font-size: 1.75rem; margin: 0; }
.site-footer__tagline { color: var(--c-muted); margin: 0; }
.site-footer__contact, .footer-menu { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.site-footer a { text-decoration: none; }
.site-footer__copy { margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--c-line); color: var(--c-muted); font-size: .8rem; }

@media (min-width: 768px) {
	.site-footer__inner { grid-template-columns: 1fr auto; align-items: center; }
	.site-footer__copy { grid-column: 1 / -1; }
}

/* ---------- Hareket azaltma ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
