/* ==========================================================================
   TSP Store — main stylesheet
   Colours come from CSS variables set in Customizer (see inc/enqueue.php)
   ========================================================================== */

:root {
	--tsp-primary: #113c58;
	--tsp-accent: #f76f6a;
	--tsp-heading: #0f3d6e;
	--tsp-text: #333;
	--tsp-bg: #f5f6f8;
	--tsp-muted: #6b7280;
	--tsp-border: #e5e8ec;
	--tsp-surface: #fff;
	--tsp-container: 1200px;
	--tsp-radius: 6px;
	--tsp-slider-h: 420px;
	--tsp-header-h: 130px;
	--tsp-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--tsp-shadow: 0 10px 30px rgba(17, 60, 88, .12);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--tsp-header-h) + 10px); }
body {
	margin: 0;
	font-family: var(--tsp-font);
	font-size: 15px;
	line-height: 1.6;
	color: var(--tsp-text);
	background: var(--tsp-bg);
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--tsp-accent); }
h1, h2, h3, h4, h5, h6 { color: var(--tsp-heading); line-height: 1.25; margin: 0 0 .6em; font-weight: 800; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--tsp-accent); outline-offset: 2px; }

.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 !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 100000;
	top: 8px; left: 8px; padding: 10px 16px; background: #fff; color: #111; border-radius: 4px;
}

.tsp-container { width: 100%; max-width: var(--tsp-container); margin: 0 auto; padding: 0 16px; }
.tsp-main { min-height: 50vh; }
.tsp-card-box { background: var(--tsp-surface); border-radius: calc(var(--tsp-radius) * 1.5); padding: 28px; }
.tsp-icon { flex: none; }

.tsp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 22px; border: 0; border-radius: var(--tsp-radius);
	background: var(--tsp-accent); color: #fff; font-weight: 700; line-height: 1.2;
	transition: filter .2s, transform .2s;
}
.tsp-btn:hover { color: #fff; filter: brightness(.93); }
.tsp-btn:active { transform: scale(.97); }
.tsp-btn--wa { background: #25d366; }
.tsp-btn--call { background: var(--tsp-primary); }
.tsp-btn--yt { background: #ff0000; padding: 8px 16px; font-size: 14px; }

/* ---------- Top bar ---------- */
.tsp-topbar { background: #0b2a3e; color: #cfe0ea; font-size: 13px; }
.tsp-topbar .tsp-container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.tsp-topbar a { display: inline-flex; align-items: center; gap: 6px; color: #fff; }

/* ---------- Header ---------- */
.tsp-header { position: relative; z-index: 100; background: #fff; transition: box-shadow .25s; }
.tsp-header--sticky { position: sticky; top: 0; }
.admin-bar .tsp-header--sticky { top: 32px; }
.tsp-header.is-scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, .1); }
.tsp-header__main { background: var(--tsp-primary); color: #fff; }
.tsp-header__inner { display: flex; align-items: center; gap: 32px; min-height: 86px; }
.tsp-logo { flex: none; }
.tsp-logo .custom-logo-link { display: block; }
.tsp-logo img { max-height: 52px; width: auto; }
.tsp-logo__text { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: .5px; }
.tsp-logo__text:hover { color: #fff; }
.tsp-header__search { flex: 1; max-width: 680px; margin: 0 auto; }

.tsp-search { position: relative; display: flex; width: 100%; }
.tsp-search input[type="search"] {
	flex: 1; min-width: 0; height: 46px; border: 0; padding: 0 16px;
	border-radius: var(--tsp-radius) 0 0 var(--tsp-radius);
	font-size: 16px; color: #222; background: #fff; outline: none; -webkit-appearance: none; appearance: none;
}
.tsp-search input[type="search"]::placeholder { color: #8a8f98; }
.tsp-search__btn {
	display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border: 0;
	border-radius: 0 var(--tsp-radius) var(--tsp-radius) 0;
	background: var(--tsp-accent); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .5px; text-transform: uppercase;
}
.tsp-search__btn:hover { filter: brightness(.94); }

.tsp-search__results {
	position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 200;
	background: #fff; color: #222; border-radius: var(--tsp-radius);
	box-shadow: 0 14px 40px rgba(0, 0, 0, .18); max-height: 70vh; overflow-y: auto;
}
.tsp-sr__item { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 8px 14px; border-bottom: 1px solid #f1f2f4; }
.tsp-sr__item img { width: 48px; height: 48px; object-fit: contain; }
.tsp-sr__item:hover, .tsp-sr__item.is-focused { background: #f6f8fa; color: inherit; }
.tsp-sr__name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.tsp-sr__price { font-size: 13px; font-weight: 800; color: var(--tsp-accent); white-space: nowrap; text-align: right; }
.tsp-sr__price del { display: block; color: #9aa1a9; font-weight: 400; font-size: 12px; }
.tsp-sr__price ins { text-decoration: none; }
.tsp-sr__all { display: block; padding: 11px 14px; text-align: center; font-weight: 700; color: var(--tsp-primary); background: #f6f8fa; }
.tsp-sr__empty { padding: 16px; text-align: center; color: #777; }

.tsp-header__actions { display: flex; align-items: center; gap: 22px; flex: none; }
.tsp-hicon { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 4px; border: 0; background: none; color: #fff; }
.tsp-hicon:hover { color: var(--tsp-accent); }
.tsp-hicon__label { font-size: 13px; line-height: 1.15; font-weight: 700; }
.tsp-badge-count {
	position: absolute; top: -4px; left: 20px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 9px; background: var(--tsp-accent); color: #fff;
	font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}
.tsp-badge-count[data-count="0"] { display: none; }

/* Category menu */
.tsp-catnav { background: #fff; border-bottom: 1px solid var(--tsp-border); }
.tsp-catnav ul { list-style: none; margin: 0; padding: 0; }
.tsp-catnav__list { display: flex; flex-wrap: wrap; }
.tsp-catnav__list > li { position: relative; }
.tsp-catnav__list > li > a { display: block; padding: 10px 10px; font-size: 14.5px; font-weight: 600; color: #333; }
.tsp-catnav__list > li:first-child > a { padding-left: 0; }
.tsp-catnav__list > li > a:hover,
.tsp-catnav__list > .current-menu-item > a,
.tsp-catnav__list > .current-menu-ancestor > a { color: var(--tsp-accent); }
.tsp-catnav .sub-menu {
	position: absolute; top: 100%; left: 0; z-index: 50; min-width: 220px; padding: 8px 0;
	background: #fff; border-radius: 0 0 var(--tsp-radius) var(--tsp-radius); box-shadow: var(--tsp-shadow);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.tsp-catnav li:hover > .sub-menu,
.tsp-catnav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.tsp-catnav .sub-menu a { display: block; padding: 7px 18px; font-size: 14px; }
.tsp-catnav .sub-menu .sub-menu { top: 0; left: 100%; border-radius: var(--tsp-radius); }

/* ---------- Drawers ---------- */
.tsp-overlay { position: fixed; inset: 0; z-index: 998; background: rgba(10, 20, 30, .5); opacity: 0; transition: opacity .25s; }
.tsp-overlay.is-visible { opacity: 1; }
.tsp-drawer {
	position: fixed; top: 0; bottom: 0; z-index: 999; width: min(360px, 88vw);
	display: flex; flex-direction: column; background: #fff;
	visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s;
}
.tsp-drawer--left { left: 0; transform: translateX(-100%); }
.tsp-drawer--right { right: 0; transform: translateX(100%); }
.tsp-drawer.is-open { transform: none; visibility: visible; transition: transform .3s ease, visibility 0s; }
.tsp-drawer__head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 14px 18px; padding-top: max(14px, env(safe-area-inset-top));
	background: var(--tsp-primary); color: #fff; font-weight: 800; font-size: 17px;
}
.tsp-drawer__head button { display: flex; padding: 4px; border: 0; background: none; color: #fff; }
.tsp-drawer__body { flex: 1; overflow-y: auto; padding: 6px 0 24px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.tsp-lock { overflow: hidden; }

.tsp-drawer-menu { list-style: none; margin: 0; padding: 0; }
.tsp-drawer-menu li { position: relative; border-bottom: 1px solid #f0f1f3; }
.tsp-drawer-menu a { display: block; padding: 13px 52px 13px 18px; font-weight: 600; color: #222; }
.tsp-drawer-menu .sub-menu { display: none; list-style: none; margin: 0; padding: 0 0 6px 12px; background: #fafbfc; }
.tsp-drawer-menu li.is-open > .sub-menu { display: block; }
.tsp-drawer-menu .sub-menu li { border: 0; }
.tsp-drawer-menu .sub-menu a { padding: 9px 18px; font-weight: 500; font-size: 14px; }
.tsp-sub-toggle {
	position: absolute; right: 6px; top: 5px; width: 40px; height: 38px; border: 0; background: none;
	display: flex; align-items: center; justify-content: center; color: #555; transition: transform .2s;
}
li.is-open > .tsp-sub-toggle { transform: rotate(180deg); }
.tsp-drawer__section-title { padding: 18px 18px 6px; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #8a8f98; }
.tsp-drawer__links a { display: flex; align-items: center; gap: 12px; padding: 11px 18px; font-weight: 600; }
.tsp-drawer__links svg { color: var(--tsp-primary); }

/* Mini cart in drawer */
.tsp-drawer--cart .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0 18px; }
.tsp-drawer--cart .woocommerce-mini-cart-item { position: relative; display: block; min-height: 84px; padding: 12px 30px 12px 0; border-bottom: 1px solid #eef0f2; }
.tsp-drawer--cart ul.product_list_widget li.woocommerce-mini-cart-item img { float: left !important; width: 60px !important; height: 60px !important; object-fit: contain; margin: 0 12px 0 0 !important; border: 1px solid #eef0f2; border-radius: var(--tsp-radius); box-shadow: none; }
.tsp-drawer--cart .woocommerce-mini-cart-item a:not(.remove) { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.tsp-drawer--cart .woocommerce-mini-cart-item .quantity { display: block; margin-top: 4px; font-size: 13px; color: #666; }
.tsp-drawer--cart .woocommerce-mini-cart-item .quantity .amount { color: var(--tsp-accent); font-weight: 700; }
.tsp-drawer--cart .woocommerce-mini-cart-item .remove {
	position: absolute; top: 12px; right: 0; width: 24px; height: 24px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; background: #f3f4f6; color: #666; font-size: 18px; line-height: 1;
}
.tsp-drawer--cart .woocommerce-mini-cart-item .remove:hover { background: #fee2e2; color: #dc2626; }
.tsp-drawer--cart .woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: 0; padding: 14px 18px; font-size: 16px; }
.tsp-drawer--cart .woocommerce-mini-cart__total .amount { color: var(--tsp-accent); font-weight: 800; }
.tsp-drawer--cart .woocommerce-mini-cart__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0 18px; }
.tsp-drawer--cart .woocommerce-mini-cart__buttons .button { text-align: center; }
.tsp-drawer--cart .woocommerce-mini-cart__buttons .checkout { background: var(--tsp-accent); }
.tsp-drawer--cart .woocommerce-mini-cart__empty-message { padding: 40px 18px; text-align: center; color: #777; }

/* ---------- Generic WooCommerce buttons ---------- */
.button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce-page a.button, .woocommerce-page button.button {
	display: inline-block; padding: .8em 1.3em; border: 0; border-radius: var(--tsp-radius);
	background: var(--tsp-primary); color: #fff; font-weight: 700; font-size: 14px; line-height: 1.3; transition: filter .2s;
}
.button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
	background: var(--tsp-primary); color: #fff; filter: brightness(1.15);
}
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.woocommerce .single_add_to_cart_button, .woocommerce a.checkout-button, .woocommerce #place_order {
	background: var(--tsp-accent) !important; color: #fff !important;
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { filter: brightness(.93); }

/* ---------- Bottom navigation (mobile) ---------- */
.tsp-bnav { display: none; }

/* ---------- Hero slider ---------- */
.tsp-hero { padding-top: 20px; }
.tsp-hero__grid { display: grid; gap: 16px; }
.tsp-hero__grid.has-banners { grid-template-columns: 2fr 1fr; }
.tsp-slider {
	position: relative; overflow: hidden; height: var(--tsp-slider-h);
	border-radius: calc(var(--tsp-radius) * 1.5); background: #dde3ea; touch-action: pan-y;
}
.tsp-slide {
	position: absolute; inset: 0; opacity: 0; visibility: hidden;
	transition: opacity .8s ease, transform .8s ease, visibility 0s linear .8s;
}
.tsp-slide.is-active { z-index: 2; opacity: 1; visibility: visible; transition: opacity .8s ease, transform .8s ease, visibility 0s; }
.tsp-slide picture, .tsp-slide__img, .tsp-slide picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tsp-slide.has-caption::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0, 0, 0, .45), transparent 70%); pointer-events: none; }
.tsp-slide--demo { background: linear-gradient(120deg, var(--tsp-primary), #1d6f9a 60%, var(--tsp-accent)); }
.tsp-slide--demo-1 { background: linear-gradient(120deg, #0b2a3e, var(--tsp-primary) 50%, #2a8fbd); }
.tsp-slide--demo-2 { background: linear-gradient(120deg, var(--tsp-accent), #c2410c); }
.tsp-slide--demo::after { display: none; }

/* Slide effect */
.tsp-slider--slide .tsp-slide { opacity: 1; transform: translateX(100%); }
.tsp-slider--slide .tsp-slide.is-active { transform: none; }
.tsp-slider--slide .tsp-slide.is-leaving { visibility: visible; transform: translateX(-100%); }
.tsp-slider--slide[data-dir="prev"] .tsp-slide { transform: translateX(-100%); }
.tsp-slider--slide[data-dir="prev"] .tsp-slide.is-active { transform: none; }
.tsp-slider--slide[data-dir="prev"] .tsp-slide.is-leaving { transform: translateX(100%); }
/* Zoom effect */
.tsp-slider--zoom .tsp-slide img { transform: scale(1.15); transition: transform 7s ease-out; }
.tsp-slider--zoom .tsp-slide.is-active img { transform: scale(1); }

.tsp-slide__caption { position: absolute; z-index: 2; left: 6%; top: 50%; transform: translateY(-50%); max-width: min(480px, 80%); color: #fff; }
.tsp-slide__caption > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.tsp-slide.is-active .tsp-slide__caption > * { opacity: 1; transform: none; }
.tsp-slide.is-active .tsp-slide__caption > :nth-child(1) { transition-delay: .25s; }
.tsp-slide.is-active .tsp-slide__caption > :nth-child(2) { transition-delay: .4s; }
.tsp-slide.is-active .tsp-slide__caption > :nth-child(3) { transition-delay: .55s; }
.tsp-slide.is-active .tsp-slide__caption > :nth-child(4) { transition-delay: .7s; }
.tsp-slide__eyebrow { display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 4px; background: var(--tsp-accent); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.tsp-slide__title { margin: 0 0 10px; color: #fff; font-size: clamp(22px, 3.4vw, 42px); }
.tsp-slide__text { margin: 0 0 18px; font-size: clamp(14px, 1.4vw, 17px); opacity: .92; }
.tsp-slide__link { position: absolute; inset: 0; z-index: 3; }

.tsp-slider__arrow {
	position: absolute; top: 50%; z-index: 5; transform: translateY(-50%);
	width: 42px; height: 42px; border: 0; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .92); color: #111; box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
	opacity: 0; transition: opacity .2s;
}
.tsp-slider:hover .tsp-slider__arrow, .tsp-slider__arrow:focus-visible { opacity: 1; }
.tsp-slider__arrow--prev { left: 14px; }
.tsp-slider__arrow--next { right: 14px; }
.tsp-slider__dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 5; display: flex; justify-content: center; gap: 8px; }
.tsp-slider__dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 5px; background: rgba(255, 255, 255, .55); transition: width .3s, background .3s; }
.tsp-slider__dot.is-active { width: 26px; background: #fff; }

.tsp-hero__banners { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.tsp-hero__banner { position: relative; display: block; overflow: hidden; min-height: 0; border-radius: calc(var(--tsp-radius) * 1.5); background: #e6ebf0; }
.tsp-hero__banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tsp-hero__banner:hover img { transform: scale(1.05); }
.tsp-hero__banner--demo { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 20px; color: #fff; background: linear-gradient(135deg, #1d6f9a, var(--tsp-primary)); }
.tsp-hero__banner--demo:nth-child(2) { background: linear-gradient(135deg, var(--tsp-accent), #b91c1c); }
.tsp-hero__banner--demo:hover { color: #fff; }
.tsp-hero__banner--demo strong { font-size: 20px; line-height: 1.2; }

/* ---------- Sections ---------- */
.tsp-section { padding: 28px 0; }
.tsp-section--tight { padding: 14px 0; }
.tsp-section__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.tsp-section__head--center { flex-direction: column; gap: 4px; text-align: center; margin-bottom: 20px; }
.tsp-section__title { flex: 1; margin: 0; font-size: clamp(18px, 2vw, 24px); }
.tsp-section__sub { margin: 0; color: var(--tsp-muted); font-size: 14px; }
.tsp-section__more { font-size: 14px; font-weight: 700; color: var(--tsp-accent); white-space: nowrap; }
.tsp-section__nav { display: inline-flex; gap: 6px; }
.tsp-nav-btn {
	width: 34px; height: 34px; border: 1px solid var(--tsp-border); border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #333; transition: .2s;
}
.tsp-nav-btn:hover { background: var(--tsp-primary); border-color: var(--tsp-primary); color: #fff; }

/* Category grid */
.tsp-cats { display: grid; grid-template-columns: repeat(var(--cols, 8), minmax(0, 1fr)); gap: 14px; }
.tsp-cat {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	padding: 18px 10px; text-align: center; background: #fff; border-radius: calc(var(--tsp-radius) * 1.5);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .04); transition: transform .2s, box-shadow .2s;
}
.tsp-cat:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--tsp-shadow); }
.tsp-cat__img { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; color: var(--tsp-primary); }
.tsp-cat__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tsp-cat__name { font-size: 13.5px; font-weight: 700; line-height: 1.3; color: #222; }
.tsp-cats--circle .tsp-cat { padding: 6px; background: transparent; box-shadow: none; }
.tsp-cats--circle .tsp-cat:hover { box-shadow: none; }
.tsp-cats--circle .tsp-cat__img { width: 88px; height: 88px; padding: 16px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }

/* Features */
.tsp-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tsp-feature { display: flex; align-items: center; gap: 14px; padding: 18px; background: #fff; border-radius: calc(var(--tsp-radius) * 1.5); }
.tsp-feature__icon {
	flex: none; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%;
	background: #fdeceb; background: color-mix(in srgb, var(--tsp-accent) 13%, #fff); color: var(--tsp-accent);
}
.tsp-feature strong { display: block; font-size: 15px; line-height: 1.3; color: var(--tsp-heading); }
.tsp-feature__text > span { font-size: 13px; color: var(--tsp-muted); }

/* Promo banner */
.tsp-promo a, .tsp-promo div { display: block; overflow: hidden; border-radius: calc(var(--tsp-radius) * 1.5); }
.tsp-promo img { width: 100%; transition: transform .5s; }
.tsp-promo a:hover img { transform: scale(1.02); }

/* YouTube */
.tsp-videos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tsp-yt-wrap { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: calc(var(--tsp-radius) * 1.5); background: #000; }
.tsp-yt { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; }
.tsp-yt img { width: 100%; height: 100%; object-fit: cover; opacity: .88; transition: opacity .2s, transform .4s; }
.tsp-yt:hover img { opacity: 1; transform: scale(1.04); }
.tsp-yt__play {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	display: flex; align-items: center; justify-content: center; width: 64px; height: 44px; border-radius: 12px; background: #f00; color: #fff;
}
.tsp-yt-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Product grid & cards ---------- */
.woocommerce ul.products::before, .woocommerce ul.products::after,
.woocommerce-page ul.products::before, .woocommerce-page ul.products::after { content: none !important; display: none !important; }
ul.products {
	display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
	list-style: none; margin: 0 0 24px !important; padding: 0 !important;
}
ul.products.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
ul.products.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
ul.products.columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product, .woocommerce-page ul.products[class*="columns-"] li.product {
	float: none !important; width: auto !important; margin: 0 !important; padding: 0; clear: none !important;
}

.tsp-card {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border: 1px solid #eef0f3; border-radius: calc(var(--tsp-radius) * 1.25);
	transition: box-shadow .25s, transform .25s;
}
.tsp-card:hover { transform: translateY(-3px); box-shadow: var(--tsp-shadow); }
.tsp-card__media { position: relative; padding: 14px; background: #fff; }
.tsp-card__img { display: block; aspect-ratio: 1 / 1; }
.woocommerce ul.products li.product .tsp-card__img img,
.tsp-card__img img { width: 100%; height: 100%; margin: 0 !important; object-fit: contain; transition: transform .4s; }
.tsp-card:hover .tsp-card__img img { transform: scale(1.05); }

.tsp-badge {
	position: absolute; top: 10px; left: 10px; z-index: 2; padding: 3px 8px; border-radius: 4px;
	background: var(--tsp-accent); color: #fff; font-size: 12px; font-weight: 800; line-height: 1.4;
}
.tsp-badge--out { background: #6b7280; }
.woocommerce span.onsale.tsp-badge { min-width: 0; min-height: 0; margin: 0; padding: 4px 10px; top: 14px; left: 14px; border-radius: 4px; line-height: 1.4; font-size: 13px; background: var(--tsp-accent); }

.tsp-wish-btn {
	position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .95); color: #555; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); transition: color .2s, transform .2s;
}
.tsp-wish-btn:hover { color: var(--tsp-accent); }
.tsp-wish-btn:active { transform: scale(.9); }
.tsp-wish-btn.is-active { color: var(--tsp-accent); }
.tsp-wish-btn.is-active svg { fill: currentColor; }

.tsp-card__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 4px 14px 14px; }
.tsp-card__title {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	min-height: 2.7em; margin: 0 !important; padding: 0 !important;
	font-size: 14.5px !important; font-weight: 700; line-height: 1.35; color: #222;
}
.tsp-card__title a { color: inherit; }
.tsp-card__title a:hover { color: var(--tsp-accent); }
.tsp-card .star-rating { margin: 0 !important; font-size: 12px; color: #f59e0b; }
.woocommerce .tsp-card__price .price, .tsp-card__price .price {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0 !important;
	color: var(--tsp-accent) !important; font-size: 16px !important; font-weight: 800;
}
.price del { color: #9aa1a9 !important; font-size: .8em; font-weight: 500; opacity: 1 !important; }
.price ins { text-decoration: none; }
.woocommerce ul.products li.product .tsp-card__body .button, .tsp-card .button {
	display: flex !important; align-items: center; justify-content: center; gap: 6px; width: 100%;
	margin-top: auto !important; padding: 9px 10px !important;
	background: #eef3f7 !important; color: var(--tsp-primary) !important; font-size: 13px !important; text-align: center;
}
.woocommerce ul.products li.product .tsp-card__body .button:hover, .tsp-card .button:hover { background: var(--tsp-accent) !important; color: #fff !important; filter: none; }
.tsp-card .button.loading { opacity: .6; }
.tsp-card .added_to_cart { display: none !important; }

/* Carousel layout */
.tsp-products--carousel ul.products {
	display: flex !important; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding-bottom: 6px !important; margin: 0 !important; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tsp-products--carousel ul.products::-webkit-scrollbar { display: none; }
.woocommerce .tsp-products--carousel ul.products li.product,
.tsp-products--carousel ul.products li.product { flex: 0 0 calc((100% - 56px) / 5) !important; scroll-snap-align: start; }

/* ---------- Page banner & breadcrumb ---------- */
.tsp-banner {
	padding: 26px 0 22px; text-align: center;
	background-color: #eef1f4; background-image: radial-gradient(#dde2e8 1px, transparent 1px); background-size: 22px 22px;
}
.tsp-banner__title { margin: 0 0 4px; font-size: clamp(22px, 3vw, 30px); color: var(--tsp-heading); }
.tsp-breadcrumb { font-size: 13.5px; color: #5b6573; }
.tsp-breadcrumb a { color: var(--tsp-heading); }
.tsp-breadcrumb a:hover { color: var(--tsp-accent); }
.tsp-breadcrumb__sep { margin: 0 8px; color: #b0b6bf; }
.tsp-crumbbar { padding: 12px 0; background: #fff; border-bottom: 1px solid var(--tsp-border); }

/* ---------- Shop layout ---------- */
.tsp-shop { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 24px; padding-bottom: 40px; }
.tsp-shop.no-sidebar, .tsp-shop.is-filters-hidden { grid-template-columns: minmax(0, 1fr); }
.tsp-shop.is-filters-hidden .tsp-shop__sidebar { display: none; }
.tsp-shop__sidebar { position: sticky; top: calc(var(--tsp-header-h) + 16px); max-height: calc(100vh - var(--tsp-header-h) - 32px); overflow-y: auto; padding: 18px; background: #fff; border-radius: calc(var(--tsp-radius) * 1.5); scrollbar-width: thin; }
.admin-bar .tsp-shop__sidebar { top: calc(var(--tsp-header-h) + 48px); }
.tsp-shop__sidebar .tsp-drawer__head { display: none; }
.tsp-shop__sidebar .tsp-drawer__body { padding: 0; overflow: visible; }

.widget { margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--tsp-border); }
.widget:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.tsp-shop__sidebar .widget-title, .tsp-shop__sidebar .widgettitle, .tsp-shop__sidebar .wp-block-heading {
	display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px;
	font-size: 17px; cursor: pointer; user-select: none;
}
.tsp-shop__sidebar .widget-title::after, .tsp-shop__sidebar .widgettitle::after { content: "\2212"; font-size: 20px; font-weight: 400; line-height: 1; color: #555; }
.tsp-shop__sidebar .widget.is-collapsed .widget-title::after, .tsp-shop__sidebar .widget.is-collapsed .widgettitle::after { content: "+"; }
.tsp-shop__sidebar .widget.is-collapsed > *:not(.widget-title):not(.widgettitle) { display: none; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 5px 0; font-size: 14.5px; }
.widget li a { color: #333; }
.widget li a:hover, .widget li.current-cat > a { color: var(--tsp-accent); }
.widget .children { padding-left: 14px; }
.widget .count { color: #9aa1a9; font-size: 12px; }
.woocommerce .widget_price_filter .ui-slider .ui-slider-range { background-color: var(--tsp-primary); }
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle { top: -.35em; width: 1.1em; height: 1.1em; background-color: #fff; border: 2px solid var(--tsp-primary); }
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content { background-color: #d8dde3; }
.woocommerce .widget_price_filter .price_slider_amount { font-size: 14px; }
.woocommerce .widget_price_filter .price_slider_amount .button { font-size: 13px; padding: .55em 1em; }

.tsp-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.tsp-filter-toggle {
	display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
	border: 1px solid var(--tsp-border); border-radius: var(--tsp-radius); background: #fff; font-size: 14px; font-weight: 700;
}
.tsp-filter-toggle:hover { border-color: var(--tsp-primary); color: var(--tsp-primary); }
.woocommerce .tsp-toolbar .woocommerce-result-count { float: none; margin: 0 auto 0 0; font-size: 14px; color: #666; }
.woocommerce .tsp-toolbar .woocommerce-ordering { float: none; margin: 0; }
.woocommerce-ordering select, .woocommerce form .form-row select, select.orderby {
	height: 40px; padding: 0 34px 0 12px; border: 1px solid var(--tsp-border); border-radius: var(--tsp-radius); background-color: #fff; font-size: 14px;
}
.woocommerce-notices-wrapper:empty { display: none; }

.woocommerce nav.woocommerce-pagination ul, .woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { margin: 0 3px; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span,
.nav-links .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px;
	border: 1px solid var(--tsp-border); border-radius: var(--tsp-radius); background: #fff; font-weight: 700; line-height: 1;
}
.woocommerce nav.woocommerce-pagination ul li span.current, .nav-links .page-numbers.current { background: var(--tsp-primary); border-color: var(--tsp-primary); color: #fff; }
.woocommerce nav.woocommerce-pagination ul li a:hover, .woocommerce nav.woocommerce-pagination ul li a:focus { background: var(--tsp-accent); color: #fff; }
.nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 10px 0 30px; }

/* ---------- Single product ---------- */
.tsp-single { padding-top: 20px; padding-bottom: 40px; }
.woocommerce div.product { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.woocommerce div.product > * { grid-column: 1 / -1; }
.woocommerce div.product div.images, .woocommerce div.product div.summary {
	grid-column: auto; float: none !important; width: auto !important; margin: 0 !important;
	padding: 24px; background: #fff; border-radius: calc(var(--tsp-radius) * 1.5);
}
.woocommerce div.product .product_title { font-size: clamp(20px, 2.4vw, 28px); margin-bottom: 8px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--tsp-accent); font-size: 26px; font-weight: 800; }
.woocommerce div.product .woocommerce-product-details__short-description { color: #444; }
.woocommerce div.product .woocommerce-product-details__short-description ul { padding-left: 18px; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin-bottom: 14px; }
.woocommerce div.product form.cart.variations_form { display: block; }
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 10px; }
.woocommerce div.product form.cart div.quantity { float: none; margin: 0; }
.woocommerce div.product form.cart .button { float: none; min-height: 46px; padding: 0 28px; font-size: 15px; }
.woocommerce div.product form.cart .variations select { min-width: 200px; height: 42px; border: 1px solid var(--tsp-border); border-radius: var(--tsp-radius); padding: 0 10px; background: #fff; }
.woocommerce div.product .stock { font-weight: 700; }
.woocommerce div.product .stock.in-stock { color: #16a34a; }
.woocommerce div.product .product_meta { padding-top: 14px; border-top: 1px solid var(--tsp-border); font-size: 13.5px; color: #666; }
.woocommerce div.product .product_meta > span { display: block; margin-bottom: 4px; }
.woocommerce div.product .product_meta a { color: var(--tsp-heading); }

.tsp-single-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.tsp-single-actions .tsp-btn { min-height: 44px; }
.tsp-wish-btn--inline {
	position: static; width: auto; height: 44px; padding: 0 16px; gap: 8px; border: 1px solid var(--tsp-border);
	border-radius: var(--tsp-radius); box-shadow: none; font-weight: 700;
}

.quantity { display: inline-flex; align-items: stretch; overflow: hidden; border: 1px solid var(--tsp-border); border-radius: var(--tsp-radius); background: #fff; }
.quantity:has(input[type="hidden"]) { display: none; }
.woocommerce .quantity .qty {
	width: 52px; height: 44px; border: 0; text-align: center; font-weight: 700; background: transparent; -moz-appearance: textfield; appearance: textfield;
}
.quantity .qty::-webkit-inner-spin-button, .quantity .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.tsp-qty-btn { width: 38px; padding: 0; border: 0; background: #f3f5f7; color: #333; font-size: 18px; font-weight: 700; }
.tsp-qty-btn:hover { background: var(--tsp-primary); color: #fff; }

.woocommerce div.product .woocommerce-tabs { padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; border-radius: var(--tsp-radius); background: #e7ecf1; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 10px 18px; font-weight: 700; color: #333; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--tsp-primary); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff; }
.woocommerce div.product .woocommerce-tabs .panel { margin: 0; padding: 24px; background: #fff; border-radius: calc(var(--tsp-radius) * 1.5); }
.woocommerce div.product .woocommerce-tabs .panel table { width: 100%; border-collapse: collapse; }
.woocommerce div.product .woocommerce-tabs .panel td, .woocommerce div.product .woocommerce-tabs .panel th { padding: 8px 10px; border: 1px solid var(--tsp-border); text-align: left; }
.related > h2, .upsells > h2, .cross-sells > h2 { font-size: 22px; margin: 10px 0 14px; }

/* Sticky add-to-cart (mobile) */
.tsp-satc {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 890;
	display: flex; align-items: center; gap: 12px; padding: 10px 16px;
	background: #fff; box-shadow: 0 -4px 16px rgba(0, 0, 0, .1);
	transform: translateY(120%); transition: transform .3s;
}
.tsp-satc.is-visible { transform: none; }
.tsp-satc__info { flex: 1; min-width: 0; }
.tsp-satc__name { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 700; }
.tsp-satc__price { display: block; color: var(--tsp-accent); font-size: 15px; font-weight: 800; }
.tsp-satc__price del { color: #9aa1a9; font-size: 12px; font-weight: 400; }
.tsp-satc__price ins { text-decoration: none; }

/* ---------- Pages, cart, checkout, account ---------- */
.tsp-page { padding-top: 28px; padding-bottom: 48px; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content img { border-radius: var(--tsp-radius); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content a:not(.button):not(.tsp-btn) { color: var(--tsp-accent); }
.entry-content .tsp-card a:not(.button) { color: #222; }
.entry-content .tsp-card .tsp-card__title a:hover { color: var(--tsp-accent); }
.woocommerce table.shop_table { border-color: var(--tsp-border); border-radius: var(--tsp-radius); background: #fff; }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-color: var(--tsp-border); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce-page form .form-row input.input-text, .woocommerce-page form .form-row textarea {
	padding: 10px 12px; border: 1px solid #d6dbe1; border-radius: var(--tsp-radius); background: #fff; font-size: 15px;
}
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { border-color: var(--tsp-primary); outline: none; box-shadow: 0 0 0 3px rgba(17, 60, 88, .12); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--tsp-primary); border-radius: var(--tsp-radius); background: #f3f7fa; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--tsp-primary); }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--tsp-border); border-radius: var(--tsp-radius); }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 11px 16px; border-bottom: 1px solid var(--tsp-border); font-weight: 600; }
.woocommerce-account .woocommerce-MyAccount-navigation li:last-child a { border-bottom: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: var(--tsp-primary); color: #fff; }

/* Wishlist page */
.tsp-wishlist__loading, .tsp-wishlist__empty { padding: 40px 10px; text-align: center; color: #777; }
.tsp-wishlist__empty svg { display: block; margin: 0 auto 12px; color: #c4cad2; }
.tsp-wishlist__empty .tsp-btn { margin-top: 10px; }

/* Blog */
.tsp-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.tsp-post-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: calc(var(--tsp-radius) * 1.5); transition: box-shadow .25s; }
.tsp-post-card:hover { box-shadow: var(--tsp-shadow); }
.tsp-post-card__thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tsp-post-card__body { padding: 16px 18px 18px; }
.tsp-post-card__title { margin: 4px 0 8px; font-size: 18px; }
.tsp-post-card p { margin: 0; font-size: 14px; color: #555; }
.tsp-post-meta { font-size: 13px; color: var(--tsp-muted); }
.tsp-article { max-width: 860px; margin: 0 auto; }
.tsp-article__thumb { margin: 10px 0 20px; }
.tsp-tags a { display: inline-block; margin: 0 4px 4px 0; padding: 3px 10px; border-radius: 20px; background: #eef2f6; font-size: 13px; }
.post-navigation { margin: 20px 0; }
.post-navigation .nav-links { justify-content: space-between; }
.post-navigation .nav-links a { display: block; padding: 12px 16px; background: #fff; border-radius: var(--tsp-radius); font-weight: 700; }
.post-navigation .nav-links span { display: block; font-size: 12px; font-weight: 600; color: var(--tsp-muted); }
.tsp-comments { margin-top: 20px; }
.comment-list { padding-left: 18px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 10px 12px; border: 1px solid #d6dbe1; border-radius: var(--tsp-radius);
}
.tsp-empty { text-align: center; }

/* 404 */
.tsp-404 { padding: 60px 16px; text-align: center; }
.tsp-404__code { margin: 0; font-size: clamp(80px, 14vw, 140px); font-weight: 800; line-height: 1; color: var(--tsp-accent); }
.tsp-404__search { max-width: 560px; margin: 20px auto; }
.tsp-404__search .tsp-search { box-shadow: 0 0 0 1px var(--tsp-border); border-radius: var(--tsp-radius); }

/* ---------- Footer ---------- */
.tsp-footer { margin-top: 40px; background: var(--tsp-primary); color: #c9d6df; font-size: 14px; }
.tsp-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-top: 44px; padding-bottom: 32px; }
.tsp-footer__logo { margin-bottom: 14px; }
.tsp-footer__logo img { max-height: 44px; width: auto; }
.tsp-footer__title { margin-bottom: 14px; font-size: 16px; color: #fff; }
.tsp-footer ul { list-style: none; margin: 0; padding: 0; }
.tsp-footer li { padding: 4px 0; }
.tsp-footer a { color: #c9d6df; }
.tsp-footer a:hover { color: #fff; }
.tsp-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tsp-social a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; transition: background .2s; }
.tsp-social a:hover { background: var(--tsp-accent); color: #fff; }
.tsp-contact li { display: flex; align-items: flex-start; gap: 10px; }
.tsp-contact svg { margin-top: 4px; color: var(--tsp-accent); }
.tsp-footer__bottom { padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
.tsp-footer__bottom .tsp-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.tsp-footer__copy { margin: 0; }
.tsp-footer__pay img { max-height: 30px; width: auto; }

/* ---------- Toast ---------- */
.tsp-toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 1000; transform: translate(-50%, 20px);
	padding: 10px 18px; border-radius: 30px; background: #1f2937; color: #fff;
	font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.tsp-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Scroll reveal ---------- */
.tsp-js .tsp-anim-on [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.tsp-js .tsp-anim-on [data-reveal].is-revealed,
.tsp-reveal-all .tsp-anim-on [data-reveal] { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.tsp-header__inner { gap: 20px; }
	.tsp-header__actions { gap: 14px; }
	.tsp-hicon__label { display: none; }
}

@media (min-width: 992px) {
	.tsp-hide-desktop { display: none !important; }
}

@media (max-width: 991px) {
	.tsp-hide-mobile { display: none !important; }

	/* App-like header */
	.tsp-header__inner { flex-wrap: wrap; gap: 10px 8px; min-height: 0; padding-top: 8px; padding-bottom: 10px; }
	.tsp-header__menu { display: inline-flex; margin-left: -4px; }
	.tsp-logo { flex: 1; display: flex; justify-content: center; }
	.tsp-logo img { max-height: 34px; }
	.tsp-logo__text { font-size: 21px; }
	.tsp-header__search { order: 5; flex-basis: 100%; max-width: none; }
	.tsp-search input[type="search"] { height: 42px; }
	.tsp-search__btn { height: 42px; padding: 0 14px; }
	.tsp-search__label { display: none; }
	.tsp-header__actions { gap: 4px; }
	.tsp-catnav { display: none; }

	/* Bottom nav */
	.tsp-has-bnav { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
	.tsp-bnav {
		display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
		padding-bottom: env(safe-area-inset-bottom); background: #fff; box-shadow: 0 -4px 20px rgba(0, 0, 0, .08);
	}
	.tsp-bnav ul { display: flex; list-style: none; margin: 0; padding: 0; }
	.tsp-bnav li { flex: 1; min-width: 0; }
	.tsp-bnav a {
		position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
		height: 62px; font-size: 11px; font-weight: 700; color: #5b6573; transition: color .2s, transform .15s;
	}
	.tsp-bnav a:active { transform: scale(.92); }
	.tsp-bnav a.is-active { color: var(--tsp-accent); }
	.tsp-bnav a.is-active::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--tsp-accent); }
	.tsp-bnav__label { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
	.tsp-bnav .tsp-badge-count { top: 6px; left: calc(50% + 4px); }
	.tsp-has-bnav .tsp-satc { bottom: calc(62px + env(safe-area-inset-bottom)); }
	.tsp-has-bnav .tsp-toast { bottom: calc(84px + env(safe-area-inset-bottom)); }

	/* Hero */
	.tsp-slider { height: calc(var(--tsp-slider-h) * .7); }

	/* Grids */
	.tsp-cats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	ul.products, ul.products[class*="columns-"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.woocommerce .tsp-products--carousel ul.products li.product,
	.tsp-products--carousel ul.products li.product { flex-basis: 31% !important; }
	.tsp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tsp-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tsp-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tsp-footer__grid { grid-template-columns: 1fr 1fr; }

	/* Shop: filters become a drawer */
	.tsp-shop, .tsp-shop.is-filters-hidden { grid-template-columns: minmax(0, 1fr); padding-top: 14px; }
	.tsp-shop__sidebar, .tsp-shop.is-filters-hidden .tsp-shop__sidebar {
		position: fixed; top: 0; bottom: 0; left: 0; z-index: 999; display: flex; flex-direction: column;
		width: min(340px, 88vw); max-height: none; padding: 0; border-radius: 0; overflow: hidden;
		transform: translateX(-100%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s;
	}
	.tsp-shop__sidebar.is-open { transform: none; visibility: visible; transition: transform .3s ease, visibility 0s; }
	.tsp-shop__sidebar .tsp-drawer__head { display: flex; }
	.tsp-shop__sidebar .tsp-drawer__body { padding: 16px 18px; overflow-y: auto; }

	/* Single product */
	.woocommerce div.product { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.woocommerce div.product div.images, .woocommerce div.product div.summary { padding: 16px; }
}

@media (min-width: 992px) {
	.tsp-satc { display: none; }
}

@media (max-width: 782px) {
	.admin-bar .tsp-header--sticky { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .tsp-header--sticky { top: 0; }
}

@media (max-width: 767px) {
	body { font-size: 14.5px; }
	.tsp-card-box { padding: 18px; }
	.tsp-section { padding: 18px 0; }
	.tsp-section--tight { padding: 8px 0; }
	.tsp-section__head { margin-bottom: 12px; }

	.tsp-hero { padding-top: 12px; }
	.tsp-hero__grid { gap: 10px; }
	.tsp-hero__grid.has-banners { grid-template-columns: minmax(0, 1fr); }
	.tsp-slider { height: auto; aspect-ratio: 16 / 8; min-height: 170px; }
	.tsp-slider__arrow { display: none; }
	.tsp-slide__caption { left: 5%; max-width: 75%; }
	.tsp-slide__text { display: none; }
	.tsp-slide__eyebrow { margin-bottom: 6px; font-size: 10px; }
	.tsp-slide__caption .tsp-btn { padding: 8px 14px; font-size: 13px; }
	.tsp-hero__banners { grid-template-rows: none; grid-template-columns: 1fr 1fr; gap: 10px; }
	.tsp-hero__banner { aspect-ratio: 16 / 9; }
	.tsp-hero__banner--demo { padding: 12px; gap: 4px; }
	.tsp-hero__banner--demo svg { width: 26px; height: 26px; }
	.tsp-hero__banner--demo strong { font-size: 14px; }

	.tsp-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
	.tsp-cat { gap: 6px; padding: 12px 4px; }
	.tsp-cat__img { width: 40px; height: 40px; }
	.tsp-cats--circle .tsp-cat__img { width: 62px; height: 62px; padding: 10px; }
	.tsp-cat__name { font-size: 11.5px; }

	.tsp-features { gap: 8px; }
	.tsp-feature { gap: 10px; padding: 12px; }
	.tsp-feature__icon { width: 38px; height: 38px; }
	.tsp-feature__icon svg { width: 20px; height: 20px; }
	.tsp-feature strong { font-size: 13px; }
	.tsp-feature__text > span { font-size: 11.5px; }

	ul.products, ul.products[class*="columns-"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.woocommerce .tsp-products--carousel ul.products li.product,
	.tsp-products--carousel ul.products li.product { flex-basis: 44% !important; }
	.tsp-products--carousel ul.products { gap: 10px; }
	.tsp-card__media { padding: 8px; }
	.tsp-card__body { padding: 2px 10px 10px; gap: 4px; }
	.tsp-card__title { font-size: 13px !important; }
	.woocommerce .tsp-card__price .price, .tsp-card__price .price { font-size: 14.5px !important; }
	.tsp-wish-btn { width: 30px; height: 30px; top: 6px; right: 6px; }
	.tsp-badge { top: 6px; left: 6px; font-size: 11px; padding: 2px 6px; }

	.tsp-videos { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.tsp-videos::-webkit-scrollbar { display: none; }
	.tsp-video { flex: 0 0 80%; scroll-snap-align: start; }

	.tsp-banner { padding: 18px 0 14px; }
	.tsp-toolbar { flex-wrap: nowrap; gap: 8px; }
	.woocommerce .tsp-toolbar .woocommerce-result-count { display: none; }
	.woocommerce .tsp-toolbar .woocommerce-ordering { flex: 1; min-width: 0; }
	.tsp-toolbar select.orderby { width: 100%; }
	.tsp-posts { grid-template-columns: minmax(0, 1fr); }

	.tsp-footer { margin-top: 24px; }
	.tsp-footer__grid { gap: 24px; padding-top: 32px; }
	.tsp-footer__about, .tsp-footer__contact { grid-column: 1 / -1; }
	.tsp-footer__bottom .tsp-container { flex-direction: column; text-align: center; }
}

@media (hover: none) {
	.tsp-slider__arrow { display: none; }
	.tsp-card:hover, .tsp-cat:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.tsp-js .tsp-anim-on [data-reveal] { opacity: 1; transform: none; }
}
