/*
Theme Name: Telsiz Mağazası
Theme URI: https://telsizmagazasi.com/
Description: WooCommerce için sıfırdan hazırlanmış, mobil öncelikli bağımsız Telsiz Mağazası teması.
Author: TIAN Teknoloji
Author URI: https://tian.com.tr/
Version: 1.2.1
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: telsizmagazasi
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--tm-navy: #17212b;
	--tm-navy-deep: #0e151c;
	--tm-cyan: #00c9e8;
	--tm-cyan-dark: #009db7;
	--tm-surface: #f4f7fa;
	--tm-white: #ffffff;
	--tm-ink: #263442;
	--tm-muted: #667583;
	--tm-line: #dce7ef;
	--tm-success: #16835c;
	--tm-warning: #f2a51a;
	--tm-radius-sm: 10px;
	--tm-radius: 18px;
	--tm-radius-lg: 28px;
	--tm-shadow-sm: 0 8px 24px rgba(14, 21, 28, 0.07);
	--tm-shadow: 0 20px 50px rgba(14, 21, 28, 0.12);
	--tm-shell: min(1200px, calc(100% - 40px));
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: 16px;
}

body {
	margin: 0;
}

img,
svg {
	display: block;
	max-width: 100%;
}

button,
input,
select,
textarea {
	font: inherit;
}

h1,
h2,
h3,
h4,
p {
	overflow-wrap: break-word;
}

html {
	scroll-behavior: smooth;
}

body.tm-storefront {
	background: var(--tm-white);
	color: var(--tm-ink);
	font-family: Inter, "Segoe UI", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

body.tm-storefront a {
	text-underline-offset: 0.16em;
}

body.tm-storefront :focus-visible {
	outline: 3px solid rgba(0, 201, 232, 0.5);
	outline-offset: 3px;
}

/* Standalone store header */
.tm-site-header {
	position: relative;
	z-index: 50;
	background: var(--tm-navy);
	color: var(--tm-line);
}

.tm-topbar {
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: var(--tm-navy-deep);
}

.tm-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	min-height: 36px;
	font-size: 0.75rem;
}

.tm-topbar__inner p {
	margin: 0;
}

.tm-topbar__links {
	display: flex;
	align-items: center;
	gap: 18px;
}

.tm-topbar a {
	color: var(--tm-line);
	text-decoration: none;
}

.tm-topbar a:hover {
	color: var(--tm-cyan);
}

.tm-header-main__inner {
	display: grid;
	grid-template-columns: minmax(205px, 285px) minmax(260px, 1fr) auto;
	align-items: center;
	gap: clamp(20px, 3vw, 42px);
	min-height: 86px;
}

.tm-site-branding {
	display: flex;
	align-items: center;
	min-width: 0;
}

.tm-site-branding .custom-logo-link,
.tm-site-branding .tm-fallback-logo {
	display: inline-flex;
	align-items: center;
}

.tm-site-branding .custom-logo {
	width: auto;
	max-width: min(285px, 42vw);
	max-height: 58px;
	object-fit: contain;
}

.tm-site-title {
	margin: 0;
	color: var(--tm-white);
	font-size: 1.5rem;
	font-weight: 900;
}

.tm-site-title a {
	color: inherit;
	text-decoration: none;
}

.tm-header-search {
	min-width: 0;
}

.tm-header-search form,
.tm-search-form {
	position: relative;
	display: flex;
	width: 100%;
	margin: 0;
}

.tm-header-search input[type="search"],
.tm-search-form input[type="search"] {
	width: 100%;
	height: 48px;
	padding: 0 52px 0 18px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.09);
	color: var(--tm-white);
	outline: 0;
}

.tm-header-search input[type="search"]::placeholder {
	color: #b9c8d3;
}

.tm-header-search input[type="search"]:focus {
	border-color: var(--tm-cyan);
	box-shadow: 0 0 0 3px rgba(0, 201, 232, 0.13);
}

.tm-header-search button,
.tm-search-form button {
	position: absolute;
	top: 4px;
	right: 4px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--tm-cyan);
	color: var(--tm-navy-deep);
	cursor: pointer;
}

.tm-header-search button svg,
.tm-search-form button svg {
	width: 18px;
	height: 18px;
}

.tm-header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.tm-header-action {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	color: var(--tm-line);
	text-decoration: none;
}

.tm-header-action:hover {
	border-color: var(--tm-cyan);
	color: var(--tm-cyan);
}

.tm-header-action svg {
	width: 20px;
	height: 20px;
}

.tm-cart-count {
	position: absolute;
	top: -4px;
	right: -5px;
	display: grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding-inline: 5px;
	border: 2px solid var(--tm-navy);
	border-radius: 999px;
	background: var(--tm-cyan);
	color: var(--tm-navy-deep);
	font-size: 0.66rem;
	font-weight: 900;
}

.tm-nav-wrap {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tm-nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 52px;
}

.tm-primary-nav ul {
	display: flex;
	align-items: center;
	gap: clamp(20px, 3vw, 34px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tm-primary-nav li {
	position: relative;
}

.tm-primary-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	color: var(--tm-line);
	font-size: 0.88rem;
	font-weight: 750;
	text-decoration: none;
}

.tm-primary-nav a:hover,
.tm-primary-nav .current-menu-item > a,
.tm-primary-nav .current_page_item > a {
	color: var(--tm-cyan);
}

.tm-primary-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: -18px;
	display: none;
	align-items: stretch;
	min-width: 220px;
	padding: 10px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	background: var(--tm-navy);
	box-shadow: var(--tm-shadow);
}

.tm-primary-nav li:hover > .sub-menu,
.tm-primary-nav li:focus-within > .sub-menu {
	display: block;
}

.tm-primary-nav .sub-menu a {
	min-height: 40px;
	padding: 8px 10px;
	border-radius: 7px;
}

.tm-primary-nav .sub-menu a:hover {
	background: rgba(255, 255, 255, 0.06);
}

.tm-nav-shop-link {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 8px 15px;
	border-radius: 999px;
	background: var(--tm-cyan);
	color: var(--tm-navy-deep);
	font-size: 0.8rem;
	font-weight: 850;
	text-decoration: none;
}

.tm-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 50%;
	background: transparent;
	color: var(--tm-white);
	cursor: pointer;
}

.tm-menu-toggle svg {
	width: 22px;
	height: 22px;
}

/* Shared components */
.tm-shell {
	width: var(--tm-shell);
	margin-inline: auto;
}

.tm-section {
	padding-block: clamp(70px, 8vw, 112px);
}

.tm-section--surface {
	background: var(--tm-surface);
}

.tm-section--dark {
	background: var(--tm-navy-deep);
	color: var(--tm-white);
}

.tm-section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 34px;
}

.tm-kicker {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 13px;
	color: var(--tm-cyan-dark);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
}

.tm-section--dark .tm-kicker,
.tm-hero .tm-kicker {
	color: var(--tm-cyan);
}

.tm-kicker::before {
	width: 26px;
	height: 3px;
	background: currentColor;
	border-radius: 99px;
	content: "";
}

.tm-section-title {
	max-width: 760px;
	margin: 0;
	color: var(--tm-navy);
	font-size: clamp(2rem, 4.5vw, 3.6rem);
	font-weight: 850;
	letter-spacing: -0.045em;
	line-height: 1.06;
}

.tm-section--dark .tm-section-title {
	color: var(--tm-white);
}

.tm-section-copy {
	max-width: 650px;
	margin: 14px 0 0;
	color: var(--tm-muted);
	font-size: 1.04rem;
	line-height: 1.75;
}

.tm-section--dark .tm-section-copy {
	color: var(--tm-line);
}

.tm-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	color: var(--tm-navy);
	font-weight: 800;
	text-decoration: none;
}

.tm-link:hover {
	color: var(--tm-cyan-dark);
}

.tm-button,
body.tm-storefront .wp-element-button,
body.tm-storefront .woocommerce a.button,
body.tm-storefront .woocommerce button.button,
body.tm-storefront .woocommerce input.button,
body.tm-storefront .woocommerce #respond input#submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 13px 22px;
	border: 1px solid var(--tm-cyan);
	border-radius: 999px;
	background: var(--tm-cyan);
	box-shadow: none;
	color: var(--tm-navy-deep);
	font-size: 0.96rem;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.tm-button:hover,
body.tm-storefront .wp-element-button:hover,
body.tm-storefront .woocommerce a.button:hover,
body.tm-storefront .woocommerce button.button:hover,
body.tm-storefront .woocommerce input.button:hover,
body.tm-storefront .woocommerce #respond input#submit:hover {
	border-color: #26d7f1;
	background: #26d7f1;
	color: var(--tm-navy-deep);
	transform: translateY(-2px);
}

.tm-button--ghost {
	border-color: rgba(255, 255, 255, 0.52);
	background: transparent;
	color: var(--tm-white);
}

.tm-button--ghost:hover {
	border-color: var(--tm-white);
	background: var(--tm-white);
	color: var(--tm-navy-deep);
}

/* Homepage hero */
.tm-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 77% 30%, rgba(0, 201, 232, 0.18), transparent 25%),
		linear-gradient(115deg, var(--tm-navy-deep) 0%, var(--tm-navy) 52%, #1f4960 100%);
	color: var(--tm-white);
}

.tm-hero::after {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: 48px 48px;
	content: "";
	pointer-events: none;
}

.tm-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
	align-items: center;
	gap: clamp(42px, 6vw, 92px);
	min-height: clamp(590px, 72vh, 760px);
	padding-block: clamp(70px, 9vw, 120px);
}

.tm-hero__title {
	max-width: 780px;
	margin: 0;
	color: var(--tm-white);
	font-size: clamp(2.8rem, 6vw, 5.3rem);
	font-weight: 900;
	letter-spacing: -0.058em;
	line-height: 0.98;
}

.tm-hero__title span {
	color: var(--tm-cyan);
}

.tm-hero__copy {
	max-width: 660px;
	margin: 25px 0 0;
	color: var(--tm-line);
	font-size: clamp(1.05rem, 1.5vw, 1.22rem);
	line-height: 1.72;
}

.tm-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 13px;
	margin-top: 33px;
}

.tm-hero__visual {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 440px;
}

.tm-hero__visual::before,
.tm-hero__visual::after {
	position: absolute;
	border: 1px solid rgba(0, 201, 232, 0.34);
	border-radius: 50%;
	content: "";
}

.tm-hero__visual::before {
	width: 410px;
	height: 410px;
}

.tm-hero__visual::after {
	width: 325px;
	height: 325px;
}

.tm-hero-product {
	position: relative;
	z-index: 2;
	width: min(100%, 370px);
	padding: 20px 20px 22px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--tm-radius-lg);
	background: rgba(255, 255, 255, 0.1);
	box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
	backdrop-filter: blur(16px);
}

.tm-hero-product__image {
	display: grid;
	place-items: center;
	min-height: 285px;
	border-radius: 20px;
	background: var(--tm-white);
}

.tm-hero-product__image img {
	width: 100%;
	max-height: 280px;
	object-fit: contain;
}

.tm-hero-product__meta {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	padding: 19px 4px 0;
}

.tm-hero-product__label {
	display: block;
	margin-bottom: 5px;
	color: var(--tm-cyan);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.tm-hero-product__name {
	margin: 0;
	color: var(--tm-white);
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.32;
}

.tm-hero-product__price {
	flex: 0 0 auto;
	color: var(--tm-white);
	font-size: 1.05rem;
	font-weight: 800;
}

.tm-hero-product__price del {
	display: none;
}

.tm-hero-product__price ins {
	text-decoration: none;
}

.tm-radio-placeholder {
	display: grid;
	place-items: center;
	width: 250px;
	height: 320px;
	color: var(--tm-cyan);
}

.tm-radio-placeholder svg {
	width: 100%;
	height: 100%;
}

/* Trust row */
.tm-trust {
	position: relative;
	z-index: 4;
	margin-top: -28px;
}

.tm-trust__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius);
	background: var(--tm-white);
	box-shadow: var(--tm-shadow);
}

.tm-trust__item {
	display: flex;
	align-items: center;
	gap: 13px;
	min-width: 0;
	padding: 22px 25px;
}

.tm-trust__item + .tm-trust__item {
	border-left: 1px solid var(--tm-line);
}

.tm-trust__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(0, 201, 232, 0.12);
	color: var(--tm-cyan-dark);
	font-size: 1rem;
	font-weight: 900;
}

.tm-trust__item strong,
.tm-trust__item span {
	display: block;
}

.tm-trust__item strong {
	color: var(--tm-navy);
	font-size: 0.94rem;
}

.tm-trust__item span {
	margin-top: 2px;
	color: var(--tm-muted);
	font-size: 0.78rem;
}

/* Categories */
.tm-category-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.tm-category-card {
	position: relative;
	overflow: hidden;
	min-height: 300px;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius);
	background: var(--tm-white);
	box-shadow: var(--tm-shadow-sm);
	color: var(--tm-navy);
	text-decoration: none;
	transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.tm-category-card:hover {
	border-color: rgba(0, 201, 232, 0.7);
	box-shadow: var(--tm-shadow);
	color: var(--tm-navy);
	transform: translateY(-5px);
}

.tm-category-card__image {
	display: grid;
	place-items: center;
	height: 190px;
	background: linear-gradient(145deg, #ffffff, #edf4f7);
}

.tm-category-card__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 220ms ease;
}

.tm-category-card:hover .tm-category-card__image img {
	transform: scale(1.035);
}

.tm-category-card__placeholder {
	display: grid;
	place-items: center;
	width: 82px;
	height: 82px;
	border-radius: 24px;
	background: var(--tm-navy);
	color: var(--tm-cyan);
	font-size: 2rem;
	font-weight: 900;
}

.tm-category-card__body {
	padding: 22px;
}

.tm-category-card__name {
	display: block;
	font-size: 1.05rem;
	font-weight: 850;
	line-height: 1.3;
}

.tm-category-card__count {
	display: block;
	margin-top: 5px;
	color: var(--tm-muted);
	font-size: 0.83rem;
}

/* Product loop */
body.tm-storefront .woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
}

body.tm-storefront .woocommerce ul.products::before,
body.tm-storefront .woocommerce ul.products::after {
	display: none;
}

body.tm-storefront .woocommerce ul.products li.product {
	position: relative;
	display: flex;
	flex-direction: column;
	float: none;
	width: auto;
	min-width: 0;
	margin: 0;
	padding: 16px 16px 18px;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius);
	background: var(--tm-white);
	box-shadow: var(--tm-shadow-sm);
	transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

body.tm-storefront .woocommerce ul.products li.product:hover {
	border-color: rgba(0, 201, 232, 0.62);
	box-shadow: var(--tm-shadow);
	transform: translateY(-4px);
}

body.tm-storefront .woocommerce ul.products li.product .woocommerce-LoopProduct-link {
	color: var(--tm-navy);
	text-decoration: none;
}

body.tm-storefront .woocommerce ul.products li.product a img {
	width: 100%;
	height: 260px;
	max-width: 100%;
	max-height: 260px;
	padding: 16px;
	margin: 0 0 17px;
	border-radius: 13px;
	background: linear-gradient(145deg, #ffffff, #f1f5f7);
	object-fit: contain;
	object-position: center;
}

/* Keep mixed portrait, landscape and square source photos inside equal cards. */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	overflow: hidden;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link {
	display: block;
	width: 100%;
	min-width: 0;
}

.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
	display: block !important;
	width: 100% !important;
	height: 260px !important;
	max-width: 100% !important;
	max-height: 260px !important;
	padding: 16px !important;
	margin: 0 0 17px !important;
	border-radius: 13px;
	background: linear-gradient(145deg, #ffffff, #f1f5f7);
	object-fit: contain !important;
	object-position: center !important;
}

body.tm-storefront .woocommerce ul.products li.product .woocommerce-loop-product__title {
	min-height: 2.72em;
	margin: 0;
	padding: 0;
	color: var(--tm-navy);
	font-size: 0.98rem;
	font-weight: 800;
	line-height: 1.36;
}

.tm-loop-brand {
	margin: 0 0 7px;
	color: var(--tm-cyan-dark);
	font-size: 0.7rem;
	font-weight: 850;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.tm-storefront .woocommerce ul.products li.product .price {
	margin: 13px 0 16px;
	color: var(--tm-navy);
	font-size: 1.12rem;
	font-weight: 850;
}

body.tm-storefront .woocommerce ul.products li.product .price del {
	color: var(--tm-muted);
	font-size: 0.8rem;
	font-weight: 600;
}

body.tm-storefront .woocommerce ul.products li.product .price ins {
	color: var(--tm-navy);
	text-decoration: none;
}

body.tm-storefront .woocommerce ul.products li.product .button {
	width: 100%;
	margin-top: auto;
}

body.tm-storefront .woocommerce span.onsale {
	top: 25px;
	left: 25px;
	min-width: auto;
	min-height: auto;
	padding: 7px 11px;
	border-radius: 999px;
	background: var(--tm-cyan);
	color: var(--tm-navy-deep);
	font-size: 0.72rem;
	font-weight: 900;
	line-height: 1;
}

.tm-empty-products {
	padding: 38px;
	border: 1px dashed #b8c7d2;
	border-radius: var(--tm-radius);
	background: var(--tm-white);
	color: var(--tm-muted);
	text-align: center;
}

/* Choice guide */
.tm-guide-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.tm-guide-card {
	position: relative;
	padding: 31px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--tm-radius);
	background: rgba(255, 255, 255, 0.055);
}

.tm-guide-card__number {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: 23px;
	border-radius: 50%;
	background: var(--tm-cyan);
	color: var(--tm-navy-deep);
	font-size: 0.86rem;
	font-weight: 900;
}

.tm-guide-card h3 {
	margin: 0;
	color: var(--tm-white);
	font-size: 1.35rem;
	font-weight: 850;
}

.tm-guide-card p {
	margin: 12px 0 0;
	color: #b9c8d3;
	line-height: 1.7;
}

/* Brands */
.tm-brand-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 13px;
}

.tm-brand-card {
	display: grid;
	place-items: center;
	min-height: 104px;
	padding: 19px;
	border: 1px solid var(--tm-line);
	border-radius: 15px;
	background: var(--tm-white);
}

.tm-brand-card--dark {
	border-color: var(--tm-navy);
	background: var(--tm-navy);
}

.tm-brand-card img {
	width: 100%;
	max-width: 150px;
	height: 52px;
	object-fit: contain;
}

.tm-brand-card__text {
	color: var(--tm-navy);
	font-size: 1rem;
	font-weight: 900;
	letter-spacing: 0.03em;
	text-align: center;
}

.tm-brand-card--dark .tm-brand-card__text {
	color: var(--tm-white);
}

/* CTA */
.tm-cta {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 32px;
	padding: clamp(34px, 5vw, 58px);
	border-radius: var(--tm-radius-lg);
	background: linear-gradient(120deg, var(--tm-navy) 0%, #1b3e50 100%);
	color: var(--tm-white);
}

.tm-cta h2 {
	margin: 0;
	color: var(--tm-white);
	font-size: clamp(1.8rem, 4vw, 3.25rem);
	font-weight: 900;
	letter-spacing: -0.04em;
	line-height: 1.05;
}

.tm-cta p {
	max-width: 690px;
	margin: 13px 0 0;
	color: var(--tm-line);
	line-height: 1.7;
}

/* WooCommerce detail, cart and checkout */
body.tm-storefront.woocommerce-page .tm-main-content {
	padding-block: clamp(48px, 7vw, 84px);
}

body.tm-storefront .woocommerce div.product div.images img {
	border-radius: var(--tm-radius);
	background: var(--tm-surface);
}

body.tm-storefront .woocommerce div.product .product_title {
	color: var(--tm-navy);
	font-size: clamp(2rem, 4vw, 3.2rem);
	font-weight: 900;
	letter-spacing: -0.045em;
	line-height: 1.05;
}

body.tm-storefront .woocommerce div.product p.price,
body.tm-storefront .woocommerce div.product span.price {
	color: var(--tm-navy);
	font-size: 1.55rem;
	font-weight: 900;
}

body.tm-storefront .woocommerce div.product form.cart .button {
	min-height: 54px;
	padding-inline: 28px;
}

.tm-product-reassurance {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin-top: 23px;
}

.tm-product-reassurance span {
	padding: 10px 9px;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius-sm);
	background: var(--tm-surface);
	color: var(--tm-ink);
	font-size: 0.76rem;
	font-weight: 750;
	text-align: center;
}

body.tm-storefront .woocommerce-tabs,
body.tm-storefront .related.products,
body.tm-storefront .up-sells.products {
	margin-top: 70px;
}

body.tm-storefront .woocommerce table.shop_table,
body.tm-storefront .woocommerce form.checkout_coupon,
body.tm-storefront .woocommerce form.login,
body.tm-storefront .woocommerce form.register,
body.tm-storefront .woocommerce-checkout-review-order,
body.tm-storefront .cart_totals {
	overflow: hidden;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius);
	background: var(--tm-white);
}

body.tm-storefront .woocommerce table.shop_table th,
body.tm-storefront .woocommerce table.shop_table td {
	padding: 16px;
	border-color: var(--tm-line);
}

body.tm-storefront .woocommerce form .form-row input.input-text,
body.tm-storefront .woocommerce form .form-row textarea,
body.tm-storefront .woocommerce form .form-row select,
body.tm-storefront .select2-container--default .select2-selection--single {
	min-height: 48px;
	border-color: #bdcbd5;
	border-radius: 10px;
	background: var(--tm-white);
}

body.tm-storefront .woocommerce form .form-row input.input-text:focus,
body.tm-storefront .woocommerce form .form-row textarea:focus {
	border-color: var(--tm-cyan-dark);
	box-shadow: 0 0 0 3px rgba(0, 201, 232, 0.14);
}

body.tm-storefront .woocommerce-message,
body.tm-storefront .woocommerce-info {
	border-top-color: var(--tm-cyan);
	background: var(--tm-surface);
}

body.tm-storefront .woocommerce-message::before,
body.tm-storefront .woocommerce-info::before {
	color: var(--tm-cyan-dark);
}

body.tm-storefront .woocommerce-error {
	border-top-color: #d74242;
}

/* Generic WordPress content */
.tm-main-content {
	min-height: 55vh;
	padding-block: clamp(52px, 8vw, 96px);
}

.tm-shell--narrow {
	width: min(900px, calc(100% - 40px));
}

.tm-page-header {
	max-width: 820px;
	margin-bottom: clamp(30px, 5vw, 52px);
}

.tm-page-header h1,
.tm-entry__header h1 {
	margin: 0;
	color: var(--tm-navy);
	font-size: clamp(2.1rem, 5vw, 4rem);
	font-weight: 900;
	letter-spacing: -0.05em;
	line-height: 1.04;
}

.tm-page-description {
	max-width: 700px;
	color: var(--tm-muted);
	font-size: 1.02rem;
	line-height: 1.7;
}

.tm-content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: clamp(32px, 5vw, 72px);
}

.tm-entry,
.tm-post-card {
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius);
	background: var(--tm-white);
	box-shadow: var(--tm-shadow-sm);
}

.tm-entry {
	overflow: hidden;
}

.tm-entry__header,
.tm-entry__content,
.tm-entry__footer {
	padding-inline: clamp(24px, 5vw, 64px);
}

.tm-entry__header {
	padding-top: clamp(32px, 6vw, 68px);
	padding-bottom: 24px;
}

.tm-entry__content {
	padding-bottom: clamp(36px, 6vw, 72px);
}

.tm-entry-title,
.tm-page-title {
	margin: 0;
	color: var(--tm-navy);
	font-size: clamp(2.1rem, 5vw, 4rem);
	font-weight: 900;
	letter-spacing: -0.05em;
	line-height: 1.04;
}

.tm-entry-title a {
	color: inherit;
	text-decoration: none;
}

.tm-entry-meta {
	margin-top: 13px;
	color: var(--tm-muted);
	font-size: 0.82rem;
}

.tm-entry__content,
.tm-entry__content p,
.tm-entry__content li {
	line-height: 1.75;
}

.tm-entry__content > *:first-child {
	margin-top: 0;
}

.tm-entry__content a {
	color: var(--tm-cyan-dark);
}

.tm-entry__content img {
	border-radius: var(--tm-radius-sm);
}

.tm-entry__featured {
	background: var(--tm-surface);
}

.tm-entry__featured img {
	width: 100%;
	height: auto;
	object-fit: cover;
}

.tm-post-list {
	display: grid;
	gap: 22px;
}

.tm-post-card {
	display: grid;
	grid-template-columns: minmax(180px, 0.38fr) minmax(0, 0.62fr);
	overflow: hidden;
}

.tm-post-card__image {
	min-height: 230px;
	background: var(--tm-surface);
}

.tm-post-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tm-post-card__body {
	padding: clamp(24px, 4vw, 42px);
}

.tm-post-card h2 {
	margin: 0;
	color: var(--tm-navy);
	font-size: clamp(1.35rem, 3vw, 2rem);
	font-weight: 850;
	letter-spacing: -0.025em;
	line-height: 1.18;
}

.tm-post-card h2 a {
	color: inherit;
	text-decoration: none;
}

.tm-post-card p {
	color: var(--tm-muted);
	line-height: 1.7;
}

.tm-sidebar .widget {
	margin-bottom: 20px;
	padding: 24px;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius);
	background: var(--tm-surface);
}

.tm-sidebar .widget-title {
	margin-top: 0;
	color: var(--tm-navy);
	font-size: 1rem;
	font-weight: 850;
}

.tm-sidebar ul {
	margin: 0;
	padding-left: 18px;
}

.tm-pagination,
.pagination {
	margin-top: 34px;
}

.tm-pagination .nav-links,
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tm-pagination .page-numbers,
.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding-inline: 10px;
	border: 1px solid var(--tm-line);
	border-radius: 50%;
	color: var(--tm-navy);
	text-decoration: none;
}

.tm-pagination .page-numbers.current,
.tm-pagination a.page-numbers:hover,
.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
	border-color: var(--tm-cyan);
	background: var(--tm-cyan);
	color: var(--tm-navy-deep);
}

.tm-main-content .tm-search-form {
	max-width: 520px;
	margin: 24px auto;
}

.tm-main-content .tm-search-form input[type="search"] {
	border-color: var(--tm-line);
	background: var(--tm-white);
	color: var(--tm-ink);
}

.tm-main-content .tm-search-form input[type="search"]::placeholder {
	color: var(--tm-muted);
}

.tm-main-content .tm-search-form button {
	width: auto;
	min-width: 62px;
	padding-inline: 14px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 850;
}

.tm-post-navigation {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 24px;
}

.tm-post-navigation div:last-child {
	text-align: right;
}

.tm-post-navigation a {
	color: var(--tm-cyan-dark);
	font-weight: 750;
	text-decoration: none;
}

.tm-comments {
	margin-top: 32px;
	padding: clamp(24px, 5vw, 48px);
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius);
	background: var(--tm-white);
}

.tm-comments__title,
.tm-comments .comment-reply-title {
	margin-top: 0;
	color: var(--tm-navy);
}

.tm-comment-list {
	padding-left: 22px;
}

.tm-comment-list li {
	margin-bottom: 22px;
}

.tm-comments input:not([type="submit"]),
.tm-comments textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius-sm);
}

.tm-comments input[type="submit"] {
	padding: 13px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--tm-cyan);
	color: var(--tm-navy-deep);
	font-weight: 850;
	cursor: pointer;
}

.tm-empty-state {
	padding: clamp(36px, 7vw, 74px);
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius-lg);
	background: var(--tm-surface);
	text-align: center;
}

.tm-empty-state h1 {
	margin-top: 0;
	color: var(--tm-navy);
	font-size: clamp(2.2rem, 7vw, 5rem);
	font-weight: 900;
	letter-spacing: -0.055em;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 10px;
	left: 10px;
	z-index: 100000;
	display: block;
	width: auto;
	height: auto;
	padding: 12px 16px;
	clip: auto;
	background: var(--tm-white);
	color: var(--tm-navy);
}

.alignwide {
	max-width: 1200px;
	margin-right: auto;
	margin-left: auto;
}

.alignfull {
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw);
}

/* Footer */
.tm-site-footer {
	background: var(--tm-navy-deep);
	color: #b9c8d3;
}

.tm-footer-main {
	padding-block: clamp(56px, 7vw, 88px);
}

.tm-footer-grid {
	display: grid;
	grid-template-columns: minmax(250px, 1.45fr) repeat(3, minmax(150px, 0.75fr));
	gap: clamp(30px, 5vw, 70px);
}

.tm-footer-brand img {
	width: min(300px, 100%);
	max-height: 60px;
	object-fit: contain;
}

.tm-footer-brand p {
	max-width: 420px;
	margin: 22px 0 0;
	line-height: 1.75;
}

.tm-footer-heading {
	margin: 0 0 17px;
	color: var(--tm-white);
	font-size: 0.9rem;
	font-weight: 850;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.tm-footer-menu,
.tm-footer-contact,
.tm-site-footer .menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tm-footer-menu li,
.tm-footer-contact li,
.tm-site-footer .menu li {
	margin-bottom: 10px;
}

.tm-site-footer a {
	color: var(--tm-line);
	text-decoration: none;
}

.tm-site-footer a:hover {
	color: var(--tm-cyan);
}

.tm-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.tm-footer-bottom__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	min-height: 68px;
	font-size: 0.78rem;
}

.tm-footer-bottom p {
	margin: 0;
}

.tm-footer-bottom .tm-footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
}

.tm-footer-bottom .tm-footer-menu li {
	margin: 0;
}

@media (max-width: 1024px) {
	.tm-header-main__inner {
		grid-template-columns: minmax(200px, 260px) minmax(220px, 1fr) auto;
		gap: 18px;
	}

	.tm-hero__inner {
		grid-template-columns: 1fr 0.78fr;
	}

	.tm-trust__grid,
	.tm-category-grid,
	body.tm-storefront .woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tm-trust__item:nth-child(3) {
		border-left: 0;
		border-top: 1px solid var(--tm-line);
	}

	.tm-trust__item:nth-child(4) {
		border-top: 1px solid var(--tm-line);
	}

	.tm-brand-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

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

@media (max-width: 900px) {
	.tm-header-main__inner {
		grid-template-columns: minmax(0, 1fr) auto auto;
		padding-block: 13px;
	}

	.tm-header-search {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.tm-menu-toggle {
		display: inline-flex;
	}

	.tm-nav-wrap {
		display: none;
	}

	.tm-nav-wrap.is-open {
		display: block;
	}

	.tm-nav-inner {
		display: block;
		padding-block: 9px 18px;
	}

	.tm-primary-nav ul {
		display: block;
	}

	.tm-primary-nav a {
		width: 100%;
		min-height: 44px;
	}

	.tm-primary-nav .sub-menu {
		position: static;
		display: block;
		min-width: 0;
		padding: 0 0 0 18px;
		border: 0;
		background: transparent;
		box-shadow: none;
	}

	.tm-nav-shop-link {
		justify-content: center;
		width: 100%;
		margin-top: 10px;
	}

	.tm-content-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	:root {
		--tm-shell: min(100% - 28px, 1200px);
	}

	.tm-section {
		padding-block: 64px;
	}

	.tm-site-branding .custom-logo {
		max-width: 205px;
		max-height: 46px;
	}

	.tm-hero__inner {
		grid-template-columns: 1fr;
		min-height: auto;
		padding-block: 64px 92px;
	}

	.tm-hero__title {
		font-size: clamp(2.55rem, 13vw, 4rem);
	}

	.tm-hero__visual {
		min-height: 390px;
	}

	.tm-hero__visual::before {
		width: 340px;
		height: 340px;
	}

	.tm-hero__visual::after {
		width: 270px;
		height: 270px;
	}

	.tm-section-heading {
		align-items: start;
		flex-direction: column;
	}

	.tm-guide-grid {
		grid-template-columns: 1fr;
	}

	.tm-cta {
		grid-template-columns: 1fr;
	}

	.tm-post-card {
		grid-template-columns: 1fr;
	}

	.tm-post-card__image {
		min-height: 210px;
	}

	.tm-post-navigation {
		grid-template-columns: 1fr;
	}

	.tm-post-navigation div:last-child {
		text-align: left;
	}

	.tm-footer-bottom__inner {
		align-items: flex-start;
		flex-direction: column;
		justify-content: center;
		padding-block: 18px;
	}
}

@media (max-width: 520px) {
	.tm-topbar__inner {
		justify-content: center;
		text-align: center;
	}

	.tm-topbar__links {
		display: none;
	}

	.tm-header-main__inner {
		grid-template-columns: minmax(0, 1fr) auto auto;
		gap: 7px;
	}

	.tm-header-actions {
		gap: 5px;
	}

	.tm-header-action,
	.tm-menu-toggle {
		width: 40px;
		height: 40px;
	}

	.tm-site-branding .custom-logo {
		max-width: min(175px, 47vw);
	}

	.tm-hero__actions,
	.tm-hero__actions .tm-button,
	.tm-cta .tm-button {
		width: 100%;
	}

	.tm-trust__grid,
	.tm-category-grid,
	body.tm-storefront .woocommerce ul.products,
	.tm-brand-grid,
	.tm-product-reassurance {
		grid-template-columns: 1fr;
	}

	.tm-trust__item + .tm-trust__item,
	.tm-trust__item:nth-child(3) {
		border-top: 1px solid var(--tm-line);
		border-left: 0;
	}

	.tm-brand-card {
		min-height: 92px;
	}

	.tm-category-card {
		min-height: 270px;
	}

	.tm-category-card__image {
		height: 165px;
	}

	.tm-footer-grid {
		grid-template-columns: 1fr;
	}

	.woocommerce ul.products li.product a img,
	.woocommerce-page ul.products li.product a img {
		height: 300px !important;
		max-height: 300px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
