/* Tazvori - components: buttons, chips, cards, overlays, forms, tables, shop pieces */

/* ---------- buttons and links ---------- */
.button-primary,
.button-quiet,
.button-light {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: var(--tz-radius-button);
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, box-shadow 0.2s;
}

.button-primary {
	color: var(--tz-white);
	background: var(--tz-pine);
	box-shadow: 0 10px 26px -12px var(--tz-pine);
}

.button-primary:hover {
	color: var(--tz-white);
	background: var(--tz-steel);
}

.button-primary:disabled {
	cursor: not-allowed;
	color: var(--tz-white);
	background: var(--tz-muted);
	box-shadow: none;
}

.button-quiet {
	border: 1px solid var(--tz-rule);
	color: var(--tz-text);
	background: var(--tz-white);
}

.button-quiet:hover {
	border-color: var(--tz-pine);
	color: var(--tz-pine);
}

.button-light {
	color: var(--tz-pine);
	background: var(--tz-white);
}

.button-light:hover {
	color: var(--tz-steel);
}

.arrow-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-weight: 700;
	color: var(--tz-pine);
	text-decoration: none;
}

.arrow-link::after {
	content: "\2192";
	transition: transform 0.2s;
}

.arrow-link:hover::after {
	transform: translateX(4px);
}

.skip-link {
	position: absolute;
	top: -60px;
	left: 16px;
	z-index: 60;
	padding: 12px 18px;
	border-radius: var(--tz-radius-button);
	color: var(--tz-white);
	background: var(--tz-pine);
}

.skip-link:focus {
	top: 12px;
	color: var(--tz-white);
}

/* ---------- chips ---------- */
.fact-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	padding: 0 16px;
	border-radius: var(--tz-radius-button);
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--tz-text);
	background: var(--tz-white);
	box-shadow: 0 6px 18px -12px #1C252966;
}

.fact-chip::before {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--tz-pine);
	content: "";
}

.filter-chip {
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--tz-rule);
	border-radius: var(--tz-radius-button);
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--tz-text);
	background: var(--tz-white);
	cursor: pointer;
}

.filter-chip[aria-pressed="true"] {
	border-color: var(--tz-pine);
	color: var(--tz-white);
	background: var(--tz-pine);
}

.toc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 16px 18px;
	border-radius: var(--tz-radius-block);
	list-style: none;
	background: var(--tz-white);
	box-shadow: var(--tz-shadow-soft);
}

.toc-chips a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 14px;
	border-radius: var(--tz-radius-button);
	font-weight: 600;
	text-decoration: none;
	background: var(--tz-haze);
}

.toc-chips a:hover {
	color: var(--tz-white);
	background: var(--tz-pine);
}

/* ---------- header cart button and burger ---------- */
.cart-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	padding: 0 16px 0 18px;
	border-radius: var(--tz-radius-button);
	font-weight: 700;
	color: var(--tz-white);
	text-decoration: none;
	background: var(--tz-pine);
	box-shadow: 0 10px 24px -14px var(--tz-pine);
}

.cart-button:hover {
	color: var(--tz-white);
	background: var(--tz-steel);
}

.cart-count {
	display: inline-grid;
	place-items: center;
	min-width: 26px;
	height: 26px;
	padding: 0 6px;
	border-radius: 13px;
	font-size: 0.85rem;
	color: var(--tz-pine);
	background: var(--tz-white);
	transition: transform 0.2s;
}

.cart-count.woke {
	transform: scale(1.25);
}

.menu-toggle {
	align-items: center;
	gap: 8px;
	min-width: 48px;
	min-height: 46px;
	padding: 0 14px;
	border: 1px solid var(--tz-rule);
	border-radius: var(--tz-radius-button);
	font-weight: 700;
	background: var(--tz-white);
	cursor: pointer;
}

.menu-toggle-bars {
	position: relative;
	width: 18px;
	height: 2px;
	background: var(--tz-text);
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
	position: absolute;
	left: 0;
	width: 18px;
	height: 2px;
	background: var(--tz-text);
	content: "";
}

.menu-toggle-bars::before {
	top: -6px;
}

.menu-toggle-bars::after {
	top: 6px;
}

@media (max-width: 420px) {
	.site-header-inner {
		gap: 12px;
	}

	.brand-mark {
		font-size: 1.35rem;
	}

	.menu-toggle-text {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		overflow: hidden;
		clip: rect(0 0 0 0); /* label stays for screen readers, the bars carry it visually */
		white-space: nowrap;
	}
}

/* ---------- mobile menu (after header) ---------- */
.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 40;
	overflow-y: auto;
	padding: 0 var(--tz-gutter) 40px;
	background: var(--tz-fog);
	visibility: hidden; /* closed overlay: visibility, never opacity */
	transform: translateY(-16px);
	transition: transform 0.25s, visibility 0s 0.25s;
}

.nav-shown .mobile-menu {
	visibility: visible;
	transform: none;
	transition: transform 0.25s;
}

.mobile-menu-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--tz-header-height);
	border-bottom: 1px solid var(--tz-rule);
}

.mobile-menu-list {
	margin-top: 16px;
	padding: 0;
	list-style: none;
}

.mobile-menu-list a {
	display: flex;
	align-items: center;
	min-height: 52px;
	border-bottom: 1px solid var(--tz-rule);
	font-family: var(--tz-font-display);
	font-size: 1.45rem;
	font-weight: 700;
	color: var(--tz-text);
	text-decoration: none;
}

.mobile-menu-list a:hover {
	color: var(--tz-pine);
}

.mobile-menu-foot {
	margin-top: 24px;
	color: var(--tz-muted);
}

/* ---------- consent bar ---------- */
.consent-bar {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 30;
	width: min(360px, 100vw - 32px);
	padding: 18px 18px 16px;
	border-radius: var(--tz-radius-block);
	font-size: 0.95rem;
	line-height: 1.45;
	color: var(--tz-text);
	background: var(--tz-white);
	box-shadow: var(--tz-shadow-lift), 0 0 0 1px var(--tz-rule);
}

.consent-bar-actions {
	display: flex;
	gap: 10px;
	margin-top: 12px;
}

.consent-bar-actions button {
	flex: 1 1 0;
	min-height: 44px;
}

@media (max-width: 640px) {
	.consent-bar {
		right: 12px;
		bottom: 12px;
		left: 12px;
		width: auto;
		padding: 14px 14px 12px;
	}
}

/* ---------- cart drawer ---------- */
.cart-scrim {
	position: fixed;
	inset: 0;
	z-index: 45;
	background: var(--tz-text-veil);
	visibility: hidden;
}

.cart-scrim.woke {
	visibility: visible;
}

.cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 50;
	display: flex;
	flex-direction: column;
	width: min(440px, 100vw);
	overflow-y: auto;
	padding: 0 24px 28px;
	background: var(--tz-fog);
	box-shadow: var(--tz-shadow-lift);
	visibility: hidden;
	transform: translateX(104%);
	transition: transform 0.28s, visibility 0s 0.28s;
}

.cart-drawer.woke {
	visibility: visible;
	transform: none;
	transition: transform 0.28s;
}

.cart-drawer-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--tz-header-height);
	border-bottom: 1px solid var(--tz-rule);
}

.cart-drawer-title {
	font-family: var(--tz-font-display);
	font-size: 1.5rem;
	font-weight: 700;
}

.icon-close {
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--tz-rule);
	border-radius: var(--tz-radius-button);
	font-weight: 700;
	background: var(--tz-white);
	cursor: pointer;
}

/* ---------- cart view (page and drawer) ---------- */
.cart-notice {
	margin-top: 16px;
	padding: 12px 14px;
	border-left: 3px solid var(--tz-steel);
	border-radius: var(--tz-radius-button);
	background: var(--tz-steel-wash);
}

.cart-empty {
	margin-top: 20px;
	padding: 28px 24px;
	border-radius: var(--tz-radius-block);
	text-align: center;
	background: var(--tz-white);
	box-shadow: var(--tz-shadow-soft);
}

.cart-empty p + p {
	margin-top: 14px;
}

.cart-lines {
	padding: 0;
	list-style: none;
}

.cart-line {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr) auto;
	gap: 6px 16px;
	align-items: start;
	padding: 18px 0;
	border-bottom: 1px solid var(--tz-rule);
}

.cart-line-photo {
	grid-row: span 2;
	width: 76px;
	background: var(--tz-haze);
}

.cart-line-name {
	font-weight: 700;
	color: var(--tz-text);
	text-decoration: none;
}

.cart-line-name:hover {
	color: var(--tz-pine);
	text-decoration: underline;
}

.cart-line-meta {
	font-size: 0.92rem;
	color: var(--tz-muted);
}

.cart-line-total {
	font-weight: 700;
	text-align: right;
}

.cart-line-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	grid-column: 2 / -1;
}

.cart-line-qty select {
	min-height: 44px;
	padding: 0 10px;
	border: 1px solid var(--tz-rule);
	border-radius: var(--tz-radius-button);
	background: var(--tz-white);
}

.cart-line-remove {
	min-height: 44px;
	padding: 0 6px;
	border: 0;
	font-weight: 600;
	color: var(--tz-pine);
	text-decoration: underline;
	background: none;
	cursor: pointer;
}

.cart-sum-card {
	margin-top: 20px;
	padding: 22px 22px 24px;
	border-radius: var(--tz-radius-block);
	background: var(--tz-white);
	box-shadow: var(--tz-shadow-soft);
}

.cart-totals {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px 16px;
}

.cart-totals dt {
	color: var(--tz-muted);
}

.cart-totals dd {
	margin: 0;
	font-weight: 600;
	text-align: right;
}

.cart-totals .cart-total-row {
	padding-top: 10px;
	border-top: 1px solid var(--tz-rule);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--tz-text);
}

.cart-ship-hint {
	margin-top: 12px;
	font-size: 0.93rem;
	color: var(--tz-muted);
}

.cart-sum-actions {
	display: grid;
	gap: 10px;
	margin-top: 18px;
}

.summary-lines {
	margin-top: 14px;
	padding: 0;
	list-style: none;
}

.summary-line {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 2px 14px;
	padding: 10px 0;
	border-bottom: 1px solid var(--tz-rule);
}

.summary-line-name {
	font-weight: 700;
}

.summary-line-meta {
	grid-column: 1;
	font-size: 0.9rem;
	color: var(--tz-muted);
}

.summary-line-total {
	grid-row: 1 / span 2;
	grid-column: 2;
	font-weight: 700;
}

/* ---------- cards ---------- */
.soft-card {
	padding: clamp(22px, 3vw, 32px);
	border-radius: var(--tz-radius-block);
	background: var(--tz-white);
	box-shadow: var(--tz-shadow-soft);
}

.soft-card h3 + p,
.soft-card h2 + p,
.soft-card p + p,
.soft-card p + ul,
.soft-card ul + p {
	margin-top: 10px;
}

.soft-card > h2 + .field,
.soft-card > h2 + .channel-list,
.soft-card > h2 + .spec-list,
.soft-card > h2 + .summary-lines {
	margin-top: 16px;
}

.soft-card ul,
.soft-card ol {
	padding-left: 1.2em;
}

.soft-card ol {
	margin-top: 10px;
}

.soft-card p + h3,
.soft-card .order-number + p {
	margin-top: 18px;
}

.soft-card .footer-links {
	padding-left: 0;
}

.channel-value {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 700;
}

.accent-card {
	border-top: 4px solid var(--tz-pine);
}

.accent-card-steel {
	border-top: 4px solid var(--tz-steel);
}

.numbered-card {
	position: relative;
	padding-top: 56px;
}

.numbered-card-index {
	position: absolute;
	top: 18px;
	left: clamp(22px, 3vw, 32px);
	font-family: var(--tz-font-display);
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--tz-steel);
}

.term-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	padding: 0;
	list-style: none;
}

@media (max-width: 700px) {
	.term-cards {
		grid-template-columns: minmax(0, 1fr);
	}
}

.quote-block {
	padding: 22px 24px;
	border-left: 4px solid var(--tz-steel);
	border-radius: var(--tz-radius-card);
	font-size: 0.98rem;
	background: var(--tz-white);
	box-shadow: var(--tz-shadow-soft);
}

.quote-block p + p {
	margin-top: 8px;
}

/* ---------- product card (shop grid) ---------- */
.product-card {
	padding-top: 16px;
	border-top: 1px solid var(--tz-rule);
}

.product-card-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.product-card-photo {
	background: var(--tz-haze);
}

.product-card-name {
	margin-top: 14px;
	font-size: 1.2rem;
}

.product-card-link:hover .product-card-name {
	color: var(--tz-pine);
	text-decoration: underline;
}

.product-card-meta {
	margin-top: 4px;
	font-size: 0.93rem;
	color: var(--tz-muted);
}

.product-card-price {
	margin-top: 8px;
	font-weight: 700;
}

.price-note {
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--tz-muted);
}

/* ---------- spec list ---------- */
.spec-list {
	display: grid;
	grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
	gap: 0;
	margin-top: 18px;
}

.spec-list dt,
.spec-list dd {
	margin: 0;
	padding: 12px 0;
	border-top: 1px solid var(--tz-rule);
}

.spec-list dt {
	font-weight: 700;
}

/* ---------- forms ---------- */
.field {
	display: grid;
	gap: 6px;
}

.field + .field,
.field-row + .field,
.field + .field-row,
.field-row + .field-row {
	margin-top: 16px;
}

.field-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

@media (max-width: 560px) {
	.field-row {
		grid-template-columns: minmax(0, 1fr);
	}
}

.field label {
	font-weight: 700;
}

.field-hint {
	font-size: 0.88rem;
	color: var(--tz-muted);
}

.field input,
.field select,
.field textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--tz-rule);
	border-radius: var(--tz-radius-button);
	background: var(--tz-white);
}

.field textarea {
	min-height: 120px;
	resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	border-color: var(--tz-pine);
	outline: 2px solid var(--tz-pine-glow);
}

.field [aria-invalid="true"] {
	border: 2px solid var(--tz-steel);
}

.field-error {
	padding-left: 10px;
	border-left: 3px solid var(--tz-steel);
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--tz-text);
}

.check-field {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-height: 44px;
	margin-top: 16px;
}

.check-field input {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin-top: 2px;
	accent-color: var(--tz-pine);
}

.form-alert {
	margin-top: 16px;
	padding: 14px 16px;
	border-left: 4px solid var(--tz-steel);
	border-radius: var(--tz-radius-button);
	font-weight: 600;
	background: var(--tz-steel-wash);
}

.form-alert ul {
	margin-top: 6px;
	padding-left: 1.2em;
	font-weight: 500;
}

.trap-field {
	position: absolute;
	left: -9999px; /* honeypot lives off-screen, not display:none */
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.pay-option {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 10px;
	padding: 16px;
	border: 2px solid var(--tz-pine);
	border-radius: var(--tz-radius-card);
	background: var(--tz-pine-wash);
}

.pay-option input {
	width: 20px;
	height: 20px;
	margin-top: 3px;
	accent-color: var(--tz-pine);
}

.form-fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.form-fieldset + .form-fieldset {
	margin-top: 32px;
}

.form-fieldset legend {
	margin-bottom: 14px;
	padding: 0;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--tz-steel);
}

.form-submit-row {
	margin-top: 24px;
}

.form-submit-row .button-primary {
	width: 100%;
}

/* ---------- tables ---------- */
.data-table-wrap {
	overflow-x: auto;
	border-radius: var(--tz-radius-block);
	background: var(--tz-white);
	box-shadow: var(--tz-shadow-soft);
}

.data-table caption {
	padding: 16px 18px 4px;
	font-weight: 700;
	text-align: left;
}

.data-table th,
.data-table td {
	padding: 12px 18px;
	border-top: 1px solid var(--tz-rule);
	text-align: left;
	vertical-align: top;
}

.data-table thead th {
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tz-steel);
}

.data-table-wide {
	min-width: 560px;
}

.data-table-pairs th {
	width: 38%;
}

.data-table-pairs td {
	overflow-wrap: anywhere;
}

/* ---------- index mechanics: pieces ---------- */
.weather-tab {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-width: 170px;
	min-height: 64px;
	padding: 14px 18px;
	border: 0;
	border-radius: var(--tz-radius-card);
	text-align: left;
	color: var(--tz-text);
	background: var(--tz-white);
	box-shadow: var(--tz-shadow-soft);
	cursor: pointer;
	scroll-snap-align: start;
	transition: transform 0.2s, background-color 0.2s;
}

.weather-tab-name {
	font-family: var(--tz-font-display);
	font-size: 1.2rem;
	font-weight: 700;
}

.weather-tab-hint {
	font-size: 0.88rem;
	color: var(--tz-muted);
}

.weather-tab[aria-selected="true"] {
	color: var(--tz-white);
	background: var(--tz-pine);
	transform: translateX(14px); /* the active card slides out of the deck */
}

.weather-tab[aria-selected="true"] .weather-tab-hint {
	color: var(--tz-white);
}

@media (max-width: 860px) {
	.weather-tab[aria-selected="true"] {
		transform: translateY(-4px);
	}
}

.weather-panel-card {
	padding: clamp(24px, 3.5vw, 40px);
	border-radius: var(--tz-radius-block);
	background: var(--tz-white);
	box-shadow: var(--tz-shadow-soft);
}

.weather-panel-card > p {
	max-width: 60ch;
	margin-top: 10px;
	color: var(--tz-muted);
}

.weather-items {
	margin-top: 18px;
	padding: 0;
	list-style: none;
}

.weather-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 4px 20px;
	align-items: center;
	padding: 14px 0;
	border-top: 1px solid var(--tz-rule);
}

.weather-item-name {
	font-weight: 700;
}

.weather-item-why {
	grid-column: 1;
	font-size: 0.95rem;
	color: var(--tz-muted);
}

.weather-item-buy {
	grid-row: 1 / span 2;
	grid-column: 2;
	text-align: right;
}

.weather-item-price {
	display: block;
	font-weight: 700;
}

@media (max-width: 520px) {
	.weather-item {
		grid-template-columns: minmax(0, 1fr);
	}

	.weather-item-buy {
		grid-row: auto;
		grid-column: 1;
		text-align: left;
	}
}

.fabric-point {
	padding: 18px 0;
	border-top: 1px solid var(--tz-rule);
}

.fabric-point h3 {
	font-size: 1.2rem;
}

.fabric-point p {
	margin-top: 6px;
	color: var(--tz-muted);
}

.photo-caption {
	margin-top: 10px;
	font-size: 0.9rem;
	color: var(--tz-muted);
}

.contact-band {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 20px 40px;
	align-items: center;
	padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 64px);
	border-radius: var(--tz-radius-block);
	color: var(--tz-white);
	background: linear-gradient(118deg, var(--tz-pine) 0%, var(--tz-steel) 100%);
	box-shadow: var(--tz-shadow-lift);
}

.contact-band h2 {
	color: var(--tz-white);
}

.contact-band p {
	max-width: 56ch;
	margin-top: 10px;
}

@media (max-width: 760px) {
	.contact-band {
		grid-template-columns: minmax(0, 1fr);
	}
}

.channel-list {
	display: grid;
	gap: 0;
	padding: 0;
	list-style: none;
}

.channel-list li {
	display: grid;
	gap: 2px;
	padding: 12px 0;
	border-top: 1px solid var(--tz-rule);
}

.channel-list li:first-child {
	border-top: 0;
}

.channel-list a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.order-number {
	display: inline-block;
	margin-top: 8px;
	padding: 8px 16px;
	border-radius: var(--tz-radius-button);
	font-family: var(--tz-font-display);
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--tz-pine);
	background: var(--tz-pine-wash);
}

.status-label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
	font-family: var(--tz-font-display);
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--tz-pine);
}

.status-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-top: 18px;
	padding: 0;
	list-style: none;
}

.status-steps li {
	padding: 10px 12px;
	border-top: 4px solid var(--tz-rule);
	font-size: 0.9rem;
	color: var(--tz-muted);
}

.status-steps li.woke {
	border-top-color: var(--tz-pine);
	font-weight: 700;
	color: var(--tz-text);
}

@media (max-width: 560px) {
	.status-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.big-code {
	font-family: var(--tz-font-display);
	font-size: clamp(5rem, 16vw, 11rem);
	font-weight: 700;
	line-height: 0.9;
	color: var(--tz-haze);
	-webkit-text-stroke: 2px var(--tz-steel);
}
