/*
Theme Name: AS Motor
Description: Motor koduyla aranan, fotoğraflı ve TL fiyatlı sandık motor vitrini.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.4.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: as-motor
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts a margin-block-start equal to the block gap (24px unless
   theme.json sets styles.spacing.blockGap) between the template's top-level
   sections (header part, main, footer part) — a gap that exists even when no
   markup asks for it. Zero it so sections butt edge-to-edge and own their
   vertical rhythm via padding; this does not affect block gaps inside nested
   layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce cart, checkout, account…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--xl);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

/* === tokens === */
:root {
	--as-line: 1px solid var(--wp--preset--color--line);
	--as-line-strong: 1px solid var(--wp--preset--color--primary);
	--as-line-invert: 1px solid rgba(255, 255, 255, 0.22);
	--as-radius: var(--wp--custom--rounded--md);
	--as-radius-lg: var(--wp--custom--rounded--lg);
	--as-ease: cubic-bezier(0.2, 0.7, 0.3, 1);
	--as-shell: clamp(1.25rem, 5vw, 3rem);
}

/* === base === */
body {
	-webkit-font-smoothing: antialiased;
	letter-spacing: -0.005em;
}

.wp-site-blocks {
	position: relative;
}

.wp-block-site-title,
.wp-block-site-title a {
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.wp-block-image img {
	display: block;
}

/* === bands === */
.band {
	padding-block: var(--wp--preset--spacing--xl);
}

.band--white {
	background: var(--wp--preset--color--background);
}

.band--surface {
	background: var(--wp--preset--color--surface);
}

.band--navy {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--background);
}

.band--deep {
	background: var(--wp--preset--color--deep);
	color: var(--wp--preset--color--background);
}

.band--navy :is(h1, h2, h3, p, li, a),
.band--deep :is(h1, h2, h3, p, li, a) {
	color: var(--wp--preset--color--background);
}

.band--white + .band--white,
.band--surface + .band--surface {
	border-top: var(--as-line);
}

/* === labels, section heads === */
.eyebrow {
	margin: 0 0 var(--wp--preset--spacing--sm);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}

.band--navy .eyebrow,
.band--deep .eyebrow {
	color: var(--wp--preset--color--surface);
	opacity: 0.75;
}

.section-head {
	gap: var(--wp--preset--spacing--md);
	padding-bottom: var(--wp--preset--spacing--lg);
	border-bottom: var(--as-line);
	margin-bottom: var(--wp--preset--spacing--lg);
	align-items: flex-end;
}

.section-head h2 {
	margin: 0;
	font-size: var(--wp--preset--font-size--headline);
}

.section-head__note {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
	max-width: 34ch;
}

.section-head__link {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	white-space: nowrap;
}

.section-head__link a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding-bottom: 2px;
}

.section-head__link a:hover {
	border-bottom-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

/* === header: white top bar + navy menu strip === */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--wp--preset--color--background);
}

.site-head {
	background: var(--wp--preset--color--background);
	border-bottom: var(--as-line);
}

.site-head__top {
	max-width: calc(1240px + 2 * var(--as-shell));
	margin-inline: auto;
	padding: 16px var(--as-shell);
	gap: var(--wp--preset--spacing--lg);
}

.site-nav {
	max-width: calc(1240px + 2 * var(--as-shell));
	margin-inline: auto;
	padding-inline: var(--as-shell);
}

/* The monogram steps aside once a real logo is uploaded in the Site Editor. */
.site-head__brand:has(.wp-block-site-logo img) .site-head__mark {
	display: none;
}

.site-head__brand {
	gap: 10px;
	align-items: center;
	flex: 0 0 auto;
}

/* --- Brand logo ---------------------------------------------------------
   The uploaded artwork is a 3000×3000 square canvas with the wordmark in the
   middle: its ink spans 9.26%–90.59% horizontally and 45.23%–75.70%
   vertically. The file is never redrawn; instead the logo link is cropped to a
   larger window — the ink plus 6% breathing room left and right and 11% top
   and bottom, so A, S, MOTOR and the two blue rules clear every edge instead
   of sitting flush against the plate. The numbers below map that window
   (3.83%–96.17% × 40.88%–80.15% of the canvas) onto --logo-w, so the padding
   scales with the logo; the navy plate keeps the white A legible on the white
   header. */
.site-head .wp-block-site-logo .custom-logo-link,
.site-footer .wp-block-site-logo .custom-logo-link {
	--logo-w: 112px;
	position: relative;
	display: block;
	width: var(--logo-w);
	height: calc(var(--logo-w) * 0.4253);
	overflow: hidden;
	border-radius: 5px;
	background-color: var(--wp--preset--color--primary);
}

.site-head .wp-block-site-logo .custom-logo-link img,
.site-footer .wp-block-site-logo .custom-logo-link img {
	position: absolute;
	top: calc(var(--logo-w) * -0.44273);
	left: calc(var(--logo-w) * -0.04148);
	width: calc(var(--logo-w) * 1.083);
	height: auto;
	max-width: none;
	max-height: none;
}

/* The footer plate sits on the deep band, so it needs a hairline edge. */
.site-footer .wp-block-site-logo .custom-logo-link {
	--logo-w: 150px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.site-footer .site-foot__logo {
	margin-bottom: 14px;
}

/* The artwork already carries the wordmark, so the text wordmark beside it
   steps aside; the tagline and footer line stay. */
.site-head__brand:has(.custom-logo-link) .wp-block-site-title,
.site-footer__brand:has(.custom-logo-link) .wp-block-site-title {
	display: none;
}

@media (max-width: 599px) {
	.site-head .wp-block-site-logo .custom-logo-link {
		--logo-w: 96px;
	}

	.site-footer .wp-block-site-logo .custom-logo-link {
		--logo-w: 126px;
	}
}

.site-head__mark {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: var(--as-radius);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--background);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	flex: 0 0 auto;
}

.site-head__title-group {
	gap: 2px;
}

.site-head__search {
	flex: 1 1 210px;
	min-width: 0;
	max-width: 560px;
}

.site-head__contact {
	position: fixed;
	z-index: 5;
	inset-inline-end: max(16px, env(safe-area-inset-right));
	inset-block-end: max(16px, env(safe-area-inset-bottom));
}

/* === product search === */
.motor-search .wp-block-search__inside-wrapper {
	display: flex;
	gap: 0;
	padding: 0;
	border: var(--as-line);
	border-radius: var(--as-radius);
	background: var(--wp--preset--color--background);
	overflow: hidden;
}

.motor-search .wp-block-search__input {
	flex: 1 1 auto;
	height: 46px;
	padding-inline: 16px;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--text);
	font-family: inherit;
	font-size: 0.9375rem;
}

.motor-search .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--muted);
}

.motor-search .wp-block-search__input:focus {
	outline: none;
}

.motor-search:focus-within .wp-block-search__inside-wrapper {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 2px rgba(14, 35, 68, 0.14);
}

.motor-search .wp-block-search__button {
	height: 46px;
	margin: 0;
	padding-inline: 22px;
	border: 0;
	border-radius: 0;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--background);
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 120ms var(--as-ease);
}

.motor-search .wp-block-search__button:hover {
	background: var(--wp--preset--color--deep);
}

.motor-search svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* large search used inside the hero band */
.motor-search--hero .wp-block-search__input,
.motor-search--hero .wp-block-search__button {
	height: 56px;
}

.motor-search--hero .wp-block-search__input {
	font-size: 1rem;
}

/* === floating social links === */
.channel-inline.social-links {
	display: grid;
	gap: 8px;
}

.channel-inline.social-links a {
	width: 56px;
	height: 56px;
	padding: 0;
	border: var(--as-line);
	border-radius: var(--as-radius);
	background: var(--wp--preset--color--background);
}

.channel-inline.social-links svg {
	width: 32px;
	height: 32px;
}

.channel-inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.channel-inline a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 44px;
	min-height: 44px;
	padding-inline: 6px;
	box-sizing: border-box;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	white-space: nowrap;
}

.channel-inline a:hover,
.channel-inline a:focus-visible {
	color: var(--wp--preset--color--accent);
}

.channel-inline svg {
	flex-shrink: 0;
}

/* === navy menu strip === */
.site-head__nav {
	background: var(--wp--preset--color--primary);
}

.site-nav {
	font-size: var(--wp--preset--font-size--small);
}

.site-nav .wp-block-navigation__container {
	gap: 0;
}

.site-nav .wp-block-navigation-item__content {
	padding: 15px 18px;
	color: var(--wp--preset--color--background);
	font-weight: 500;
	text-decoration: none;
	transition: background-color 120ms var(--as-ease);
}

.site-nav .wp-block-navigation-item__content:hover,
.site-nav .wp-block-navigation-item.is-open > .wp-block-navigation-item__content {
	background: rgba(255, 255, 255, 0.1);
	color: var(--wp--preset--color--background);
}

.site-nav .wp-block-navigation-submenu {
	background: var(--wp--preset--color--background);
	border: var(--as-line);
	border-radius: var(--as-radius);
	padding: 6px;
	min-width: 220px;
}

.site-nav .wp-block-navigation-submenu .wp-block-navigation-item__content {
	color: var(--wp--preset--color--text);
	padding: 10px 14px;
	border-radius: 6px;
}

.site-nav .wp-block-navigation-submenu .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--primary);
}

.site-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--background);
}

/* === hero band === */
.hero {
	padding-block: var(--wp--preset--spacing--xl);
}

.hero__text {
	gap: var(--wp--preset--spacing--md);
	justify-content: center;
}

.hero__title {
	margin: 0;
	max-width: 15ch;
}

.hero__lede {
	margin: 0;
	max-width: 44ch;
	font-size: var(--wp--preset--font-size--body);
	color: var(--wp--preset--color--muted);
}

.hero__search {
	margin-top: var(--wp--preset--spacing--sm);
	max-width: 540px;
}

.hero__codes {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--sm);
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.hero__codes .chip {
	margin: 0;
}

.hero__figure {
	margin: 0;
}

.hero__figure img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--as-radius-lg);
}

.chip {
	background: var(--wp--preset--color--background);
	border: var(--as-line);
	border-radius: var(--wp--custom--rounded--pill);
	padding: 6px 12px;
	margin: 0;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

/* === category cards === */
.cat-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--md);
}

.cat-card {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--background);
	border: var(--as-line);
	border-radius: var(--as-radius);
	overflow: hidden;
	transition: border-color 120ms var(--as-ease), transform 160ms var(--as-ease);
}

.cat-card:hover {
	border-color: var(--wp--preset--color--primary);
}

.cat-card__media {
	background: var(--wp--preset--color--surface);
	margin: 0;
}

.cat-card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.cat-card__media a {
	display: block;
}

.cat-card__name a {
	color: inherit;
	text-decoration: none;
}

.cat-card__name a:hover {
	color: var(--wp--preset--color--accent);
}

.cat-card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px 18px;
}

.cat-card__name {
	margin: 0;
	font-size: var(--wp--preset--font-size--title);
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--primary);
}

.cat-card__meta {
	margin: 0;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.cat-card__link {
	text-decoration: none;
	color: inherit;
	display: block;
}

/* === product grid === */
.catalog .wp-block-woocommerce-product-collection,
.catalog .wp-block-post-template {
	margin: 0;
}

.catalog .wp-block-post-template {
	list-style: none;
	padding: 0;
	gap: var(--wp--preset--spacing--lg) var(--wp--preset--spacing--md);
}

.catalog .wp-block-post-template > li {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--background);
	border: var(--as-line);
	border-radius: var(--as-radius);
	overflow: hidden;
	transition: border-color 120ms var(--as-ease);
}

.catalog .wp-block-post-template > li:hover {
	border-color: var(--wp--preset--color--primary);
}

.catalog .wc-block-components-product-image,
.catalog .wp-block-woocommerce-product-image {
	margin: 0;
	background: var(--wp--preset--color--surface);
}

.catalog .wc-block-components-product-image img,
.catalog .wp-block-woocommerce-product-image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 200ms var(--as-ease);
}

.catalog .wp-block-post-template > li:hover .wc-block-components-product-image img {
	transform: scale(1.02);
}

.catalog .wp-block-post-title {
	margin: 12px 18px 0;
	font-size: var(--wp--preset--font-size--title);
	letter-spacing: -0.01em;
}

.catalog .wp-block-post-title a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.catalog .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent);
}

.catalog .wp-block-woocommerce-product-sku {
	margin: 14px 18px 0;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}

.catalog .wp-block-post-terms {
	margin: 2px 18px 0;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.catalog .wp-block-post-terms a {
	color: inherit;
	text-decoration: none;
}

.catalog .wp-block-woocommerce-product-price {
	margin: auto 18px 0;
	padding-top: 14px;
	border-top: var(--as-line);
}

.catalog .wp-block-woocommerce-product-price .wc-block-components-product-price,
.catalog .wp-block-woocommerce-product-price .price {
	font-size: var(--wp--preset--font-size--price);
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--accent);
}

.catalog .wp-block-woocommerce-product-price {
	padding-bottom: 16px;
}

.catalog li > .wp-block-woocommerce-product-price:only-child {
	margin: 0 18px 16px;
}

.catalog .wp-block-post-excerpt {
	margin: 6px 18px 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.catalog .wp-block-post-excerpt p {
	margin: 0;
}

.catalog-count {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

/* === trust band === */
.trust-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--lg);
}

.trust-item {
	padding-top: var(--wp--preset--spacing--md);
	border-top: 2px solid var(--wp--preset--color--primary);
}

.trust-item__label {
	margin: 0 0 6px;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}

.trust-item__text {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text);
}

/* === contact band === */
.contact-band {
	gap: var(--wp--preset--spacing--xl);
	align-items: center;
}

.contact-band__text h2 {
	margin: 0 0 var(--wp--preset--spacing--sm);
}

.contact-band__text p {
	margin: 0;
	max-width: 42ch;
	font-size: var(--wp--preset--font-size--body);
	opacity: 0.85;
}

.contact-band__actions {
	gap: var(--wp--preset--spacing--sm);
	justify-content: flex-end;
}

.contact-band__actions p {
	margin: 0;
}

/* channel links rendered by the [as_motor_iletisim] shortcode */
.channel-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--sm);
	margin: 0;
}

.channel-link {
	display: inline-flex;
	flex-direction: column;
	gap: 2px;
	min-width: 190px;
	padding: 12px 20px;
	border-radius: var(--as-radius);
	background: var(--wp--preset--color--background);
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	line-height: 1.25;
	transition: background-color 120ms var(--as-ease), color 120ms var(--as-ease);
}

.channel-link__label {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}

.channel-link__value {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.channel-link:hover {
	background: var(--wp--preset--color--surface);
}

.channel-empty {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.85;
}

/* === footer === */
.site-footer {
	padding-block: var(--wp--preset--spacing--xl) var(--wp--preset--spacing--lg);
}

.site-footer__top {
	gap: var(--wp--preset--spacing--xl);
	padding-bottom: var(--wp--preset--spacing--lg);
	border-bottom: var(--as-line-invert);
}

.site-footer__brand {
	max-width: 420px;
	gap: var(--wp--preset--spacing--sm);
}

.site-footer .wp-block-site-title,
.site-footer .wp-block-site-title a {
	font-size: 1.35rem;
	color: var(--wp--preset--color--background);
}

.site-footer__line {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: rgba(255, 255, 255, 0.72);
}

.site-footer__links {
	gap: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--lg);
}

.site-footer__link {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
}

.site-footer__link a {
	color: rgba(255, 255, 255, 0.86);
	text-decoration: none;
}

.site-footer__link a:hover {
	color: var(--wp--preset--color--background);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-footer__note {
	margin: var(--wp--preset--spacing--md) 0 0;
	font-size: var(--wp--preset--font-size--label);
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.6);
}

/* === product page === */
.product-figure {
	margin: 0;
	background: var(--wp--preset--color--surface);
	border-radius: var(--as-radius-lg);
	overflow: hidden;
}

.product-figure img {
	display: block;
	width: 100%;
	height: auto;
}

.product-title {
	margin: 0;
	font-size: clamp(1.75rem, 3vw, 2.6rem);
}

.product-sku {
	margin: 0;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}

.product-brand {
	margin: 0;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.product-brand a {
	color: inherit;
	text-decoration: none;
}

.product-price {
	margin: 0;
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--accent);
}

.product-lede {
	font-size: var(--wp--preset--font-size--body);
	color: var(--wp--preset--color--muted);
	max-width: 46ch;
}

.product-lede p {
	margin: 0;
}

.spec-table table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.spec-table :is(th, td) {
	text-align: left;
	padding: 12px 0;
	border-top: var(--as-line);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
}

.spec-table th {
	width: 40%;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

/* === shared notes === */
.note-box {
	background: var(--wp--preset--color--surface);
	border-left: 3px solid var(--wp--preset--color--accent);
	border-radius: 0 var(--as-radius) var(--as-radius) 0;
	padding: var(--wp--preset--spacing--md) var(--wp--preset--spacing--lg);
}

.note-box p {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text);
}

.band--navy .note-box,
.band--deep .note-box {
	background: rgba(255, 255, 255, 0.08);
	border-left-color: var(--wp--preset--color--background);
}

.band--navy .note-box p,
.band--deep .note-box p {
	color: rgba(255, 255, 255, 0.86);
}

/* === motion === */
@keyframes as-rise {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.hero__text > * {
	animation: as-rise 300ms var(--as-ease) both;
}

.hero__text > *:nth-child(2) {
	animation-delay: 60ms;
}

.hero__text > *:nth-child(3) {
	animation-delay: 120ms;
}

.hero__text > *:nth-child(4) {
	animation-delay: 180ms;
}

/* === editorial blocks === */
.wp-block-details {
	border-top: var(--as-line);
	padding: 18px 0;
}

.wp-block-details:last-child {
	border-bottom: var(--as-line);
}

.wp-block-details > summary {
	cursor: pointer;
	font-size: var(--wp--preset--font-size--title);
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--primary);
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--md);
}

.wp-block-details > summary::-webkit-details-marker {
	display: none;
}

.wp-block-details > summary::after {
	content: "+";
	font-size: 1.25rem;
	line-height: 1;
	color: var(--wp--preset--color--accent);
}

.wp-block-details[open] > summary::after {
	content: "–";
}

.wp-block-details > p {
	margin: var(--wp--preset--spacing--sm) 0 0;
	max-width: 58ch;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.wp-block-list {
	margin: 0 0 var(--wp--preset--spacing--lg);
	padding-left: 1.1em;
	font-size: var(--wp--preset--font-size--body);
}

.wp-block-list li + li {
	margin-top: 8px;
}

.wp-block-list strong {
	font-weight: 700;
	color: var(--wp--preset--color--primary);
}

/* === responsive === */
@media (max-width: 1000px) {
	.catalog .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 900px) {
	.site-head__top {
		gap: var(--wp--preset--spacing--md);
	}

	.site-head__search {
		order: 3;
		flex-basis: 100%;
		max-width: none;
	}

	.cat-grid,
	.trust-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.contact-band {
		gap: var(--wp--preset--spacing--lg);
	}

	.hero {
		padding-block: var(--wp--preset--spacing--lg);
	}

	.hero__title {
		max-width: none;
	}
}

@media (max-width: 640px) {
	:root {
		--as-shell: 1.25rem;
	}

	.band {
		padding-block: var(--wp--preset--spacing--lg);
	}

	.cat-grid,
	.trust-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.site-nav .wp-block-navigation__container {
		font-size: 1rem;
	}

	.site-nav .wp-block-navigation-item__content {
		padding: 14px 0;
	}

	.channel-link {
		width: 100%;
	}
}

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

/* === corrections after live inspection === */

/* Navigation text must stay white on the navy strip: the global link colour
   from theme.json otherwise wins inside the block's generated markup. Scoped
   to the closed container, since the mobile overlay paints a white panel and
   white labels would vanish on it. */
.site-head__nav .site-nav .wp-block-navigation__responsive-container:not(.is-menu-open) a.wp-block-navigation-item__content,
.site-head__nav .site-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__label {
	color: var(--wp--preset--color--background);
}

.site-nav .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--background);
}

.site-nav .wp-block-navigation__responsive-container.is-menu-open a.wp-block-navigation-item__content,
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__label {
	color: var(--wp--preset--color--text);
}

/* On mobile the navy strip collapses to a burger; without padding it was a
   24px sliver, so the toggle gets a full tap target. */
@media (max-width: 599px) {
	.site-head__nav {
		padding-block: 6px;
	}

	.site-head__nav .site-nav .wp-block-navigation__responsive-container-open {
		min-height: 44px;
		padding-block: 10px;
	}
}

.site-head__nav .site-nav .wp-block-navigation-submenu a.wp-block-navigation-item__content,
.site-head__nav .site-nav .wp-block-navigation-submenu .wp-block-navigation-item__label {
	color: var(--wp--preset--color--text);
}

.site-head__nav .site-nav .wp-block-navigation-submenu a.wp-block-navigation-item__content:hover,
.site-head__nav .site-nav .wp-block-navigation-submenu .wp-block-navigation-item__label:hover {
	color: var(--wp--preset--color--primary);
}

.site-head__nav .site-nav .wp-block-navigation__responsive-container-open,
.site-head__nav .site-nav .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--background);
}

/* Bands are one stacked colour system: the flow gap left a 24px white sliver
   between the surface band and the navy contact band. */
.band + .band {
	margin-block-start: 0;
}

/* Grid children keep the block gap margin WordPress adds on flow layouts,
   which pushed alternating cards down by 24px. */
.cat-grid > *,
.trust-grid > * {
	margin-block: 0;
}

/* The product template WooCommerce renders is a grid of li.wc-block-product. */
.catalog ul.wc-block-product-template {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--lg) var(--wp--preset--spacing--md);
	list-style: none;
	margin: 0;
	padding: 0;
}

.catalog ul.wc-block-product-template > li.wc-block-product {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0 0 18px;
	background: var(--wp--preset--color--background);
	border: var(--as-line);
	border-radius: var(--as-radius);
	overflow: hidden;
	transition: border-color 120ms var(--as-ease);
}

.catalog ul.wc-block-product-template > li.wc-block-product:hover {
	border-color: var(--wp--preset--color--primary);
}

.catalog li.wc-block-product .wc-block-components-product-image {
	margin: 0;
	background: var(--wp--preset--color--surface);
}

.catalog li.wc-block-product .wc-block-components-product-image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 200ms var(--as-ease);
}

.catalog li.wc-block-product:hover .wc-block-components-product-image img {
	transform: scale(1.02);
}

.catalog li.wc-block-product .wp-block-post-title {
	margin: 12px 18px 0;
	font-size: var(--wp--preset--font-size--title);
	font-weight: 700;
	letter-spacing: -0.01em;
}

.catalog li.wc-block-product .wp-block-post-title a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.catalog li.wc-block-product .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent);
}

/* Motor code: the SKU block, shown as the card's eyebrow without "SKU:". */
.catalog li.wc-block-product .wp-block-woocommerce-product-sku {
	margin: 16px 18px 0;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}

.wp-block-woocommerce-product-sku .wp-block-post-terms__prefix {
	display: none;
}

/* Brand line, kept muted under the title. */
.catalog li.wc-block-product .wp-block-post-terms:not(.wp-block-woocommerce-product-sku) {
	margin: 2px 18px 0;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.catalog li.wc-block-product .wp-block-post-terms a {
	color: inherit;
	text-decoration: none;
}

/* Price pinned to the bottom of every card. */
.catalog li.wc-block-product .wp-block-woocommerce-product-price {
	margin: auto 18px 0;
	padding-top: 14px;
	border-top: var(--as-line);
}

.catalog li.wc-block-product .wc-block-components-product-price {
	font-size: var(--wp--preset--font-size--price);
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--accent);
}

.catalog li.wc-block-product .wc-block-components-product-price bdi {
	white-space: nowrap;
}

@media (max-width: 1000px) {
	.catalog ul.wc-block-product-template {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 640px) {
	.catalog ul.wc-block-product-template {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

/* === sample records === */

/* A catalog can hold demonstration products. They carry the "Örnek Kayıt" tag,
   which paints the stamp on their card; the notice block repeats it on the
   product page. Removing the tag removes both. */
.catalog li.wc-block-product.product_tag-ornek-kayit {
	position: relative;
}

.catalog li.wc-block-product.product_tag-ornek-kayit::after {
	content: "ÖRNEK";
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	padding: 4px 7px;
	border-radius: 4px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--background);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1;
}

.note-box--sample {
	background: #fbf3e6;
	border-left-color: var(--wp--preset--color--accent);
}

.note-box__label {
	margin: 0 0 4px;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}

/* === search results === */

.search-count {
	color: var(--wp--preset--color--muted);
}

/* === showcase mode ===
   Nothing is sold through the site: the add-to-cart form is replaced by the
   contact channels, and sample records are labelled on the title and price. */
.sample-chip {
	display: inline-block;
	margin: 12px 0 0;
	padding: 4px 9px;
	border: 1px solid var(--wp--preset--color--accent);
	border-radius: 999px;
	color: var(--wp--preset--color--accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-transform: uppercase;
}

.price-label {
	margin: 18px 0 0;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.price-label + .wp-block-woocommerce-product-price {
	margin-top: 2px;
}

/* Cards carry the same label above the price. */
.catalog li.wc-block-product.product_tag-ornek-kayit .wp-block-woocommerce-product-price::before {
	content: "Örnek fiyat";
	display: block;
	margin-bottom: 4px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.channel-cta {
	margin-top: 24px;
	padding-top: 18px;
	border-top: var(--as-line);
}

.channel-cta__label {
	margin: 0 0 10px;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.channel-cta__note {
	margin-top: 20px;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

/* On the navy band the section's link colour turned the white channel cards
   white-on-white; the cards carry their own ink. */
.band--navy .channel-link,
.band--navy .channel-link__label,
.band--navy .channel-link__value {
	color: var(--wp--preset--color--primary);
}

@media (max-width: 599px) {
	.site-head__top .site-head__brand {
		flex: 1 1 0;
		min-width: 0;
		gap: 8px;
	}
}
.site-head__quick-contact .channel-inline {
	justify-content: flex-end;
	gap: 4px 10px;
}

@media (max-width: 599px) {
	.site-head__top .site-head__quick-contact {
		flex-basis: 100%;
	}
}
/* === blue and white storefront === */
.site-head__nav {
	background: var(--wp--preset--color--deep);
	border-bottom: 2px solid var(--wp--preset--color--accent);
}

.site-nav .wp-block-navigation-item__content {
	transition: background-color 120ms var(--as-ease);
}

.site-head__nav .site-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content:is(:hover, :focus-visible) {
	background-color: var(--wp--preset--color--primary);
}

.band:has(> .hero) {
	background: radial-gradient(ellipse at 85% 12%, #1b4693 0, transparent 58%),
		linear-gradient(120deg, var(--wp--preset--color--deep), var(--wp--preset--color--primary));
	padding-block: 0;
}

.band > .hero {
	padding-block: clamp(3.25rem, 7vw, 6.25rem);
}

.hero .hero__title {
	color: #fff;
	font-size: clamp(2.125rem, 4.6vw, 4.25rem);
	letter-spacing: -0.046em;
	text-wrap: balance;
}

.hero .hero__lede,
.hero .hero__codes,
.hero .wp-block-search__label {
	color: #dbeafe;
}

.hero .chip {
	background: #17396f;
	border-color: #5277ad;
	color: #fff;
}


.hero .wp-block-search__button {
	background: var(--wp--preset--color--accent);
}

.hero .wp-block-search__button:hover {
	background: var(--wp--preset--color--primary);
}

.hero__figure img {
	border: 1px solid #7091c2;
	border-radius: 18px;
	box-shadow: 0 20px 44px #06183159;
}

.cat-grid,
.catalog .wp-block-post-template,
.catalog ul.wc-block-product-template {
	gap: clamp(1rem, 2.2vw, 1.75rem) !important;
}

.cat-card,
.catalog .wp-block-post-template > li,
.catalog ul.wc-block-product-template > li.wc-block-product {
	border-radius: 14px;
	box-shadow: 0 5px 18px #12346b0d;
	transition: border-color 160ms var(--as-ease), box-shadow 160ms var(--as-ease);
}

.cat-card:is(:hover, :focus-within),
.catalog .wp-block-post-template > li:is(:hover, :focus-within),
.catalog ul.wc-block-product-template > li.wc-block-product:is(:hover, :focus-within) {
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 12px 28px #12346b1a;
}

.trust-grid .trust-item {
	padding: 20px;
	border: var(--as-line);
	border-top: 3px solid var(--wp--preset--color--accent);
	border-radius: 10px;
	background-color: var(--wp--preset--color--background);
	box-sizing: border-box;
}

.band--navy {
	background: linear-gradient(110deg, var(--wp--preset--color--deep), #154486);
}

.channel-inline.social-links a {
	border-color: var(--wp--preset--color--accent);
	background-color: var(--wp--preset--color--accent);
	color: #fff;
	box-shadow: 0 4px 12px #081b3c30;
}

.channel-inline.social-links a:is(:hover, :focus-visible) {
	background-color: var(--wp--preset--color--deep);
	color: #fff;
}

@media (max-width: 599px) {
	.hero__search {
		max-width: calc(100% - 56px);
	}

	.hero__figure img {
		border-radius: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-nav .wp-block-navigation-item__content,
	.cat-card,
	.catalog .wp-block-post-template > li,
	.catalog ul.wc-block-product-template > li.wc-block-product {
		transition: none;
	}
}
/* === storefront layout === */
.band:has(> .hero) {
	position: relative;
	isolation: isolate;
	background: linear-gradient(125deg, #081b3c 15%, #12346b 73%, #17478c);
}

.band > .hero {
	padding-block: clamp(2.5rem, 6vw, 5.75rem);
}

.hero .hero__text {
	gap: 18px;
}

.hero .hero__title {
	max-width: 12ch;
	font-size: clamp(2.55rem, 5.4vw, 5.125rem);
	line-height: 0.99;
	letter-spacing: -0.055em;
	text-wrap: initial;
}

.hero .hero__lede {
	max-width: 38ch;
	line-height: 1.5;
}

.hero .hero__search {
	width: 100%;
	max-width: 440px;
}

.hero .wp-block-search__inside-wrapper {
	width: 100%;
	border: 2px solid #fff;
	border-radius: 12px;
}

.hero .wp-block-search__input {
	min-width: 0;
	padding-inline: 12px;
}

.hero .wp-block-search__button {
	border-radius: 8px;
}

.hero__figure img {
	border: 0;
	box-shadow: none;
}

@media (min-width: 920px) {
	.band > .hero {
		min-height: 490px;
		box-sizing: border-box;
	}

	.hero > .wp-block-column:first-child {
		flex-basis: 47% !important;
	}

	.hero > .wp-block-column:last-child {
		position: absolute;
		z-index: -1;
		inset: 0 0 0 49%;
		overflow: hidden;
		clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
	}

	.hero__figure,
	.hero__figure img {
		height: 100%;
	}

	.hero__figure img {
		object-position: center 54%;
		border-radius: 0;
	}
}

@media (max-width: 919px) {
	.band > .hero {
		gap: 28px;
	}

	.hero__figure img {
		aspect-ratio: 16 / 10;
		border-radius: 12px;
	}
}

.band:has(> .cat-grid) {
	padding-block: clamp(2.75rem, 5vw, 4.5rem);
}

.cat-card {
	display: grid;
	grid-template-columns: minmax(76px, 35%) minmax(0, 1fr);
	align-items: stretch;
	background: var(--wp--preset--color--surface);
}

.cat-card > .cat-card__media {
	height: 108px;
	overflow: hidden;
}

.cat-card__media a,
.cat-card__media img {
	height: 100%;
}

.cat-card__media img {
	aspect-ratio: auto;
	object-fit: cover;
}

.cat-card__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 14px;
}

.cat-card__name a::after {
	content: " →";
	color: var(--wp--preset--color--accent);
}

.band:has(> .catalog) {
	background: #f5f8fe;
}

.catalog li.wc-block-product .wc-block-components-product-image img {
	aspect-ratio: 5 / 4;
}

.catalog li.wc-block-product .wp-block-woocommerce-product-price {
	padding-top: 12px;
	padding-bottom: 14px;
}

.site-head__top {
	padding-block: 12px;
}

@media (max-width: 599px) {
	.hero .hero__search {
		max-width: calc(100% - 48px);
	}

	.hero .hero__title {
		max-width: 12ch;
	}

	.cat-card {
		grid-template-columns: minmax(74px, 28%) minmax(0, 1fr);
	}
}
.site-head .wp-block-site-logo .custom-logo-link {
	--logo-w: 144px;
	border-radius: 9px;
	background-color: var(--wp--preset--color--deep);
	box-shadow: 0 3px 10px #081b3c25;
}

@media (max-width: 599px) {
	.site-head .wp-block-site-logo .custom-logo-link {
		--logo-w: 126px;
	}
}
.cat-card.cat-card--text {
	display: block;
}

.cat-card--text .cat-card__name a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 56px;
	padding-inline: 18px;
}
/* === contact page === */
.page-id-41 main .band {
	padding-block: clamp(24px, 4vw, 40px);
}

.page-id-41 .wp-block-jetpack-contact-form.is-layout-flex {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.page-id-41 .wp-block-jetpack-contact-form .grunion-field-wrap {
	margin-block: 0;
	min-width: 0;
}

.page-id-41 .wp-block-jetpack-contact-form .grunion-field-textarea-wrap,
.page-id-41 .wp-block-jetpack-contact-form .wp-block-button,
.page-id-41 .wp-block-jetpack-contact-form form {
	grid-column: 1 / -1;
}

.page-id-41 .wp-block-jetpack-contact-form .grunion-field:not(textarea) {
	min-height: 44px;
	padding-block: 9px;
}

.page-id-41 .wp-block-jetpack-contact-form textarea.grunion-field {
	height: 120px;
	min-height: 120px;
}

.page-id-41 .wp-block-jetpack-contact-form button[type="submit"] {
	min-height: 44px;
	padding-block: 10px;
}

@media (max-width: 700px) {
	.page-id-41 .wp-block-jetpack-contact-form.is-layout-flex {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}
}
@media (min-width: 600px) {
	.site-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container {
		gap: 4px;
		padding-block: 4px;
	}

	.site-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		padding: 11px 16px;
		border-radius: 7px;
	}
}
@media (max-width: 599px) {
	.site-head__top {
		gap: 8px 12px;
		padding-inline: 0;
	}

	.site-head__quick-contact .channel-inline {
		justify-content: flex-start;
	}

	.site-head__quick-contact .channel-inline a {
		padding-inline: 0;
	}

	.site-head__nav .site-nav .wp-block-navigation__responsive-container-open {
		width: 44px;
		justify-content: center;
		align-items: center;
	}

	.site-head__nav .site-nav .wp-block-navigation__responsive-container-close {
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		border-radius: 7px;
		background: var(--wp--preset--color--surface);
		color: var(--wp--preset--color--primary);
	}

	.site-nav .is-menu-open .wp-block-navigation__responsive-container-content {
		align-items: stretch;
		padding-top: 52px;
	}

	.site-nav .is-menu-open .wp-block-navigation__container {
		width: 100%;
		gap: 4px;
		align-items: stretch;
	}

	.site-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		display: flex;
		align-items: center;
		width: 100%;
		min-height: 44px;
		box-sizing: border-box;
		padding: 10px 14px;
		border-radius: 7px;
	}

	.site-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:is(:hover, :focus-visible, [aria-current="page"]) {
		background: var(--wp--preset--color--surface);
	}

	.site-head__contact {
		inset-inline-end: max(8px, env(safe-area-inset-right));
	}

	.channel-inline.social-links a {
		width: 48px;
		height: 48px;
	}
}