/* Thimze Shop Layout — matches approved mockup
   v1.1.3 — consistent product image sizing (crop-to-fill, matched to
   Loobek's real markup: div.products > section.product > figure > img),
   21-per-page grid (3x7 desktop / 2-col mobile), #main-content +
   .main-products classes added so Loobek's native "Load more" AJAX JS
   can find and update the grid, and a MOBILE-ONLY off-canvas drawer for
   Categories/Filter/Sort (hamburger trigger replaces the sidebar only
   below 768px — the desktop <aside> sidebar is untouched and still
   renders exactly as before). */

.tsl-shop-wrapper {
	width: 100%;
	margin: 0;
	background: #f8f9fa;
	border-radius: 0;
	overflow: hidden;
}

/* Hero / carousel — slides are configured in wp-admin → Shop Hero
   (see admin/hero-admin.php + partials/shop-hero.php). Supports a
   single static slide or an auto-playing multi-slide carousel with
   arrows + dots, driven by assets/js/hero-slider.js. */
.tsl-hero {
	position: relative;
	overflow: hidden;
	background: var(--tsl-brand-tint, #e6f8fe);
}
.tsl-hero-track {
	position: relative;
	min-height: 260px;
}

.tsl-hero-slide-frontend {
	position: relative;
	min-height: 260px;
	padding: 36px 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background-color: var(--tsl-brand-tint, #e6f8fe);
	background-size: cover;
	background-position: center;
}

/* "Design image" slide — no text panel, no overlay, no CTA. The image
   is the whole slide, edge to edge, optionally wrapped in a link.
   Absolute+object-fit rather than a background-image so it stays sharp
   at any hero height and never gets stretched or letterboxed. */
.tsl-hero-slide-frontend.tsl-hero-type-image {
	padding: 0;
	background: none;
}
.tsl-hero-image-link {
	position: absolute;
	inset: 0;
	display: block;
}
.tsl-hero-image-only {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	margin: 0;
	border: 0;
}

/* Two-column slide: media panel (image) + content panel (text/CTA).
   Only used when a slide actually has an image — plain colour banners
   keep the original single-column centered layout above. */
.tsl-hero-slide-frontend--split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
	min-height: 320px;
	padding: 0;
	text-align: left;
	background: none;
}
.tsl-hero-media {
	position: relative;
	background-size: cover;
	background-position: center;
	min-height: 260px;
}
.tsl-hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, transparent 70%, var(--tsl-brand-tint, #e6f8fe));
}
.tsl-hero-content-panel {
	display: flex;
	align-items: center;
	padding: 40px 56px 40px 48px;
	background-color: var(--tsl-brand-tint, #e6f8fe);
}
.tsl-hero-slide-frontend--split .tsl-hero-content {
	max-width: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.tsl-hero-slide-frontend--split .tsl-hero-badge,
.tsl-hero-slide-frontend--split .tsl-hero-title,
.tsl-hero-slide-frontend--split .tsl-hero-subtitle,
.tsl-hero-slide-frontend--split .tsl-hero-product-price,
.tsl-hero-slide-frontend--split .tsl-hero-countdown {
	margin: 0;
}
.tsl-hero-slide-frontend--split .tsl-hero-title {
	font-size: 25px;
}
.tsl-hero-slide-frontend--split .tsl-hero-cta {
	margin-top: 4px;
	width: fit-content;
}
.tsl-hero-slide-frontend--split .tsl-hero-countdown {
	justify-content: flex-start;
}
/* Carousel mode: slides stack in place, JS toggles [hidden]. Single-slide
   mode never touches position/hidden so it behaves like plain content. */
.tsl-hero-carousel .tsl-hero-slide-frontend {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.4s ease;
}
.tsl-hero-carousel .tsl-hero-slide-frontend:not([hidden]) {
	position: relative;
	opacity: 1;
}

.tsl-hero-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.tsl-hero-theme-light .tsl-hero-overlay {
	background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.35));
}

.tsl-hero-content {
	position: relative;
	z-index: 1;
	max-width: 640px;
}

.tsl-hero-badge {
	display: inline-block;
	background: #ff4d4f;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 20px;
	margin-bottom: 10px;
}

.tsl-hero-title {
	font-size: 22px;
	font-weight: 600;
	color: var(--tsl-brand-dark, #0e8eb6);
	margin: 0 0 6px;
}
.tsl-hero-subtitle {
	font-size: 15px;
	color: #1a7a99;
	margin: 0 0 16px;
}
.tsl-hero-theme-light .tsl-hero-title,
.tsl-hero-theme-light .tsl-hero-subtitle {
	color: #fff;
}

.tsl-hero-product-price {
	font-size: 18px;
	font-weight: 600;
	color: inherit;
	margin: 0 0 16px;
}

.tsl-hero-cta {
	display: inline-block;
	background: var(--tsl-brand, #19c3f3);
	color: #fff;
	border: none;
	padding: 11px 26px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.15s ease;
}
.tsl-hero-cta:hover {
	background: var(--tsl-brand-dark, #0e8eb6);
	color: #fff;
}

/* Countdown (deal-of-the-week slides) */
.tsl-hero-countdown {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 0 0 18px;
}
.tsl-countdown-segment {
	background: #fff;
	border: 1px solid rgba(14,142,182,0.15);
	border-radius: 6px;
	min-width: 48px;
	padding: 6px 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1.1;
}
.tsl-hero-theme-light .tsl-countdown-segment {
	background: rgba(0,0,0,0.4);
	border-color: rgba(255,255,255,0.15);
}
.tsl-countdown-num {
	font-size: 18px;
	font-weight: 700;
	color: var(--tsl-brand-dark, #0e8eb6);
}
.tsl-hero-theme-light .tsl-countdown-num {
	color: #fff;
}
.tsl-countdown-label {
	font-size: 10px;
	text-transform: uppercase;
	color: #1a7a99;
}
.tsl-hero-theme-light .tsl-countdown-label {
	color: #eaf7fc;
}

/* Carousel controls */
.tsl-hero-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	background: rgba(255,255,255,0.85);
	border: none;
	box-sizing: border-box;
	padding: 0;
	margin: 0;
	width: 34px;
	height: 34px;
	min-width: 34px;
	min-height: 34px;
	flex-shrink: 0;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: var(--tsl-brand-dark, #0e8eb6);
}
.tsl-hero-arrow:hover {
	background: #fff;
}
.tsl-hero-arrow-prev { left: 14px; }
.tsl-hero-arrow-next { right: 14px; }

.tsl-hero-dots {
	position: absolute;
	bottom: 14px;
	left: 0;
	right: 0;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 8px;
}
.tsl-hero-dot {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	box-sizing: border-box;
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255,255,255,0.75);
	box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
	cursor: pointer;
	padding: 0;
	margin: 0;
	outline: none;
}
.tsl-hero-dot.is-active {
	background: var(--tsl-brand, #19c3f3);
	box-shadow: 0 0 0 1px var(--tsl-brand-dark, #0e8eb6);
}

@media (max-width: 768px) {
	.tsl-hero-slide-frontend,
	.tsl-hero-track {
		min-height: 220px;
	}
	.tsl-hero-arrow {
		width: 28px;
		height: 28px;
		min-width: 28px;
		min-height: 28px;
		font-size: 16px;
	}
	.tsl-hero-slide-frontend--split {
		grid-template-columns: 1fr;
	}
	.tsl-hero-media {
		min-height: 160px;
	}
	.tsl-hero-media::after {
		background: linear-gradient(to bottom, transparent 60%, var(--tsl-brand-tint, #e6f8fe));
	}
	.tsl-hero-content-panel {
		padding: 24px 20px;
		text-align: center;
		justify-content: center;
	}
	.tsl-hero-slide-frontend--split .tsl-hero-content {
		max-width: 100%;
		align-items: center;
	}
	.tsl-hero-slide-frontend--split .tsl-hero-cta {
		margin: 4px auto 0;
	}
	.tsl-hero-slide-frontend--split .tsl-hero-countdown {
		justify-content: center;
	}
}

/* Body layout */
.tsl-shop-body {
	display: flex;
	gap: 0;
	padding: 32px 48px;
	align-items: flex-start;
	max-width: 1500px;
	margin: 0 auto;
}

.tsl-shop-sidebar {
	width: 220px;
	flex-shrink: 0;
	padding-right: 24px;
	border-right: 1px solid #e5e5e5;
}
.tsl-sidebar-block {
	margin-bottom: 24px;
}
.tsl-sidebar-title {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 10px;
	color: #222;
}
.tsl-category-list {
	list-style: none !important;
	margin: 0;
	padding: 0;
}
.tsl-category-list li {
	margin-bottom: 8px;
	list-style: none !important;
}
.tsl-category-list li::before,
.tsl-category-list li::marker {
	content: none !important;
}
.tsl-category-list a {
	font-size: 15px;
	color: #555;
	text-decoration: none;
}
.tsl-category-list a:hover {
	color: var(--tsl-brand-dark, #0e8eb6);
}
.tsl-category-list li.tsl-active a {
	font-weight: 600;
	color: var(--tsl-brand-dark, #1ac4f3);
}
.tsl-cat-count {
	color: #999;
	font-size: 14px;
}

.tsl-cat-row {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 4px !important;
	width: auto !important;
}
.tsl-cat-row a {
	flex: 0 1 auto !important;
	display: inline !important;
	width: auto !important;
}

/* The toggle is a <span role="button">, not a <button> element, specifically
   so theme-wide button styling (full-width, colored background, padding)
   never applies to it in the first place. Inline styles on the element
   itself (in shop-sidebar.php) handle the base reset; this just adds the
   hover/expanded states that don't fit inline. */
.tsl-sidebar-block .tsl-cat-toggle:hover,
.tsl-sidebar-block .tsl-cat-toggle:focus-visible {
	color: var(--tsl-brand-dark, #0e8eb6) !important;
	outline: none !important;
}
.tsl-cat-arrow {
	transition: transform 0.18s ease;
}
.tsl-cat-toggle.tsl-expanded .tsl-cat-arrow {
	transform: rotate(180deg);
}
.tsl-subcategory-list {
	list-style: none !important;
	margin: 0;
	padding: 0 0 0 14px;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.2s ease;
}
.tsl-subcategory-list.tsl-expanded {
	max-height: 1000px;
}
.tsl-subcategory-list li {
	margin: 8px 0 0;
	list-style: none !important;
}
.tsl-subcategory-list li::before,
.tsl-subcategory-list li::marker {
	content: none !important;
}
.tsl-subcategory-list a {
	font-size: 16px;
	color: #777;
	text-decoration: none;
}
.tsl-subcategory-list a:hover {
	color: var(--tsl-brand-dark, #0e8eb6);
}
.tsl-subcategory-list li.tsl-active a {
	font-weight: 700;
	color: var(--tsl-brand-dark, #0e8eb6);
}

/* Quick Filters — New Arrivals / Bestsellers / In Stock Only.
   Styled as checkboxes but implemented as plain links (see
   tsl_quick_filter_url() in the main plugin file) toggling a ?tsl_xxx=1
   query param, so no JS is required and it composes with every other
   filter/pagination param already on the URL. */
.tsl-quick-filter-list {
	list-style: none !important;
	margin: 0;
	padding: 0;
}
.tsl-quick-filter-list li {
	margin-bottom: 8px;
	list-style: none !important;
}
.tsl-quick-filter-item {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	font-size: 15px;
	color: #555;
	text-decoration: none;
	cursor: pointer;
}
.tsl-quick-filter-item:hover {
	color: var(--tsl-brand-dark, #0e8eb6);
}
.tsl-quick-filter-box {
	display: inline-block;
	width: 16px;
	height: 16px;
	min-width: 16px;
	border: 1.5px solid #ccc;
	border-radius: 4px;
	background: #fff;
	position: relative;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.tsl-quick-filter-item.tsl-active .tsl-quick-filter-box {
	background: var(--tsl-brand, #19c3f3);
	border-color: var(--tsl-brand, #19c3f3);
}
.tsl-quick-filter-item.tsl-active .tsl-quick-filter-box::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.tsl-quick-filter-item.tsl-active {
	font-weight: 600;
	color: var(--tsl-brand-dark, #0e8eb6);
}

/* WooCommerce layered-nav attribute filters (Delivery Speed, Size,
   Material, Use Case, Buying Type, Colour) — same oversizing problem as
   the price filter widget, same fix: reset Loobek's global widget CSS
   explicitly instead of fighting it rule-by-rule. */
.tsl-sidebar-block .widget_layered_nav,
.tsl-sidebar-block .widget_layered_nav * {
	font-size: 13px !important;
	line-height: 1.5 !important;
}
.tsl-sidebar-block .widget_layered_nav h2,
.tsl-sidebar-block .widget_layered_nav h3 {
	font-size: 14px !important;
	font-weight: 600 !important;
	margin: 18px 0 10px !important;
}
.tsl-sidebar-block .widget_layered_nav ul {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.tsl-sidebar-block .widget_layered_nav li {
	list-style: none !important;
	margin: 0 0 8px !important;
}
.tsl-sidebar-block .widget_layered_nav a {
	color: #555 !important;
	text-decoration: none !important;
}
.tsl-sidebar-block .widget_layered_nav a:hover {
	color: var(--tsl-brand-dark, #0e8eb6) !important;
}
.tsl-sidebar-block .widget_layered_nav .chosen a {
	font-weight: 600 !important;
	color: var(--tsl-brand-dark, #0e8eb6) !important;
}

/* WooCommerce price filter widget — Loobek's global widget CSS makes
   this oversized, so we reset it explicitly here. */
.tsl-sidebar-block .widget_price_filter,
.tsl-sidebar-block .widget_price_filter * {
	font-size: 13px !important;
	line-height: 1.5 !important;
}
.tsl-sidebar-block .widget_price_filter .price_label,
.tsl-sidebar-block .widget_price_filter .price_label span {
	font-size: 13px !important;
	font-weight: 400 !important;
}
.tsl-sidebar-block .widget_price_filter h2,
.tsl-sidebar-block .widget_price_filter h3 {
	font-size: 14px !important;
	font-weight: 600 !important;
	margin: 0 0 10px !important;
}

/* Selected category heading shown above the product grid */
.tsl-category-heading {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 12px;
	color: #222;
}

.tsl-shop-main {
	flex: 1;
	padding-left: 24px;
	min-width: 0;
}

.tsl-shop-search {
	position: relative;
	flex: 1 1 260px;
	min-width: 180px;
	max-width: 320px;
	margin: 0 16px;
}
.tsl-search-field {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 42px;
	padding: 0 14px;
	border: none !important;
	border-radius: 999px;
	background: #fff;
	overflow: hidden;
	transition: box-shadow .15s;
}
.tsl-search-field:focus-within {
	box-shadow: 0 0 0 4px var(--tsl-brand-tint, #e6f8fe);
}
.tsl-search-icon {
	flex: 0 0 auto;
	color: #9a9a9a;
}
.tsl-search-field:focus-within .tsl-search-icon {
	color: var(--tsl-brand, #19c3f3);
}
.tsl-search-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	padding: 0;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	font-size: 14px;
	line-height: 1;
	color: #222;
	appearance: none;
	-webkit-appearance: none;
}
.tsl-search-input:focus,
.tsl-search-input:focus-visible {
	outline: none !important;
	border: none !important;
	box-shadow: none !important;
}
.tsl-search-input::-webkit-search-cancel-button,
.tsl-search-input::-webkit-search-decoration {
	display: none;
	-webkit-appearance: none;
}
.tsl-search-input::placeholder {
	color: #a8a8a8;
}
.tsl-search-clear {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border: none;
	border-radius: 50%;
	font-size: 15px;
	line-height: 1;
	color: #888;
	background: #f0f0f0;
	cursor: pointer;
	padding: 0;
}
.tsl-search-clear:hover {
	background: #e2e2e2;
	color: #444;
}
.tsl-search-clear[hidden] {
	display: none;
}

/* Autocomplete dropdown */
.tsl-search-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	z-index: 60;
}
.tsl-search-results {
	max-height: 340px;
	overflow-y: auto;
	padding: 8px;
}
.tsl-search-result {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
}
.tsl-search-result:hover,
.tsl-search-result.tsl-search-result--active {
	background: var(--tsl-brand-tint, #e6f8fe);
}
.tsl-search-result-thumb {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	object-fit: cover;
	background: #f3f3f3;
}
.tsl-search-result-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.tsl-search-result-title {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: #222;
	margin: 0 0 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tsl-search-result-price {
	display: block;
	font-size: 12px;
	color: #777;
	margin: 0;
}
.tsl-search-viewall {
	display: block;
	padding: 12px 16px;
	border-top: 1px solid #f0f0f0;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	color: var(--tsl-brand-dark, #0e8eb6);
	text-decoration: none;
	background: #fafafa;
}
.tsl-search-viewall:hover {
	background: var(--tsl-brand-tint, #e6f8fe);
}
.tsl-search-empty,
.tsl-search-loading {
	padding: 20px 16px;
	font-size: 13px;
	color: #888;
	text-align: center;
}

.tsl-shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}
.tsl-result-count {
	font-size: 13px;
	color: #777;
	white-space: nowrap;
}

.tsl-toolbar-right {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
}

.tsl-quick-links {
	display: flex;
	align-items: center;
	gap: 8px;
}

.tsl-quick-link {
	display: inline-flex;
	align-items: center;
	padding: 7px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	border: 1px solid var(--tsl-brand, #19c3f3);
	color: var(--tsl-brand-dark, #0e8eb6);
	background: var(--tsl-brand-tint, #e6f8fe);
	transition: background .15s, color .15s, transform .1s;
}
.tsl-quick-link:hover,
.tsl-quick-link:focus {
	background: var(--tsl-brand, #19c3f3);
	color: #fff;
}
.tsl-quick-link:active {
	transform: scale(.97);
}
.tsl-quick-link.is-active {
	background: var(--tsl-brand, #19c3f3);
	color: #fff;
}

.tsl-inline-panel {
	padding-top: 4px;
}

.tsl-panel-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	padding: 0;
	margin-bottom: 16px;
	font-size: 13px;
	font-weight: 500;
	color: #777;
	cursor: pointer;
}
.tsl-panel-back:hover {
	color: var(--tsl-brand-dark, #0e8eb6);
}

/* Mobile-only drawer trigger — hidden on desktop by default. Shown
   only inside the @media (max-width: 768px) block below, where it
   replaces the desktop sidebar's job without touching desktop markup
   or styling at all. */
.tsl-mobile-drawer-trigger {
	display: none;
}

/* Product grid
   IMPORTANT: Loobek's theme renders the product loop as
   <div class="products"> > <section class="product"> > .product-wrapper
   > .thumbnail-wrapper > a > figure > img — NOT the default WooCommerce
   <ul class="products"><li class="product"> markup. Selectors below are
   written against the real Loobek markup; "ul.products li.product"
   never matched anything in this theme, which is why earlier versions
   of this stylesheet had no visible effect at all. */
.tsl-product-grid {
	width: 100%;
}
body .tsl-product-grid .products {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 20px !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
}
body .tsl-product-grid .products .product {
	background: #fff !important;
	border: 1px solid #eaeaea !important;
	border-radius: 8px !important;
	padding: 14px !important;
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
	list-style: none !important;
}
body .tsl-product-grid .products .product::before,
body .tsl-product-grid .products .product::marker {
	content: none !important;
}
body .tsl-product-grid .products .product:hover {
	border-color: var(--tsl-brand, #19c3f3) !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
body .tsl-product-grid .products .product .product-wrapper {
	max-width: 100% !important;
	margin: 0 !important;
}
body .tsl-product-grid .products .product .thumbnail-wrapper {
	width: 100% !important;
}

/* Uniform image box: every product image (front + lazy-load + gallery
   back image) is cropped to fill the same square ratio, regardless of
   its native dimensions. The figure is the crop frame; the img inside
   it fills and covers that frame. This is what fixes the sizing
   inconsistency between products. */
body .tsl-product-grid .products .product figure {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	aspect-ratio: 1 / 1 !important;
	overflow: hidden !important;
	border-radius: 6px !important;
	margin: 0 0 10px !important;
	background: #f3f3f3;
}
body .tsl-product-grid .products .product figure img {
	display: block !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	object-fit: cover !important;
	object-position: center !important;
	margin: 0 !important;
	border-radius: 0 !important;
}
/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 1 / 1) {
	body .tsl-product-grid .products .product figure {
		height: 0 !important;
		padding-top: 100% !important;
	}
}

body .tsl-product-grid .products .product .woocommerce-loop-product__title,
body .tsl-product-grid .products .product h3.product-name {
	font-size: 13px;
	font-weight: 500;
	margin: 0 0 4px;
}
body .tsl-product-grid .products .product .price {
	font-size: 12px;
	color: #777;
}

/* Pagination (WooCommerce default markup, lightly themed) */
.tsl-shop-main nav.woocommerce-pagination {
	margin-top: 28px;
	text-align: center;
}
.tsl-shop-main nav.woocommerce-pagination ul {
	display: inline-flex !important;
	gap: 6px;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
}
.tsl-shop-main nav.woocommerce-pagination ul li {
	border: none !important;
	list-style: none !important;
}
.tsl-shop-main nav.woocommerce-pagination ul li a,
.tsl-shop-main nav.woocommerce-pagination ul li span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 8px;
	border-radius: 6px;
	border: 1px solid #e0e0e0;
	font-size: 13px;
	color: #555;
	text-decoration: none;
}
.tsl-shop-main nav.woocommerce-pagination ul li span.current,
.tsl-shop-main nav.woocommerce-pagination ul li a:hover {
	border-color: var(--tsl-brand, #19c3f3);
	color: var(--tsl-brand-dark, #0e8eb6);
}

@media (max-width: 768px) {
	.tsl-shop-body {
		flex-direction: column;
		padding: 14px;
	}

	.tsl-shop-search {
		max-width: 100%;
		flex: 1 1 100%;
		order: 2;
		margin: 0;
	}

	/* On mobile the off-canvas drawer (below) takes over Categories/
	   Filter/Sort, so the inline desktop sidebar is hidden here. It is
	   NOT removed from the page — its content is also rendered a
	   second time inside #tsl-mobile-drawer via the same shop-sidebar
	   partial, so nothing about the desktop sidebar itself changes. */
	.tsl-shop-sidebar {
		display: none;
	}

	.tsl-shop-main {
		padding-left: 0;
	}
	body .tsl-product-grid .products {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 10px !important;
	}
	body .tsl-product-grid .products .product {
		padding: 8px !important;
	}

	.tsl-shop-toolbar {
		flex-wrap: wrap;
		gap: 10px;
	}

	.tsl-toolbar-right {
		margin-left: 0;
		flex-wrap: wrap;
		order: 3;
		width: 100%;
		justify-content: flex-start;
	}

	.tsl-quick-links {
		order: 1;
	}

	.tsl-mobile-drawer-trigger {
		display: flex;
		align-items: center;
		gap: 8px;
		background: #fff;
		border: 1px solid #e0e0e0;
		border-radius: 6px;
		padding: 8px 12px;
		font-size: 12px;
		font-weight: 500;
		color: #333;
		cursor: pointer;
		order: 1;
	}
	.tsl-mobile-drawer-trigger:hover,
	.tsl-mobile-drawer-trigger[aria-expanded="true"] {
		border-color: var(--tsl-brand, #19c3f3);
		color: var(--tsl-brand-dark, #0e8eb6);
	}
	.tsl-hamburger-icon {
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
		gap: 3px;
		width: 14px;
		flex-shrink: 0;
	}
	.tsl-hamburger-icon span {
		display: block;
		height: 2px;
		width: 100%;
		background: currentColor;
		border-radius: 1px;
	}

	.tsl-result-count {
		order: 3;
	}

	/* Off-canvas drawer: mobile-only Categories/Filter/Sort panel */
	.tsl-mobile-drawer-overlay {
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.4);
		opacity: 0;
		transition: opacity 0.25s ease;
		z-index: 1000;
	}
	.tsl-mobile-drawer-overlay.tsl-mobile-drawer-overlay-open {
		opacity: 1;
	}
	.tsl-mobile-drawer {
		position: fixed;
		top: 0;
		left: 0;
		height: 100%;
		width: 280px;
		max-width: 85vw;
		background: #fff;
		box-shadow: 2px 0 16px rgba(0, 0, 0, 0.15);
		transform: translateX(-100%);
		transition: transform 0.25s ease;
		z-index: 1001;
		display: flex;
		flex-direction: column;
	}
	.tsl-mobile-drawer.tsl-mobile-drawer-open {
		transform: translateX(0);
	}
	.tsl-mobile-drawer-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 16px 18px;
		border-bottom: 1px solid #eee;
		flex-shrink: 0;
	}
	.tsl-mobile-drawer-title {
		margin: 0;
		font-size: 14px;
		font-weight: 600;
		color: #222;
	}
	.tsl-mobile-drawer-close {
		background: none;
		border: none;
		font-size: 22px;
		line-height: 1;
		color: #777;
		cursor: pointer;
		padding: 0 4px;
	}
	.tsl-mobile-drawer-close:hover {
		color: #222;
	}
	.tsl-mobile-drawer-content {
		padding: 18px;
		overflow-y: auto;
		flex: 1;
	}

	body.tsl-mobile-drawer-locked {
		overflow: hidden;
	}
}

/* Trust bar */
.tsl-trust-bar {
	display: flex;
	justify-content: space-around;
	padding: 16px 24px;
	border-top: 1px solid #e5e5e5;
	background: #fff;
}
.tsl-trust-bar span {
	font-size: 12px;
	color: #777;
	display: flex;
	align-items: center;
	gap: 6px;
}
.tsl-icon {
	font-style: normal;
}

/* Attribute filter dropdown (Size/Format, Colour — WC_Widget_Layered_Nav
   with display_type = 'dropdown'). Styled to match the sidebar rather than
   left as a bare browser <select>. */
.tsl-sidebar-block .widget_layered_nav select,
.tsl-sidebar-block select.dropdown_layered_nav_select {
	width: 100%;
	padding: 8px 10px;
	margin-top: 6px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	font-size: 13px;
	color: #333;
	cursor: pointer;
}
.tsl-sidebar-block .widget_layered_nav select:focus,
.tsl-sidebar-block select.dropdown_layered_nav_select:focus {
	outline: none;
	border-color: var(--tsl-brand, #19c3f3);
	box-shadow: 0 0 0 2px var(--tsl-brand-tint, #e6f8fe);
}
.tsl-sidebar-block .widget_layered_nav .wc-layered-nav-rating,
.tsl-sidebar-block .widget_layered_nav_filters {
	margin-top: 6px;
}

/* Belt-and-braces: Loobek (and many themes with a custom off-canvas
   drawer/modal) ship a blanket rule hiding raw <select>/form controls
   inside modals/drawers, expecting their own JS-styled replacement to
   take over. Our attribute dropdown is a plain WooCommerce <select> with
   no such replacement, so if that theme rule reaches into
   #tsl-mobile-drawer it silently disappears there while still working
   fine in the desktop sidebar. Force it back on, scoped tightly to our
   own drawer so it can't affect anything else. */
#tsl-mobile-drawer .tsl-sidebar-block .widget_layered_nav select,
#tsl-mobile-drawer .tsl-sidebar-block select.dropdown_layered_nav_select {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: static !important;
	height: auto !important;
	pointer-events: auto !important;
}
