/*
Theme Name: Threadline (OrderChat demo)
Template: storefront
Description: Storefront child theme for the OrderChat live demo store. Not part of OrderChat.
Version: 1.0.0
Author: Penxel Studio
Text Domain: threadline
*/

/* ------------------------------------------------------------------ tokens */
:root {
	--tl-paper: #faf8f5;
	--tl-surface: #ffffff;
	--tl-sunken: #f2efe9;
	--tl-ink: #1c1917;
	--tl-text: #3f3a36;
	--tl-muted: #78716c;
	--tl-line: #e7e2da;
	--tl-accent: #128c7e;
	--tl-accent-ink: #0b5e55;
	--tl-accent-soft: #e3f4f1;
	--tl-night: #10201d;
	--tl-radius: 16px;
	--tl-radius-sm: 10px;
	--tl-shadow: 0 1px 2px rgb(28 25 23 / 5%), 0 8px 24px -12px rgb(28 25 23 / 18%);
	--tl-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--tl-max: 1240px;
}

/* ------------------------------------------------------------------ base */
body.threadline {
	background: var(--tl-paper);
	color: var(--tl-text);
	font-family: var(--tl-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.threadline h1,
.threadline h2,
.threadline h3,
.threadline .product_title {
	color: var(--tl-ink);
	font-family: var(--tl-font);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.15;
}

/* :where keeps this at class weight so component link colours win. */
.threadline :where(a:not([class*="oc-"])) {
	color: var(--tl-accent-ink);
}

.threadline .col-full {
	max-width: var(--tl-max);
	padding-inline: 24px;
	box-sizing: border-box;
}

.threadline .site-content {
	padding-top: 32px;
}

/* OrderChat buttons and the widget keep their own colours (oc- classes). */
.threadline button:not([class*="oc-"]),
.threadline .button:not(.oc-button),
.threadline input[type="submit"],
.threadline .wc-block-components-button:not(.is-link) {
	border-radius: 999px;
	background: var(--tl-ink);
	color: #fff;
	font-family: var(--tl-font);
	font-weight: 600;
	transition: background 0.15s ease, transform 0.15s ease;
}

.threadline button:not([class*="oc-"]):hover,
.threadline .button:not(.oc-button):hover,
.threadline input[type="submit"]:hover {
	background: #000;
	color: #fff;
}

.threadline .button.alt,
.threadline button.alt,
.threadline .single_add_to_cart_button,
.threadline .checkout-button,
.threadline #place_order {
	background: var(--tl-ink);
}

.threadline input[type="text"],
.threadline input[type="email"],
.threadline input[type="tel"],
.threadline input[type="number"],
.threadline input[type="search"],
.threadline input[type="password"],
.threadline textarea,
.threadline select {
	border: 1px solid var(--tl-line);
	border-radius: var(--tl-radius-sm);
	background: var(--tl-surface);
	box-shadow: none;
	color: var(--tl-ink);
}

/* ------------------------------------------------------------------ header */
.threadline .site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	margin-bottom: 0;
	padding: 0;
	border-bottom: 1px solid var(--tl-line);
	background: rgb(250 248 245 / 88%);
	backdrop-filter: saturate(1.4) blur(12px);
}

.admin-bar.threadline .site-header {
	top: 32px;
}

.threadline .site-header .col-full {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 72px;
}

.threadline .site-header .col-full::before,
.threadline .site-header .col-full::after {
	display: none;
}

.threadline .site-header .site-branding {
	float: none;
	width: auto;
	margin: 0;
}

.threadline .site-branding .site-title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.04em;
}

.threadline .site-branding .site-title a {
	color: var(--tl-ink);
}

.threadline .site-branding .site-description {
	display: none;
}

.threadline .main-navigation {
	float: none;
	width: auto;
	flex: 1;
	margin: 0;
	padding: 0;
	clear: none;
}

.threadline .main-navigation ul.menu > li > a,
.threadline .main-navigation ul.nav-menu > li > a {
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--tl-text);
	font-size: 15px;
	font-weight: 500;
}

.threadline .main-navigation ul.menu > li > a:hover,
.threadline .main-navigation ul.nav-menu > li > a:hover,
.threadline .main-navigation .current-menu-item > a {
	background: var(--tl-sunken);
	color: var(--tl-ink);
}

.threadline .site-header-cart {
	float: none;
	width: auto;
	margin: 0;
}

.threadline .site-header-cart .cart-contents {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	padding: 8px 16px;
	border: 1px solid var(--tl-line);
	border-radius: 999px;
	background: var(--tl-surface);
	color: var(--tl-ink);
	font-weight: 600;
}

.threadline .site-header-cart .cart-contents::after {
	position: static;
	order: -1;
	float: none;
	height: auto;
	line-height: 1;
}

.threadline .site-header-cart .cart-contents .count {
	opacity: 0.6;
	font-weight: 500;
}

.threadline .site-header-cart .widget_shopping_cart {
	border-radius: var(--tl-radius);
	background: var(--tl-surface);
	box-shadow: var(--tl-shadow);
}

/* Phones: Storefront's menu toggle, brand on the left. */
@media (max-width: 767px) {
	.threadline .site-header .col-full {
		flex-wrap: wrap;
		gap: 12px;
		min-height: 60px;
		padding-block: 10px;
	}

	.threadline .site-header .site-branding {
		flex: 1;
	}

	.threadline .main-navigation {
		order: 3;
		flex-basis: 100%;
	}

	.threadline .menu-toggle {
		position: absolute;
		top: 12px;
		right: 24px;
		padding: 8px 14px;
		border: 1px solid var(--tl-line);
		background: var(--tl-surface);
		color: var(--tl-ink);
		font-size: 14px;
	}

	.threadline .site-header-cart {
		display: none;
	}
}

/* ------------------------------------------------------------------ breadcrumb */
.threadline .storefront-breadcrumb {
	margin: 0 0 24px;
	padding: 0;
}

.threadline .storefront-breadcrumb .col-full {
	padding: 0;
}

.threadline .woocommerce-breadcrumb {
	margin: 0 0 24px;
	padding: 0;
	color: var(--tl-muted);
	font-size: 14px;
}

.threadline .woocommerce-breadcrumb a {
	color: var(--tl-muted);
	text-decoration: none;
}

/* ------------------------------------------------------------------ home */
.tl-home {
	display: grid;
	gap: 88px;
	padding-bottom: 88px;
}

.threadline.home .site-content {
	padding-top: 24px;
}

.threadline.home .site-main,
.threadline.home #primary {
	margin: 0;
}

.tl-eyebrow {
	display: inline-block;
	margin: 0 0 20px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--tl-accent-soft);
	color: var(--tl-accent-ink);
	font-size: 13px;
	font-weight: 600;
}

.tl-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 48px;
	align-items: center;
	padding-top: 24px;
}

@media (min-width: 960px) {
	.tl-hero {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
		gap: 64px;
	}

	.tl-hero__art {
		min-height: 480px;
	}
}

.tl-hero h1 {
	margin: 0 0 20px;
	font-size: clamp(2.5rem, 1.6rem + 3.2vw, 4.25rem);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1.02;
}

.tl-lead {
	max-width: 34em;
	margin: 0 0 32px;
	color: var(--tl-text);
	font-size: 1.125rem;
}

.tl-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.tl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 24px;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.tl-btn:hover {
	transform: translateY(-1px);
}

.threadline .tl-btn--primary {
	background: var(--tl-ink);
	color: #fff;
	box-shadow: 0 8px 20px -8px rgb(28 25 23 / 50%);
}

.threadline .tl-btn--ghost {
	border: 1px solid var(--tl-line);
	background: var(--tl-surface);
	color: var(--tl-ink);
}

.threadline .tl-btn--light {
	background: #fff;
	color: var(--tl-night);
}

.tl-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
	color: var(--tl-muted);
	font-size: 14px;
}

.tl-trust li::before {
	content: "✓";
	margin-inline-end: 8px;
	color: var(--tl-accent);
	font-weight: 700;
}

/* Hero art: product tiles with a chat card on top. */
.tl-hero__art {
	position: relative;
	min-height: 420px;
}

.tl-hero__tile {
	position: absolute;
	overflow: hidden;
	border-radius: 28px;
	background: #e9eef1;
	box-shadow: var(--tl-shadow);
}

.tl-hero__tile img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tl-hero__tile--main {
	inset: 0 0 12% 22%;
}

.tl-hero__tile--side {
	right: 8%;
	bottom: 0;
	width: 30%;
	aspect-ratio: 1;
	border: 6px solid var(--tl-paper);
}

.tl-chat {
	position: absolute;
	top: 12%;
	left: 0;
	width: min(300px, 70%);
	padding: 12px;
	border-radius: 20px;
	background: #efeae2;
	box-shadow: 0 24px 48px -16px rgb(16 32 29 / 35%);
	font-size: 13px;
	line-height: 1.45;
	animation: tl-float 6s ease-in-out infinite;
}

@keyframes tl-float {
	50% {
		transform: translateY(-8px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tl-chat {
		animation: none;
	}
}

.tl-chat__head {
	display: flex;
	gap: 10px;
	align-items: center;
	margin: -12px -12px 12px;
	padding: 10px 12px;
	border-radius: 20px 20px 0 0;
	background: var(--tl-accent-ink);
	color: #fff;
}

.tl-chat__head b,
.tl-chat__head small {
	display: block;
	line-height: 1.2;
}

.tl-chat__head small {
	opacity: 0.75;
}

.tl-chat__avatar {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #fff;
	color: var(--tl-accent-ink);
	font-weight: 800;
}

.tl-bubble {
	position: relative;
	display: grid;
	gap: 2px;
	max-width: 88%;
	margin-bottom: 8px;
	padding: 8px 10px 18px;
	border-radius: 12px;
	background: #fff;
	color: #111;
	box-shadow: 0 1px 1px rgb(0 0 0 / 8%);
}

.tl-bubble--out {
	margin-inline-start: auto;
	background: #d9fdd3;
}

.tl-bubble__total {
	margin-top: 4px;
	font-weight: 700;
}

.tl-bubble i {
	position: absolute;
	right: 8px;
	bottom: 3px;
	color: #667781;
	font-size: 11px;
	font-style: normal;
}

@media (max-width: 599px) {
	.tl-hero__art {
		min-height: 340px;
	}

	.tl-hero__tile--main {
		inset: 0 0 16% 18%;
	}

	.tl-chat {
		top: 18%;
		width: 72%;
	}
}

/* OrderChat tour. */
.tl-tour {
	position: relative;
	overflow: hidden;
	padding: 56px 48px;
	border-radius: 32px;
	background:
		radial-gradient(60% 80% at 100% 0%, rgb(37 211 102 / 22%) 0%, transparent 60%),
		radial-gradient(50% 70% at 0% 100%, rgb(18 140 126 / 30%) 0%, transparent 60%),
		var(--tl-night);
	color: #c9d6d3;
}

@media (max-width: 767px) {
	.tl-tour {
		margin-inline: -8px;
		padding: 40px 20px;
		border-radius: 24px;
	}
}

.tl-tour__head {
	max-width: 640px;
	margin-bottom: 40px;
}

.tl-tour__head h2 {
	margin: 0 0 12px;
	color: #fff;
	font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
}

.tl-tour__head p {
	margin: 0;
}

.tl-tour__badge {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	margin-bottom: 16px !important;
	padding: 6px 14px 6px 8px;
	border: 1px solid rgb(255 255 255 / 12%);
	border-radius: 999px;
	background: rgb(255 255 255 / 6%);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}

.tl-tour__badge img {
	padding: 4px 5px;
	border-radius: 8px;
	background: #fff;
	box-sizing: content-box;
}

.tl-tour__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.tl-tour__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.tl-tour__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.tl-card--wide {
		grid-column: span 2;
	}

	/* Last row: one customer card and the store card across the rest. */
	.tl-card--dark.tl-card--wide {
		grid-column: span 3;
	}
}

.tl-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px;
	border: 1px solid rgb(255 255 255 / 9%);
	border-radius: 20px;
	background: rgb(255 255 255 / 5%);
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%);
	transition: border-color 0.15s ease, background 0.15s ease;
}

.tl-card:hover {
	border-color: rgb(37 211 102 / 40%);
	background: rgb(255 255 255 / 7%);
}

.tl-card h3 {
	margin: 0;
	color: #fff;
	font-size: 1.25rem;
}

.tl-card p {
	margin: 0;
	font-size: 15px;
}

.tl-card b {
	color: #fff;
	font-weight: 600;
}

.tl-card__step {
	color: #6ee7b7;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.threadline .tl-card__link {
	margin-top: auto;
	padding-top: 8px;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.threadline .tl-card__link:hover {
	color: #6ee7b7;
}

.tl-card--dark {
	border-color: rgb(37 211 102 / 35%);
	background: linear-gradient(135deg, rgb(18 140 126 / 45%), rgb(18 140 126 / 12%));
}

.tl-card--dark .tl-btn {
	align-self: flex-start;
	margin-top: auto;
}

.tl-login {
	color: #fff;
}

.tl-login code {
	padding: 2px 8px;
	border-radius: 6px;
	background: rgb(0 0 0 / 30%);
	color: #fff;
	font-size: 14px;
}

/* Sections. */
.tl-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.tl-section__head h2 {
	margin: 0;
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.threadline .tl-section__head a {
	color: var(--tl-ink);
	font-weight: 600;
	text-decoration: none;
}

.tl-cats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 16px;
}

.threadline .tl-cat {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--tl-radius);
	background: #e9eef1;
	color: var(--tl-ink);
	text-decoration: none;
	aspect-ratio: 4 / 3;
}

.tl-cat img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease-out;
}

.tl-cat:hover img {
	transform: scale(1.04);
}

.tl-cat span {
	position: absolute;
	right: 16px;
	bottom: 16px;
	left: 16px;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding: 12px 16px;
	border-radius: 12px;
	background: rgb(255 255 255 / 85%);
	backdrop-filter: blur(8px);
}

.tl-cat small {
	color: var(--tl-muted);
}

.tl-steps ol {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.tl-steps li {
	padding: 28px;
	border: 1px solid var(--tl-line);
	border-radius: var(--tl-radius);
	background: var(--tl-surface);
}

.tl-steps li span {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: var(--tl-accent-soft);
	color: var(--tl-accent-ink);
	font-weight: 700;
}

.tl-steps h3 {
	margin: 0 0 8px;
	font-size: 1.125rem;
}

.tl-steps p {
	margin: 0;
	color: var(--tl-muted);
}

/* ------------------------------------------------------------------ product grids */
.threadline ul.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 16px;
	margin: 0;
}

@media (min-width: 768px) {
	.threadline ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 40px 24px;
	}
}

.threadline ul.products::before,
.threadline ul.products::after {
	display: none;
}

/* !important: Storefront sizes cards by column count with more specific selectors. */
.threadline ul.products li.product {
	display: flex;
	flex-direction: column;
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	text-align: start;
}

.threadline ul.products li.product img {
	margin-bottom: 16px;
	border-radius: var(--tl-radius);
	background: #e9eef1;
	transition: transform 0.3s ease-out;
}

.threadline ul.products li.product a:hover img {
	transform: translateY(-2px);
}

.threadline ul.products li.product .woocommerce-loop-product__title {
	margin-bottom: 4px;
	color: var(--tl-ink);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.threadline ul.products li.product .price {
	margin-bottom: 12px;
	color: var(--tl-text);
	font-size: 15px;
}

.threadline ul.products li.product .price ins {
	font-weight: 600;
}

.threadline ul.products li.product .onsale {
	position: absolute;
	top: 12px;
	left: 12px;
	margin: 0;
	padding: 2px 10px;
	border: 0;
	border-radius: 999px;
	background: var(--tl-ink);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
}

.threadline ul.products li.product {
	position: relative;
}

/* Add to cart and the OrderChat button side by side at the bottom of each card. */
.threadline ul.products li.product .button:not(.oc-button) {
	margin: auto 0 0;
	padding: 10px 16px;
	border: 1px solid var(--tl-line);
	background: var(--tl-surface);
	color: var(--tl-ink);
	font-size: 14px;
}

.threadline ul.products li.product .button:not(.oc-button):hover {
	border-color: var(--tl-ink);
	background: var(--tl-surface);
}

.threadline ul.products li.product .oc-button {
	width: 100%;
	margin-top: 8px;
}

.threadline ul.products li.product .added_to_cart {
	font-size: 14px;
}

/* ------------------------------------------------------------------ shop page */
.threadline .woocommerce-products-header__title,
.threadline .entry-title {
	font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
	font-weight: 800;
	letter-spacing: -0.04em;
}

.threadline .storefront-sorting {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 32px;
	font-size: 14px;
}

.threadline .storefront-sorting::before,
.threadline .storefront-sorting::after {
	display: none;
}

.threadline .storefront-sorting > * {
	float: none;
	margin: 0;
}

.threadline .storefront-sorting + .storefront-sorting,
.threadline .woocommerce-pagination + .storefront-sorting,
.threadline ul.products + .storefront-sorting {
	margin-top: 40px;
}

.threadline.post-type-archive-product .site-main,
.threadline.tax-product_cat .site-main {
	margin-bottom: 64px;
}

/* Full width shop and product pages (Storefront puts a sidebar next to them). */
.threadline.woocommerce-page #primary,
.threadline.page #primary {
	float: none;
	width: 100%;
	margin-inline: 0;
}

.threadline.woocommerce-page #secondary,
.threadline.page #secondary {
	display: none;
}

/* ------------------------------------------------------------------ single product */
.threadline.single-product div.product {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
	margin-bottom: 64px;
}

@media (min-width: 768px) {
	.threadline.single-product div.product {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
		gap: 64px;
	}
}

.threadline.single-product div.product::before,
.threadline.single-product div.product::after {
	display: none;
}

.threadline.single-product div.product .woocommerce-product-gallery,
.threadline.single-product div.product .summary {
	float: none;
	width: auto;
	margin: 0;
}

.threadline.single-product div.product .woocommerce-tabs,
.threadline.single-product div.product .related,
.threadline.single-product div.product .upsells {
	grid-column: 1 / -1;
}

.threadline.single-product div.product .woocommerce-product-gallery img {
	width: 100%;
}

.threadline.single-product div.product .woocommerce-product-gallery__image img,
.threadline.single-product div.product .woocommerce-product-gallery .flex-viewport {
	border-radius: 24px;
	background: #e9eef1;
}

.threadline.single-product div.product .product_title {
	margin-bottom: 12px;
	font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
	font-weight: 800;
	letter-spacing: -0.04em;
}

.threadline.single-product div.product p.price {
	margin-bottom: 16px;
	color: var(--tl-ink);
	font-size: 1.5rem;
	font-weight: 600;
}

.threadline.single-product div.product .woocommerce-product-details__short-description {
	margin-bottom: 24px;
	color: var(--tl-text);
	font-size: 1.0625rem;
}

.threadline.single-product div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: stretch;
	margin-bottom: 24px;
	padding: 0;
}

.threadline.single-product div.product form.cart::before,
.threadline.single-product div.product form.cart::after {
	display: none;
}

.threadline.single-product div.product form.cart .quantity {
	float: none;
	margin: 0;
}

.threadline.single-product div.product form.cart .quantity .qty {
	width: 72px;
	height: 100%;
	min-height: 48px;
	border-radius: 999px;
	text-align: center;
}

.threadline.single-product div.product form.cart .button {
	float: none;
	min-height: 48px;
	margin: 0;
	padding: 0 28px;
}

.threadline.single-product div.product form.cart .variations {
	margin-bottom: 8px;
	border: 0;
}

.threadline.single-product div.product form.cart .variations th,
.threadline.single-product div.product form.cart .variations td {
	display: block;
	padding: 0;
	background: none;
	text-align: start;
}

.threadline.single-product div.product form.cart .variations th label {
	color: var(--tl-ink);
	font-size: 14px;
	font-weight: 600;
	text-transform: capitalize;
}

.threadline.single-product div.product form.cart .variations td {
	padding-bottom: 16px;
}

.threadline.single-product div.product form.cart .variations select {
	width: 100%;
	max-width: 360px;
	min-height: 44px;
	padding: 0 14px;
	font-size: 15px;
}

.threadline .reset_variations {
	margin-inline-start: 12px;
	font-size: 14px;
}

.threadline.single-product div.product form.cart .single_variation_wrap,
.threadline.single-product div.product form.cart .variations {
	flex-basis: 100%;
}

.threadline.single-product div.product .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.threadline.single-product div.product .oc-button {
	min-height: 48px;
	margin: 0;
}

.threadline.single-product div.product .product_meta {
	padding-top: 16px;
	border-top: 1px solid var(--tl-line);
	color: var(--tl-muted);
	font-size: 14px;
}

.threadline.single-product div.product .product_meta a {
	color: var(--tl-muted);
}

.threadline .storefront-product-pagination {
	display: none;
}

/* Tabs as one stacked panel. */
.threadline .woocommerce-tabs {
	padding: 32px;
	border: 1px solid var(--tl-line);
	border-radius: 24px;
	background: var(--tl-surface);
}

.threadline .woocommerce-tabs::before,
.threadline .woocommerce-tabs::after {
	display: none;
}

.threadline .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	float: none;
	width: auto;
	margin: 0 0 24px;
	border: 0;
}

.threadline .woocommerce-tabs ul.tabs li {
	border: 0;
}

.threadline .woocommerce-tabs ul.tabs li a {
	padding: 8px 16px;
	border-radius: 999px;
	color: var(--tl-text);
	font-weight: 500;
}

.threadline .woocommerce-tabs ul.tabs li.active a {
	background: var(--tl-ink);
	color: #fff;
}

.threadline .woocommerce-tabs ul.tabs li::after,
.threadline .woocommerce-tabs ul.tabs li a::after {
	display: none;
}

.threadline .woocommerce-tabs .panel {
	float: none;
	width: auto;
	margin: 0;
}

.threadline .woocommerce-tabs .panel h2:first-of-type {
	font-size: 1.25rem;
}

.threadline .related.products > h2,
.threadline .upsells.products > h2 {
	margin-bottom: 24px;
	font-size: 1.75rem;
	text-align: start !important;
}

.threadline .related.products,
.threadline .upsells.products {
	float: none;
	width: auto;
	margin-top: 32px;
}

/* ------------------------------------------------------------------ cart and checkout */
.threadline table.shop_table,
.threadline .cart_totals,
.threadline #order_review {
	border-radius: var(--tl-radius);
}

.threadline .wc-block-cart,
.threadline .wc-block-checkout {
	margin-bottom: 64px;
}

/* ------------------------------------------------------------------ footer */
.threadline .site-footer {
	padding: 56px 0 40px;
	border-top: 1px solid var(--tl-line);
	background: var(--tl-sunken);
	color: var(--tl-muted);
}

.threadline .site-footer .footer-widgets {
	display: none;
}

.tl-footer {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
}

@media (min-width: 768px) {
	.tl-footer {
		grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
	}
}

.tl-footer__brand strong {
	color: var(--tl-ink);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.04em;
}

.tl-footer__brand p {
	margin: 6px 0 0;
	max-width: 30em;
}

.tl-footer__pay {
	font-size: 14px;
}

.tl-footer__col {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tl-footer__col h2 {
	margin: 0 0 6px;
	color: var(--tl-ink);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.threadline .tl-footer__col a {
	color: var(--tl-text);
	font-size: 15px;
	text-decoration: none;
}

.threadline .tl-footer__col a:hover {
	color: var(--tl-accent-ink);
}

.tl-footer__note {
	grid-column: 1 / -1;
	margin: 0;
	padding-top: 24px;
	border-top: 1px solid var(--tl-line);
	font-size: 14px;
}

/* ------------------------------------------------------------------ pagination and block grids */
.threadline .woocommerce-pagination .page-numbers li .page-numbers {
	min-width: 36px;
	border-radius: 999px;
	background: var(--tl-surface);
	color: var(--tl-ink);
}

.threadline .woocommerce-pagination .page-numbers li .page-numbers.current {
	background: var(--tl-ink);
	color: #fff;
}

.threadline .storefront-sorting select {
	min-height: 40px;
	padding: 0 12px;
}

.threadline .wc-block-grid__product-title,
.threadline .wc-block-components-product-name {
	color: var(--tl-ink);
	font-weight: 600;
}

.threadline .wp-block-button__link,
.threadline .wc-block-grid__product-add-to-cart .wp-block-button__link {
	border-radius: 999px;
	background: var(--tl-ink);
	color: #fff;
}

.threadline .wc-block-grid__product-image img,
.threadline .wc-block-components-product-image img {
	border-radius: var(--tl-radius);
}

/* ------------------------------------------------------------------ content pages */
.threadline.page:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .entry-content {
	max-width: 760px;
	font-size: 17px;
}

.threadline.page .entry-header {
	margin-bottom: 24px;
}

.threadline .entry-content h2 {
	margin: 40px 0 12px;
	font-size: 1.5rem;
}

.threadline .entry-content ul {
	margin: 0 0 24px 1.2em;
}

.threadline .entry-content li {
	margin-bottom: 8px;
}

.threadline .wp-block-details {
	margin: 0 0 12px;
	padding: 18px 22px;
	border: 1px solid var(--tl-line);
	border-radius: var(--tl-radius-sm);
	background: var(--tl-surface);
}

.threadline .wp-block-details summary {
	color: var(--tl-ink);
	font-weight: 600;
	cursor: pointer;
}

.threadline .wp-block-details p {
	margin: 12px 0 0;
}

.threadline .ocd-login {
	margin: 0 0 24px;
	padding: 24px;
	border-radius: var(--tl-radius);
	background: var(--tl-accent-soft);
}

.threadline .ocd-login p {
	margin: 0 0 12px;
}

.threadline .ocd-login code,
.threadline .entry-content code {
	padding: 2px 8px;
	border-radius: 6px;
	background: #fff;
	color: var(--tl-ink);
}

.threadline .tl-btn.ocd-open-chat {
	border: 0;
	cursor: pointer;
	font-size: 16px;
}

/* Product reviews */
.threadline #reviews .commentlist li .comment_container {
	padding: 20px 0;
	border-bottom: 1px solid var(--tl-line);
}

.threadline #reviews .commentlist li img.avatar {
	border-radius: 50%;
}

.threadline .star-rating span::before,
.threadline .stars a {
	color: #f59e0b;
}

/* WooCommerce cart and checkout blocks: keep them inside the content column. */
.threadline .wp-block-woocommerce-cart.alignwide,
.threadline .wp-block-woocommerce-checkout.alignwide {
	max-width: none;
	margin-right: 0 !important;
	margin-left: 0 !important;
}

.threadline a.tl-btn,
.threadline .wc-block-components-button,
.threadline .wc-block-cart__submit-button,
.threadline a.oc-button {
	text-decoration: none;
}

.threadline .wc-block-cart .wc-block-cart__totals-title {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
}
