/* Tikka Rifles design system. Loaded on the front end and in the editor.
   Tokens come from theme.json (--wp--preset--*). Decoration is CSS-only: no image or font is fetched from a third party. */

:root {
	--tk-cut: 18px;
	--tk-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--tk-orange: var(--wp--preset--color--orange);
	--tk-line: var(--wp--preset--color--line);
	--tk-display: var(--wp--preset--font-family--barlow-condensed);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--tk-orange); outline-offset: 3px; }

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

/* ---------- Header ---------------------------------------------------------------------------------------- */
.tk-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid var(--tk-line);
}
/* The frosted background lives on a pseudo-element: a backdrop-filter on the header itself would make it the
   containing block of the position:fixed phone menu, squashing the open menu into a strip the height of the header. */
.tk-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(10, 10, 11, 0.9);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	pointer-events: none;
}
.admin-bar .tk-header { top: var(--wp-admin--admin-bar--height, 0px); }
.tk-header .tk-logo img { display: block; height: 34px; width: auto; }
.tk-header .tk-logo { margin: 0; }
.tk-header .wp-block-navigation-item__content { text-decoration: none; color: var(--wp--preset--color--foreground); }
.tk-header .wp-block-navigation-item__content:hover,
.tk-header .current-menu-item > .wp-block-navigation-item__content { color: var(--tk-orange); }
.tk-header .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--surface) !important;
	border: 1px solid var(--tk-line) !important;
	min-width: 15rem;
	padding: 0.5rem 0;
}
.tk-header .wp-block-navigation__submenu-container { color: var(--wp--preset--color--foreground) !important; }
.tk-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.55rem 1.1rem;
	font-size: 1rem;
	color: var(--wp--preset--color--foreground);
}
.tk-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.tk-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible,
.tk-header .wp-block-navigation .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content { color: var(--tk-orange); }
.tk-header .wp-block-search__button { background: transparent; color: var(--wp--preset--color--foreground); }
/* The navigation collapses into the overlay menu below 1024px (core's default is 600px). */
@media (max-width: 1023px) {
	.tk-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
	.tk-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.tk-header .tk-header-cta { display: none; }
}
.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--ink); padding: 1.5rem; }
/* In the open phone menu the submenus are plain lists (no dropdown box), and the demo bar steps back so the menu's
   close button, which sits at the top of the screen, is not covered by it. */
.tk-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	background: transparent !important;
	border: 0 !important;
	min-width: 0;
	padding: 0 0 0.75rem;
}
html.has-modal-open .tk-demo-bar { z-index: auto; }
/* Explicit light text in the open phone menu, whatever colour class the block markup carries. */
.tk-header .wp-block-navigation__responsive-container.is-menu-open,
.tk-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { color: var(--wp--preset--color--foreground); }
.tk-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover,
.tk-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus-visible { color: var(--tk-orange); }

/* ---------- Typographic helpers -------------------------------------------------------------------------- */
.tk-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	color: var(--tk-orange);
	font-family: var(--tk-display);
	font-weight: 600;
	font-size: 1rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	line-height: 1.2;
}
.tk-eyebrow::before { content: ""; flex: none; width: 2.25rem; height: 2px; background: currentColor; }
.tk-display, .tk-card-title, .tk-eyebrow, .tk-kicker { text-transform: none; }
.tk-display { text-wrap: balance; }
.tk-header .wp-block-navigation__submenu-container { text-transform: none; letter-spacing: 0.02em; }
.tk-display em,
.tk-accent { font-style: normal; color: var(--tk-orange); }
.tk-lead { font-size: var(--wp--preset--font-size--medium); line-height: 1.55; color: var(--wp--preset--color--text-soft); max-width: 46rem; }
.tk-kicker { margin: 0; font-family: var(--tk-display); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.9375rem; color: var(--tk-orange); }
.tk-muted { color: var(--wp--preset--color--text-soft); }
.tk-small { font-size: var(--wp--preset--font-size--small); }
.tk-breadcrumb { margin: 0; font-size: var(--wp--preset--font-size--small); letter-spacing: 0.04em; color: var(--wp--preset--color--text-soft); }
.tk-breadcrumb a { color: var(--wp--preset--color--text-soft); text-decoration: none; }
.tk-breadcrumb a:hover { color: var(--tk-orange); }

/* ---------- Sections ------------------------------------------------------------------------------------- */
.tk-band { position: relative; }
/* Faint diagonal facets echo the angled Tikka brand panels; pure CSS. */
.tk-facets { background-image:
	linear-gradient(118deg, rgba(255, 255, 255, 0.035) 0 22%, transparent 22% 48%, rgba(255, 255, 255, 0.02) 48% 61%, transparent 61%),
	radial-gradient(ellipse at 85% 0%, rgba(255, 115, 0, 0.14), transparent 55%); }
.tk-divider { position: relative; height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--tk-orange), transparent); opacity: 0.8; }
.has-paper-background-color, .has-paper-deep-background-color { color: var(--wp--preset--color--black); }
.has-paper-background-color a:not(.wp-block-button__link), .has-paper-deep-background-color a:not(.wp-block-button__link) { color: #a64300; }
.has-paper-background-color h1, .has-paper-background-color h2, .has-paper-background-color h3, .has-paper-background-color h4,
.has-paper-deep-background-color h1, .has-paper-deep-background-color h2, .has-paper-deep-background-color h3 { color: var(--wp--preset--color--black); }
.has-paper-background-color .tk-eyebrow, .has-paper-deep-background-color .tk-eyebrow { color: #a64300; }
.has-paper-background-color .tk-lead, .has-paper-background-color .tk-muted, .has-paper-deep-background-color .tk-muted { color: #444; }

/* ---------- Hero ----------------------------------------------------------------------------------------- */
.tk-hero { isolation: isolate; }
.tk-hero .wp-block-cover__inner-container { width: 100%; min-width: 0; max-width: 100%; }
.tk-hero h1 { max-width: 14ch; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55), 0 0 28px rgba(0, 0, 0, 0.45); }
.tk-hero .tk-lead { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.tk-facts { margin-top: 1rem; }
.tk-fact { border-left: 2px solid var(--tk-orange); padding-left: 1rem; }
.tk-fact-value { margin: 0; font-family: var(--tk-display); font-weight: 700; font-size: 2.25rem; line-height: 1; text-transform: uppercase; }
.tk-fact-label { margin: 0.25rem 0 0; font-size: var(--wp--preset--font-size--small); letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--text-soft); }

/* ---------- Cards ---------------------------------------------------------------------------------------- */
.tk-card {
	position: relative;
	overflow: hidden;
	background: var(--wp--preset--color--card);
	border: 1px solid var(--tk-line);
	clip-path: polygon(var(--tk-cut) 0, calc(100% - var(--tk-cut)) 0, 100% var(--tk-cut), 100% calc(100% - var(--tk-cut)), calc(100% - var(--tk-cut)) 100%, var(--tk-cut) 100%, 0 calc(100% - var(--tk-cut)), 0 var(--tk-cut));
	transition: border-color 0.3s var(--tk-ease), transform 0.4s var(--tk-ease);
}
.tk-card::after {
	content: "";
	position: absolute;
	top: -50%;
	right: -30%;
	width: 30%;
	height: 200%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), rgba(255, 140, 38, 0.18), transparent);
	transform: rotate(-25deg);
	transition: right 0.7s ease;
	pointer-events: none;
	z-index: 3;
}
.tk-card:hover { border-color: var(--tk-orange); }
.tk-card:hover::after { right: 130%; }
.tk-card > .wp-block-group { height: 100%; }
/* Whole card is clickable through its button link. */
.tk-card .wp-block-button { position: static; }
.tk-card .wp-block-button__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.tk-card .wp-block-button__link:focus-visible { outline-offset: -3px; }
.tk-plinth { margin: 0; padding: 1.25rem 1rem; background: var(--wp--preset--gradient--plinth); display: flex; align-items: center; justify-content: center; }
.tk-plinth img { display: block; width: 100%; height: auto; object-fit: contain; }
.tk-card-body { padding: 1.5rem 1.5rem 1.75rem; }
.tk-card-body h3 { margin: 0; }
.tk-card-body p { margin: 0; }
.tk-card-title { font-size: 1.75rem; }
.tk-spec-line { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--text-soft); letter-spacing: 0.02em; }
.tk-photo { margin: 0; }
.tk-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tk-photo-frame img { aspect-ratio: 3 / 2; }
.tk-feature-photo img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }

/* ---------- Buttons -------------------------------------------------------------------------------------- */
.wp-block-button__link { transition: background-color 0.25s var(--tk-ease), color 0.25s var(--tk-ease), transform 0.25s var(--tk-ease); }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--tk-orange); border-color: var(--tk-orange); color: var(--wp--preset--color--black); }
.has-paper-background-color .wp-block-button.is-style-outline .wp-block-button__link { color: var(--wp--preset--color--black); border-color: var(--wp--preset--color--black); }

/* ---------- Spec tables, meters, details ----------------------------------------------------------------- */
.wp-block-table.tk-table table { border-collapse: collapse; width: 100%; }
.wp-block-table.tk-table th, .wp-block-table.tk-table td { border: 1px solid var(--tk-line); padding: 0.8rem 1rem; text-align: left; vertical-align: top; }
.wp-block-table.tk-table thead th { background: var(--wp--preset--color--surface); font-family: var(--tk-display); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 1rem; }
.wp-block-table.tk-table tbody th { width: 34%; font-weight: 600; background: rgba(255, 255, 255, 0.025); }
.wp-block-table.tk-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }
.wp-block-table.tk-table figcaption { color: var(--wp--preset--color--text-soft); font-size: var(--wp--preset--font-size--x-small); margin-top: 0.75rem; text-align: left; }
.wp-block-table { overflow-x: visible; }
.tk-meter-label { margin: 0 0 0.35rem; font-size: var(--wp--preset--font-size--small); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.tk-meter.wp-block-columns { gap: 0; margin-bottom: 1rem; flex-wrap: nowrap !important; background: var(--wp--preset--color--line); }
.tk-meter .wp-block-column { margin: 0; }
.tk-meter .wp-block-spacer { margin: 0; }
.wp-block-details { background: var(--wp--preset--color--card); border: 1px solid var(--tk-line); }
.wp-block-details + .wp-block-details { margin-top: 0.75rem; }
.wp-block-details summary { cursor: pointer; list-style: none; position: relative; padding: 1.1rem 3.5rem 1.1rem 1.25rem; font-weight: 600; font-size: 1.125rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; translate: 0 -50%; font-size: 1.75rem; line-height: 1; color: var(--tk-orange); font-weight: 400; }
.wp-block-details[open] summary::after { content: "\2212"; }
.wp-block-details[open] summary { border-bottom: 1px solid var(--tk-line); }
.wp-block-details > :not(summary) { margin-left: 1.25rem; margin-right: 1.25rem; }
.wp-block-details > :not(summary):first-of-type { margin-top: 1rem; }
.wp-block-details > :last-child { margin-bottom: 1.25rem; }
.has-paper-background-color .wp-block-details { background: #fff; border-color: #cfcfd3; }

/* ---------- Lists ---------------------------------------------------------------------------------------- */
.tk-checks { list-style: none; padding: 0; margin: 0; }
.tk-checks li { position: relative; padding-left: 1.75rem; margin: 0 0 0.6rem; }
.tk-checks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.7rem; height: 0.7rem; background: var(--tk-orange); clip-path: polygon(0 100%, 100% 100%, 50% 0); }

/* ---------- Footer --------------------------------------------------------------------------------------- */
.tk-footer { border-top: 1px solid var(--tk-line); }
.tk-footer .wp-block-navigation-item__content { color: var(--wp--preset--color--text-soft); text-decoration: none; font-family: var(--wp--preset--font-family--barlow); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 1rem; padding: 0.2rem 0; }
.tk-footer .wp-block-navigation-item__content:hover { color: var(--tk-orange); }
.tk-footer h2, .tk-footer h3 { font-size: 1.125rem; letter-spacing: 0.12em; color: var(--tk-orange); margin: 0 0 0.75rem; }
.tk-footer p { margin: 0 0 0.5rem; }
.tk-footer .tk-logo img { height: 40px; width: auto; display: block; }
.tk-legal-line { font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--text-soft); line-height: 1.6; }

/* ---------- Misc ----------------------------------------------------------------------------------------- */
.tk-pill-grid .wp-block-group { margin: 0; }
.wp-block-image figcaption { color: var(--wp--preset--color--text-soft); font-size: var(--wp--preset--font-size--x-small); }
.tk-prose { max-width: 46rem; }
.tk-prose h2 { font-size: var(--wp--preset--font-size--x-large); margin-top: 2.5rem; }
.tk-prose h3 { font-size: var(--wp--preset--font-size--large); margin-top: 2rem; }
.tk-notice { border-left: 3px solid var(--tk-orange); background: var(--wp--preset--color--surface); padding: 1rem 1.25rem; }
.tk-notice p { margin: 0; }
.wp-block-search__input { background: var(--wp--preset--color--card); color: var(--wp--preset--color--foreground); border: 1px solid var(--tk-line); padding: 0.7rem 1rem; }

/* Grids that should fill the row instead of leaving empty tracks. */
.wp-block-group.is-layout-grid.tk-fit { grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
.wp-block-group.is-layout-grid.tk-fit.tk-fit-wide { grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr)); }
@media (min-width: 782px) { .wp-block-columns.tk-reverse { flex-direction: row-reverse; } }
.tk-plinth-large { padding: 2.5rem 1.5rem; }

/* Equal-height cards: fixed plinth ratio, body fills, button pinned to the bottom. */
.tk-plinth { aspect-ratio: 5 / 2; }
.tk-plinth img { height: 100%; max-height: 100%; object-fit: contain; }
.tk-plinth-large { aspect-ratio: auto; }
.tk-plinth-large img { height: auto; }
.tk-card > .wp-block-group { display: flex; flex-direction: column; height: 100%; }
.tk-card-body { flex: 1; display: flex; flex-direction: column; }
.tk-card-body .wp-block-buttons { margin-top: auto !important; padding-top: 0.75rem; }
.wp-block-details { width: 100%; }
.tk-card .tk-photo { aspect-ratio: 3 / 2; }
.tk-card .tk-photo img { height: 100%; }

@media (max-width: 1023px) {
	/* Push the menu button right. Only the outer <nav>: the list inside the open menu carries the same class. */
	.tk-header nav.wp-block-navigation { margin-left: auto; }
}

/* Rating meters: columns inside a flex stack need an explicit width. */
.tk-meter.wp-block-columns { width: 100%; align-self: stretch; }
.wp-block-group > .tk-meter-label, .wp-block-group > .wp-block-details { align-self: stretch; }

/* Light sections: the orange accent needs a darker tone for contrast on paper. */
.has-paper-background-color .tk-display em, .has-paper-deep-background-color .tk-display em, .has-paper-background-color .tk-accent { color: #a64300; }

/* Tables never scroll sideways: long words wrap, and comparison tables drop low-priority columns on small screens. */
.wp-block-table table { table-layout: auto; width: 100%; }
.wp-block-table td, .wp-block-table th { overflow-wrap: anywhere; }
@media (max-width: 640px) {
	.wp-block-table.tk-table th, .wp-block-table.tk-table td { padding: 0.6rem 0.5rem; font-size: 0.875rem; }
	.wp-block-table.tk-glance :is(th, td):nth-child(2) { display: none; }
	.wp-block-table.tk-hide-more :is(th, td):is(:nth-child(4), :nth-child(6)) { display: none; }
	.wp-block-table.tk-hide-last :is(th, td):last-child { display: none; }
	.wp-block-table.tk-matrix :is(th, td):nth-child(n+2) { text-align: center; padding-left: 0.25rem; padding-right: 0.25rem; }
	.wp-block-table.tk-matrix thead th { font-size: 0.75rem; letter-spacing: 0; }
}

/* =====================================================================================================================
   Shop (WooCommerce): its own stylesheets are switched off, so everything the cart, checkout and product forms need is here.
   ===================================================================================================================== */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }

.tk-demo-bar { position: relative; z-index: 101; }
.tk-demo-text { margin: 0; line-height: 1.35; }
.tk-demo-text a { color: inherit; text-decoration: underline; font-weight: 600; }

/* Header cart link */
.tk-cart-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--wp--preset--color--foreground); text-decoration: none; font-family: var(--tk-display); font-weight: 600; font-size: 1.125rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.4rem 0; }
.tk-cart-link:hover { color: var(--tk-orange); }
.tk-cart-count { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 0.35rem; border-radius: 999px; background: var(--tk-orange); color: var(--wp--preset--color--black); font-size: 0.875rem; font-weight: 700; letter-spacing: 0; }
.tk-cart-count.is-empty { background: var(--tk-line); color: var(--wp--preset--color--text-soft); }

/* Prices */
.tk-price { margin: 0; font-family: var(--tk-display); font-weight: 700; font-size: 1.625rem; line-height: 1.1; color: var(--wp--preset--color--foreground); }
.tk-price .woocommerce-Price-amount { color: inherit; }
.tk-price-large { font-size: 2.5rem; }
.tk-card-body .tk-price { margin-top: 0.25rem; }
.tk-price-note { margin: 0.25rem 0 0; font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--text-soft); }
.tk-buy { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.tk-buy-hint { margin: 0; color: var(--wp--preset--color--text-soft); font-size: var(--wp--preset--font-size--small); }
.tk-buy-points { margin: 0.5rem 0 0; padding: 0; list-style: none; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--text-soft); }
.tk-buy-points li { position: relative; padding-left: 1.5rem; margin: 0 0 0.35rem; }
.tk-buy-points li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.6rem; height: 0.6rem; background: var(--tk-orange); clip-path: polygon(0 100%, 100% 100%, 50% 0); }

/* Product form */
.tk-buy form.cart { display: flex; flex-direction: column; gap: 1rem; margin: 0; }
.tk-buy table.variations { border: 0; border-collapse: collapse; width: 100%; margin: 0; }
.tk-buy table.variations th, .tk-buy table.variations td { border: 0; padding: 0 0 0.5rem; display: block; text-align: left; background: none; }
.tk-buy table.variations label { font-family: var(--tk-display); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 1rem; }
.tk-buy .reset_variations { display: inline-block; margin-top: 0.5rem; font-size: var(--wp--preset--font-size--small); }
.tk-buy .woocommerce-variation-description { color: var(--wp--preset--color--text-soft); font-size: var(--wp--preset--font-size--small); margin-bottom: 0.5rem; }
.tk-buy .woocommerce-variation-price .price { font-family: var(--tk-display); font-weight: 700; font-size: 1.75rem; }
.tk-buy .woocommerce-variation-add-to-cart, .tk-buy form.cart:not(.variations_form) { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: stretch; }
.tk-buy .quantity { display: inline-flex; }
.tk-buy .quantity .qty { width: 5rem; }
.tk-buy .quantity.hidden { display: none; }
.single_add_to_cart_button, .woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce #place_order, .wc-proceed-to-checkout a.checkout-button {
	display: inline-block; cursor: pointer; border: 0; border-radius: 0; text-align: center; text-decoration: none;
	background: var(--tk-orange); color: var(--wp--preset--color--black);
	font-family: var(--tk-display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1;
	padding: 0.95rem 1.75rem;
	transition: background-color 0.25s var(--tk-ease), transform 0.25s var(--tk-ease);
}
.single_add_to_cart_button:hover, .woocommerce .button:hover, .woocommerce #place_order:hover, .wc-proceed-to-checkout a.checkout-button:hover { background: var(--wp--preset--color--orange-bright); color: var(--wp--preset--color--black); transform: translateY(-1px); }
.single_add_to_cart_button.disabled, .single_add_to_cart_button:disabled, .woocommerce button.button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* Fields */
.woocommerce form .form-row { display: flex; flex-direction: column; gap: 0.35rem; margin: 0 0 1rem; padding: 0; }
.woocommerce form .form-row label { font-weight: 600; font-size: 0.9375rem; }
.woocommerce form .form-row .required { color: var(--tk-orange); text-decoration: none; border: 0; }
.woocommerce form .form-row .optional { color: var(--wp--preset--color--text-soft); font-weight: 400; }
.woocommerce input.input-text, .woocommerce textarea, .woocommerce select, .select2-container--default .select2-selection--single, .tk-buy select {
	width: 100%; box-sizing: border-box; min-height: 3rem; padding: 0.7rem 1rem; font: inherit; color: var(--wp--preset--color--foreground);
	background: var(--wp--preset--color--card); border: 1px solid #3c3c45; border-radius: 0;
}
.woocommerce input.input-text:focus, .woocommerce textarea:focus, .woocommerce select:focus { outline: 2px solid var(--tk-orange); outline-offset: 1px; }
.woocommerce form .form-row.woocommerce-invalid input.input-text, .woocommerce form .form-row.woocommerce-invalid select { border-color: #ff6b57; }
.woocommerce form .form-row .description, .woocommerce-input-wrapper .description { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--text-soft); }
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--wp--preset--color--foreground); line-height: 1.6; padding: 0; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; }
.select2-dropdown { background: var(--wp--preset--color--card); color: var(--wp--preset--color--foreground); border: 1px solid #3c3c45; border-radius: 0; }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--tk-orange); color: var(--wp--preset--color--black); }
.select2-search--dropdown .select2-search__field { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--foreground); border: 1px solid #3c3c45; }
.woocommerce form .form-row.validate-required label.checkbox, .woocommerce form .form-row label.checkbox { display: flex; gap: 0.75rem; align-items: flex-start; font-weight: 400; }
.woocommerce form .form-row input[type="checkbox"] { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; accent-color: var(--tk-orange); flex: none; }

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice { list-style: none; margin: 0 0 1.5rem; padding: 1rem 1.25rem; background: var(--wp--preset--color--surface); border-left: 3px solid var(--tk-orange); color: var(--wp--preset--color--foreground); }
.woocommerce-error { border-left-color: #ff6b57; }
.woocommerce-error li, .woocommerce-message .button, .woocommerce-info .button { margin: 0.25rem 0; }
.woocommerce-message { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.woocommerce-message .button { order: 2; padding: 0.6rem 1.1rem; font-size: 1.0625rem; }
.woocommerce-notices-wrapper:empty { display: none; }

/* Cart and tables */
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; margin: 0 0 2rem; font-size: var(--wp--preset--font-size--small); }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border: 1px solid var(--tk-line); padding: 0.9rem 1rem; text-align: left; vertical-align: middle; }
.woocommerce table.shop_table thead th { background: var(--wp--preset--color--surface); font-family: var(--tk-display); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 1rem; }
.woocommerce table.shop_table .product-thumbnail img { width: 6rem; height: auto; background: var(--wp--preset--gradient--plinth); padding: 0.35rem; }
.woocommerce table.shop_table .product-remove a { color: var(--tk-orange); font-size: 1.5rem; text-decoration: none; }
.woocommerce table.shop_table td.actions { text-align: right; }
.woocommerce table.shop_table dl.variation { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--wp--preset--color--text-soft); }
.woocommerce table.shop_table dl.variation dt, .woocommerce table.shop_table dl.variation dd { display: inline; margin: 0; }
.woocommerce table.shop_table dl.variation dd p { display: inline; margin: 0; }
.woocommerce .cart_totals { max-width: 32rem; margin-left: auto; }
.woocommerce .cart_totals h2, form.woocommerce-checkout h2, form.woocommerce-checkout h3, #order_review_heading { font-size: var(--wp--preset--font-size--large); margin: 0 0 1rem; }
.wc-proceed-to-checkout { margin-top: 1rem; }
.wc-proceed-to-checkout a.checkout-button { display: block; }
.woocommerce .cart-empty, .woocommerce .return-to-shop { margin-bottom: 1.5rem; }

/* Checkout */
form.woocommerce-checkout { display: block; }
form.woocommerce-checkout .col2-set > div { width: 100%; float: none; }
form.woocommerce-checkout > .woocommerce-NoticeGroup { margin-bottom: 1.5rem; }
@media (min-width: 960px) {
	form.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 3rem; align-items: start; }
	form.woocommerce-checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; grid-row: 1; }
	form.woocommerce-checkout > #customer_details { grid-column: 1; grid-row: 2 / span 2; }
	form.woocommerce-checkout > #order_review_heading { grid-column: 2; grid-row: 2; }
	form.woocommerce-checkout > #order_review { grid-column: 2; grid-row: 3; }
}
.woocommerce-NoticeGroup-checkout .woocommerce-error { margin: 0; }
.woocommerce-NoticeGroup-checkout .woocommerce-error a { color: inherit; font-weight: 600; }
.checkout-inline-error-message, .woocommerce-checkout .woocommerce-error + .checkout-inline-error-message { margin: 0; color: #ff9b8a; font-size: 0.875rem; }
#customer_details h2, #customer_details h3, .woocommerce-additional-fields h2, .woocommerce-additional-fields h3 { margin-top: 0; }
.woocommerce-billing-fields__field-wrapper, .woocommerce-additional-fields__field-wrapper { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 1rem; }
@media (min-width: 600px) { .woocommerce-billing-fields__field-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.woocommerce-billing-fields__field-wrapper .form-row-wide { grid-column: 1 / -1; }
.woocommerce #order_review { background: var(--wp--preset--color--surface); border: 1px solid var(--tk-line); padding: 1.5rem; }
.woocommerce-checkout-payment { background: var(--wp--preset--color--card); padding: 1.25rem; margin-top: 1rem; }
.woocommerce-checkout-payment ul.payment_methods { list-style: none; margin: 0 0 1rem; padding: 0; }
.woocommerce-checkout-payment .payment_box { margin: 0.5rem 0 0; padding: 0; color: var(--wp--preset--color--text-soft); font-size: var(--wp--preset--font-size--small); }
.woocommerce-checkout-payment .payment_box p { margin: 0; }
.woocommerce-privacy-policy-text, .woocommerce-terms-and-conditions-wrapper { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--text-soft); margin-bottom: 1rem; }
.woocommerce #place_order { width: 100%; font-size: 1.375rem; }
.woocommerce-order { max-width: 52rem; }
.woocommerce-order-overview { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 0.75rem; }
.woocommerce-order-overview li { border-left: 2px solid var(--tk-orange); padding-left: 1rem; font-size: var(--wp--preset--font-size--small); text-transform: uppercase; letter-spacing: 0.06em; color: var(--wp--preset--color--text-soft); }
.woocommerce-order-overview li strong { display: block; color: var(--wp--preset--color--foreground); font-size: 1.125rem; text-transform: none; letter-spacing: 0; }
.tk-order-extra { margin-top: 1.5rem; }
.woocommerce-MyAccount-navigation ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; padding: 0; margin: 0 0 2rem; }
.woocommerce-MyAccount-navigation a { text-decoration: none; font-family: var(--tk-display); text-transform: uppercase; letter-spacing: 0.08em; }

/* Shop archive */
.tk-shop-head { display: flex; flex-direction: column; gap: var(--wp--preset--spacing--30); max-width: 1360px; margin-inline: auto; }
.tk-shop-head .tk-lead p { margin: 0; }
.tk-shop-head .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.tk-shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); }
.tk-card-body .wp-block-buttons { display: flex; }
.tk-card-title a { color: inherit; text-decoration: none; }
.tk-card-title a:hover { color: var(--tk-orange); }

/* Live search */
.tk-live-host { position: relative; }
.tk-live { position: absolute; top: calc(100% + 0.5rem); right: 0; z-index: 200; width: min(26rem, calc(100vw - 2rem)); background: var(--wp--preset--color--surface); border: 1px solid var(--tk-line); box-shadow: var(--wp--preset--shadow--lift); text-align: left; text-transform: none; letter-spacing: 0; font-family: var(--wp--preset--font-family--barlow); font-size: 1rem; font-weight: 400; }
.tk-live[hidden], .tk-live-all[hidden] { display: none; }
.tk-live-list { list-style: none; margin: 0; padding: 0.25rem 0; max-height: 24rem; overflow-y: auto; }
.tk-live-item[aria-selected="true"] { background: rgba(255, 115, 0, 0.16); outline: 1px solid var(--tk-orange); outline-offset: -1px; }
.tk-live-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1rem; color: var(--wp--preset--color--foreground); text-decoration: none; }
.tk-live-img { flex: none; width: 4rem; height: 2.5rem; object-fit: contain; background: var(--wp--preset--gradient--plinth); }
.tk-live-text { display: flex; flex-direction: column; min-width: 0; }
.tk-live-title { font-weight: 600; line-height: 1.25; }
.tk-live-meta { color: var(--tk-orange); font-size: 0.875rem; }
.tk-live-empty { padding: 0.9rem 1rem; color: var(--wp--preset--color--text-soft); }
.tk-live-all { display: block; padding: 0.75rem 1rem; border-top: 1px solid var(--tk-line); color: var(--tk-orange); font-weight: 600; text-decoration: none; }
.tk-live-all:hover { background: rgba(255, 255, 255, 0.04); }
@media (max-width: 600px) { .tk-live { position: fixed; left: 1rem; right: 1rem; top: auto; width: auto; margin-top: 0.5rem; } }

/* Shop polish */
.tk-kicker a { color: inherit; text-decoration: none; }
.tk-shop-head { max-width: 1200px; }
.tk-shop-head > * { margin: 0; }
.tk-shop-head h1 { max-width: 20ch; }
.tk-card-body .tk-price { margin-top: auto; padding-top: 0.5rem; }
.tk-card-body .tk-price + .wp-block-buttons { margin-top: 0 !important; padding-top: 0.5rem; }
.tk-buy .single_variation_wrap { display: flex; flex-direction: column; gap: 0.75rem; }
.tk-buy .single_variation:empty { display: none; }
.tk-buy .woocommerce-variation-add-to-cart { margin: 0; padding: 0; }
.tk-buy .woocommerce-variation.single_variation { margin: 0; }
.tk-buy form.cart .single_add_to_cart_button { margin: 0; }
.tk-buy .variations_form .variations { margin-bottom: 0.25rem; }
.tk-buy p:empty, .tk-shop-head p:empty { display: none; }
.tk-buy .reset_variations[style*="hidden"] { display: none; }
.tk-buy .quantity:has(input[type="hidden"]) { display: none; }
.tk-buy .variations_button > p, .tk-buy .woocommerce-variation-add-to-cart > p { margin: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.tk-buy table.variations td.value { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; }
.tk-buy form.cart > p { margin: 0; }
.tk-buy form.cart > p:not(:has(*)) { display: none; }

/* WooCommerce 10+ ships its own notice styling; keep the dark theme's. */
.woocommerce-error, .woocommerce-message, .woocommerce-info, .woocommerce-NoticeGroup .woocommerce-error { background: var(--wp--preset--color--surface) !important; color: var(--wp--preset--color--foreground) !important; border: 1px solid var(--tk-line) !important; border-left: 3px solid var(--tk-orange) !important; }
.woocommerce-error { border-left-color: #ff6b57 !important; }
.woocommerce-error a, .woocommerce-message a:not(.button), .woocommerce-info a:not(.button) { color: var(--wp--preset--color--orange-bright) !important; }
.woocommerce-error::before, .woocommerce-message::before, .woocommerce-info::before { color: var(--tk-orange) !important; }
.select2-container--default .select2-selection--single { display: flex; align-items: center; }
.select2-container--default .select2-selection--single .select2-selection__rendered { padding-left: 0; line-height: 1.4; }

.wc-block-components-notice-banner, .wc-block-components-notice-banner.is-error, .wc-block-components-notice-banner.is-success, .wc-block-components-notice-banner.is-info {
	background: var(--wp--preset--color--surface) !important; color: var(--wp--preset--color--foreground) !important; border: 1px solid var(--tk-line) !important; border-left: 3px solid var(--tk-orange) !important; border-radius: 0 !important; padding: 1rem 1.25rem !important; margin: 0 0 1.5rem;
}
.wc-block-components-notice-banner.is-error { border-left-color: #ff6b57 !important; }
.wc-block-components-notice-banner > svg { background: var(--tk-orange) !important; fill: var(--wp--preset--color--black) !important; border-radius: 50%; flex: none; }
.wc-block-components-notice-banner.is-error > svg { background: #ff6b57 !important; }
.wc-block-components-notice-banner a { color: var(--wp--preset--color--orange-bright) !important; }
.wc-block-components-notice-banner .wc-block-components-notice-banner__content ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }

.select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--wp--preset--color--text-soft); }
