/* ==========================================================================
   Alttanin — WooCommerce (classic templates + Cart/Checkout blocks)
   ========================================================================== */

/* Forms ------------------------------------------------------------------ */
body.tn form .form-row input.input-text,
body.tn form .form-row textarea,
body.tn form .form-row select,
body.tn form .input-text,
body.tn input.input-text,
body.tn select,
.tn .tn-content input[type="text"],
.tn .tn-content input[type="email"],
.tn .tn-content input[type="tel"],
.tn .tn-content input[type="password"],
.tn .tn-content input[type="number"],
.tn .tn-content select,
.tn .tn-content textarea,
.tn .select2-container .select2-selection--single {
	min-height: 52px;
	padding: 12px 16px;
	border-radius: var(--tn-r-sm);
	border: 1.5px solid var(--tn-line-2);
	background: var(--tn-field);
	color: var(--tn-ink);
	font: inherit;
	line-height: 1.4;
	width: 100%;
	transition: border-color .2s ease, box-shadow .2s ease;
}
body.tn form .form-row textarea { min-height: 110px; }
body.tn input.input-text:focus,
body.tn select:focus,
.tn .tn-content input:focus,
.tn .tn-content select:focus,
.tn .tn-content textarea:focus {
	border-color: var(--tn-emerald);
	box-shadow: 0 0 0 3px rgba(11,61,48,.15);
	outline: none;
}
.tn .select2-container .select2-selection--single { display: flex; align-items: center; height: auto; }
.tn .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 1.4; padding: 0; color: var(--tn-ink); }
.tn .select2-container--default .select2-selection--single .select2-selection__arrow { height: 50px; inset-inline-end: 10px; }
.tn .select2-dropdown { border-color: var(--tn-line-2); border-radius: 14px; overflow: hidden; }
body.tn form .form-row label { font-weight: 600; font-size: 14px; margin-bottom: 6px; display: block; }
body.tn form .form-row { margin-bottom: 14px; padding: 0; }
body.tn form .form-row .required { color: var(--tn-ember-ink); text-decoration: none; }

/* Buttons ---------------------------------------------------------------- */
body.tn a.button,
body.tn button.button,
body.tn input.button,
body.tn #respond input#submit,
body.tn a.button,
body.tn button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 16px;
	border: 0;
	background: var(--tn-emerald);
	color: #fff;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: transform .15s ease, filter .2s ease, background-color .2s ease;
}
body.tn a.button:hover,
body.tn button.button:hover,
body.tn input.button:hover { background: var(--tn-emerald-2); color: #fff; }
body.tn a.button:active,
body.tn button.button:active { transform: scale(.97); }
body.tn a.button.alt,
body.tn button.button.alt,
body.tn input.button.alt,
body.tn #place_order,
body.tn a.checkout-button {
	background: var(--tn-ember);
	color: var(--tn-ink);
	min-height: 60px;
	font-size: 18px;
	font-weight: 800;
	border-radius: 18px;
}
body.tn a.button.alt:hover,
body.tn button.button.alt:hover,
body.tn #place_order:hover,
body.tn a.checkout-button:hover { background: #EE7B49; color: var(--tn-ink); }
body.tn button.button:disabled,
body.tn button.button.disabled { opacity: .55; }

/* Notices ---------------------------------------------------------------- */
.tn .woocommerce-message,
.tn .woocommerce-info,
.tn .woocommerce-error,
.tn .wc-block-components-notice-banner {
	border: 0;
	border-radius: 18px;
	background: var(--tn-surface);
	color: var(--tn-ink);
	padding: 16px 20px;
	padding-inline-start: 52px;
	box-shadow: inset 0 0 0 1.5px var(--tn-line);
	margin-bottom: 18px;
	list-style: none;
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
}
.tn .woocommerce-message { box-shadow: inset 0 0 0 1.5px #A9C4B6; background: #F1F6F3; }
.tn .woocommerce-error { box-shadow: inset 0 0 0 1.5px #F2B8A0; background: #FFF5F0; }
.tn .woocommerce-message::before,
.tn .woocommerce-info::before,
.tn .woocommerce-error::before { top: 50%; transform: translateY(-50%); inset-inline-start: 20px; color: var(--tn-emerald); }
.tn .woocommerce-error::before { color: var(--tn-ember-ink); }
.tn .woocommerce-message .button,
.tn .woocommerce-info .button { order: 2; margin-inline-start: auto; min-height: 40px; float: none; }

/* Product grid ----------------------------------------------------------- */
body.tn ul.products,
.tn ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (max-width: 1100px) { body.tn ul.products, .tn ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 780px) { body.tn ul.products, .tn ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body.tn ul.products::before,
body.tn ul.products::after { display: none; }
body.tn ul.products li.product.tn-card,
.tn ul.products li.product.tn-card {
	width: auto;
	margin: 0;
	float: none;
	position: relative;
	background: var(--tn-surface);
	border: 1px solid var(--tn-line);
	border-radius: 26px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
@media (max-width: 560px) {
	body.tn ul.products, .tn ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.tn ul.products li.product.tn-card { padding: 8px; border-radius: 20px; }
}

.tn-card__media {
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 20px;
	overflow: hidden;
}
.tn ul.products li.product .tn-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	margin: 0;
	mix-blend-mode: multiply;
	transition: transform .4s var(--tn-ease);
}
.tn-card:hover .tn-card__media img { transform: scale(1.05); }

.tn-card__badges { position: absolute; top: 22px; inset-inline-start: 22px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; pointer-events: none; }
body.tn span.onsale.tn-badge,
.tn span.onsale.tn-badge,
.tn-badge {
	position: static;
	min-height: 0; min-width: 0;
	margin: 0;
	padding: 6px 10px;
	line-height: 1.2;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 700;
	background: var(--tn-ink);
	color: #fff;
}
body.tn span.onsale.tn-badge--sale, .tn span.onsale.tn-badge--sale { background: var(--tn-ember); color: var(--tn-ink); }
.tn-badge--out { background: #8A948F; }

.tn-card__body { padding: 0 6px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tn-card__brand { color: var(--tn-emerald); font-size: 13px; font-weight: 700; }
body.tn ul.products li.product .tn-card__title,
.tn ul.products li.product .tn-card__title {
	margin: 0;
	padding: 0;
	font-family: var(--tn-font);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.65;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: calc(1.65em * 2);
}
.tn-card__title a { color: var(--tn-ink); text-decoration: none; }
.tn-card__title a::after { content: ''; position: absolute; inset: 0; border-radius: 26px; }
.tn-card__title a:hover { color: var(--tn-emerald); }
.tn ul.products li.product .star-rating { margin: 0; font-size: 13px; }

.tn-card__foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px 4px; flex-wrap: wrap; }
.tn-card__price { font-family: var(--tn-display); font-weight: 800; font-size: 24px; line-height: 1.1; color: var(--tn-ink); }
.tn-card__price del { display: block; font-size: 14px; color: var(--tn-muted); font-weight: 600; opacity: 1; }
.tn-card__price ins { text-decoration: none; }
.tn-card__price .woocommerce-Price-currencySymbol { font-family: var(--tn-font); font-size: 13px; font-weight: 500; color: var(--tn-muted); }

.tn ul.products li.product .tn-card__foot .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1.2;
	padding-block: 0;
	margin: 0;
	min-height: 46px;
	padding: 0 16px;
	border-radius: 14px;
	font-size: 14px;
	background: var(--tn-emerald);
	color: #fff;
}
.tn ul.products li.product .tn-card__foot .button.loading { opacity: .7; }
.tn ul.products li.product .tn-card__foot .button.loading::after { inset-inline-end: 8px; top: auto; }
.tn ul.products li.product .tn-card__foot .button.tn-added,
.tn ul.products li.product .tn-card__foot .button.added { background: var(--tn-ember-ink); }
.tn ul.products li.product .tn-card__foot .added_to_cart {
	flex-basis: 100%;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	padding: 4px 0 0;
}
@media (max-width: 560px) {
	.tn-card__price { font-size: 20px; }
	.tn ul.products li.product .tn-card__foot .button { min-height: 44px; padding: 0 12px; flex: 1 1 100%; }
}

/* Archive ---------------------------------------------------------------- */
.tn-archive { padding-top: 28px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.tn-archive__main { flex: 999 1 560px; min-width: 0; }
.tn-filters {
	flex: 1 1 260px;
	max-width: 320px;
	position: sticky;
	top: 110px;
	background: var(--tn-surface);
	border-radius: 26px;
	padding: 24px;
	display: flex; flex-direction: column; gap: 22px;
}
.tn-filters__title { margin: 0; font-family: var(--tn-display); font-size: 22px; }
.tn-filter__title { margin: 0 0 10px; font-size: 16px; font-weight: 700; font-family: var(--tn-font); }
.tn-filter ul { list-style: none; margin: 0; padding: 0; }
.tn-filter li { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tn-filter li a { color: var(--tn-ink); text-decoration: none; }
.tn-filter li.chosen a, .tn-filter li.wc-layered-nav-term.chosen a { color: var(--tn-emerald); font-weight: 700; }
.tn-filter .count { color: var(--tn-muted); font-size: 14px; }
.tn .widget_price_filter .ui-slider .ui-slider-range { background: var(--tn-emerald); }
.tn .widget_price_filter .ui-slider .ui-slider-handle { background: var(--tn-ember); width: 18px; height: 18px; top: -6px; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.tn .widget_price_filter .price_slider_wrapper .ui-widget-content { background: var(--tn-line); height: 6px; border-radius: 3px; }
.tn .widget_price_filter .price_slider_amount { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 14px; }
.tn .widget_price_filter .price_slider_amount .button { min-height: 40px; float: none; }
.tn-filter-toggle { display: none; }

@media (max-width: 900px) {
	.tn-filter-toggle { display: inline-flex; }
	.tn-filters { display: none; position: static; max-width: none; flex-basis: 100%; }
	.tn-filters.is-open { display: flex; }
}

.tn .woocommerce-result-count { margin: 0 0 18px; color: var(--tn-ink-2); float: none; display: inline-block; }
.tn .woocommerce-ordering { margin: 0 0 18px; float: none; display: inline-block; margin-inline-start: 0; }
.tn .tn-archive__main .woocommerce-ordering { float: inline-end; }
.tn .woocommerce-ordering select { min-height: 46px; border-radius: 14px; border: 1px solid var(--tn-line-2); background: var(--tn-surface); padding: 0 14px; font: inherit; color: var(--tn-ink); width: auto; }
.tn .tn-archive__main ul.products { clear: both; }

body.tn nav.woocommerce-pagination { margin-top: 32px; }
body.tn nav.woocommerce-pagination ul { border: 0; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 100%; }
body.tn nav.woocommerce-pagination ul li { border: 0; }
body.tn nav.woocommerce-pagination ul li a,
body.tn nav.woocommerce-pagination ul li span {
	min-width: 46px; height: 46px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 14px;
	background: var(--tn-surface);
	color: var(--tn-ink);
	font-weight: 700;
}
body.tn nav.woocommerce-pagination ul li span.current,
body.tn nav.woocommerce-pagination ul li a:hover { background: var(--tn-emerald); color: #fff; }

.tn .woocommerce-no-products-found .woocommerce-info { justify-content: center; padding: 40px; }

/* Single product --------------------------------------------------------- */
.tn-single { padding-top: 18px; }
.tn-single .product { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.tn-single .product > * { min-width: 0; }
body.tn div.product div.images,
body.tn div.product div.images { float: none; width: auto; flex: 1 1 520px; margin: 0; }
body.tn div.product div.summary,
body.tn div.product div.summary {
	float: none;
	width: auto;
	flex: 1 1 420px;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
	position: sticky;
	top: 110px;
}
@media (max-width: 960px) { body.tn div.product div.summary { position: static; } }
body.tn div.product .woocommerce-tabs,
body.tn div.product .related,
body.tn div.product .upsells { flex: 1 1 100%; }

body.tn div.product div.images .woocommerce-product-gallery__wrapper { border-radius: 32px; overflow: hidden; background: var(--tn-surface); }
body.tn div.product div.images img { border-radius: 32px; }
body.tn div.product div.images .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
body.tn div.product div.images .flex-control-thumbs li { width: auto; float: none; margin: 0; }
body.tn div.product div.images .flex-control-thumbs li img { border-radius: 16px; background: var(--tn-surface); opacity: .6; border: 3px solid transparent; transition: opacity .2s ease, border-color .2s ease; }
body.tn div.product div.images .flex-control-thumbs li img.flex-active,
body.tn div.product div.images .flex-control-thumbs li img:hover { opacity: 1; border-color: var(--tn-emerald); }
body.tn div.product div.images .woocommerce-product-gallery__trigger { top: 18px; inset-inline-end: 18px; left: auto; background: var(--tn-surface); width: 44px; height: 44px; border-radius: 22px; }
body.tn div.product span.onsale.tn-badge { position: absolute; top: 18px; inset-inline-start: 18px; z-index: 5; font-size: 14px; padding: 8px 14px; }

body.tn div.product .product_title { margin: 0; font-family: var(--tn-display); font-weight: 800; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.25; }
body.tn div.product .woocommerce-product-rating { margin: 0; }
body.tn div.product p.price,
body.tn div.product span.price { margin: 0; color: var(--tn-ink); font-family: var(--tn-display); font-weight: 800; font-size: clamp(38px, 4vw, 52px); line-height: 1; }
body.tn div.product p.price del { font-size: .45em; color: var(--tn-muted); opacity: 1; margin-inline-end: 8px; }
body.tn div.product p.price ins { text-decoration: none; }
body.tn div.product p.price .woocommerce-Price-currencySymbol { font-family: var(--tn-font); font-size: 16px; font-weight: 600; color: var(--tn-muted); }
body.tn div.product .woocommerce-product-details__short-description { color: var(--tn-ink-2); font-size: 17px; line-height: 1.8; }
body.tn div.product .woocommerce-product-details__short-description p { margin: 0; }
body.tn div.product .stock { margin: 0; font-weight: 700; color: var(--tn-emerald); }
body.tn div.product .stock.out-of-stock { color: var(--tn-ember-ink); }

body.tn div.product form.cart { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
body.tn div.product form.cart::before,
body.tn div.product form.cart::after { display: none; }
body.tn div.product form.cart div.quantity { float: none; margin: 0; }
body.tn div.product form.cart .single_add_to_cart_button {
	float: none;
	flex: 1 1 200px;
	min-height: 60px;
	font-size: 18px;
	border-radius: 18px;
	background: var(--tn-emerald);
	color: #fff;
}
body.tn div.product form.cart .single_add_to_cart_button:hover { background: var(--tn-emerald-2); }
body.tn div.product form.cart .variations { margin: 0 0 6px; width: 100%; flex-basis: 100%; }
body.tn div.product form.cart .variations td,
body.tn div.product form.cart .variations th { padding: 6px 0; display: block; text-align: start; }
body.tn div.product form.cart .variations label { font-weight: 700; }
body.tn div.product form.cart .reset_variations { font-size: 14px; }
body.tn div.product form.cart .single_variation_wrap { flex-basis: 100%; }
body.tn div.product form.cart .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 10px; }
body.tn div.product .product_meta { font-size: 14px; color: var(--tn-muted); display: flex; flex-direction: column; gap: 4px; }
body.tn div.product .product_meta a { color: var(--tn-ink-2); }

/* Quantity stepper */
.tn .quantity.tn-qty {
	display: inline-flex;
	align-items: center;
	background: var(--tn-surface);
	border: 1.5px solid var(--tn-line-2);
	border-radius: 18px;
	min-height: 56px;
	overflow: hidden;
}
.tn .quantity.tn-qty .qty {
	width: 44px;
	min-height: 0;
	height: 52px;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: center;
	font: inherit;
	font-weight: 700;
	font-size: 18px;
	color: var(--tn-ink);
	-moz-appearance: textfield;
	box-shadow: none;
}
.tn .quantity.tn-qty .qty::-webkit-outer-spin-button,
.tn .quantity.tn-qty .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tn-qty__btn {
	width: 48px; height: 54px;
	border: 0;
	background: transparent;
	color: var(--tn-ink);
	font-size: 22px;
	cursor: pointer;
	transition: background-color .15s ease;
}
.tn-qty__btn:hover { background: var(--tn-ground); }

.tn-wa { min-height: 56px; border-radius: 18px; }
.tn-infobox { background: var(--tn-surface); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.tn-infobox__row { display: flex; gap: 14px; align-items: flex-start; }
.tn-infobox__row p { margin: 4px 0 0; color: var(--tn-muted); font-size: 14px; line-height: 1.7; }
.tn-infobox__icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: var(--tn-emerald); }
.tn-infobox__icon.tn-tint--peach { color: var(--tn-ember-ink); }

/* Tabs */
body.tn div.product .woocommerce-tabs { margin-top: 24px; }
body.tn div.product .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 16px; overflow: visible; }
body.tn div.product .woocommerce-tabs ul.tabs::before,
body.tn div.product .woocommerce-tabs ul.tabs li::before,
body.tn div.product .woocommerce-tabs ul.tabs li::after { display: none; }
body.tn div.product .woocommerce-tabs ul.tabs li { border: 0; background: var(--tn-surface); border-radius: 14px; margin: 0; padding: 0; }
body.tn div.product .woocommerce-tabs ul.tabs li a { display: flex; align-items: center; min-height: 48px; padding: 0 22px; color: var(--tn-ink); font-weight: 700; }
body.tn div.product .woocommerce-tabs ul.tabs li.active { background: var(--tn-ink); }
body.tn div.product .woocommerce-tabs ul.tabs li.active a { color: #fff; }
body.tn div.product .woocommerce-tabs .panel { background: var(--tn-surface); border-radius: 28px; padding: clamp(22px, 3vw, 36px); margin: 0; font-size: 16px; line-height: 1.9; }
body.tn div.product .woocommerce-tabs .panel > h2:first-child { font-family: var(--tn-display); font-size: 24px; margin-top: 0; }
body.tn div.product .woocommerce-tabs .panel ul li::marker { color: var(--tn-ember); }
body.tn table.shop_attributes { border: 0; }
body.tn table.shop_attributes th, body.tn table.shop_attributes td { border: 0; border-bottom: 1px solid var(--tn-line); padding: 12px; background: transparent; font-style: normal; text-align: start; }

/* Reviews */
body.tn #reviews #comments ol.commentlist li .comment-text { border-color: var(--tn-line); border-radius: 18px; }
body.tn .star-rating span::before, body.tn p.stars a { color: var(--tn-ember); }

/* Related */
body.tn div.product .related > h2,
body.tn div.product .upsells > h2,
.tn .cross-sells > h2 { font-family: var(--tn-display); font-weight: 800; font-size: clamp(26px, 3vw, 36px); margin: 32px 0 20px; }

/* Cart (classic) --------------------------------------------------------- */
.tn-page--cart .woocommerce { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.tn-page--cart .woocommerce > .woocommerce-notices-wrapper { flex-basis: 100%; }
.tn-page--cart .woocommerce-cart-form { flex: 999 1 560px; min-width: 0; }
.tn-page--cart .cart-collaterals { flex: 1 1 340px; min-width: 0; width: auto; position: sticky; top: 110px; }
body.tn .cart-collaterals .cart_totals,
body.tn .cart-collaterals .cart_totals { float: none; width: 100%; }
.tn .cart-collaterals .cross-sells { display: none; }

body.tn table.shop_table {
	border: 0;
	border-radius: 24px;
	background: var(--tn-surface);
	border-collapse: separate;
	border-spacing: 0;
	margin: 0 0 16px;
	overflow: hidden;
}
body.tn table.shop_table th { font-weight: 700; padding: 16px; border: 0; color: var(--tn-ink-2); font-size: 14px; }
body.tn table.shop_table td { padding: 16px; border-top: 1px solid var(--tn-line); vertical-align: middle; }
body.tn table.shop_table img { width: 88px; border-radius: 16px; background: var(--tn-ground); }
body.tn table.shop_table td.product-name a { color: var(--tn-ink); text-decoration: none; font-weight: 600; }
body.tn table.shop_table td.product-subtotal { font-family: var(--tn-display); font-weight: 800; font-size: 20px; }
body.tn table.cart td.actions { background: var(--tn-ground); }
body.tn table.cart td.actions .coupon { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
body.tn table.cart td.actions .coupon .input-text { width: 200px; min-height: 48px; margin: 0; }
body.tn table.cart td.actions > .button { float: inline-end; background: var(--tn-ink); }
body.tn a.remove {
	width: 40px; height: 40px;
	border-radius: 12px;
	background: var(--tn-peach);
	color: var(--tn-ember-ink) !important;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 22px;
	font-weight: 400;
}
body.tn a.remove:hover { background: var(--tn-ember-ink); color: #fff !important; }

.tn .cart_totals,
.tn .woocommerce-checkout-review-order,
.tn #order_review {
	background: var(--tn-surface);
	border-radius: 28px;
	padding: 26px;
}
.tn .cart_totals > h2 { margin: 0 0 12px; font-family: var(--tn-display); font-size: 26px; }
.tn .cart_totals table.shop_table { border-radius: 0; background: transparent; }
.tn .cart_totals table.shop_table th, .tn .cart_totals table.shop_table td { padding: 12px 0; }
.tn .cart_totals .order-total .amount { font-family: var(--tn-display); font-weight: 800; font-size: 30px; }
.tn .wc-proceed-to-checkout { padding: 8px 0 0; }
.tn .wc-proceed-to-checkout a.checkout-button { margin: 0; width: 100%; }

@media (max-width: 768px) {
	body.tn table.shop_table_responsive tr { display: block; border-top: 1px solid var(--tn-line); padding: 8px 0; }
	body.tn table.shop_table_responsive tr td { border: 0; padding: 8px 16px; }
	body.tn table.cart td.actions .coupon .input-text { width: 100%; flex: 1 1 100%; }
	.tn-page--cart .cart-collaterals { position: static; }
}

/* Checkout (classic) ----------------------------------------------------- */
.tn-page--checkout form.checkout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.tn-page--checkout form.checkout > .woocommerce-NoticeGroup { flex-basis: 100%; }
.tn-page--checkout #customer_details { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.tn-page--checkout #customer_details .col-1,
.tn-page--checkout #customer_details .col-2 { float: none; width: 100%; background: var(--tn-surface); border-radius: 28px; padding: 28px; }
.tn-page--checkout #customer_details h3,
.tn-page--checkout #order_review_heading { margin: 0 0 16px; font-family: var(--tn-display); font-size: 26px; }
.tn-page--checkout #order_review_heading { display: none; }
.tn-page--checkout #order_review { flex: 1 1 360px; min-width: 0; position: sticky; top: 110px; }
.tn .woocommerce-checkout-review-order-table { background: transparent; }
.tn .woocommerce-checkout-review-order-table th,
.tn .woocommerce-checkout-review-order-table td { padding: 10px 0 !important; }
.tn .woocommerce-checkout-review-order-table .order-total .amount { font-family: var(--tn-display); font-weight: 800; font-size: 28px; }
body.tn #payment { background: transparent; border-radius: 0; }
body.tn #payment ul.payment_methods { border: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
body.tn #payment ul.payment_methods li {
	border: 2px solid var(--tn-line);
	border-radius: 18px;
	padding: 14px 16px;
	background: var(--tn-surface);
	list-style: none;
}
body.tn #payment ul.payment_methods li:has(input:checked) { border-color: var(--tn-emerald); background: #F1F6F3; }
body.tn #payment ul.payment_methods li label { font-weight: 700; cursor: pointer; }
body.tn #payment ul.payment_methods li input { accent-color: var(--tn-emerald); width: 20px; height: 20px; vertical-align: middle; margin-inline-end: 8px; }
body.tn #payment div.payment_box { background: var(--tn-ground); border-radius: 14px; margin: 10px 0 0; color: var(--tn-ink-2); }
body.tn #payment div.payment_box::before { display: none; }
body.tn #payment div.form-row { padding: 16px 0 0; }
body.tn #payment #place_order { width: 100%; float: none; }
body.tn ul#shipping_method { margin: 0; padding: 0; }
body.tn ul#shipping_method li { margin-bottom: 8px; }
body.tn ul#shipping_method li input { accent-color: var(--tn-emerald); }
@media (max-width: 960px) { .tn-page--checkout #order_review { position: static; } }

/* Steps */
.tn-steps { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-weight: 600; font-size: 15px; }
.tn-steps__item { display: inline-flex; align-items: center; gap: 8px; color: var(--tn-muted); }
.tn-steps__item:not(:last-child)::after { content: ''; width: 32px; height: 2px; background: var(--tn-line-2); margin-inline-start: 6px; }
.tn-steps__item.is-done::after { background: var(--tn-emerald); }
.tn-steps__num { width: 30px; height: 30px; border-radius: 15px; background: var(--tn-surface); display: inline-flex; align-items: center; justify-content: center; }
.tn-steps__item.is-current, .tn-steps__item.is-done { color: var(--tn-emerald); }
.tn-steps__item.is-current .tn-steps__num { background: var(--tn-emerald); color: #fff; }
.tn-steps__item.is-done .tn-steps__num { background: var(--tn-sage); }

/* Order received */
.tn .woocommerce-order .woocommerce-thankyou-order-received {
	background: var(--tn-emerald);
	color: #fff;
	border-radius: 32px;
	padding: 40px;
	font-family: var(--tn-display);
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 800;
	text-align: center;
}
.tn .woocommerce-order ul.order_details { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; padding: 0; margin: 20px 0; }
.tn .woocommerce-order ul.order_details::before, .tn .woocommerce-order ul.order_details::after { display: none; }
.tn .woocommerce-order ul.order_details li { float: none; margin: 0; border: 0; padding: 18px; background: var(--tn-surface); border-radius: 20px; font-size: 13px; color: var(--tn-muted); }
.tn .woocommerce-order ul.order_details li strong { color: var(--tn-ink); font-size: 17px; margin-top: 6px; }

/* Cart & Checkout blocks -------------------------------------------------- */
.tn .wp-block-woocommerce-cart,
.tn .wp-block-woocommerce-checkout { font-family: var(--tn-font); }
.tn .wc-block-components-sidebar-layout { gap: 24px; }
.tn .wc-block-cart .wc-block-cart__main,
.tn .wc-block-checkout__main { min-width: 0; }
.tn .wc-block-cart-items,
.tn .wc-block-components-sidebar,
.tn .wc-block-checkout__main .wc-block-components-checkout-step {
	background: var(--tn-surface);
	border-radius: 28px;
}
.tn .wc-block-cart-items { border: 0 !important; overflow: hidden; }
.tn .wc-block-cart-items th { padding: 18px 20px !important; }
.tn .wc-block-cart-items td { padding: 18px 20px !important; }
.tn .wc-block-components-sidebar { padding: 26px !important; align-self: flex-start; position: sticky; top: 110px; }
.tn .wc-block-checkout__main .wc-block-components-checkout-step { padding: 26px 28px; margin-bottom: 16px; }
.tn .wc-block-components-checkout-step__title,
.tn .wc-block-cart__totals-title { font-family: var(--tn-display) !important; font-size: 24px !important; font-weight: 800 !important; text-transform: none !important; }
.tn .wc-block-components-checkout-step__container::after { display: none; }
.tn .wc-block-components-checkout-step::after { display: none; }
.tn .wc-block-components-checkout-step__heading-container { margin-bottom: 14px; }
.tn .wc-block-components-text-input input,
.tn .wc-block-components-combobox .wc-block-components-combobox-control input,
.tn .wc-blocks-components-select .wc-blocks-components-select__select,
.tn .wc-block-components-textarea {
	border-radius: var(--tn-r-sm) !important;
	border: 1.5px solid var(--tn-line-2) !important;
	background: var(--tn-field) !important;
	min-height: 54px;
}
.tn .wc-block-components-text-input.is-active input:focus,
.tn .wc-block-components-text-input input:focus { border-color: var(--tn-emerald) !important; box-shadow: 0 0 0 3px rgba(11,61,48,.15) !important; }
.tn .wc-block-components-radio-control__option,
.tn .wc-block-components-radio-control-accordion-option {
	border: 2px solid var(--tn-line) !important;
	border-radius: 18px !important;
	margin-bottom: 10px;
	box-shadow: none !important;
}
.tn .wc-block-components-radio-control__option-checked,
.tn .wc-block-components-radio-control-accordion-option--checked-option-highlighted { border-color: var(--tn-emerald) !important; background: #F1F6F3; }
.tn .wc-block-components-radio-control__input:checked { border-color: var(--tn-emerald); }
.tn .wc-block-components-radio-control__input:checked::before { background: var(--tn-emerald); }
.tn .wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked { background: var(--tn-emerald); border-color: var(--tn-emerald); }
.tn .wc-block-components-button:not(.is-link),
.tn .wc-block-cart__submit-button,
.tn .wc-block-components-checkout-place-order-button {
	min-height: 60px;
	border-radius: 18px !important;
	background: var(--tn-ember) !important;
	color: var(--tn-ink) !important;
	font-weight: 800 !important;
	font-size: 18px !important;
	border: 0 !important;
}
.tn .wc-block-components-button:not(.is-link):hover { filter: brightness(1.05); }
.tn .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-family: var(--tn-display); font-weight: 800; font-size: 28px; }
.tn .wc-block-components-product-name { color: var(--tn-ink); font-weight: 600; text-decoration: none; }
.tn .wc-block-cart-item__image img,
.tn .wc-block-components-order-summary-item__image img { border-radius: 14px; background: var(--tn-ground); }
.tn .wc-block-components-quantity-selector { border-radius: 14px; overflow: hidden; border-color: var(--tn-line-2); }
.tn .wc-block-components-quantity-selector::after { border-color: var(--tn-line-2); border-radius: 14px; }
.tn .wc-block-components-product-badge { border-radius: 8px; border-color: var(--tn-ember-ink); color: var(--tn-ember-ink); }
.tn .wc-block-cart__empty-cart__title { font-family: var(--tn-display); }
@media (max-width: 960px) { .tn .wc-block-components-sidebar { position: static; } }

/* My account ------------------------------------------------------------- */
.tn-page--account .woocommerce { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
body.tn .woocommerce-MyAccount-navigation,
.tn-page--account .woocommerce-MyAccount-navigation {
	float: none;
	width: auto;
	flex: 1 1 240px;
	max-width: 300px;
	background: var(--tn-surface);
	border-radius: 26px;
	padding: 14px;
}
.tn-page--account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tn-page--account .woocommerce-MyAccount-navigation a {
	display: flex; align-items: center;
	min-height: 48px;
	padding: 0 14px;
	border-radius: 14px;
	color: var(--tn-ink);
	text-decoration: none;
	font-weight: 600;
}
.tn-page--account .woocommerce-MyAccount-navigation a:hover { background: var(--tn-ground); }
.tn-page--account .woocommerce-MyAccount-navigation .is-active a { background: var(--tn-emerald); color: #fff; }
.tn-page--account .woocommerce-MyAccount-content {
	float: none;
	width: auto;
	flex: 999 1 520px;
	min-width: 0;
	background: var(--tn-surface);
	border-radius: 28px;
	padding: clamp(22px, 3vw, 32px);
}
.tn-page--account .woocommerce-MyAccount-content table.shop_table { box-shadow: inset 0 0 0 1px var(--tn-line); }
.tn .woocommerce-Addresses .woocommerce-Address { background: var(--tn-ground); border-radius: 20px; padding: 20px; }
@media (max-width: 720px) {
	.tn-page--account .woocommerce-MyAccount-navigation { max-width: none; flex-basis: 100%; }
	.tn-page--account .woocommerce-MyAccount-navigation ul { flex-direction: row; overflow-x: auto; }
	.tn-page--account .woocommerce-MyAccount-navigation a { white-space: nowrap; }
}

/* Login / register */
.tn-login { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.tn-login__aside {
	flex: 1 1 380px;
	min-width: 0;
	position: relative;
	overflow: hidden;
	background: var(--tn-emerald);
	color: #fff;
	border-radius: var(--tn-r-xl);
	padding: clamp(28px, 4vw, 48px);
	display: flex; flex-direction: column; gap: 22px;
	min-height: 420px;
}
.tn-login__aside .tn-scales { inset-inline-end: -100px; }
.tn-login__title { position: relative; margin: auto 0 0; font-family: var(--tn-display); font-weight: 800; font-size: clamp(32px, 4vw, 46px); line-height: 1.2; }
.tn-login__title span { display: block; color: var(--tn-ember); }
.tn-login__list { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; color: var(--tn-emerald-soft); font-size: 17px; }
.tn-login__list li { display: flex; gap: 10px; align-items: center; }
.tn-login__list .tn-icon { color: var(--tn-ember); }
.tn-login__form {
	flex: 1 1 440px;
	min-width: 0;
	background: var(--tn-surface);
	border-radius: var(--tn-r-xl);
	padding: clamp(24px, 4vw, 48px);
}
.tn-login__form .woocommerce { display: block; }
.tn-login__form .u-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.tn-login__form .u-columns::before, .tn-login__form .u-columns::after { display: none; }
.tn-login__form .u-column1, .tn-login__form .u-column2 { float: none !important; width: auto !important; }
.tn-login__form h2 { font-family: var(--tn-display); font-weight: 800; font-size: 32px; margin: 0 0 14px; }
body.tn form.login,
body.tn form.register,
body.tn form.lost_reset_password { border: 0; padding: 0; margin: 0; border-radius: 0; }
body.tn form.login .button,
body.tn form.register .button { width: 100%; min-height: 56px; margin-top: 6px; }
.tn .woocommerce-form-login__rememberme { display: inline-flex !important; align-items: center; gap: 8px; min-height: 44px; }
.tn .woocommerce-LostPassword { margin-top: 10px; }

/* 1.0.1 */
.tn .wc-block-cart__main { background: var(--tn-surface); border-radius: 28px; padding: 8px 20px; }
.tn .wc-block-cart-items { background: transparent; }

@media (max-width: 720px) {
	.tn .wc-block-cart__main { padding: 4px 12px; border-radius: 22px; }
	.tn .wc-block-cart-items td, .tn .wc-block-cart-items th { padding: 12px 0 !important; }
	.tn .wc-block-cart-items { table-layout: fixed; width: 100%; }
	.tn-steps__item:not(:last-child)::after { width: 16px; }
	.tn-steps { font-size: 14px; }
	.tn-page--account .woocommerce-MyAccount-navigation ul { scrollbar-width: none; }
	.tn-page--account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
}


/* ==========================================================================
   1.1.0 — compact scale
   ========================================================================== */
body.tn a.button, body.tn button.button, body.tn input.button, body.tn #respond input#submit {
	min-height: 44px; padding: 0 18px; border-radius: 12px; font-size: 14.5px;
}
body.tn a.button.alt, body.tn button.button.alt, body.tn input.button.alt, body.tn #place_order, body.tn a.checkout-button {
	min-height: 50px; font-size: 16px; border-radius: 12px;
}
body.tn form .form-row input.input-text, body.tn form .form-row textarea, body.tn form .form-row select,
body.tn input.input-text, body.tn select, .tn .tn-content input[type="text"], .tn .tn-content input[type="email"],
.tn .tn-content input[type="tel"], .tn .tn-content input[type="password"], .tn .tn-content select {
	min-height: 46px; padding: 10px 14px; border-radius: 12px; border-width: 1px;
}
.tn .woocommerce-message, .tn .woocommerce-info, .tn .woocommerce-error { border-radius: 14px; padding-block: 12px; font-size: 14px; }

/* Cards */
body.tn ul.products, .tn ul.products { gap: 12px; }
body.tn ul.products li.product.tn-card, .tn ul.products li.product.tn-card { border-radius: 18px; padding: 10px; gap: 10px; }
.tn-card__media { border-radius: 14px; }
.tn-card__title a::after { border-radius: 18px; }
.tn-card__badges { top: 18px; inset-inline-start: 18px; }
.tn .tn-badge, .tn span.onsale.tn-badge { font-size: 11px; padding: 4px 8px; border-radius: 8px; }
.tn-card__brand { font-size: 12px; }
body.tn ul.products li.product .tn-card__title, .tn ul.products li.product .tn-card__title { font-size: 14px; line-height: 1.6; min-height: calc(1.6em * 2); }
.tn-card__body { padding: 0 4px; gap: 4px; }
.tn-card__foot { padding: 0 4px 2px; }
.tn-card__price { font-size: 19px; font-weight: 800; }
.tn-card__price del { font-size: 12px; }
.tn-card__price .woocommerce-Price-currencySymbol { font-size: 12px; }
.tn ul.products li.product .tn-card__foot .button { min-height: 38px; padding: 0 14px; border-radius: 10px; font-size: 13px; }

/* Archive */
.tn-archive { padding-top: 20px; gap: 20px; }
.tn-filters { border-radius: 20px; padding: 20px; gap: 18px; }
.tn-filters__title { font-size: 18px; }
.tn .woocommerce-ordering select { min-height: 42px; border-radius: 12px; }
body.tn nav.woocommerce-pagination ul li a, body.tn nav.woocommerce-pagination ul li span { min-width: 40px; height: 40px; border-radius: 12px; }

/* Single product */
.tn-single .product { gap: 28px; }
body.tn div.product .product_title { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.4; }
body.tn div.product p.price, body.tn div.product span.price { font-size: clamp(26px, 2.8vw, 34px); }
body.tn div.product p.price .woocommerce-Price-currencySymbol { font-size: 14px; }
body.tn div.product .woocommerce-product-details__short-description { font-size: 15px; }
body.tn div.product div.summary { gap: 14px; }
body.tn div.product div.images .woocommerce-product-gallery__wrapper, body.tn div.product div.images img { border-radius: 22px; }
body.tn div.product form.cart .single_add_to_cart_button { min-height: 50px; font-size: 16px; border-radius: 12px; }
.tn .quantity.tn-qty { min-height: 50px; border-radius: 12px; border-width: 1px; }
.tn .quantity.tn-qty .qty { height: 46px; font-size: 16px; width: 40px; }
.tn-qty__btn { width: 42px; height: 48px; font-size: 20px; }
.tn-wa { min-height: 46px; border-radius: 12px; }
.tn-infobox { border-radius: 18px; padding: 16px; gap: 12px; }
.tn-infobox__icon { width: 38px; height: 38px; border-radius: 12px; }
.tn-infobox__icon .tn-icon { width: 20px; height: 20px; }
body.tn div.product .woocommerce-tabs ul.tabs li { border-radius: 12px; }
body.tn div.product .woocommerce-tabs ul.tabs li a { min-height: 42px; padding: 0 18px; font-size: 14px; }
body.tn div.product .woocommerce-tabs .panel { border-radius: 20px; font-size: 15px; }
body.tn div.product .related > h2, body.tn div.product .upsells > h2 { font-size: clamp(20px, 2.2vw, 26px); margin: 28px 0 16px; }

/* Cart / checkout / account */
.tn .cart_totals, .tn .woocommerce-checkout-review-order, .tn #order_review { border-radius: 20px; padding: 20px; }
.tn .cart_totals > h2, .tn-page--checkout #customer_details h3 { font-size: 20px; }
.tn .cart_totals .order-total .amount, .tn .woocommerce-checkout-review-order-table .order-total .amount { font-size: 22px; }
.tn-page--checkout #customer_details .col-1, .tn-page--checkout #customer_details .col-2 { border-radius: 20px; padding: 22px; }
body.tn #payment ul.payment_methods li { border-radius: 14px; padding: 12px 14px; border-width: 1.5px; }
.tn .wc-block-cart__main, .tn .wc-block-components-sidebar, .tn .wc-block-checkout__main .wc-block-components-checkout-step { border-radius: 20px; }
.tn .wc-block-components-checkout-step__title, .tn .wc-block-cart__totals-title { font-size: 19px !important; }
.tn .wc-block-components-button:not(.is-link), .tn .wc-block-cart__submit-button, .tn .wc-block-components-checkout-place-order-button { min-height: 50px; font-size: 16px !important; border-radius: 12px !important; }
.tn .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: 22px; }
.tn-steps { font-size: 14px; margin-bottom: 20px; }
.tn-steps__num { width: 26px; height: 26px; }
.tn-page--account .woocommerce-MyAccount-navigation { border-radius: 20px; padding: 10px; }
.tn-page--account .woocommerce-MyAccount-navigation a { min-height: 42px; border-radius: 10px; font-size: 14px; }
.tn-page--account .woocommerce-MyAccount-content { border-radius: 20px; }
.tn-login__aside, .tn-login__form { border-radius: 26px; }
.tn-login__title { font-size: clamp(24px, 3vw, 34px); }
.tn-login__form h2 { font-size: 24px; }
.tn-login__list { font-size: 15px; }


/* 1.1.1 — clean product images, loop quantity, riyal sign */
.tn-card__media { background: #fff !important; }
.tn ul.products li.product .tn-card__media img { mix-blend-mode: normal; }
.tn-card__foot { flex-direction: column; align-items: stretch; gap: 10px; }
.tn-card__buy { display: flex; gap: 8px; align-items: stretch; }
.tn-card__buy .added_to_cart { display: none !important; }
.tn .quantity.tn-loop-qty { min-height: 40px; border-radius: 10px; flex: 0 0 auto; border: 1px solid var(--tn-line-2); background: var(--tn-surface); display: inline-flex; align-items: center; overflow: hidden; }
.tn .quantity.tn-loop-qty .qty { height: 38px; width: 30px; font-size: 14px; }
.tn .quantity.tn-loop-qty .tn-qty__btn { width: 30px; height: 40px; font-size: 17px; }
.tn ul.products li.product .tn-card__buy .button {
	flex: 1 1 auto; min-width: 0; min-height: 40px; padding: 0 10px; border-radius: 10px; font-size: 13px; gap: 6px; white-space: nowrap;
}
.tn ul.products li.product .tn-card__buy .button.add_to_cart_button::before {
	content: ''; width: 16px; height: 16px; flex: 0 0 16px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 11.1a2 2 0 0 1-2 1.9H8.2a2 2 0 0 1-2-1.9z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 11.1a2 2 0 0 1-2 1.9H8.2a2 2 0 0 1-2-1.9z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tn ul.products li.product .tn-card__buy .button.loading::before { opacity: .4; }
.tn ul.products li.product .tn-card__buy .button.loading::after { display: none; }
.tn ul.products li.product .tn-card__buy .button.added::after { content: ' ✓'; position: static; margin: 0; font-family: inherit; }
@media (max-width: 560px) {
	.tn-card__buy { flex-direction: column; }
	.tn .quantity.tn-loop-qty { justify-content: space-between; width: 100%; }
	.tn .quantity.tn-loop-qty .qty { flex: 1; }
}

/* Riyal sign */
.tn-sar-wrap { display: inline-flex; align-items: center; vertical-align: baseline; }
.tn-sar { width: .82em; height: .9em; display: inline-block; vertical-align: -0.06em; }
.tn-card__price .tn-sar-wrap, body.tn div.product p.price .tn-sar-wrap { font-size: inherit; color: inherit; }
.tn-card__price .tn-sar { width: .7em; height: .78em; margin-inline-start: 3px; }
body.tn div.product p.price .tn-sar { width: .62em; height: .7em; margin-inline-start: 4px; }


/* 1.1.4 — cart page redesign (block cart) */
.tn .wc-block-cart__main { padding: 6px 22px 10px; }
.tn .wc-block-cart-items { border-collapse: collapse; }
.tn .wc-block-cart-items thead th { padding: 14px 0 !important; font-size: 13px; font-weight: 700; color: var(--tn-muted); text-transform: none; border-bottom: 1px solid var(--tn-line) !important; }
.tn .wc-block-cart-items__row { border-bottom: 1px solid var(--tn-line); }
.tn .wc-block-cart-items__row:last-child { border-bottom: 0; }
.tn .wc-block-cart-items td { padding: 18px 0 !important; vertical-align: middle !important; border: 0 !important; }
.tn .wc-block-cart-item__image { width: 120px; padding-inline-end: 16px !important; }
.tn .wc-block-cart-item__image a { display: block; width: 104px; height: 104px; border-radius: 16px; background: #fff; border: 1px solid var(--tn-line); padding: 6px; box-sizing: border-box; overflow: hidden; }
.tn .wc-block-cart-item__image img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: contain; border-radius: 10px; background: #fff !important; image-rendering: auto; }
.tn .wc-block-cart-item__product .wc-block-components-product-name { font-size: 15px; font-weight: 700; line-height: 1.6; color: var(--tn-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
.tn .wc-block-cart-item__product .wc-block-components-product-name:hover { color: var(--tn-emerald); }
.tn .wc-block-cart-item__prices { font-size: 13px; color: var(--tn-muted); margin-bottom: 8px; }
.tn .wc-block-cart-item__product .wc-block-components-product-metadata { display: none; }
.tn .wc-block-cart-item__quantity { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.tn .wc-block-components-quantity-selector { width: 112px; height: 38px; min-height: 0; border-radius: 10px; border: 1px solid var(--tn-line-2); background: #fff; display: flex; align-items: stretch; }
.tn .wc-block-components-quantity-selector::after { display: none; }
.tn .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input { min-height: 0 !important; height: 36px; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; font-weight: 700; font-size: 15px; text-align: center; }
.tn .wc-block-components-quantity-selector__button { min-width: 34px; font-size: 18px; color: var(--tn-ink); opacity: 1; }
.tn .wc-block-components-quantity-selector__button:hover { background: var(--tn-ground); }
.tn .wc-block-cart-item__remove-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; color: var(--tn-ember-ink) !important; background: var(--tn-peach); transition: background-color .15s ease; }
.tn .wc-block-cart-item__remove-link:hover { background: #F9D2BA; }
.tn .wc-block-cart-item__total { font-size: 16px; font-weight: 800; white-space: nowrap; }
.tn .wc-block-cart-item__total .wc-block-components-sale-badge { font-size: 11px; }
.tn .wc-block-components-sidebar { box-shadow: 0 10px 30px -22px rgba(16,32,26,.35); }
.tn .wc-block-cart__totals-title { margin-bottom: 6px !important; }
.tn .wc-block-components-totals-item { padding-block: 10px; }
.tn .wc-block-components-totals-coupon__button, .tn .wc-block-components-panel__button { font-weight: 700; }
.tn .wc-block-cart__submit-container { margin-top: 6px; }
.tn .wc-block-components-sidebar .wc-block-components-totals-wrapper { border-color: var(--tn-line); }
.tn .wp-block-woocommerce-cart-cross-sells-block, .tn .wc-block-cart__cross-sells { margin-top: 28px; }
.tn .wc-block-components-order-summary-item__image { width: 64px; }
.tn .wc-block-components-order-summary-item__image img { width: 64px; height: 64px; object-fit: contain; background: #fff; border: 1px solid var(--tn-line); border-radius: 12px; padding: 4px; box-sizing: border-box; max-width: none; }
@media (max-width: 720px) {
	.tn .wc-block-cart__main { padding: 4px 14px; }
	.tn .wc-block-cart-item__image { width: 92px; padding-inline-end: 12px !important; }
	.tn .wc-block-cart-item__image a { width: 80px; height: 80px; border-radius: 12px; }
	.tn .wc-block-cart-item__product .wc-block-components-product-name { font-size: 14px; }
	.tn .wc-block-cart-item__total { font-size: 14px; }
}


/* 1.1.5 — product page: grid layout, no overlap, compact gallery */
.tn-single .product {
	display: grid !important;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 32px 40px;
	align-items: start;
}
.tn-single .product > * { grid-column: 1 / -1; min-width: 0; }
.tn-single .product > .woocommerce-product-gallery { grid-column: 1; grid-row: 1; }
.tn-single .product > .summary { grid-column: 2; grid-row: 1; }
body.tn div.product div.summary { position: static !important; top: auto; }
body.tn div.product div.images .woocommerce-product-gallery__wrapper { background: #fff; border: 1px solid var(--tn-line); border-radius: 22px; }
body.tn div.product div.images .woocommerce-product-gallery__image a { display: block; padding: 28px; }
body.tn div.product div.images .woocommerce-product-gallery__image img { width: 100%; height: auto; max-height: 520px; object-fit: contain; border-radius: 0; margin: 0 auto; }
body.tn div.product .woocommerce-tabs { margin-top: 8px; }
body.tn div.product .related, body.tn div.product .upsells { margin-top: 8px; }
body.tn div.product .related > h2, body.tn div.product .upsells > h2 { margin-top: 0; }
@media (max-width: 900px) {
	.tn-single .product { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.tn-single .product > .woocommerce-product-gallery, .tn-single .product > .summary { grid-column: 1; grid-row: auto; }
	body.tn div.product div.images .woocommerce-product-gallery__image a { padding: 16px; }
	body.tn div.product div.images .woocommerce-product-gallery__image img { max-height: 360px; }
}


/* 1.1.5 — checkout polish */
.tn-page--checkout #order_review { flex: 1 1 400px; padding: 22px; }
body.tn .woocommerce-checkout-review-order-table { width: 100%; border: 0 !important; }
body.tn .woocommerce-checkout-review-order-table thead th { font-size: 13px; color: var(--tn-muted); font-weight: 700; padding: 0 0 10px !important; border-bottom: 1px solid var(--tn-line) !important; }
body.tn .woocommerce-checkout-review-order-table td, body.tn .woocommerce-checkout-review-order-table th { border-top: 0 !important; border-bottom: 1px solid var(--tn-line) !important; padding: 12px 0 !important; vertical-align: middle; }
body.tn .woocommerce-checkout-review-order-table .cart_item td.product-name { font-size: 14px; line-height: 1.55; padding-inline-end: 10px !important; }
body.tn .woocommerce-checkout-review-order-table td.product-total { white-space: nowrap; text-align: end; font-weight: 700; }
.tn-review-item { display: flex; align-items: center; gap: 10px; }
.tn-review-item .tn-review-thumb { width: 52px !important; height: 52px !important; flex: 0 0 52px; object-fit: contain; background: #fff; border: 1px solid var(--tn-line); border-radius: 10px; padding: 3px; box-sizing: border-box; }
.tn-review-name { display: block; }
.tn-review-name .product-quantity { color: var(--tn-ember-ink); font-weight: 800; }
body.tn .woocommerce-checkout-review-order-table tfoot th { font-weight: 600; color: var(--tn-ink-2); text-align: start; }
body.tn .woocommerce-checkout-review-order-table tfoot td { text-align: end; }
body.tn .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals { display: block; border-bottom: 1px solid var(--tn-line); padding: 12px 0; }
body.tn .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals th,
body.tn .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td { display: block; border: 0 !important; padding: 0 !important; text-align: start; }
body.tn .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals th { margin-bottom: 8px; }
body.tn ul#shipping_method { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
body.tn ul#shipping_method li { margin: 0 !important; padding: 10px 12px; border: 1.5px solid var(--tn-line); border-radius: 12px; display: flex; align-items: center; gap: 10px; background: #fff; line-height: 1.4; text-indent: 0; }
body.tn ul#shipping_method li:has(input:checked) { border-color: var(--tn-emerald); background: #F1F6F3; }
body.tn ul#shipping_method li input { margin: 0 !important; accent-color: var(--tn-emerald); width: 18px; height: 18px; flex: 0 0 18px; }
body.tn ul#shipping_method li label { flex: 1; display: flex; justify-content: space-between; gap: 8px; font-weight: 600; cursor: pointer; margin: 0; }
body.tn .woocommerce-checkout-review-order-table .order-total th, body.tn .woocommerce-checkout-review-order-table .order-total td { border-bottom: 0 !important; padding-top: 16px !important; }
body.tn .woocommerce-checkout #payment .woocommerce-privacy-policy-text { font-size: 12.5px; color: var(--tn-muted); line-height: 1.7; }
body.tn .woocommerce-checkout #payment .woocommerce-privacy-policy-text p { margin: 0 0 10px; }
.tn-page--checkout .woocommerce-form-coupon-toggle .woocommerce-info { margin-bottom: 12px; }
.tn-page--checkout form.checkout_coupon { background: #fff; border: 0; border-radius: 16px; padding: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.tn-page--checkout form.checkout_coupon p { margin: 0; float: none; width: auto; }
.tn-page--checkout form.checkout_coupon p.form-row-first { flex: 1 1 220px; }

body.tn .woocommerce-checkout-review-order-table .cart_item td.product-name { position: relative; }
body.tn .woocommerce-checkout-review-order-table .cart_item td.product-name > .product-quantity {
	position: absolute; top: 6px; inset-inline-start: -6px;
	min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box;
	border-radius: 11px; background: var(--tn-ink); color: #fff;
	font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}


/* 1.1.5 — full-width WooCommerce wrappers + own notice icons */
.tn .tn-content > .woocommerce, .tn .tn-login__form > .woocommerce { max-width: none; margin-inline: 0; width: auto; }
.tn .woocommerce-message, .tn .woocommerce-info, .tn .woocommerce-error { position: relative; padding-inline-start: 50px; }
.tn .woocommerce-message::before, .tn .woocommerce-info::before, .tn .woocommerce-error::before {
	content: '' !important; font-family: inherit !important;
	position: absolute; inset-inline-start: 18px; top: 50%; transform: translateY(-50%);
	width: 20px; height: 20px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5v.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5v.5'/%3E%3C/svg%3E") center / contain no-repeat;
	color: var(--tn-emerald);
}
.tn .woocommerce-message::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l3 3 5-6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l3 3 5-6'/%3E%3C/svg%3E"); }
.tn .woocommerce-error::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v6M12 16.5v.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v6M12 16.5v.5'/%3E%3C/svg%3E"); color: var(--tn-ember-ink); }
.tn .woocommerce-error li { list-style: none; }


/* 1.1.5 — shop filters */
.tn-archive.has-filters .tn-archive__main ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1500px) { .tn-archive.has-filters .tn-archive__main ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 780px) { .tn-archive.has-filters .tn-archive__main ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tn-filters { flex: 0 0 260px; max-width: 260px; max-height: calc(100vh - 140px); overflow-y: auto; scrollbar-width: thin; }
.tn-filter { padding-top: 14px; border-top: 1px solid var(--tn-line); }
.tn-filter:first-of-type { border-top: 0; padding-top: 0; }
.tn-filter .woocommerce-widget-layered-nav-list { max-height: 260px; overflow-y: auto; scrollbar-width: thin; padding-inline-end: 4px; }
.tn-filter .woocommerce-widget-layered-nav-list li { min-height: 36px; font-size: 14px; }
.tn-filter .woocommerce-widget-layered-nav-list li a { display: flex; align-items: center; gap: 10px; }
.tn-filter .woocommerce-widget-layered-nav-list li a::before { content: ''; width: 16px; height: 16px; flex: 0 0 16px; border: 1.5px solid var(--tn-line-2); border-radius: 5px; background: #fff; }
.tn-filter .woocommerce-widget-layered-nav-list li.chosen a::before { background: var(--tn-emerald); border-color: var(--tn-emerald); box-shadow: inset 0 0 0 3px #fff; }
.tn-filter .widget_layered_nav_filters ul, .tn-filter.widget_layered_nav_filters ul { display: flex; flex-wrap: wrap; gap: 6px; }
.tn-filter.widget_layered_nav_filters li a { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: var(--tn-sage); color: var(--tn-emerald); font-size: 13px; font-weight: 600; text-decoration: none; }
.tn-filter.widget_layered_nav_filters li a::before { content: '×'; margin-inline-end: 6px; font-family: inherit; }
body.tn .widget_price_filter .price_slider_amount { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; text-align: start; }
body.tn .widget_price_filter .price_slider_amount .price_label { order: -1; flex-basis: 100%; font-size: 13.5px; color: var(--tn-ink-2); }
body.tn .widget_price_filter .price_slider_amount .button { min-height: 36px; padding: 0 16px; font-size: 13px; border-radius: 10px; margin: 0; }
body.tn .widget_price_filter .price_slider { margin: 8px 6px 4px; }
@media (max-width: 900px) { .tn-filters { flex-basis: 100%; max-width: none; max-height: none; } }

/* 1.1.7 — order received / view order */
.woocommerce-order .woocommerce-table--order-details{border-collapse:separate;border-spacing:0;width:100%;background:#fff;border-radius:18px;overflow:hidden;border:1px solid rgba(15,61,46,.08)}
.woocommerce-order .woocommerce-table--order-details th,.woocommerce-order .woocommerce-table--order-details td{padding:14px 18px;border:0;border-top:1px solid rgba(15,61,46,.08);background:transparent;vertical-align:middle}
.woocommerce-order .woocommerce-table--order-details thead th{border-top:0;background:#f7f5ef;font-size:.85rem;color:#5b6b63}
.woocommerce-order .woocommerce-table--order-details tfoot tr:last-child th,.woocommerce-order .woocommerce-table--order-details tfoot tr:nth-last-child(1) td{}
.woocommerce-order .woocommerce-table--order-details tfoot th{font-weight:400;color:#5b6b63}
.woocommerce-order .woocommerce-table--order-details td.product-total,.woocommerce-order .woocommerce-table--order-details tfoot td{text-align:end;font-weight:700}
.woocommerce-order .woocommerce-table--order-details .product-name a{color:inherit;font-weight:700}
.woocommerce-order .order-actions-button{padding:8px 16px;font-size:.85rem}
.woocommerce-customer-details .woocommerce-columns--addresses{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:24px}
.woocommerce-customer-details .woocommerce-column{width:auto!important;float:none!important;margin:0!important;max-width:none!important}
.woocommerce-customer-details address{background:#fff;border:1px solid rgba(15,61,46,.08)!important;border-radius:18px;padding:18px 20px!important;font-style:normal;line-height:1.9;height:calc(100% - 56px)}
.woocommerce-customer-details .woocommerce-column__title{font-size:1.1rem;margin:0 0 12px}
.woocommerce-customer-details address p{margin:6px 0 0;display:flex;gap:6px;align-items:center}
.woocommerce-customer-details address p::before{display:none!important}
@media (max-width:700px){.woocommerce-customer-details .woocommerce-columns--addresses{grid-template-columns:1fr}.woocommerce-order .woocommerce-table--order-details th,.woocommerce-order .woocommerce-table--order-details td{padding:12px}}

.woocommerce-customer-details .woocommerce-columns--addresses::before,.woocommerce-customer-details .woocommerce-columns--addresses::after{display:none!important;content:none!important}
.woocommerce .woocommerce-customer-details address{border-radius:18px!important;border-bottom-width:1px!important;border-right-width:1px!important}

/* 1.1.8 — block cart mobile grid fix (price no longer clipped) */
@media (max-width: 720px) {
	.tn .wc-block-cart-items__row { grid-template-columns: 84px minmax(0, 1fr) auto !important; column-gap: 10px; }
	.tn .wc-block-cart-item__image { width: 84px; padding-inline-end: 0 !important; }
	.tn .wc-block-cart-item__image a { width: 76px; height: 76px; }
	.tn .wc-block-cart-item__total { white-space: nowrap; min-width: 0; }
	.tn .wc-block-cart-item__total .wc-block-components-product-price { white-space: nowrap; }
}

/* 1.1.8 — empty cart: brand dragon instead of the sad face */
.tn .wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
	-webkit-mask: none !important; mask: none !important;
	background: #fff url('/wp-content/uploads/2026/10/tanin-sad.png') center / 78% no-repeat !important;
	width: 112px !important; height: 112px !important; border-radius: 32px;
	box-shadow: 0 10px 30px rgba(11,61,48,.12); border: 1px solid var(--tn-line);
	animation: tnBob 3s ease-in-out infinite;
}
.tn .wc-block-cart__empty-cart__title { font-size: 1.35rem; margin-top: 10px; }
.tn .tn-empty-cart__lead { color: var(--tn-ink-2); margin: 6px 0 16px; }
.tn .tn-empty-cart__btn .wp-block-button__link { background: var(--tn-forest, #0B3D30); color: #fff; border-radius: 14px; padding: 12px 28px; font-weight: 700; text-decoration: none; }
.tn .tn-empty-cart__btn .wp-block-button__link:hover { background: var(--tn-ember, #F08A5D); }
.tn .wp-block-woocommerce-empty-cart-block > h2:not(.wc-block-cart__empty-cart__title) { margin-top: 48px; font-size: 1.25rem; }

/* ==========================================================================
 * 1.2.0 — cart & checkout refresh
 * ======================================================================= */

/* Free-delivery progress */
.tn-freeship { background: var(--tn-sage); border-radius: 16px; padding: 14px 16px; margin: 0 0 16px; }
.tn-freeship__msg { font-size: 14px; font-weight: 700; color: var(--tn-emerald); margin-bottom: 10px; line-height: 1.6; }
.tn-freeship__msg .amount { color: var(--tn-ember-ink); }
.tn-freeship__bar { height: 8px; border-radius: 8px; background: rgba(11, 61, 48, .12); overflow: hidden; }
.tn-freeship__bar span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--tn-emerald-2), var(--tn-emerald)); transition: width .4s var(--tn-ease); }
.tn-freeship.is-done { background: var(--tn-emerald-soft); }
.tn-page--cart .tn-freeship { margin: 0 0 18px; padding: 16px 20px; }

/* Trust strip + payment logos */
.tn-trust { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.tn-trust li { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--tn-ink-2); }
.tn-trust svg { flex: 0 0 auto; color: var(--tn-emerald-2); }
.tn-paylogos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tn-paylogos span { font: 700 11px/1 system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: .2px; padding: 7px 9px; border-radius: 8px; background: var(--tn-field); border: 1px solid var(--tn-line); color: var(--tn-ink-2); direction: ltr; }
.tn-continue { display: block; text-align: center; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--tn-emerald-2); }
.tn-continue:hover { color: var(--tn-emerald); text-decoration: underline; }

/* ---- Cart ---- */
.tn-page--cart .wc-block-components-sidebar { position: sticky; top: 110px; }
.tn-page--cart .wc-block-components-totals-item__label { font-weight: 600; }
.tn-page--cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: 26px; font-weight: 800; color: var(--tn-emerald); }
.tn-page--cart .wc-block-cart__submit-button { box-shadow: var(--tn-shadow); }
.tn-page--cart .wc-block-cart-items__row:hover { background: var(--tn-field); }
.tn-page--cart .wc-block-cart-item__total .wc-block-components-product-price { font-weight: 800; font-size: 16px; color: var(--tn-ink); }

/* ---- Checkout ---- */
.tn-page--checkout form.checkout_coupon { background: var(--tn-surface); border-radius: 16px; padding: 16px; border: 0; }

/* Section cards with numbered titles */
.tn-page--checkout #customer_details { counter-reset: tnstep; }
.tn-page--checkout #customer_details h3,
.tn-page--checkout .tn-pay-title { display: flex; align-items: center; gap: 10px; font-size: 20px !important; margin: 0 0 18px !important; }
.tn-page--checkout #customer_details .col-1 h3::before,
.tn-page--checkout .woocommerce-additional-fields > h3::before { counter-increment: tnstep; content: counter(tnstep); flex: 0 0 auto; width: 30px; height: 30px; border-radius: 15px; background: var(--tn-emerald); color: #fff; font: 700 14px/30px var(--tn-font); text-align: center; }
.tn-page--checkout #ship-to-different-address { font-size: 15px !important; font-weight: 600 !important; margin: 0 0 12px !important; }
.tn-page--checkout #ship-to-different-address label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

/* Field grid */
.tn-page--checkout .woocommerce-billing-fields__field-wrapper,
.tn-page--checkout .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: row dense; gap: 14px 16px; }
.tn-page--checkout .woocommerce-billing-fields__field-wrapper > .form-row,
.tn-page--checkout .woocommerce-shipping-fields__field-wrapper > .form-row { grid-column: 1 / -1; width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important; }
.tn-page--checkout .woocommerce-billing-fields__field-wrapper > .form-row-first,
.tn-page--checkout .woocommerce-shipping-fields__field-wrapper > .form-row-first { grid-column: 1 / 2; }
.tn-page--checkout .woocommerce-billing-fields__field-wrapper > .form-row-last,
.tn-page--checkout .woocommerce-shipping-fields__field-wrapper > .form-row-last { grid-column: 2 / 3; }
.tn-page--checkout .form-row label { font-size: 13px; font-weight: 700; color: var(--tn-ink-2); margin-bottom: 6px; display: block; }
.tn-page--checkout .form-row .required { color: var(--tn-ember-ink); text-decoration: none; }
.tn-page--checkout .form-row input.input-text,
.tn-page--checkout .form-row textarea,
.tn-page--checkout .form-row select,
.tn-page--checkout .select2-container .select2-selection--single { width: 100%; min-height: 50px; border: 1.5px solid var(--tn-line) !important; background: var(--tn-field) !important; border-radius: 14px !important; padding: 12px 14px; font-size: 15px; color: var(--tn-ink); box-shadow: none !important; transition: border-color .15s ease, background-color .15s ease; }
.tn-page--checkout .form-row textarea { min-height: 78px; resize: vertical; }
.tn-page--checkout .form-row input.input-text:focus,
.tn-page--checkout .form-row textarea:focus { border-color: var(--tn-emerald-2) !important; background: #fff !important; outline: 0; }
.tn-page--checkout .form-row.woocommerce-invalid input.input-text { border-color: #E5484D !important; background: #FFF6F6 !important; }
.tn-page--checkout #billing_phone, .tn-page--checkout #shipping_phone { direction: ltr; text-align: right; }
.tn-page--checkout #billing_country_field strong,
.tn-page--checkout #shipping_country_field strong { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 14px; border-radius: 14px; background: var(--tn-field); border: 1.5px solid var(--tn-line); font-weight: 600; width: 100%; box-sizing: border-box; }
.tn-page--checkout #billing_country_field strong::before,
.tn-page--checkout #shipping_country_field strong::before { content: '🇸🇦'; }

#billing_first_name_field, #shipping_first_name_field, #billing_city_field, #shipping_city_field { grid-column: 1 / 2 !important; }
#billing_phone_field, #shipping_phone_field, #billing_address_2_field, #shipping_address_2_field { grid-column: 2 / 3 !important; }

/* Order summary card */
.tn-page--checkout #order_review { flex: 1 1 400px; max-width: 470px; }
.tn-page--checkout #order_review_heading { display: none; }
.tn-page--checkout #order_review { background: var(--tn-surface); border-radius: 24px; padding: 22px; box-shadow: 0 1px 0 var(--tn-line); }
.tn .woocommerce-checkout-review-order-table { margin: 0 0 6px !important; border: 0 !important; }
.tn .woocommerce-checkout-review-order-table thead { display: none; }
.tn .woocommerce-checkout-review-order-table tr.cart_item td { border-bottom: 1px solid var(--tn-line) !important; vertical-align: middle; }
.tn .woocommerce-checkout-review-order-table .tn-review-item { display: flex; align-items: center; gap: 12px; }
.tn .woocommerce-checkout-review-order-table .tn-review-thumb { width: 58px; height: 58px; flex: 0 0 58px; object-fit: contain; background: #fff; border: 1px solid var(--tn-line); border-radius: 12px; padding: 4px; }
.tn .woocommerce-checkout-review-order-table .tn-review-name { font-size: 14px; font-weight: 600; line-height: 1.5; }
.tn .woocommerce-checkout-review-order-table .product-quantity { color: var(--tn-muted); font-weight: 700; }
.tn .woocommerce-checkout-review-order-table td.product-total { font-weight: 700; white-space: nowrap; text-align: end; }
.tn .woocommerce-checkout-review-order-table tfoot th { font-weight: 600; color: var(--tn-ink-2); text-align: start; }
.tn .woocommerce-checkout-review-order-table tfoot td { text-align: end; }
.tn .woocommerce-checkout-review-order-table tr.order-total th,
.tn .woocommerce-checkout-review-order-table tr.order-total td { border-top: 1.5px solid var(--tn-line-2) !important; padding-top: 14px !important; }
.tn .woocommerce-checkout-review-order-table tr.order-total th { font-size: 17px; color: var(--tn-ink); font-weight: 800; }
.tn .woocommerce-checkout-review-order-table .order-total .amount { color: var(--tn-emerald); }

/* Shipping options as full-width cards */
.tn .woocommerce-shipping-totals td { padding: 12px 0 !important; text-align: start !important; }
.tn #shipping_method { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tn #shipping_method li { position: relative; margin: 0 !important; padding: 0 !important; }
.tn #shipping_method li input[type=radio] { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); margin: 0; accent-color: var(--tn-emerald); width: 18px; height: 18px; }
.tn #shipping_method li label { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; margin: 0; padding: 13px 14px; padding-inline-start: 42px; border: 1.5px solid var(--tn-line); border-radius: 14px; background: var(--tn-field); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.tn #shipping_method li input:checked + label { border-color: var(--tn-emerald); background: var(--tn-sage); }
.tn #shipping_method li label .amount { font-weight: 800; white-space: nowrap; }

/* Payment methods */
.tn-page--checkout .tn-pay-title { font-size: 17px !important; margin: 18px 0 12px !important; }
.tn-page--checkout #payment { background: transparent !important; border-radius: 0; }
.tn-page--checkout #payment ul.payment_methods { padding: 0 !important; border: 0 !important; margin: 0 0 14px !important; display: grid; gap: 8px; }
.tn-page--checkout #payment ul.payment_methods li { margin: 0 !important; border-radius: 14px !important; }
.tn-page--checkout #payment div.payment_box { margin: 8px 0 0 !important; font-size: 13px; border-radius: 12px; }
.tn-page--checkout #payment div.payment_box::before { display: none; }

/* Place order */
.tn-page--checkout #payment .place-order { padding: 0 !important; margin: 0 !important; }
.tn-page--checkout .woocommerce-terms-and-conditions-wrapper { font-size: 13px; }
.tn-page--checkout .woocommerce-privacy-policy-text p { font-size: 12px; color: var(--tn-muted); line-height: 1.7; }
.tn-page--checkout .woocommerce-form__label-for-checkbox { display: flex !important; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 600; margin: 10px 0 14px; }
.tn-page--checkout .woocommerce-form__label-for-checkbox input { accent-color: var(--tn-emerald); width: 18px; height: 18px; margin-top: 2px; }
body.tn.tn-page--checkout #place_order,
.tn-page--checkout #place_order { width: 100%; min-height: 56px; font-size: 17px !important; font-weight: 800 !important; border-radius: 16px !important; box-shadow: var(--tn-shadow); }

/* Mobile */
@media (max-width: 640px) {
	.tn-page--checkout #customer_details .col-1,
	.tn-page--checkout #customer_details .col-2,
	.tn-page--checkout #order_review { padding: 18px !important; border-radius: 20px !important; }
	.tn-page--checkout .woocommerce-billing-fields__field-wrapper,
	.tn-page--checkout .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; }
	.tn-page--checkout .woocommerce-billing-fields__field-wrapper > .form-row-first,
	.tn-page--checkout .woocommerce-billing-fields__field-wrapper > .form-row-last,
	.tn-page--checkout .woocommerce-shipping-fields__field-wrapper > .form-row-first,
	.tn-page--checkout .woocommerce-shipping-fields__field-wrapper > .form-row-last { grid-column: 1 / -1; }
	.tn-page--cart .wc-block-components-sidebar { position: static; }
	#billing_first_name_field, #shipping_first_name_field, #billing_city_field, #shipping_city_field, #billing_phone_field, #shipping_phone_field, #billing_address_2_field, #shipping_address_2_field { grid-column: 1 / -1 !important; }
	.tn-page--checkout #order_review { max-width: none; }
}

/* 1.2.2 — wider summary, full-width shipping cards */
@media (min-width: 961px) {
	.tn-page--checkout #customer_details { flex: 1 1 520px !important; }
	.tn-page--checkout #order_review { flex: 0 0 440px !important; max-width: 440px; }
}
.tn .woocommerce-shipping-totals { display: block; }
.tn .woocommerce-shipping-totals th { display: block; width: 100%; padding: 12px 0 8px !important; text-align: start; }
.tn .woocommerce-shipping-totals td { display: block; width: 100% !important; padding: 0 0 12px !important; }
.tn .woocommerce-shipping-totals #shipping_method { width: 100%; margin: 0 !important; }
.tn-page--checkout #billing_country_field strong { display: flex; }

/* 1.2.3 — summary table as flex rows */
.tn-page--checkout .woocommerce-checkout-review-order-table,
.tn-page--checkout .woocommerce-checkout-review-order-table tbody,
.tn-page--checkout .woocommerce-checkout-review-order-table tfoot { display: block; width: 100%; }
.tn-page--checkout .woocommerce-checkout-review-order-table tr { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.tn-page--checkout .woocommerce-checkout-review-order-table tr > * { display: block; border: 0 !important; }
.tn-page--checkout .woocommerce-checkout-review-order-table tr.cart_item { border-bottom: 1px solid var(--tn-line); }
.tn-page--checkout .woocommerce-checkout-review-order-table tr.cart_item td { border-bottom: 0 !important; }
.tn-page--checkout .woocommerce-checkout-review-order-table td.product-name { flex: 1 1 auto; min-width: 0; }
.tn-page--checkout .woocommerce-checkout-review-order-table tr.cart-subtotal { border-bottom: 1px solid var(--tn-line); }
.tn-page--checkout .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals { flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--tn-line); }
.tn-page--checkout .woocommerce-checkout-review-order-table tr.order-total { border-top: 0; }
.tn-page--checkout .woocommerce-checkout-review-order-table tr.order-total th,
.tn-page--checkout .woocommerce-checkout-review-order-table tr.order-total td { border-top: 0 !important; }

.rtl .tn-freeship__bar span { margin-left: auto; background: linear-gradient(270deg, var(--tn-emerald-2), var(--tn-emerald)); }
.tn-freeship__bar span { min-width: 8px; }

.tn-page--checkout #billing_country_field .woocommerce-input-wrapper,
.tn-page--checkout #shipping_country_field .woocommerce-input-wrapper { display: block; width: 100%; }


.tn-page--checkout #customer_details .col-1 { margin-top: 0 !important; }
.tn-page--checkout #customer_details::before, .tn-page--checkout #customer_details::after { display: none !important; }

/* 1.3.3 — two balanced columns: form + payment on one side, short sticky summary on the other */
.tn-page--checkout .tn-pay-card { background: var(--tn-surface); border-radius: 20px; padding: 22px; }
.tn-page--checkout .tn-pay-card .tn-pay-title { margin: 0 0 16px !important; font-size: 20px !important; }
.tn-page--checkout .tn-pay-card .tn-pay-title::before { content: '3'; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 15px; background: var(--tn-emerald); color: #fff; font: 700 14px/30px var(--tn-font); text-align: center; }
@media (min-width: 961px) {
	.tn-page--checkout #order_review { position: sticky !important; top: 110px; }
	.tn-page--checkout .tn-pay-card #payment ul.payment_methods { grid-template-columns: 1fr 1fr !important; display: grid !important; }
}
@media (max-width: 640px) { .tn-page--checkout .tn-pay-card { padding: 18px; } }

.tn-page--checkout .tn-pay-card #payment li.payment_method_cod .payment_box { display: none !important; }
.tn-page--checkout .tn-pay-card #payment ul.payment_methods li { align-self: stretch; }

.tn-page--checkout #payment ul.payment_methods::before,
.tn-page--checkout #payment ul.payment_methods::after { display: none !important; content: none !important; }

.tn-page--checkout #customer_details .col-2:not(:has(*:not(.woocommerce-shipping-fields):not(.woocommerce-additional-fields))) { display: none; }
.tn-page--checkout #customer_details .col-2:empty { display: none; }
.tn-page--checkout .tn-pay-card .tn-pay-title::before { content: '2' !important; }

/* 1.3.7 — order steps: card stepper */
ol.tn-steps { display: flex; align-items: flex-start; justify-content: space-between; gap: 0; list-style: none; margin: 0 auto 22px; padding: 18px 12px 16px; background: var(--tn-surface); border-radius: 22px; box-shadow: 0 1px 0 var(--tn-line); font-size: 14px; }
ol.tn-steps .tn-steps__item { flex: 1 1 0; position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--tn-muted); font-weight: 600; }
ol.tn-steps .tn-steps__item:not(:last-child)::after { content: ''; position: absolute; top: 18px; inset-inline-start: calc(50% + 26px); width: calc(100% - 52px); height: 3px; margin: 0; border-radius: 3px; background: var(--tn-line); }
ol.tn-steps .tn-steps__item.is-done::after { background: var(--tn-emerald-2); }
ol.tn-steps .tn-steps__num { width: 38px; height: 38px; border-radius: 19px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; background: var(--tn-field); color: var(--tn-muted); border: 2px solid var(--tn-line); box-sizing: border-box; transition: all .2s var(--tn-ease); }
ol.tn-steps .tn-steps__item.is-current { color: var(--tn-emerald); font-weight: 800; }
ol.tn-steps .tn-steps__item.is-current .tn-steps__num { background: var(--tn-emerald); color: #fff; border-color: var(--tn-emerald); box-shadow: 0 0 0 6px var(--tn-emerald-soft); }
ol.tn-steps .tn-steps__item.is-done { color: var(--tn-emerald-2); }
ol.tn-steps .tn-steps__item.is-done .tn-steps__num { background: var(--tn-emerald-2); color: #fff; border-color: var(--tn-emerald-2); }
ol.tn-steps .tn-steps__item.is-done a { color: inherit; text-decoration: none; }
ol.tn-steps .tn-steps__item.is-done a:hover { text-decoration: underline; }
@media (min-width: 961px) { ol.tn-steps { max-width: 640px; } }
@media (max-width: 640px) {
	ol.tn-steps { padding: 14px 6px 12px; font-size: 13px; border-radius: 18px; }
	ol.tn-steps .tn-steps__num { width: 32px; height: 32px; font-size: 14px; }
	ol.tn-steps .tn-steps__item:not(:last-child)::after { top: 15px; inset-inline-start: calc(50% + 22px); width: calc(100% - 44px); }
}
