/**
 * Tam Renk component library (Faz 2).
 *
 * Every component defines default / hover / focus-visible / active /
 * disabled states and a mobile behaviour. Class prefix: tr-. BEM-style
 * modifiers (--) and elements (__). Markup mirrors what WordPress and
 * WooCommerce emit (menu-item, current-menu-item, page-numbers,
 * custom-logo-link) so the same CSS works in the static preview and the
 * PHP theme. Configurator pieces (option group, price summary, sticky CTA)
 * live in components/configurator.css.
 *
 * Index: button · icon-button · link · badge · chip · field (input, select,
 * textarea, checkbox, radio) · search · breadcrumb · tabs · accordion ·
 * dialog (modal) · drawer · pagination · notice · header · navigation ·
 * mobile navigation · category card · product card · service card · footer
 */

/* ════════════════════════════════════════════════════════════════════
   BUTTON
   ════════════════════════════════════════════════════════════════════ */
.tr-btn {
	--_bg: var(--tr-color-antrasit);
	--_fg: var(--tr-color-text-on-dark);
	--_bd: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--tr-space-2);
	min-height: var(--tr-control-height);
	padding: 0 var(--tr-space-5);
	border: 1px solid var(--_bd);
	border-radius: var(--tr-radius-sm);
	background: var(--_bg);
	color: var(--_fg);
	font-size: var(--tr-text-button);
	font-weight: var(--tr-weight-semibold);
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color var(--tr-transition-fast), border-color var(--tr-transition-fast), color var(--tr-transition-fast);
}

.tr-btn:hover { --_bg: var(--tr-color-ink); }
.tr-btn:active { transform: translateY(1px); }

.tr-btn--primary { --_bg: var(--tr-color-magenta); --_fg: #fff; }
.tr-btn--primary:hover { --_bg: var(--tr-color-magenta-hover); }
.tr-btn--primary:active { --_bg: var(--tr-color-magenta-active); }

.tr-btn--outline { --_bg: transparent; --_fg: var(--tr-color-ink); --_bd: var(--tr-color-ink); }
.tr-btn--outline:hover { --_bg: var(--tr-color-ink); --_fg: #fff; }

.tr-btn--ghost { --_bg: transparent; --_fg: var(--tr-color-ink); padding-inline: var(--tr-space-3); }
.tr-btn--ghost:hover { --_bg: var(--tr-color-surface-soft); }

.tr-btn--on-dark { --_bg: transparent; --_fg: #fff; --_bd: rgb(255 255 255 / 0.45); }
.tr-btn--on-dark:hover { --_bg: rgb(255 255 255 / 0.08); --_bd: #fff; }

.tr-btn--small { min-height: var(--tr-tap-target); padding-inline: var(--tr-space-4); font-size: var(--tr-text-small); }
.tr-btn--block { width: 100%; }

.tr-btn:disabled,
.tr-btn[aria-disabled="true"] {
	--_bg: var(--tr-color-surface-sunken);
	--_fg: var(--tr-color-text-muted);
	--_bd: transparent;
	cursor: not-allowed;
	transform: none;
}

.tr-btn[aria-busy="true"] {
	cursor: progress;
	opacity: 0.8;
}

/* ════════════════════════════════════════════════════════════════════
   ICON + ICON BUTTON
   ════════════════════════════════════════════════════════════════════ */
.tr-icon {
	width: 22px;
	height: 22px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tr-icon--sm { width: 18px; height: 18px; }

.tr-icon-btn {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: var(--tr-tap-target);
	height: var(--tr-tap-target);
	padding: 0;
	border: 1px solid transparent;
	border-radius: var(--tr-radius-sm);
	background: transparent;
	color: var(--tr-color-ink);
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--tr-transition-fast), border-color var(--tr-transition-fast);
}

.tr-icon-btn:hover { background: var(--tr-color-surface-soft); }
.tr-icon-btn:active { background: var(--tr-color-surface-sunken); }
.tr-icon-btn--bordered { border-color: var(--tr-color-border); }
.tr-icon-btn:disabled { color: var(--tr-color-border-strong); cursor: not-allowed; background: transparent; }

/* ════════════════════════════════════════════════════════════════════
   LINK
   ════════════════════════════════════════════════════════════════════ */
.tr-link {
	font-weight: var(--tr-weight-semibold);
	text-decoration: underline;
	text-decoration-color: var(--tr-color-magenta);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.25em;
	transition: color var(--tr-transition-fast);
}

.tr-link:hover { color: var(--tr-color-magenta-text); }

/* WhatsApp link (inc/whatsapp.php; only rendered when the quote line is
   set). A 44px target with the line icon in magenta text colour. Variants:
   --inline (product form head, contact list, footer), --card (/teklif/
   aside: label + number in a bordered row). New tab: the accessible name
   ends with "(yeni sekmede açılır)" (screen-reader text). */
.tr-wa-link {
	display: inline-flex;
	align-items: center;
	gap: var(--tr-space-2);
	min-height: var(--tr-tap-target);
	color: var(--tr-color-text);
	font-weight: var(--tr-weight-semibold);
	text-decoration: underline;
	text-decoration-color: var(--tr-color-magenta);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.25em;
	transition: color var(--tr-transition-fast), border-color var(--tr-transition-fast);
}

.tr-wa-link:hover { color: var(--tr-color-magenta-text); }
.tr-wa-link__icon { color: var(--tr-color-magenta-text); }
.tr-wa-link__label { color: var(--tr-color-text-muted); font-size: var(--tr-text-caption); font-weight: var(--tr-weight-medium); }

.tr-wa-link--card {
	display: flex;
	gap: var(--tr-space-3);
	padding: var(--tr-space-3) var(--tr-space-4);
	border: 1px solid var(--tr-color-border-strong);
	border-radius: var(--tr-radius-sm);
	background: var(--tr-color-paper);
	text-decoration: none;
}

.tr-wa-link--card:hover { border-color: var(--tr-color-magenta); }
.tr-wa-link--card .tr-wa-link__icon { width: 28px; height: 28px; }

.tr-wa-link--card .tr-wa-link__text {
	display: grid;
	gap: 2px;
	font-size: var(--tr-text-h4);
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
}

/* ════════════════════════════════════════════════════════════════════
   BADGE
   ════════════════════════════════════════════════════════════════════ */
.tr-badge {
	display: inline-flex;
	align-items: center;
	gap: var(--tr-space-1);
	min-height: 24px;
	padding: 0 var(--tr-space-2);
	border: 1px solid var(--tr-color-border);
	border-radius: var(--tr-radius-sm);
	background: var(--tr-color-paper);
	color: var(--tr-color-text);
	font-size: var(--tr-text-caption);
	font-weight: var(--tr-weight-semibold);
	line-height: 1;
	white-space: nowrap;
}

.tr-badge--dark { background: var(--tr-color-ink); border-color: var(--tr-color-ink); color: #fff; }
.tr-badge--accent { background: var(--tr-color-magenta); border-color: var(--tr-color-magenta); color: #fff; }
.tr-badge--success { background: var(--tr-color-success-tint); border-color: transparent; color: var(--tr-color-success); }

.tr-count {
	display: inline-grid;
	place-items: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: var(--tr-radius-pill);
	background: var(--tr-color-magenta);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: var(--tr-weight-bold);
	line-height: 1;
}

/* ════════════════════════════════════════════════════════════════════
   CHIP (radio/checkbox styled as selectable chips)
   Usage: <label class="tr-chip"><input type="radio" …><span>Tek yön</span></label>
   Selected = ink fill; magenta stays reserved for primary actions.
   ════════════════════════════════════════════════════════════════════ */
.tr-chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tr-space-2);
}

.tr-chip {
	position: relative;
	display: inline-flex;
}

.tr-chip input {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.tr-chip > span {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	min-height: var(--tr-tap-target);
	min-width: var(--tr-tap-target);
	padding: var(--tr-space-2) var(--tr-space-4);
	border: 1px solid var(--tr-color-border-strong);
	border-radius: var(--tr-radius-sm);
	background: var(--tr-color-paper);
	font-size: var(--tr-text-small);
	font-weight: var(--tr-weight-medium);
	line-height: 1.25;
	transition: background-color var(--tr-transition-fast), border-color var(--tr-transition-fast), color var(--tr-transition-fast);
}

.tr-chip small {
	font-size: var(--tr-text-caption);
	font-weight: var(--tr-weight-regular);
	color: var(--tr-color-text-muted);
}

.tr-chip:hover > span { border-color: var(--tr-color-ink); }

.tr-chip input:checked + span {
	background: var(--tr-color-ink);
	border-color: var(--tr-color-ink);
	color: #fff;
}

.tr-chip input:checked + span small { color: var(--tr-color-text-muted-on-dark); }

.tr-chip input:focus-visible + span {
	outline: 2px solid var(--tr-color-focus);
	outline-offset: 2px;
}

.tr-chip input:disabled { cursor: not-allowed; }

.tr-chip input:disabled + span {
	border-style: dashed;
	border-color: var(--tr-color-border);
	background: var(--tr-color-surface-soft);
	color: var(--tr-color-text-muted);
	text-decoration: line-through;
	text-decoration-thickness: 1px;
}

/* Link chips (quick picks, filters as links) */
a.tr-chip-link {
	display: inline-flex;
	align-items: center;
	min-height: var(--tr-tap-target);
	padding: 0 var(--tr-space-4);
	border: 1px solid var(--tr-color-border);
	border-radius: var(--tr-radius-sm);
	background: var(--tr-color-paper);
	font-size: var(--tr-text-small);
	text-decoration: none;
	transition: border-color var(--tr-transition-fast);
}

a.tr-chip-link:hover { border-color: var(--tr-color-ink); }

/* ════════════════════════════════════════════════════════════════════
   FIELD: label, input, select, textarea, help, error
   ════════════════════════════════════════════════════════════════════ */
.tr-field {
	display: grid;
	gap: var(--tr-space-2);
}

.tr-field__label {
	font-size: var(--tr-text-small);
	font-weight: var(--tr-weight-semibold);
}

.tr-req {
	color: var(--tr-color-magenta-text);
	margin-left: 2px;
}

.tr-field__help {
	font-size: var(--tr-text-caption);
	color: var(--tr-color-text-muted);
}

.tr-field__error {
	display: flex;
	gap: var(--tr-space-1);
	font-size: var(--tr-text-caption);
	font-weight: var(--tr-weight-semibold);
	color: var(--tr-color-danger);
}

.tr-input,
.tr-select,
.tr-textarea {
	width: 100%;
	min-height: var(--tr-control-height);
	padding: 0 var(--tr-space-4);
	border: 1px solid var(--tr-color-border-strong);
	border-radius: var(--tr-radius-sm);
	background: var(--tr-color-paper);
	font-size: 1rem; /* ≥ 16px prevents iOS zoom */
	transition: border-color var(--tr-transition-fast), box-shadow var(--tr-transition-fast);
}

.tr-textarea {
	min-height: 140px;
	padding-block: var(--tr-space-3);
	resize: vertical;
}

.tr-select {
	appearance: none;
	padding-right: var(--tr-space-7);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1c1f' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 18px;
	cursor: pointer;
}

.tr-input:hover,
.tr-select:hover,
.tr-textarea:hover { border-color: var(--tr-color-ink); }

.tr-input:focus-visible,
.tr-select:focus-visible,
.tr-textarea:focus-visible {
	outline: none;
	border-color: var(--tr-color-ink);
	box-shadow: 0 0 0 2px var(--tr-color-paper), 0 0 0 4px var(--tr-color-focus);
}

.tr-input:disabled,
.tr-select:disabled,
.tr-textarea:disabled {
	background: var(--tr-color-surface-soft);
	border-color: var(--tr-color-border);
	color: var(--tr-color-text-muted);
	cursor: not-allowed;
}

.tr-input[aria-invalid="true"],
.tr-textarea[aria-invalid="true"],
.tr-select[aria-invalid="true"] { border-color: var(--tr-color-danger); }

/* Checkbox & radio (native, restyled with accent-color + size) */
.tr-check {
	display: flex;
	align-items: flex-start;
	gap: var(--tr-space-3);
	min-height: var(--tr-tap-target);
	padding-block: 10px;
	font-size: var(--tr-text-small);
	cursor: pointer;
}

.tr-check input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--tr-color-ink);
	cursor: pointer;
}

.tr-check input:disabled,
.tr-check input:disabled ~ * { cursor: not-allowed; color: var(--tr-color-text-muted); }

.tr-check input[aria-invalid="true"] { outline: 2px solid var(--tr-color-danger); outline-offset: 2px; }

.tr-check__count {
	margin-left: auto;
	color: var(--tr-color-text-muted);
	font-size: var(--tr-text-caption);
}

.tr-fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.tr-fieldset > legend {
	padding: 0;
	margin-bottom: var(--tr-space-2);
	font-weight: var(--tr-weight-semibold);
}

/* ════════════════════════════════════════════════════════════════════
   SEARCH (mirrors get_search_form() markup: form.search-form)
   ════════════════════════════════════════════════════════════════════ */
.tr-search {
	display: flex;
	align-items: center;
	gap: var(--tr-space-2);
	width: 100%;
	height: var(--tr-control-height);
	padding: 0 var(--tr-space-1) 0 var(--tr-space-4);
	border: 1px solid var(--tr-color-border-strong);
	border-radius: var(--tr-radius-sm);
	background: var(--tr-color-paper);
	color: var(--tr-color-text-muted);
	transition: border-color var(--tr-transition-fast), background-color var(--tr-transition-fast);
}

.tr-search:hover { border-color: var(--tr-color-ink); }

.tr-search:focus-within {
	border-color: var(--tr-color-ink);
	background: var(--tr-color-paper);
	box-shadow: 0 0 0 2px var(--tr-color-paper), 0 0 0 4px var(--tr-color-focus);
}

.tr-search__input {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: 0;
	background: transparent;
	color: var(--tr-color-text);
	font-size: 1rem;
	outline: none;
}

.tr-search__input::placeholder { color: var(--tr-color-text-muted); }

.tr-search__submit {
	position: relative;
	min-height: 38px;
	padding: 0 var(--tr-space-4);
	border: 0;
	border-radius: var(--tr-radius-sm);
	background: var(--tr-color-antrasit);
	color: #fff;
	font-size: var(--tr-text-small);
	font-weight: var(--tr-weight-semibold);
}

.tr-search__submit:hover { background: var(--tr-color-ink); }

/* The button stays 38px inside the 48px bar, but its hit area is at least
   the 44px tap target (an invisible layer centred on the button; the
   bar's own padding and border give it the room). */
.tr-search__submit::before {
	content: "";
	position: absolute;
	top: 50%;
	right: 0;
	left: 0;
	height: max(100%, var(--tr-tap-target));
	transform: translateY(-50%);
}

.tr-search--large { height: 56px; }

/* ════════════════════════════════════════════════════════════════════
   BREADCRUMB (mirrors woocommerce_breadcrumb with nav wrapper)
   ════════════════════════════════════════════════════════════════════ */
.tr-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tr-space-1) var(--tr-space-2);
	padding: 0;
	list-style: none;
	font-size: var(--tr-text-small);
	color: var(--tr-color-text-muted);
}

.tr-breadcrumb li:not(:last-child)::after {
	content: "/";
	margin-left: var(--tr-space-2);
	color: var(--tr-color-border-strong);
}

.tr-breadcrumb a {
	text-decoration: none;
}

.tr-breadcrumb a:hover {
	color: var(--tr-color-ink);
	text-decoration: underline;
}

.tr-breadcrumb [aria-current="page"] {
	color: var(--tr-color-ink);
	font-weight: var(--tr-weight-medium);
}

/* ════════════════════════════════════════════════════════════════════
   TABS (ARIA tabs pattern; behaviour in theme.js)
   ════════════════════════════════════════════════════════════════════ */
.tr-tabs__list {
	display: flex;
	gap: var(--tr-space-5);
	border-bottom: 1px solid var(--tr-color-border);
	overflow-x: auto;
	scrollbar-width: none;
}

.tr-tabs__tab {
	flex: none;
	min-height: var(--tr-tap-target);
	padding: 0;
	border: 0;
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
	background: none;
	color: var(--tr-color-text-muted);
	font-size: 1rem;
	font-weight: var(--tr-weight-bold);
	transition: color var(--tr-transition-fast), border-color var(--tr-transition-fast);
}

.tr-tabs__tab:hover { color: var(--tr-color-ink); }

.tr-tabs__tab[aria-selected="true"] {
	color: var(--tr-color-ink);
	border-bottom-color: var(--tr-color-ink);
}

.tr-tabs__tab:disabled { color: var(--tr-color-border-strong); cursor: not-allowed; }

.tr-tabs__panel {
	padding-top: var(--tr-space-5);
}

.tr-tabs__panel[hidden] { display: none; }

/* ════════════════════════════════════════════════════════════════════
   ACCORDION (native <details>)
   ════════════════════════════════════════════════════════════════════ */
.tr-accordion {
	border-top: 1px solid var(--tr-color-border);
}

.tr-accordion__item {
	border-bottom: 1px solid var(--tr-color-border);
}

.tr-accordion__item > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--tr-space-4);
	min-height: 56px;
	padding: var(--tr-space-3) 0;
	font-weight: var(--tr-weight-semibold);
	list-style: none;
	cursor: pointer;
}

.tr-accordion__item > summary::-webkit-details-marker { display: none; }

.tr-accordion__item > summary::after {
	content: "";
	flex: none;
	width: 12px;
	height: 12px;
	border-right: 1.6px solid currentColor;
	border-bottom: 1.6px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
	transition: transform var(--tr-duration-base) var(--tr-ease);
}

.tr-accordion__item[open] > summary::after { transform: translateY(3px) rotate(-135deg); }
.tr-accordion__item > summary:hover { color: var(--tr-color-magenta-text); }

.tr-accordion__body {
	padding-bottom: var(--tr-space-5);
	color: var(--tr-color-text-muted);
	max-width: var(--tr-measure);
}

/* ════════════════════════════════════════════════════════════════════
   DIALOG (modal) + DRAWER — native <dialog> gives focus trap, Esc,
   inert background and focus return. Behaviour in theme.js.
   ════════════════════════════════════════════════════════════════════ */
.tr-dialog {
	width: min(560px, calc(100vw - 2 * var(--tr-gutter)));
	max-height: calc(100dvh - 2 * var(--tr-gutter));
	padding: 0;
	border: 0;
	border-radius: var(--tr-radius-md);
	background: var(--tr-color-paper);
	color: var(--tr-color-text);
	box-shadow: var(--tr-shadow-overlay);
}

.tr-dialog::backdrop {
	background: rgb(27 28 31 / 0.55);
}

.tr-dialog[open] {
	animation: tr-fade-in var(--tr-duration-base) var(--tr-ease);
}

.tr-dialog__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--tr-space-4);
	padding: var(--tr-space-4) var(--tr-space-4) var(--tr-space-4) var(--tr-space-5);
	border-bottom: 1px solid var(--tr-color-border);
}

.tr-dialog__title {
	font-size: var(--tr-text-h4);
	font-stretch: var(--tr-font-width-normal);
}

.tr-dialog__body {
	padding: var(--tr-space-5);
	overflow-y: auto;
}

.tr-dialog__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: var(--tr-space-3);
	padding: var(--tr-space-4) var(--tr-space-5);
	border-top: 1px solid var(--tr-color-border);
}

.tr-drawer {
	width: min(400px, 88vw);
	height: 100dvh;
	max-height: none;
	margin: 0;
	margin-right: auto;
	border-radius: 0;
	display: none;
	flex-direction: column;
}

.tr-drawer[open] {
	display: flex;
	animation: tr-slide-in-left var(--tr-duration-base) var(--tr-ease);
}

.tr-drawer--right {
	margin-left: auto;
	margin-right: 0;
}

.tr-drawer--right[open] { animation-name: tr-slide-in-right; }

.tr-drawer .tr-dialog__body { flex: 1; }

@keyframes tr-fade-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes tr-slide-in-left { from { transform: translateX(-100%); } }
@keyframes tr-slide-in-right { from { transform: translateX(100%); } }

/* ════════════════════════════════════════════════════════════════════
   PAGINATION (mirrors the_posts_pagination / woocommerce_pagination)
   ════════════════════════════════════════════════════════════════════ */
.tr-pagination .nav-links,
.woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--tr-space-2);
	padding: 0;
	list-style: none;
}

.tr-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: var(--tr-tap-target);
	height: var(--tr-tap-target);
	padding: 0 var(--tr-space-3);
	border: 1px solid var(--tr-color-border);
	border-radius: var(--tr-radius-sm);
	font-size: var(--tr-text-small);
	font-weight: var(--tr-weight-semibold);
	text-decoration: none;
	transition: border-color var(--tr-transition-fast);
}

.tr-pagination a.page-numbers:hover { border-color: var(--tr-color-ink); }

.tr-pagination .page-numbers.current {
	background: var(--tr-color-ink);
	border-color: var(--tr-color-ink);
	color: #fff;
}

.tr-pagination .page-numbers.dots { border-color: transparent; }

/* ════════════════════════════════════════════════════════════════════
   NOTICE (info / success / warning / error)
   ════════════════════════════════════════════════════════════════════ */
.tr-notice {
	display: flex;
	gap: var(--tr-space-3);
	padding: var(--tr-space-4);
	border-left: 3px solid var(--tr-color-ink);
	background: var(--tr-color-surface-soft);
	font-size: var(--tr-text-small);
}

.tr-notice--info { border-color: var(--tr-color-magenta); background: var(--tr-color-magenta-tint); }
.tr-notice--success { border-color: var(--tr-color-success); background: var(--tr-color-success-tint); }
.tr-notice--warning { border-color: var(--tr-color-warning); background: var(--tr-color-warning-tint); }
.tr-notice--error { border-color: var(--tr-color-danger); background: var(--tr-color-danger-tint); }

/* ════════════════════════════════════════════════════════════════════
   HEADER
   Mobile: menu · logo  /  search row
   Desktop: logo · search · quote  /  primary nav row
   No accounts (ADR-003) and no cart (ADR-004: catalog + quote form).
   ════════════════════════════════════════════════════════════════════ */
.tr-site-header {
	position: sticky;
	top: 0;
	z-index: var(--tr-z-header);
	background: var(--tr-color-paper);
	border-bottom: 1px solid var(--tr-color-border);
}

.tr-site-header__bar {
	display: flex;
	align-items: center;
	gap: var(--tr-space-2);
	min-height: var(--tr-header-height);
}

.tr-site-header__brand {
	display: flex;
	flex: none;
	align-items: center;
	min-height: var(--tr-header-height); /* keeps logo clearance when the bar wraps */
	margin-right: auto;
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
	min-height: var(--tr-tap-target);
	text-decoration: none;
}

/* Official stacked logo, shown whole at every width (never mark-only).
   width/height attributes (280×180) reserve the box; height comes from
   --tr-logo-h so the wordmark caps stay ≥ 11px on phones. */
.custom-logo {
	display: block;
	width: auto;
	height: var(--tr-logo-h);
}

.tr-site-header__search {
	order: 10;
	flex: 1 1 100%;
	padding-bottom: var(--tr-space-3);
}

.tr-site-header__actions {
	display: flex;
	align-items: center;
	gap: var(--tr-space-1);
}

.tr-header-link {
	display: none;
}

.tr-site-header__nav {
	display: none;
}

@media (min-width: 1024px) {
	.tr-site-header__bar {
		flex-wrap: nowrap;
		gap: var(--tr-space-6);
	}

	.tr-site-header__brand { margin-right: 0; }

	.tr-site-header__search {
		order: 0;
		flex: 1 1 auto;
		max-width: 640px;
		padding-bottom: 0;
	}

	.tr-site-header__actions { margin-left: auto; gap: var(--tr-space-3); }

	.tr-header-link {
		display: inline-flex;
		align-items: center;
		gap: var(--tr-space-2);
		min-height: var(--tr-tap-target);
		padding: 0 var(--tr-space-2);
		font-size: var(--tr-text-nav);
		font-weight: var(--tr-weight-medium);
		text-decoration: none;
		white-space: nowrap;
	}

	.tr-header-link:hover { color: var(--tr-color-magenta-text); }

	.tr-header-link--quote:hover {
		background: var(--tr-color-magenta-tint);
	}

	.tr-header-link--quote {
		padding: 0 var(--tr-space-4);
		border: 2px solid currentColor;
		border-radius: var(--tr-radius-sm);
		color: var(--tr-color-magenta-text);
		font-weight: var(--tr-weight-bold);
	}

	.tr-site-header__nav { display: block; }
	.tr-site-header__menu-toggle { display: none; }
}

@media (max-width: 1023px) {
	.tr-site-header__bar { flex-wrap: wrap; }

	/* Phones and tablets: the quote action stays one tap away on every
	   page, as a compact magenta button beside the theme toggle. */
	.tr-header-link--quote {
		display: inline-flex;
		align-items: center;
		min-height: var(--tr-tap-target);
		padding: 0 var(--tr-space-3);
		border-radius: var(--tr-radius-sm);
		background: var(--tr-color-magenta);
		color: var(--tr-fixed-paper, var(--tr-color-paper));
		font-size: var(--tr-text-small);
		font-weight: var(--tr-weight-bold);
		line-height: 1;
		text-decoration: none;
		white-space: nowrap;
	}

	.tr-header-link--quote:hover { background: var(--tr-color-magenta-hover); }
	.tr-header-link--quote:active { background: var(--tr-color-magenta-active); }
}

/* ════════════════════════════════════════════════════════════════════
   PRIMARY NAVIGATION (wp_nav_menu markup: ul.menu > li.menu-item)
   ════════════════════════════════════════════════════════════════════ */
.tr-primary-nav .menu {
	display: flex;
	gap: var(--tr-space-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tr-primary-nav .menu-item > a {
	display: flex;
	align-items: center;
	min-height: 48px;
	border-bottom: 2px solid transparent;
	font-size: var(--tr-text-nav);
	font-weight: var(--tr-weight-medium);
	text-decoration: none;
	white-space: nowrap;
	transition: border-color var(--tr-transition-fast), color var(--tr-transition-fast);
}

.tr-primary-nav .menu-item > a:hover { border-bottom-color: var(--tr-color-magenta); }

.tr-primary-nav .current-menu-item > a,
.tr-primary-nav .current-menu-ancestor > a,
.tr-primary-nav a[aria-current="page"] {
	border-bottom-width: 3px;
	border-bottom-color: var(--tr-color-ink);
	font-weight: var(--tr-weight-semibold);
}

.tr-primary-nav .menu-item--all > a { font-weight: var(--tr-weight-bold); }

/* No-JS fallback: without the drawer, show the nav as a vertical list. */
.no-js .tr-site-header__nav { display: block; flex-basis: 100%; }
.no-js .tr-site-header__menu-toggle { display: none; }

@media (max-width: 1023px) {
	.no-js .tr-primary-nav .menu { flex-direction: column; gap: 0; }
}

/* ════════════════════════════════════════════════════════════════════
   MOBILE NAVIGATION (drawer content)
   ════════════════════════════════════════════════════════════════════ */
.tr-mobile-nav .menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tr-mobile-nav .menu-item > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 52px;
	border-bottom: 1px solid var(--tr-color-border);
	font-size: 1.0625rem;
	font-weight: var(--tr-weight-medium);
	text-decoration: none;
}

.tr-mobile-nav .menu-item > a:hover { color: var(--tr-color-magenta-text); }

.tr-mobile-nav .current-menu-item > a,
.tr-mobile-nav a[aria-current="page"] {
	font-weight: var(--tr-weight-bold);
	box-shadow: inset 3px 0 0 var(--tr-color-magenta);
	padding-left: var(--tr-space-3);
}

/* Sticky so "Sipariş takibi" (the only account-free order lookup) is
   reachable without scrolling past the whole menu. Negative margins pull the
   bar flush to the drawer edges over the body padding. */
.tr-mobile-nav__secondary {
	position: sticky;
	bottom: calc(-1 * var(--tr-space-5));
	display: grid;
	gap: var(--tr-space-3);
	margin: var(--tr-space-6) calc(-1 * var(--tr-space-5)) calc(-1 * var(--tr-space-5));
	padding: var(--tr-space-4) var(--tr-space-5) var(--tr-space-5);
	border-top: 1px solid var(--tr-color-border);
	background: var(--tr-color-paper);
}

/* ════════════════════════════════════════════════════════════════════
   CATEGORY CARD
   ════════════════════════════════════════════════════════════════════ */
/* Swatch book: each card carries one process plate (C, M, Y, K). The plate
   is identification, never text colour. */
.tr-cat-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--tr-space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tr-cat-grid > li:nth-child(4n+1) { --_plate: var(--tr-color-cyan); --_on: var(--tr-color-ink); }
.tr-cat-grid > li:nth-child(4n+2) { --_plate: var(--tr-color-magenta); --_on: #fff; }
.tr-cat-grid > li:nth-child(4n+3) { --_plate: var(--tr-color-yellow); --_on: var(--tr-color-ink); }
.tr-cat-grid > li:nth-child(4n) { --_plate: var(--tr-color-ink); --_on: #fff; }

/* Six categories: 2 × 3 on phones and tablets, 3 × 2 from 900 px. */
@media (min-width: 900px) {
	.tr-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.tr-cat-card {
	display: flex;
	flex-direction: column;
	gap: var(--tr-space-2);
	height: 100%;
	padding: clamp(var(--tr-space-5), 2.6vw, var(--tr-space-6)) clamp(var(--tr-space-4), 2.4vw, var(--tr-space-5)) clamp(var(--tr-space-4), 2.4vw, var(--tr-space-5));
	border: 1px solid var(--tr-color-border);
	border-radius: var(--tr-radius-none); /* swatch chip = cut paper */
	background: var(--tr-color-paper);
	box-shadow: inset 0 6px 0 var(--_plate, var(--tr-color-ink));
	text-decoration: none;
	transition: box-shadow var(--tr-transition-fast), border-color var(--tr-transition-fast);
}

.tr-cat-card:hover {
	border-color: var(--tr-color-ink);
	box-shadow: inset 0 10px 0 var(--_plate, var(--tr-color-ink));
}

.tr-cat-card__icon {
	width: 56px;
	height: 56px;
	margin: 0 0 var(--tr-space-3) -8px;
	padding: 8px;
	border-radius: var(--tr-radius-sm);
	background: transparent;
	fill: none;
	stroke: var(--tr-color-ink);
	stroke-width: 1.5;
	stroke-linejoin: round;
	stroke-linecap: round;
	transition: background-color var(--tr-transition-fast), stroke var(--tr-transition-fast);
}

.tr-cat-card__icon .tr-fill { fill: var(--tr-color-paper); }
.tr-cat-card__icon .tr-accent { stroke: var(--tr-color-magenta); }

.tr-cat-card:hover .tr-cat-card__icon { background: var(--_plate, var(--tr-color-ink)); stroke: var(--_on, #fff); stroke-width: 2; }
.tr-cat-card:hover .tr-cat-card__icon .tr-fill { fill: transparent; }
.tr-cat-card:hover .tr-cat-card__icon .tr-accent { stroke: var(--_on, #fff); }

.tr-cat-card__name {
	font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.375rem);
	font-weight: var(--tr-weight-heavy);
	font-stretch: var(--tr-font-width-semi);
	line-height: 1.15;
}

.tr-cat-card__desc {
	font-size: var(--tr-text-small);
	color: var(--tr-color-text-muted);
	line-height: 1.45;
}

.tr-cat-card__tag {
	margin-top: auto;
	padding-top: var(--tr-space-2);
	font-size: var(--tr-text-caption);
	font-weight: var(--tr-weight-medium);
	font-stretch: var(--tr-font-width-wide);
	color: var(--tr-color-text-muted);
}

/* ════════════════════════════════════════════════════════════════════
   PRODUCT CARD (WooCommerce loop: ul.products > li.product)
   Whole card is clickable via the title link's ::after.
   ════════════════════════════════════════════════════════════════════ */
.tr-products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: var(--tr-space-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Plate per card (C, M, Y, K), used by the hover "plate shift": the media
   well lifts off a hard offset in its process colour, like misregistered
   print. */
.tr-products > li:nth-child(4n+1) { --_plate: var(--tr-color-cyan); }
.tr-products > li:nth-child(4n+2) { --_plate: var(--tr-color-magenta); }
.tr-products > li:nth-child(4n+3) { --_plate: var(--tr-color-yellow); }
.tr-products > li:nth-child(4n) { --_plate: var(--tr-color-ink); }

.tr-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
}

.tr-product-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--tr-radius-md);
	background: var(--tr-color-surface-sunken);
	transition: transform var(--tr-transition-fast), box-shadow var(--tr-transition-fast);
}

.tr-section--soft .tr-product-card__media { background: var(--tr-color-paper); }

.tr-product-card:hover .tr-product-card__media,
.tr-product-card:focus-within .tr-product-card__media {
	transform: translate(-4px, -4px);
	box-shadow: 6px 6px 0 var(--_plate, var(--tr-color-ink));
}

@media (prefers-reduced-motion: reduce) {
	.tr-product-card:hover .tr-product-card__media,
	.tr-product-card:focus-within .tr-product-card__media { transform: none; }
}

/* Crop corners inside the media well, shown while the card is hovered or
   focused: the product sits "on the proof". */
.tr-product-card__media::after {
	--_l: 14px;
	--_m: var(--tr-color-ink);
	content: "";
	position: absolute;
	inset: 10px;
	background:
		linear-gradient(var(--_m), var(--_m)) 0 0 / var(--_l) 1px,
		linear-gradient(var(--_m), var(--_m)) 0 0 / 1px var(--_l),
		linear-gradient(var(--_m), var(--_m)) 100% 0 / var(--_l) 1px,
		linear-gradient(var(--_m), var(--_m)) 100% 0 / 1px var(--_l),
		linear-gradient(var(--_m), var(--_m)) 0 100% / var(--_l) 1px,
		linear-gradient(var(--_m), var(--_m)) 0 100% / 1px var(--_l),
		linear-gradient(var(--_m), var(--_m)) 100% 100% / var(--_l) 1px,
		linear-gradient(var(--_m), var(--_m)) 100% 100% / 1px var(--_l);
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity var(--tr-transition-fast), inset var(--tr-duration-base) var(--tr-ease);
	pointer-events: none;
}

.tr-product-card:hover .tr-product-card__media::after,
.tr-product-card:focus-within .tr-product-card__media::after {
	inset: 14px;
	opacity: 1;
}

.tr-product-card__media > svg,
.tr-product-card__media > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tr-product-card__badges {
	position: absolute;
	top: var(--tr-space-3);
	left: var(--tr-space-3);
	display: flex;
	gap: var(--tr-space-1);
}

.tr-product-card__body {
	flex: 1;
	padding: var(--tr-space-4) 0 0;
}

.tr-product-card__title {
	font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
	font-stretch: var(--tr-font-width-semi);
	font-weight: var(--tr-weight-heavy);
	line-height: 1.2;
}

.tr-product-card__title a {
	text-decoration: none;
}

.tr-product-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.tr-product-card__title a:focus-visible { outline: none; }

.tr-product-card:has(.tr-product-card__title a:focus-visible) {
	outline: 2px solid var(--tr-color-focus);
	outline-offset: 4px;
	border-radius: var(--tr-radius-md);
}

.tr-product-card__spec {
	margin-top: var(--tr-space-1);
	font-size: var(--tr-text-small);
	color: var(--tr-color-text-muted);
	line-height: 1.5;
}

.tr-product-card__foot {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: var(--tr-space-3);
	margin-top: var(--tr-space-3);
}

.tr-product-card__cta {
	--_bg: transparent;
	--_fg: var(--tr-color-ink);
	--_bd: var(--tr-color-ink);
	position: relative;
	z-index: 2;
	flex: none;
}

.tr-product-card:hover .tr-product-card__cta,
.tr-product-card__cta:hover { --_bg: var(--tr-color-ink); --_fg: #fff; }

/* ════════════════════════════════════════════════════════════════════
   SERVICE CARD
   ════════════════════════════════════════════════════════════════════ */
.tr-service-card {
	display: flex;
	flex-direction: column;
	gap: var(--tr-space-3);
}

/* Tasarım = C, Baskı = M, Reklam = Y (same order as the hero line). */
.tr-services > :nth-child(3n+1) { --_plate: var(--tr-color-cyan); }
.tr-services > :nth-child(3n+2) { --_plate: var(--tr-color-magenta); }
.tr-services > :nth-child(3n) { --_plate: var(--tr-color-yellow); }

.tr-service-card::before {
	content: "";
	display: block;
	height: 12px;
	margin-bottom: var(--tr-space-3);
	background: var(--_plate, var(--tr-color-ink));
}

.tr-service-card__title {
	font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
	font-weight: var(--tr-weight-poster);
	font-stretch: var(--tr-font-width-condensed);
	line-height: 1;
}

.tr-service-card__text {
	color: var(--tr-color-text-muted);
	max-width: 42ch;
}

.tr-service-card__list {
	display: grid;
	gap: var(--tr-space-1);
	padding: 0;
	list-style: none;
	font-size: var(--tr-text-small);
}

.tr-service-card__list li {
	padding-left: var(--tr-space-4);
	background: linear-gradient(var(--tr-color-magenta), var(--tr-color-magenta)) 0 0.62em / 8px 2px no-repeat;
}

.tr-service-card .tr-link { margin-top: auto; align-self: flex-start; }

/* ════════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════════ */
.tr-site-footer {
	background: var(--tr-color-ink-deep);
	color: var(--tr-color-text-muted-on-dark);
	padding-bottom: var(--tr-space-5);
	font-size: var(--tr-text-small);
}

/* White brand band: the logo never sits on a dark surface (logo grey on
   ink-deep is ~1.6:1). Its bottom edge is the full-width process-colour
   rule, which divides it from the dark link grid. */
.tr-site-footer__brandbar {
	--tr-color-focus: var(--tr-color-magenta);
	margin-bottom: clamp(var(--tr-space-7), 6vw, var(--tr-space-8));
	background: var(--tr-color-paper);
	color: var(--tr-color-text);
}

.tr-site-footer__brandbar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--tr-space-4) var(--tr-space-7);
	padding-block: var(--tr-space-7);
}

.tr-site-footer__logo {
	display: inline-flex;
	flex: none;
}

.tr-site-footer__logo-img {
	display: block;
	width: auto;
	height: var(--tr-logo-h-footer);
}

.tr-site-footer .tr-site-footer__brandbar a:hover { color: var(--tr-color-magenta-text); }

.tr-site-footer a {
	text-decoration: none;
	transition: color var(--tr-transition-fast);
}

.tr-site-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.tr-site-footer__grid {
	display: grid;
	gap: var(--tr-space-6) var(--tr-space-5);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1024px) {
	.tr-site-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.tr-site-footer__slogan {
	color: var(--tr-color-text);
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	font-weight: var(--tr-weight-poster);
	font-stretch: var(--tr-font-width-condensed);
	letter-spacing: var(--tr-tracking-heading);
	word-spacing: 0.06em;
	line-height: 1;
}

.tr-site-footer__contact {
	display: grid;
	gap: var(--tr-space-1);
	margin-top: var(--tr-space-1);
	color: var(--tr-color-text-muted);
	font-style: normal;
}

/* Contact links in the brand band: WhatsApp, and the business phone and
   e-mail (inc/business.php, ADR-011). */
.tr-site-footer .tr-site-footer__whatsapp,
.tr-site-footer .tr-site-footer__phone,
.tr-site-footer .tr-site-footer__email {
	justify-self: start;
	color: var(--tr-color-text);
	/* restated: ".tr-site-footer a { text-decoration: none }" resets all longhands */
	text-decoration-line: underline;
	text-decoration-color: var(--tr-color-magenta);
	text-decoration-thickness: 1.5px;
}

.tr-site-footer__title {
	margin-bottom: var(--tr-space-3);
	color: #fff;
	font-size: var(--tr-text-small);
	font-stretch: var(--tr-font-width-wide);
	font-weight: var(--tr-weight-semibold);
	letter-spacing: 0.01em;
}

.tr-site-footer .menu {
	display: grid;
	gap: var(--tr-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tr-site-footer .menu a {
	display: inline-block;
	padding-block: 2px;
}

/* Phones and tablets: each footer link is a full 44px tap target. The row
   gap and the title margin give the space back, so the list only grows by
   the few pixels the target needs (32px → 44px pitch). */
@media (max-width: 1023px) {
	.tr-site-footer__title { margin-bottom: var(--tr-space-1); }

	.tr-site-footer .menu { gap: 0; }

	.tr-site-footer .menu a {
		display: inline-flex;
		align-items: center;
		min-height: var(--tr-tap-target);
		padding-block: 0;
	}
}

.tr-site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--tr-space-3);
	margin-top: var(--tr-space-7);
	padding-top: var(--tr-space-5);
	border-top: 1px solid var(--tr-color-border-dark);
	font-size: var(--tr-text-caption);
}

/* ════════════════════════════════════════════════════════════════════
   COLOR BAR (print control strip) — the brand's process-colour moment
   ════════════════════════════════════════════════════════════════════ */
.tr-colorbar {
	display: flex;
	width: 100%;
	max-width: 272px;
}

.tr-colorbar > span {
	flex: 1;
	height: 14px;
}

.tr-colorbar > span:nth-child(1) { background: var(--tr-color-cyan); }
.tr-colorbar > span:nth-child(2) { background: var(--tr-color-magenta); }
.tr-colorbar > span:nth-child(3) { background: var(--tr-color-yellow); }
.tr-colorbar > span:nth-child(4) { background: var(--tr-color-black); }
.tr-colorbar > span:nth-child(5) { background: color-mix(in srgb, var(--tr-color-black) 75%, #fff); }
.tr-colorbar > span:nth-child(6) { background: color-mix(in srgb, var(--tr-color-black) 50%, #fff); }
.tr-colorbar > span:nth-child(7) { background: color-mix(in srgb, var(--tr-color-black) 25%, #fff); }
.tr-colorbar > span:nth-child(8) { background: color-mix(in srgb, var(--tr-color-black) 10%, #fff); }

.tr-colorbar--mini { max-width: 64px; }
.tr-colorbar--mini > span { height: 6px; }

/* Full-width 4px divider (footer brand band) */
.tr-colorbar--rule { max-width: none; }
.tr-colorbar--rule > span { height: 4px; }
/* K would vanish into the dark footer below; use the logo's own grey. */
.tr-colorbar--rule > span:nth-child(4) { background: var(--tr-rule-k, var(--tr-color-logo-grey)); }

/* ════════════════════════════════════════════════════════════════════
   CROP MARKS — wrap any block in .tr-proof to frame it like a press proof
   ════════════════════════════════════════════════════════════════════ */
.tr-proof {
	position: relative;
	margin: calc(var(--tr-crop-gap) + var(--tr-crop-length));
}

.tr-proof__crop {
	position: absolute;
	width: 0;
	height: 0;
	pointer-events: none;
}

.tr-proof__crop::before,
.tr-proof__crop::after {
	content: "";
	position: absolute;
	background: var(--tr-color-ink);
}

.tr-proof__crop::before { width: 1px; height: var(--tr-crop-length); }
.tr-proof__crop::after { height: 1px; width: var(--tr-crop-length); }

.tr-proof__crop--tl { top: 0; left: 0; }
.tr-proof__crop--tl::before { left: 0; bottom: var(--tr-crop-gap); }
.tr-proof__crop--tl::after { top: 0; right: var(--tr-crop-gap); }

.tr-proof__crop--tr { top: 0; right: 0; }
.tr-proof__crop--tr::before { right: 0; bottom: var(--tr-crop-gap); }
.tr-proof__crop--tr::after { top: 0; left: var(--tr-crop-gap); }

.tr-proof__crop--bl { bottom: 0; left: 0; }
.tr-proof__crop--bl::before { left: 0; top: var(--tr-crop-gap); }
.tr-proof__crop--bl::after { bottom: 0; right: var(--tr-crop-gap); }

.tr-proof__crop--br { bottom: 0; right: 0; }
.tr-proof__crop--br::before { right: 0; top: var(--tr-crop-gap); }
.tr-proof__crop--br::after { bottom: 0; left: var(--tr-crop-gap); }

.tr-proof__reg {
	position: absolute;
	top: 14px;
	left: 50%;
	width: 18px;
	height: 18px;
	transform: translateX(-50%);
	fill: none;
	stroke: var(--tr-color-ink);
	stroke-width: 1;
	pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════════
   DARK SURFACES — magenta fails contrast on antrasit (~2.8:1), so focus
   rings turn white and accent text uses the on-dark magenta.
   ════════════════════════════════════════════════════════════════════ */
.tr-on-dark {
	--tr-color-focus: #fff;
	color: var(--tr-color-text-on-dark);
}

.tr-on-dark .tr-link { text-decoration-color: var(--tr-color-magenta-on-dark); }
.tr-on-dark .tr-link:hover { color: var(--tr-color-magenta-on-dark); }
.tr-on-dark .tr-muted { color: var(--tr-color-text-muted-on-dark); }

.tr-price,
.tr-num {
	font-variant-numeric: tabular-nums;
}

/* Mobile: compact 2-column product grid (UX: 4 products ≈ 1 screen) */
@media (max-width: 599px) {
	.tr-products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--tr-space-3);
	}

	.tr-product-card__media { aspect-ratio: 1; }
	.tr-product-card__body { padding: var(--tr-space-3) 0 0; }
	.tr-product-card__title { font-size: 1rem; }
	.tr-product-card__spec {
		display: -webkit-box;
		overflow: hidden;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
	}

	.tr-product-card__foot {
		flex-direction: column;
		align-items: stretch;
		gap: var(--tr-space-2);
		margin-top: var(--tr-space-3);
	}

	.tr-product-card__cta { width: 100%; padding-inline: var(--tr-space-2); }
}

/* Primary nav: progressive disclosure — hidden items stay reachable via
   "Tüm ürünler" and the mobile drawer. */
@media (max-width: 1279px) {
	.tr-primary-nav .menu-item--lg { display: none; }
}

@media (max-width: 1439px) {
	.tr-primary-nav .menu-item--xl { display: none; }
}

/* Fixed grids for curated sets: 3-up (6 products) and 4-up (the 8
   popular products on the home page: 4 × 2). Below 900 px the default
   card rules apply. */
@media (min-width: 900px) {
	.tr-products--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tr-products--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

a.tr-chip-link[aria-current="page"] {
	background: var(--tr-color-ink);
	border-color: var(--tr-color-ink);
	color: #fff;
}

.tr-badge--warning { background: var(--tr-color-warning-tint); border-color: transparent; color: var(--tr-color-warning); }

/* Drawer-only menu items (e.g. Kurumsal, İletişim) */
.tr-primary-nav .menu-item--mobile-only { display: none; }

/* Mobile drawer: second menu level (always expanded) */
.tr-mobile-nav .sub-menu {
	margin: 0;
	padding: 0 0 0 var(--tr-space-5);
	list-style: none;
}

.tr-mobile-nav .sub-menu .menu-item > a {
	min-height: 48px;
	font-size: var(--tr-text-small);
	font-weight: var(--tr-weight-regular);
}

/* Cursor on the chip label itself (the overlaid input already has it). */
.tr-chip { cursor: pointer; }
.tr-chip:has(input:disabled, input[aria-disabled="true"]) { cursor: not-allowed; }
