/*
 * Casetti: the site's own pages (inc/site/pages.php).
 * - .c-page-head: the shared page head of the block pages (eyebrow, display title, lead), the block pattern
 *   "Casetti › Sayfa başlığı".
 * - .c-canvas: page-bloklar.php, block content edge to edge on the light background.
 * - .c-boxed: page-kutulu.php, 404.php, search.php and the guide (home.php): a white box on the light background, the
 *   title in Poppins, as the live shop's pages.
 * - .c-search-form: the search field with an icon button (404, search).
 */

/* Page head */
.c-page-head {
	padding: 56px var(--casetti-gutter) 62px;
	background: var(--myco-color-bg);
	text-align: center;
}

.c-page-head > * {
	max-width: 670px;
	margin-inline: auto;
}

.c-page-head__eyebrow {
	margin-top: 0;
	margin-bottom: 18px;
	color: var(--casetti-gold);
	font: 500 11px/1 var(--myco-font-sans);
	letter-spacing: 0.32em;
	text-transform: uppercase;
}

.c-page-head__title {
	margin-top: 0;
	margin-bottom: 4px;
	color: var(--casetti-ink-strong);
	font-family: var(--casetti-font-display);
	font-size: clamp(46px, 6vw, 74px);
	font-weight: 400;
	line-height: 1.03;
	letter-spacing: -0.005em;
}

.c-page-head__lead {
	margin-top: 24px;
	margin-bottom: 0;
	color: var(--myco-color-muted);
	font-size: 16px;
	line-height: 1.85;
}

/* Canvas (page-bloklar.php) */
.c-canvas {
	background: var(--myco-color-surface);
}

.c-canvas__page > * {
	margin-block: 0;
}

/* Boxed (page-kutulu.php, 404, search, guide) */
.c-boxed {
	padding: 64px 0;
	background: var(--myco-color-surface);
}

.c-boxed__box {
	width: min(100% - 2 * var(--casetti-gutter), var(--myco-container));
	margin-inline: auto;
	padding: 106px 107px;
	background: var(--myco-color-bg);
}

.c-boxed__title {
	margin: 0 0 24px;
	color: var(--myco-color-text);
	font-family: var(--casetti-font-heading);
	font-size: 30px;
	font-weight: 400;
	line-height: 1.2;
}

.c-boxed__content {
	color: var(--myco-color-muted);
	font-size: 16px;
	line-height: 1.857;
}

.c-boxed__content > * {
	margin-top: 0;
	margin-bottom: 1.6em;
}

.c-boxed__content > h2,
.c-boxed__content > h3 {
	margin-top: 0;
	margin-bottom: 0.9em;
	color: var(--myco-color-text);
	font-weight: 600;
}

.c-boxed__content > h2 {
	font-size: 40px;
	line-height: 1.3;
}

.c-boxed__content > h3 {
	font-size: 32px;
	line-height: 1.3;
}

/* The text's own lists and links (not a product list's). */
.c-boxed__content > ul,
.c-boxed__content > ol {
	padding-left: 3em;
}

.c-boxed__content > :is(p, ul, ol) a {
	color: var(--myco-color-text);
}

.c-boxed__content > :is(p, ul, ol) a:hover {
	color: var(--myco-color-accent-2);
}

/* A product list in a boxed page (Stil Önerilerimiz): the shop's grid, full width of the box. */
.c-boxed__content .woocommerce {
	margin-bottom: 0;
}

.c-boxed__box--center {
	text-align: center;
}

/* 404 */
.c-notfound {
	padding-block: 64px;
}

.c-notfound__title {
	margin: 0 0 16px;
	color: #000;
	font-family: var(--casetti-font-heading);
	font-size: 48px;
	font-weight: 400;
	line-height: 1.4;
}

.c-notfound__text {
	margin: 0 0 32px;
	color: var(--myco-color-muted);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.6;
}

.c-notfound .c-search-form {
	max-width: 370px;
	margin-inline: auto;
}

.c-notfound__links {
	margin: 24px 0 0;
	font-size: 14px;
}

.c-notfound__links span {
	margin-inline: 8px;
	color: var(--casetti-muted-2);
}

/* Search form (404, search results) */
.c-search-form {
	display: flex;
	max-width: 260px;
	border: 1px solid var(--myco-color-text);
	background: var(--myco-color-bg);
}

.c-search-form__field {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	padding: 6px 10px;
	border: 0;
	background: transparent;
	color: var(--myco-color-text);
	font: 400 14px/1.5 var(--myco-font-sans);
	box-shadow: none;
}

.c-search-form__field:focus {
	outline: none;
}

.c-search-form:focus-within {
	outline: 2px solid var(--casetti-gold);
	outline-offset: 2px;
}

.c-search-form__submit {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 40px;
	min-height: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--myco-color-muted);
	cursor: pointer;
}

.c-search-form__submit:hover {
	background: transparent;
	color: var(--myco-color-text);
}

.c-search-form__submit svg {
	width: 18px;
	height: 18px;
}

/* Content search results */
.c-search__eyebrow {
	margin: 0 0 12px;
	color: var(--casetti-gold);
	font: 500 11px/1.4 var(--myco-font-sans);
	letter-spacing: 0.32em;
	text-transform: uppercase;
}

.c-search__count {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	margin: 0 0 24px;
	color: var(--myco-color-muted);
	font-size: 15px;
}

.c-search__shop {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--myco-color-text);
	font-weight: 500;
}

.c-search__shop svg {
	width: 15px;
	height: 15px;
}

.c-search .c-search-form {
	max-width: 420px;
}

.c-search__list {
	margin: 48px 0 0;
	padding: 0;
	list-style: none;
}

.c-search__list > li {
	margin: 0;
	padding: 28px 0;
	border-top: 1px solid var(--myco-color-border);
}

.c-search-result > * {
	margin: 0;
}

.c-search-result__type {
	margin-bottom: 6px;
	color: var(--casetti-muted);
	font: 500 10px/1.6 var(--myco-font-sans);
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.c-search-result__title {
	font-size: 22px;
	font-weight: 500;
	line-height: 1.35;
}

.c-search-result__title a {
	color: var(--myco-color-text);
	text-decoration: none;
}

.c-search-result__title a:hover {
	color: var(--myco-color-accent-2);
	text-decoration: underline;
}

.c-search-result__excerpt {
	margin-top: 8px;
	color: var(--myco-color-muted);
	font-size: 15px;
	line-height: 1.7;
}

.c-search__empty {
	margin: 40px 0 0;
	color: var(--myco-color-muted);
}

@media (max-width: 1024px) {
	.c-boxed__box {
		padding: 64px 48px;
	}
}

@media (max-width: 900px) {
	.c-page-head {
		padding-block: 40px;
	}

	.c-page-head__eyebrow {
		margin-bottom: 12px;
		font-size: 10px;
	}
}

@media (max-width: 767px) {
	.c-boxed {
		padding: 60px 0 40px;
	}

	.c-boxed__box {
		width: calc(100% - 16px);
		padding: 24px 14px;
	}

	.c-boxed__title {
		font-size: 27px;
	}

	.c-boxed__content {
		font-size: 14.6px;
	}

	.c-boxed__content > h2 {
		font-size: 25px;
	}

	.c-boxed__content > h3 {
		font-size: 21px;
	}

	.c-boxed__content > ul,
	.c-boxed__content > ol {
		padding-left: 2em;
	}

	.c-notfound {
		padding-block: 32px;
	}

	.c-notfound__title {
		font-size: 32px;
	}

	.c-notfound__text {
		font-size: 18px;
	}

	.c-notfound .c-search-form {
		max-width: none;
	}
}
