/* =====================================================================
   The Pet Mart theme — site-wide, shop, product, cart & checkout styles.
   Design tokens (colours, fonts, sizes) come from Pet Mart Home settings.
   ===================================================================== */

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body.tpmt {
	margin: 0; background: var(--tpm-bg); color: var(--tpm-text);
	font-family: var(--tpm-font); font-size: var(--tpm-base); line-height: 1.6;
	-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
	/* default card vars for any product loop */
	--ar-d: 1 / 1; --ar-m: 1 / 1; --fit: contain; --radius: 8px; --card-bg: #fff;
	--pt-d: 13px; --pt-m: 12px; --pp-d: 15px; --pp-m: 13px; --pb: 12px;
	--cols-d: 4; --cols-t: 3; --cols-m: 2; --grid-gap: 18px; --grid-gap-m: 10px;
}
body.tpmt *, body.tpmt *::before, body.tpmt *::after { box-sizing: border-box; }
.tpmt h1, .tpmt h2, .tpmt h3, .tpmt h4, .tpmt h5, .tpmt h6 { font-family: var(--tpm-font-h); color: var(--tpm-heading); line-height: 1.3; margin: 0 0 .6em; font-weight: 700; }
.tpmt a { color: var(--tpm-primary); text-decoration: none; transition: color .2s; }
.tpmt a:hover { color: var(--tpm-primary-h); }
.tpmt img { max-width: 100%; height: auto; }
.tpmt input, .tpmt select, .tpmt textarea, .tpmt button { font-family: inherit; }
.tpmt .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100001; background: #fff; padding: 10px 16px; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.tpmt-site { width: 100%; }
.tpmt-main { display: block; min-height: 40vh; }
.tpmt-container { width: 100%; max-width: var(--tpm-container); margin: 0 auto; padding-left: var(--tpm-pad); padding-right: var(--tpm-pad); }
.tpmt-narrow { max-width: 960px; }
@media (max-width: 767px) {
	body.tpmt { font-size: var(--tpm-base-m); --grid-gap: var(--grid-gap-m); }
	.tpmt-container { padding-left: var(--tpm-pad-m); padding-right: var(--tpm-pad-m); }
}

/* ---------- Buttons ---------- */
.tpmt-button,
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) a.button, :is(body.tpmt.woocommerce, body.tpmt .woocommerce) button.button, :is(body.tpmt.woocommerce, body.tpmt .woocommerce) input.button,
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) a.button.alt, :is(body.tpmt.woocommerce, body.tpmt .woocommerce) button.button.alt, :is(body.tpmt.woocommerce, body.tpmt .woocommerce) input.button.alt,
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) #respond input#submit, body.tpmt .wp-block-button__link, body.tpmt .comment-form .submit,
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) button.button:disabled, :is(body.tpmt.woocommerce, body.tpmt .woocommerce) button.button:disabled[disabled] {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--tpm-btn-bg); color: var(--tpm-btn-color); border: 1.5px solid var(--tpm-btn-bg);
	border-radius: 6px; padding: 12px 24px; font-family: var(--tpm-font); font-size: 14px; font-weight: 600; line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .1s; box-shadow: none; text-shadow: none;
}
.tpmt-button:hover,
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) a.button:hover, :is(body.tpmt.woocommerce, body.tpmt .woocommerce) button.button:hover, :is(body.tpmt.woocommerce, body.tpmt .woocommerce) input.button:hover,
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) a.button.alt:hover, :is(body.tpmt.woocommerce, body.tpmt .woocommerce) button.button.alt:hover, :is(body.tpmt.woocommerce, body.tpmt .woocommerce) input.button.alt:hover,
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) #respond input#submit:hover, body.tpmt .comment-form .submit:hover {
	background: var(--tpm-primary-h); border-color: var(--tpm-primary-h); color: var(--tpm-btn-color);
}
.tpmt-button:active { transform: translateY(1px); }
.tpmt-button.is-outline { background: transparent; color: var(--tpm-heading); border-color: var(--tpm-heading); }
.tpmt-button.is-outline:hover { background: var(--tpm-heading); border-color: var(--tpm-heading); color: #fff; }
.tpmt-button.is-small { padding: 9px 16px; font-size: 13px; }
.tpmt a.tpmt-button, .tpmt a.tpmt-button:hover, .tpmt a.tpmt-button:focus { color: var(--tpm-btn-color); }
.tpmt a.tpmt-button.is-outline { color: var(--tpm-heading); }
.tpmt a.tpmt-button.is-outline:hover { color: #fff; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) button.button:disabled, :is(body.tpmt.woocommerce, body.tpmt .woocommerce) button.button:disabled[disabled] { opacity: .5; cursor: not-allowed; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) .tpm-btn { display: block !important; }

/* ---------- Form fields ---------- */
.tpmt input[type="text"], .tpmt input[type="email"], .tpmt input[type="tel"], .tpmt input[type="number"], .tpmt input[type="password"],
.tpmt input[type="search"], .tpmt input[type="url"], .tpmt input[type="date"], .tpmt textarea, .tpmt select,
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) form .form-row .input-text, :is(body.tpmt.woocommerce, body.tpmt .woocommerce) form .form-row select {
	width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid #E4E1DD; border-radius: 8px; background: #fff;
	color: var(--tpm-heading); font-size: 14px; line-height: 1.4; outline: none; box-shadow: none; transition: border-color .2s, box-shadow .2s;
}
.tpmt textarea, :is(body.tpmt.woocommerce, body.tpmt .woocommerce) form .form-row textarea { min-height: 110px; }
.tpmt input:focus, .tpmt textarea:focus, .tpmt select:focus,
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) form .form-row .input-text:focus { border-color: var(--tpm-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tpm-primary) 18%, transparent); }
.tpmt select { appearance: none; -webkit-appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; }
.tpmt label { color: var(--tpm-heading); font-weight: 500; font-size: 13px; }
.tpmt .select2-container--default .select2-selection--single { height: 46px; border: 1.5px solid #E4E1DD; border-radius: 8px; }
.tpmt .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 43px; padding-left: 14px; color: var(--tpm-heading); }
.tpmt .select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; right: 8px; }
.tpmt .select2-dropdown { border-color: #E4E1DD; border-radius: 8px; overflow: hidden; }
.tpmt .select2-container--default .select2-results__option--highlighted[aria-selected], .tpmt .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--tpm-primary); }

/* ---------- Search form ---------- */
.tpmt-searchform { display: flex; border: 1.5px solid var(--tpm-primary); border-radius: 40px; overflow: hidden; background: #fff; max-width: 560px; }
.tpmt .tpmt-searchform input[type="search"] { border: 0; min-height: 46px; border-radius: 0; box-shadow: none; padding-left: 20px; }
.tpmt-searchform button { border: 0; background: var(--tpm-primary); color: #fff; padding: 0 20px; font-size: 18px; display: flex; align-items: center; cursor: pointer; }

/* ---------- Page head / breadcrumb ---------- */
.tpmt-pagehead {
	position: relative; overflow: hidden; background: var(--tpmt-head-bg, #FFF5EA) center / cover no-repeat;
	padding: 34px 0 30px; text-align: center; border-bottom: 1px solid rgba(0,0,0,.03);
}
.tpmt-pagehead::before, .tpmt-pagehead::after { content: ""; position: absolute; width: 64px; height: 64px; background: var(--tpm-paw) no-repeat center / contain; opacity: .55; pointer-events: none; }
.tpmt-pagehead::before { left: 4%; bottom: -12px; transform: rotate(-24deg); }
.tpmt-pagehead::after { right: 5%; top: 10px; width: 46px; height: 46px; transform: rotate(18deg); }
.tpmt-pagehead.has-image::before, .tpmt-pagehead.has-image::after { display: none; }
.tpmt-pagehead .tpmt-container { position: relative; z-index: 1; }
.tpmt .tpmt-pagehead-title { font-size: var(--tpmt-head-size, 30px); color: var(--tpmt-head-color, var(--tpm-heading)); margin: 0 0 6px; font-weight: 700; }
.tpmt-pagehead-desc { max-width: 760px; margin: 10px auto 0; color: var(--tpm-text); font-size: 14px; }
.tpmt-pagehead-desc p { margin: 0 0 .5em; }
.tpmt-breadcrumb { font-size: 13px; color: var(--tpm-muted); display: flex; flex-wrap: wrap; gap: 4px 0; justify-content: center; align-items: center; }
.tpmt-breadcrumb a { color: var(--tpm-text); }
.tpmt-breadcrumb a:hover { color: var(--tpm-primary); }
.tpmt-breadcrumb .sep { margin: 0 8px; color: #c9b8a6; }
.tpmt-crumbbar { background: #FFF5EA; padding: 12px 0; margin-bottom: 26px; }
.tpmt-crumbbar .tpmt-breadcrumb { justify-content: flex-start; }
@media (max-width: 767px) {
	.tpmt-pagehead { padding: 22px 0 20px; }
	.tpmt .tpmt-pagehead-title { font-size: var(--tpmt-head-size-m, 22px); }
	.tpmt-pagehead::before, .tpmt-pagehead::after { width: 36px; height: 36px; }
	.tpmt-crumbbar { margin-bottom: 14px; padding: 9px 0; }
	.tpmt-breadcrumb { font-size: 12px; }
}

/* ---------- Steps ---------- */
.tpmt-steps { list-style: none; display: flex; justify-content: center; align-items: center; margin: 18px auto 0; padding: 0; max-width: 640px; }
.tpmt-steps li { display: flex; align-items: center; color: var(--tpm-muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.tpmt-steps li:not(:last-child) { flex: 1; }
.tpmt-steps li:not(:last-child)::after { content: ""; flex: 1; min-width: 24px; height: 2px; background: #EADBCB; margin: 0 14px; border-radius: 2px; }
.tpmt-steps li.is-done::after { background: var(--tpm-primary) !important; }
.tpmt-steps a { display: flex; align-items: center; gap: 8px; color: inherit; }
.tpmt-steps li > .tpmt-step-num { margin-right: 8px; }
.tpmt-step-num { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; border: 2px solid #EADBCB; font-size: 16px; flex: none; }
.tpmt-steps li.is-active { color: var(--tpm-heading); }
.tpmt-steps li.is-active .tpmt-step-num { background: var(--tpm-primary); border-color: var(--tpm-primary); color: #fff; }
.tpmt-steps li.is-done { color: var(--tpm-primary); }
.tpmt-steps li.is-done .tpmt-step-num { border-color: var(--tpm-primary); color: var(--tpm-primary); }
@media (max-width: 767px) {
	.tpmt-steps li:not(.is-active) .tpmt-step-label { display: none; }
	.tpmt-steps li:not(:last-child)::after { margin: 0 8px; min-width: 16px; }
	.tpmt-steps { font-size: 12px; }
	.tpmt-step-num { width: 30px; height: 30px; font-size: 14px; }
}

/* ---------- Notices ---------- */
body.tpmt .woocommerce-message, body.tpmt .woocommerce-info, body.tpmt .woocommerce-error, body.tpmt .woocommerce-noreviews, body.tpmt p.no-comments {
	background: #fff; border: 1px solid var(--tpm-border); border-left: 4px solid var(--tpm-primary); border-top-width: 1px; border-radius: 10px;
	padding: 14px 18px 14px 50px; margin: 0 0 20px; color: var(--tpm-heading); font-size: 14px; box-shadow: 0 3px 14px rgba(0,0,0,.04); list-style: none;
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
}
body.tpmt .woocommerce-message::before, body.tpmt .woocommerce-info::before, body.tpmt .woocommerce-error::before { top: 50%; transform: translateY(-50%); left: 18px; color: var(--tpm-primary); }
body.tpmt .woocommerce-message { border-left-color: #2E9F5A; }
body.tpmt .woocommerce-message::before { color: #2E9F5A; }
body.tpmt .woocommerce-error { border-left-color: #D93838; display: block; }
body.tpmt .woocommerce-error::before { color: #D93838; }
body.tpmt .woocommerce-message .button, body.tpmt .woocommerce-info .button { order: 2; margin-left: auto; padding: 8px 16px; font-size: 13px; float: none; }
body.tpmt .woocommerce-message::after, body.tpmt .woocommerce-info::after { display: none; }

/* ---------- Product grid (shop / category / search / upsells / cross-sells) ---------- */
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) ul.products, body.tpmt ul.products {
	display: grid !important; grid-template-columns: repeat(var(--cols-d), minmax(0, 1fr)); gap: var(--grid-gap);
	margin: 0 0 30px; padding: 0; list-style: none;
}
body.tpmt ul.products::before, body.tpmt ul.products::after { display: none !important; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) ul.products li.product, body.tpmt ul.products li.product {
	width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important; text-align: left; clear: none !important; list-style: none;
}
body.tpmt ul.products li.product-category a { display: block; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--tpm-border); text-align: center; }
body.tpmt ul.products li.product-category h2 { font-size: 14px !important; padding: 10px !important; margin: 0; }
body.tpmt ul.products li.product-category mark { background: none; color: var(--tpm-muted); }
@media (min-width: 768px) and (max-width: 1024px) { :is(body.tpmt.woocommerce, body.tpmt .woocommerce) ul.products, body.tpmt ul.products { grid-template-columns: repeat(var(--cols-t), minmax(0, 1fr)); } }
@media (max-width: 767px) { :is(body.tpmt.woocommerce, body.tpmt .woocommerce) ul.products, body.tpmt ul.products { grid-template-columns: repeat(var(--cols-m), minmax(0, 1fr)); } }

/* ---------- Shop layout ---------- */
.tpmt-shop { padding-top: 26px; padding-bottom: 40px; }
.tpmt-shop-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 30px; align-items: start; }
.tpmt-shop.sidebar-right .tpmt-shop-grid { grid-template-columns: minmax(0, 1fr) 260px; }
.tpmt-shop.sidebar-right .tpmt-filters { order: 2; }
.tpmt-shop.sidebar-none .tpmt-shop-grid { grid-template-columns: minmax(0, 1fr); }
.tpmt-filters { position: sticky; top: calc(var(--tpm-h-height) + 16px); }
body.admin-bar .tpmt-filters { top: calc(var(--tpm-h-height) + 48px); }
.tpmt-filters-head { display: none; }
.tpmt-fbox { background: #fff; border: 1px solid var(--tpm-border); border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.tpmt .tpmt-fbox-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px dashed #EADBCB; display: flex; align-items: center; gap: 8px; }
.tpmt .tpmt-fbox-title::before { content: ""; width: 16px; height: 16px; background: var(--tpm-paw) no-repeat center / contain; filter: saturate(3) brightness(.85); }
.tpmt-fcats, .tpmt-fcats ul, .tpmt-fchecks { list-style: none; margin: 0; padding: 0; }
.tpmt-fcats ul { padding-left: 14px; margin: 2px 0 4px; border-left: 2px solid #F3E6D8; }
.tpmt-fcats a { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; color: var(--tpm-text); font-size: 13.5px; }
.tpmt-fcats a:hover, .tpmt-fcats li.is-current > a { color: var(--tpm-primary); font-weight: 600; }
.tpmt-count { font-size: 11px; color: var(--tpm-muted); background: #F7F2EC; border-radius: 10px; padding: 1px 8px; font-weight: 500; }
.tpmt-fprice-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tpmt .tpmt-fprice-row input { min-height: 40px; padding: 8px 10px; font-size: 13px; }
.tpmt-fprice .tpmt-button { width: 100%; }
.tpmt-fchecks a { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--tpm-text); font-size: 13.5px; }
.tpmt-check { width: 18px; height: 18px; border: 1.5px solid #CFC6BD; border-radius: 5px; flex: none; position: relative; transition: .2s; background: #fff; }
.tpmt-fchecks a.is-on .tpmt-check { background: var(--tpm-primary); border-color: var(--tpm-primary); }
.tpmt-fchecks a.is-on .tpmt-check::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tpmt-fchecks a:hover .tpmt-check { border-color: var(--tpm-primary); }
.tpmt-frating .tpm-stars { font-size: 14px; }
.tpmt-up { font-size: 12px; color: var(--tpm-muted); }
.tpmt-fclear { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.tpmt-filters .widget ul { list-style: none; margin: 0; padding: 0; }
.tpmt-filters .widget li { padding: 5px 0; }

.tpmt-chips { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 14px; margin-bottom: 14px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.tpmt-chip { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; text-align: center; color: var(--tpm-heading) !important; scroll-snap-align: start; }
.tpmt-chip-img { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: #FFF5EA; border: 2px solid #F6E3CF; display: flex; align-items: center; justify-content: center; color: var(--tpm-primary); font-size: 28px; transition: border-color .2s, transform .2s; }
.tpmt-chip-img img { width: 100%; height: 100%; object-fit: cover; }
.tpmt-chip:hover .tpmt-chip-img { border-color: var(--tpm-primary); transform: translateY(-2px); }
.tpmt-chip-name { font-size: 12px; font-weight: 600; line-height: 1.3; }

.tpmt-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 10px 14px; background: #fff; border: 1px solid var(--tpm-border); border-radius: 10px; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) .tpmt-toolbar .woocommerce-result-count, body.tpmt .tpmt-toolbar .woocommerce-result-count { margin: 0 auto 0 0; float: none; font-size: 13px; color: var(--tpm-muted); }
body.tpmt .tpmt-toolbar .woocommerce-ordering { margin: 0; float: none; }
body.tpmt .tpmt-toolbar .woocommerce-ordering select { min-height: 38px; padding: 6px 34px 6px 12px; font-size: 13px; width: auto; }
.tpmt-filter-btn { display: none; align-items: center; gap: 6px; background: var(--tpm-heading); color: #fff; border: 0; border-radius: 6px; padding: 9px 14px; font-weight: 600; font-size: 13px; cursor: pointer; }
.tpmt-filters-overlay { display: none; }

/* Pagination */
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) nav.woocommerce-pagination ul, .tpmt-pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; border: 0; margin: 10px 0 0; padding: 0; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) nav.woocommerce-pagination ul li { border: 0; float: none; overflow: visible; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) nav.woocommerce-pagination ul li a, :is(body.tpmt.woocommerce, body.tpmt .woocommerce) nav.woocommerce-pagination ul li span, .tpmt-pagination .page-numbers {
	min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px;
	border: 1px solid var(--tpm-border); background: #fff; color: var(--tpm-heading); font-weight: 600; font-size: 14px;
}
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) nav.woocommerce-pagination ul li span.current, .tpmt-pagination .page-numbers.current,
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) nav.woocommerce-pagination ul li a:hover, .tpmt-pagination a.page-numbers:hover { background: var(--tpm-primary); border-color: var(--tpm-primary); color: #fff; }

@media (max-width: 1024px) {
	.tpmt-shop-grid, .tpmt-shop.sidebar-right .tpmt-shop-grid { grid-template-columns: minmax(0, 1fr); }
	.tpmt-filter-btn { display: inline-flex; }
	.tpmt-filters {
		position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); z-index: 100000; background: #FAF7F3;
		transform: translateX(-105%); transition: transform .3s ease; overflow-y: auto; padding: 0 14px 20px; order: 0 !important;
	}
	body.admin-bar .tpmt-filters { top: 0; }
	.tpmt-filters.is-open { transform: none; }
	.tpmt-filters-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: #FAF7F3; padding: 16px 4px; z-index: 2; margin-bottom: 4px; }
	.tpmt-filters-head strong { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--tpm-heading); }
	.tpmt-filters-close { background: none; border: 0; font-size: 22px; color: var(--tpm-heading); cursor: pointer; display: flex; }
	.tpmt-filters-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 99999; }
	.tpmt-filters.is-open + .tpmt-filters-overlay { display: block; }
}
@media (max-width: 767px) {
	.tpmt-shop { padding-top: 14px; }
	.tpmt-toolbar { flex-wrap: wrap; padding: 8px 10px; gap: 8px; }
	body.tpmt .tpmt-toolbar .woocommerce-result-count { order: 3; flex-basis: 100%; font-size: 12px; }
	body.tpmt .tpmt-toolbar .woocommerce-ordering { margin-left: auto; }
	body.tpmt .tpmt-toolbar .woocommerce-ordering select { max-width: 180px; }
	.tpmt-chip { width: 76px; }
	.tpmt-chip-img { width: 60px; height: 60px; }
}

/* ---------- Single product ---------- */
.tpmt-product-wrap { padding-bottom: 30px; }
body.tpmt.single-product div.product {
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0 48px; position: relative; align-items: start;
}
body.tpmt.single-product div.product > * { grid-column: 1 / -1; }
body.tpmt.single-product div.product > .woocommerce-product-gallery { grid-column: 1; grid-row: 1; }
body.tpmt.single-product div.product > .summary { grid-column: 2; grid-row: 1; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) div.product div.images, :is(body.tpmt.woocommerce, body.tpmt .woocommerce) div.product div.summary,
body.tpmt.woocommerce div.product div.images, body.tpmt.woocommerce div.product div.summary { width: auto !important; float: none !important; margin: 0 !important; }
body.tpmt.single-product div.product > span.onsale {
	position: absolute; top: 14px; left: 14px; right: auto; z-index: 9; min-width: 0; min-height: 0; margin: 0; padding: 5px 12px; line-height: 1.3;
	border-radius: 5px; background: var(--tpm-badge-bg); color: var(--tpm-badge-color); font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}
body.tpmt div.product .woocommerce-product-gallery { position: relative; }
body.tpmt div.product .woocommerce-product-gallery .flex-viewport, body.tpmt div.product .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:only-child {
	border: 1px solid var(--tpm-border); border-radius: 14px; overflow: hidden; background: #fff;
}
body.tpmt div.product .woocommerce-product-gallery__image img { width: 100%; }
body.tpmt div.product .woocommerce-product-gallery .flex-control-thumbs { display: flex; gap: 10px; margin: 12px 0 0; padding: 0; overflow-x: auto; }
body.tpmt div.product .woocommerce-product-gallery .flex-control-thumbs li { width: 78px !important; flex: none; float: none !important; margin: 0 !important; }
body.tpmt div.product .woocommerce-product-gallery .flex-control-thumbs li img { border: 2px solid var(--tpm-border); border-radius: 10px; opacity: .7; transition: .2s; background: #fff; }
body.tpmt div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active, body.tpmt div.product .woocommerce-product-gallery .flex-control-thumbs li img:hover { border-color: var(--tpm-primary); opacity: 1; }
body.tpmt div.product .woocommerce-product-gallery__trigger { top: 14px !important; right: 14px !important; width: 38px !important; height: 38px !important; background: #fff !important; border-radius: 50% !important; box-shadow: 0 3px 12px rgba(0,0,0,.12); z-index: 9; }

body.tpmt div.product .summary { padding-top: 4px; }
.tpmt-cat-label { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--tpm-primary); background: #FFF1E6; padding: 4px 12px; border-radius: 20px; margin-bottom: 10px; }
body.tpmt div.product .product_title { font-size: 26px; font-weight: 700; line-height: 1.3; margin: 0 0 10px; color: var(--tpm-heading); }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) div.product .woocommerce-product-rating, body.tpmt.woocommerce div.product .woocommerce-product-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) .star-rating, body.tpmt.woocommerce .star-rating { color: var(--tpm-star); float: none; margin: 0; }
body.tpmt .woocommerce-review-link { color: var(--tpm-muted); }
body.tpmt div.product .summary p.price, body.tpmt div.product .summary span.price,
body.tpmt.woocommerce div.product p.price, body.tpmt.woocommerce div.product span.price {
	color: var(--tpm-price); font-size: 28px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 8px;
}
body.tpmt.woocommerce div.product p.price ins, body.tpmt.woocommerce div.product span.price ins { order: -1; text-decoration: none; background: none; font-weight: 700; }
body.tpmt.woocommerce div.product p.price del, body.tpmt.woocommerce div.product span.price del { color: var(--tpm-muted); font-size: 17px; font-weight: 400; opacity: 1; }
.tpmt-price-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.tpmt-save { background: #E7F7EC; color: #1F8A4C; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.tpmt-stock { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.tpmt-stock.is-in { background: #EAF6EE; color: #1F8A4C; }
.tpmt-stock.is-out { background: #FDECEC; color: #C62828; }
body.tpmt div.product .woocommerce-product-details__short-description { color: var(--tpm-text); font-size: 14px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--tpm-border); }
body.tpmt div.product .woocommerce-product-details__short-description ul { padding-left: 18px; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) div.product p.stock, body.tpmt.woocommerce div.product p.stock { font-weight: 600; font-size: 13px; }
body.tpmt.woocommerce div.product .stock.in-stock { color: #1F8A4C; }

/* Add to cart form */
body.tpmt div.product form.cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin: 0 0 20px !important; }
body.tpmt div.product form.cart::before, body.tpmt div.product form.cart::after { display: none; }
body.tpmt div.product form.cart.variations_form { display: block; }
body.tpmt div.product form.cart .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 10px; }
body.tpmt div.product form.cart table.variations { margin-bottom: 14px; border: 0; }
body.tpmt div.product form.cart table.variations th, body.tpmt div.product form.cart table.variations td { display: block; padding: 0 0 6px; text-align: left; line-height: 1.4; border: 0; background: none; }
body.tpmt div.product form.cart table.variations select { min-width: 220px; margin: 0; }
body.tpmt div.product form.cart .reset_variations { font-size: 12px; margin-left: 8px; }
body.tpmt div.product .single_variation_wrap .woocommerce-variation-price { margin-bottom: 8px; }
body.tpmt div.product form.cart div.quantity { float: none; margin: 0; }
body.tpmt div.product form.cart .single_add_to_cart_button { flex: 1 1 200px; float: none; min-height: 50px; font-size: 15px; }
.tpmt-buy-now { flex: 1 1 100%; min-height: 50px; font-size: 15px !important; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) .tpmt-buy-now.button.alt, body.tpmt.woocommerce .tpmt-buy-now.button.alt { background: var(--tpm-heading); border-color: var(--tpm-heading); }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) .tpmt-buy-now.button.alt:hover, body.tpmt.woocommerce .tpmt-buy-now.button.alt:hover { background: #000; border-color: #000; }
.tpmt-buy-now .tpm-ico { width: 18px; height: 18px; }
.tpmt-wish-big { position: static !important; width: 50px !important; height: 50px !important; border-radius: 6px !important; border: 1.5px solid var(--tpm-border) !important; background: #fff !important; font-size: 20px !important; flex: none; }
body.tpmt div.product form.cart .tpmt-wish-big { order: 2; }
body.tpmt div.product form.cart .tpmt-buy-now { order: 3; }

/* Quantity stepper */
.tpmt-qwrap { display: inline-flex; align-items: stretch; border: 1.5px solid #E4E1DD; border-radius: 8px; overflow: hidden; background: #fff; height: 50px; }
.tpmt-qwrap button { width: 40px; border: 0; background: #FAF7F3; color: var(--tpm-heading); font-size: 20px; line-height: 1; cursor: pointer; transition: background .2s; padding: 0; }
.tpmt-qwrap button:hover { background: #FFE9D9; color: var(--tpm-primary); }
body.tpmt .tpmt-qwrap input.qty { width: 54px !important; min-height: 0; height: 100%; border: 0 !important; border-radius: 0; text-align: center; font-weight: 600; padding: 0; box-shadow: none !important; -moz-appearance: textfield; }
.tpmt-qwrap input.qty::-webkit-outer-spin-button, .tpmt-qwrap input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.woocommerce-cart-form .tpmt-qwrap { height: 42px; }
.woocommerce-cart-form .tpmt-qwrap button { width: 34px; }
.woocommerce-cart-form .tpmt-qwrap input.qty { width: 44px !important; }

/* Trust badges / delivery / share / meta */
.tpmt-badges { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tpmt-badges li { display: flex; align-items: center; gap: 10px; background: #FFF8F1; border: 1px solid #F6E6D6; border-radius: 10px; padding: 10px 12px; }
.tpmt-badges .tpm-ico { font-size: 26px; color: var(--tpm-primary); flex: none; stroke-width: 1.7; }
.tpmt-badges strong { display: block; font-size: 13px; color: var(--tpm-heading); line-height: 1.3; }
.tpmt-badges small { display: block; font-size: 11.5px; color: var(--tpm-muted); line-height: 1.35; }
.tpmt-delivery { display: flex; gap: 12px; align-items: flex-start; border: 1px dashed var(--tpm-primary); border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; background: #fff; }
.tpmt-delivery .tpm-ico { font-size: 22px; color: var(--tpm-primary); flex: none; margin-top: 2px; }
.tpmt-delivery p { margin: 0; font-size: 13px; color: var(--tpm-heading); }
body.tpmt div.product .product_meta { font-size: 13px; color: var(--tpm-muted); display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--tpm-border); margin-bottom: 14px; }
body.tpmt div.product .product_meta > span { display: block; }
body.tpmt div.product .product_meta a { color: var(--tpm-heading); }
.tpmt-share { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tpm-muted); }
.tpmt-share a, .tpmt-share button { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--tpm-border); color: var(--tpm-heading); background: #fff; font-size: 16px; cursor: pointer; transition: .2s; padding: 0; }
.tpmt-share a:hover, .tpmt-share button:hover { background: var(--tpm-primary); color: #fff; border-color: var(--tpm-primary); }

/* Tabs */
body.tpmt div.product .woocommerce-tabs { margin-top: 44px; }
body.tpmt.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 34px; padding: 0; margin: 0 0 22px; border-bottom: 1px solid var(--tpm-border); overflow: visible; }
body.tpmt.woocommerce div.product .woocommerce-tabs ul.tabs::before, body.tpmt.woocommerce div.product .woocommerce-tabs ul.tabs li::before, body.tpmt.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
body.tpmt.woocommerce div.product .woocommerce-tabs ul.tabs li { border: 0; background: none; border-radius: 0; margin: 0; padding: 0; }
body.tpmt.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 12px 2px; font-size: 15px; font-weight: 600; color: var(--tpm-muted); text-transform: uppercase; letter-spacing: .3px; display: block; }
body.tpmt.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--tpm-heading); box-shadow: inset 0 -3px 0 var(--tpm-primary); }
body.tpmt.woocommerce div.product .woocommerce-tabs .panel { background: #fff; border: 1px solid var(--tpm-border); border-radius: 14px; padding: 26px 28px; margin: 0; font-size: 14px; }
body.tpmt.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { font-size: 18px; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.shop_attributes, body.tpmt.woocommerce table.shop_attributes { border: 0; margin: 0; }
body.tpmt.woocommerce table.shop_attributes th, body.tpmt.woocommerce table.shop_attributes td { border: 0; border-bottom: 1px solid var(--tpm-border); padding: 10px 12px; font-style: normal; background: none !important; }
body.tpmt.woocommerce table.shop_attributes th { width: 200px; color: var(--tpm-heading); }
body.tpmt.woocommerce #reviews #comments ol.commentlist li .comment-text { border-radius: 10px; border-color: var(--tpm-border); }
body.tpmt.woocommerce #reviews #comments ol.commentlist li img.avatar { border-radius: 50%; border: 0; background: #FFF5EA; padding: 0; width: 40px; }
body.tpmt.woocommerce #review_form #respond { border: 1px solid var(--tpm-border); border-radius: 12px; padding: 18px; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) p.stars a, body.tpmt.woocommerce p.stars a { color: var(--tpm-star); }

/* Related / upsells */
.tpmt-related { padding: 46px 0 10px !important; }
body.tpmt div.product section.up-sells > h2, body.tpmt .cross-sells > h2 { text-align: center; font-size: 20px; text-transform: uppercase; margin: 40px 0 18px; }

@media (max-width: 1024px) {
	body.tpmt.single-product div.product { gap: 0 28px; }
	.tpmt-badges { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
	body.tpmt.single-product div.product { grid-template-columns: minmax(0, 1fr); }
	body.tpmt.single-product div.product > .woocommerce-product-gallery, body.tpmt.single-product div.product > .summary { grid-column: 1; grid-row: auto; }
	body.tpmt.single-product div.product > .summary { margin-top: 18px !important; }
	body.tpmt div.product .product_title { font-size: 20px; }
	body.tpmt div.product .summary p.price, body.tpmt.woocommerce div.product p.price { font-size: 23px; }
	.tpmt-badges { grid-template-columns: 1fr 1fr; gap: 8px; }
	.tpmt-badges li { padding: 8px 9px; gap: 8px; }
	.tpmt-badges .tpm-ico { font-size: 22px; }
	body.tpmt div.product .woocommerce-tabs { margin-top: 28px; }
	body.tpmt.woocommerce div.product .woocommerce-tabs ul.tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; gap: 22px; }
	body.tpmt.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-size: 13px; white-space: nowrap; }
	body.tpmt div.product form.cart .tpmt-buy-now { flex: 1 1 0; }
	body.tpmt.woocommerce div.product .woocommerce-tabs .panel { padding: 18px 16px; }
	body.tpmt div.product .woocommerce-product-gallery .flex-control-thumbs li { width: 62px !important; }
	body.tpmt.single-product .tpmt-product-wrap { padding-bottom: 80px; }
}

/* Sticky add to cart (mobile) */
.tpmt-sticky-atc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; background: #fff; box-shadow: 0 -6px 22px rgba(0,0,0,.12); padding: 10px 0; transform: translateY(110%); transition: transform .3s ease; }
.tpmt-sticky-atc.is-visible { transform: none; }
.tpmt-sticky-atc .tpmt-container { display: flex; align-items: center; gap: 10px; }
.tpmt-sticky-media img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; border: 1px solid var(--tpm-border); display: block; }
.tpmt-sticky-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tpmt-sticky-name { font-size: 13px; font-weight: 600; color: var(--tpm-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpmt-sticky-price { font-size: 14px; font-weight: 700; color: var(--tpm-price); display: flex; gap: 6px; align-items: baseline; }
.tpmt-sticky-price del { color: var(--tpm-muted); font-weight: 400; font-size: 11px; }
.tpmt-sticky-price ins { order: -1; text-decoration: none; }
.tpmt-sticky-btn { background: var(--tpm-btn-bg); color: var(--tpm-btn-color); border: 0; border-radius: 8px; padding: 13px 18px; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
@media (min-width: 768px) { .tpmt-sticky-atc { display: none; } }

/* ---------- Side cart drawer ---------- */
.tpmt-drawer-cart { position: fixed; inset: 0; z-index: 100002; visibility: hidden; pointer-events: none; }
.tpmt-drawer-cart.is-open { visibility: visible; pointer-events: auto; }
.tpmt-dc-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .3s; }
.tpmt-drawer-cart.is-open .tpmt-dc-overlay { opacity: 1; }
.tpmt-dc-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(92vw, 420px); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .32s ease; box-shadow: -10px 0 30px rgba(0,0,0,.1); }
.tpmt-drawer-cart.is-open .tpmt-dc-panel { transform: none; }
.tpmt-dc-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--tpm-border); background: #FFF8F1; }
.tpmt .tpmt-dc-head h3 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.tpmt-dc-head h3 .tpm-ico { color: var(--tpm-primary); font-size: 20px; }
.tpmt-dc-head small { font-size: 13px; color: var(--tpm-muted); font-weight: 500; }
.tpmt-dc-close { background: #fff; border: 1px solid var(--tpm-border); width: 36px; height: 36px; border-radius: 50%; font-size: 18px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--tpm-heading); padding: 0; }
.tpmt-dc-close:hover { background: var(--tpm-primary); color: #fff; border-color: var(--tpm-primary); }
.tpmt-cart-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.tpmt-cart-body.is-loading { opacity: .6; pointer-events: none; }
.tpmt-ship { padding: 12px 18px; background: #fff; border-bottom: 1px solid var(--tpm-border); }
.tpmt-ship[hidden] { display: none; }
.tpmt-ship p { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; font-weight: 500; color: var(--tpm-heading); }
.tpmt-ship p .tpm-ico { color: var(--tpm-primary); font-size: 18px; }
.tpmt-ship-bar { height: 7px; background: #F3E8DD; border-radius: 10px; overflow: hidden; }
.tpmt-ship-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--tpm-primary), #F7A21B); border-radius: 10px; transition: width .4s ease; }
.tpmt-ship.is-done p .tpm-ico { color: #1F8A4C; }
.tpmt-ship.is-done .tpmt-ship-bar span { background: #2E9F5A; }
.tpmt-cart-items { list-style: none; margin: 0; padding: 6px 18px; overflow-y: auto; flex: 1; }
.tpmt-ci { position: relative; display: flex; gap: 12px; padding: 14px 26px 14px 0; border-bottom: 1px solid var(--tpm-border); }
.tpmt-ci:last-child { border-bottom: 0; }
.tpmt-ci-img { flex: 0 0 76px; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; border: 1px solid var(--tpm-border); background: #fff; display: block; }
.tpmt-ci-img img { width: 100%; height: 100%; object-fit: contain; }
.tpmt-ci-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tpmt-ci-name { font-size: 13.5px; font-weight: 600; color: var(--tpm-heading) !important; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tpmt-ci-info dl.variation { margin: 0; font-size: 11.5px; color: var(--tpm-muted); display: flex; flex-wrap: wrap; gap: 0 6px; }
.tpmt-ci-info dl.variation dt, .tpmt-ci-info dl.variation dd { margin: 0; }
.tpmt-ci-info dl.variation p { margin: 0; }
.tpmt-ci-price { font-size: 12px; color: var(--tpm-muted); }
.tpmt-ci-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.tpmt-ci-sub { font-weight: 700; color: var(--tpm-price); font-size: 14px; }
.tpmt-qty { display: inline-flex; align-items: center; border: 1.5px solid #E4E1DD; border-radius: 8px; overflow: hidden; height: 32px; }
.tpmt-qty-btn { width: 30px; height: 100%; border: 0; background: #FAF7F3; color: var(--tpm-heading); font-size: 16px; cursor: pointer; padding: 0; line-height: 1; }
.tpmt-qty-btn:hover { background: #FFE9D9; color: var(--tpm-primary); }
.tpmt-qty-val { min-width: 32px; text-align: center; font-weight: 600; font-size: 13px; }
.tpmt-ci-remove { position: absolute !important; top: 12px; right: 0; width: 24px !important; height: 24px !important; border-radius: 50%; display: flex !important; align-items: center; justify-content: center; color: var(--tpm-muted) !important; background: #F5F2EE; font-size: 13px !important; }
.tpmt-ci-remove:hover { background: #FDECEC !important; color: #C62828 !important; }
.tpmt-cart-foot { border-top: 1px solid var(--tpm-border); padding: 14px 18px 18px; background: #fff; box-shadow: 0 -6px 18px rgba(0,0,0,.04); }
.tpmt-cart-subtotal { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 600; color: var(--tpm-heading); }
.tpmt-cart-subtotal strong { font-size: 18px; color: var(--tpm-heading); }
.tpmt-cart-note { font-size: 12px; color: var(--tpm-muted); margin: 4px 0 14px; }
.tpmt-cart-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tpmt-cart-btns .tpmt-button { padding: 13px 10px; }
.tpmt-cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; gap: 4px; }
.tpmt-cart-empty > .tpm-ico { font-size: 64px; color: #F3C9A8; margin-bottom: 10px; stroke-width: 1.4; }
.tpmt .tpmt-cart-empty h4 { font-size: 18px; margin: 0; }
.tpmt-cart-empty p { color: var(--tpm-muted); margin: 0 0 16px; font-size: 13px; }

/* ---------- Cart page ---------- */
.tpmt-page { padding-top: 30px; padding-bottom: 50px; }
body.tpmt.woocommerce-cart .tpmt-wc-page > .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 30px; align-items: start; }
body.tpmt.woocommerce-cart .tpmt-wc-page > .woocommerce > * { grid-column: 1 / -1; }
body.tpmt.woocommerce-cart .tpmt-wc-page > .woocommerce > form.woocommerce-cart-form { grid-column: 1; }
body.tpmt.woocommerce-cart .tpmt-wc-page > .woocommerce > .cart-collaterals { grid-column: 2; grid-row: span 2; position: sticky; top: calc(var(--tpm-h-height) + 16px); }
.tpmt-cart-ship-wrap .tpmt-ship { border: 1px solid #F6E3CF; background: #FFF8F1; border-radius: 12px; margin-bottom: 20px; padding: 14px 18px; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.shop_table { border: 1px solid var(--tpm-border); border-radius: 14px; border-collapse: separate; border-spacing: 0; overflow: hidden; background: #fff; margin: 0 0 24px; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.shop_table th { background: #FFF8F1; color: var(--tpm-heading); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .3px; padding: 14px 16px; border: 0; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.shop_table td { padding: 14px 16px; border-top: 1px solid var(--tpm-border); vertical-align: middle; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.cart td.product-thumbnail img { width: 80px; border-radius: 10px; border: 1px solid var(--tpm-border); background: #fff; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.cart td.product-name a { color: var(--tpm-heading); font-weight: 600; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.cart td.product-price, :is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.cart td.product-subtotal { font-weight: 600; color: var(--tpm-heading); }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.cart td.product-subtotal { color: var(--tpm-price); }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.cart a.remove { width: 30px; height: 30px; line-height: 28px; font-size: 20px; color: var(--tpm-muted) !important; background: #F5F2EE; border-radius: 50%; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.cart a.remove:hover { background: #FDECEC; color: #C62828 !important; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.cart td.actions { background: #FCFAF8; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.cart td.actions .coupon { display: flex; gap: 8px; align-items: center; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.cart td.actions .coupon .input-text { width: 210px !important; float: none; min-height: 44px; margin: 0; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.cart td.actions .button { padding: 11px 18px; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.cart td.actions > .button[name="update_cart"] { background: transparent; color: var(--tpm-heading); border-color: #D9D2CA; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) .cart-collaterals .cart_totals { width: 100%; float: none; background: #fff; border: 1px solid var(--tpm-border); border-radius: 14px; padding: 20px; box-shadow: 0 6px 24px rgba(0,0,0,.05); }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) .cart-collaterals .cart_totals h2 { font-size: 18px; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px dashed #EADBCB; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) .cart_totals table.shop_table { border: 0; border-radius: 0; margin: 0 0 14px; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) .cart_totals table.shop_table th, :is(body.tpmt.woocommerce, body.tpmt .woocommerce) .cart_totals table.shop_table td { background: none; padding: 10px 0; text-transform: none; font-size: 14px; letter-spacing: 0; border-top: 1px solid var(--tpm-border); }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) .cart_totals table.shop_table tr:first-child th, :is(body.tpmt.woocommerce, body.tpmt .woocommerce) .cart_totals table.shop_table tr:first-child td { border-top: 0; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) .cart_totals .order-total th, :is(body.tpmt.woocommerce, body.tpmt .woocommerce) .cart_totals .order-total td { font-size: 17px; color: var(--tpm-heading); }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) .cart_totals .order-total .amount { color: var(--tpm-price); }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) ul#shipping_method li { margin: 0 0 6px; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) .wc-proceed-to-checkout { padding: 0; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) .wc-proceed-to-checkout a.checkout-button { width: 100%; padding: 16px; font-size: 16px; margin: 0; border-radius: 8px; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) .cross-sells { grid-column: 1 / -1; width: 100%; float: none; }
body.tpmt .cart-empty.woocommerce-info { flex-direction: column; text-align: center; border: 0; box-shadow: none; padding: 40px 20px 10px; font-size: 18px; font-weight: 600; background: none; }
body.tpmt .cart-empty.woocommerce-info::before { position: static; transform: none; content: ""; display: block; width: 90px; height: 90px; margin: 0 auto 10px; background: var(--tpm-paw) no-repeat center / contain; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) .return-to-shop { text-align: center; }
@media (max-width: 1024px) {
	body.tpmt.woocommerce-cart .tpmt-wc-page > .woocommerce { grid-template-columns: minmax(0, 1fr); }
	body.tpmt.woocommerce-cart .tpmt-wc-page > .woocommerce > .cart-collaterals { grid-column: 1; grid-row: auto; position: static; }
}
@media (max-width: 767px) {
	.tpmt-page { padding-top: 18px; }
	:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.shop_table_responsive tr, body.tpmt .woocommerce-page table.shop_table_responsive tr { display: block; position: relative; padding: 10px 12px; border-top: 1px solid var(--tpm-border); }
	:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.shop_table_responsive tr:first-child { border-top: 0; }
	:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.shop_table_responsive tr td { border: 0; padding: 6px 0; background: none !important; }
	:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.cart tr.cart_item { padding-left: 100px; min-height: 120px; }
	:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.cart td.product-thumbnail { display: block !important; position: absolute; left: 12px; top: 14px; padding: 0; }
	:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.cart td.product-thumbnail img { width: 76px; }
	:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.cart td.product-thumbnail::before { display: none; }
	:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.cart td.product-remove { position: absolute; top: 8px; right: 8px; padding: 0; text-align: right; }
	:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.cart td.product-name { padding-right: 34px; text-align: left !important; }
	:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.cart td.product-name::before { display: none; }
	:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.cart td.actions { padding: 12px; }
	:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.cart td.actions .coupon { flex-wrap: wrap; }
	:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.cart td.actions .coupon .input-text { width: 100%; flex: 1; }
	:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.cart td.actions .coupon .button { width: auto; }
	:is(body.tpmt.woocommerce, body.tpmt .woocommerce) table.cart td.actions > .button { width: 100%; margin-top: 8px; }
}

/* ---------- Checkout ---------- */
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 430px; grid-template-rows: auto auto 1fr; gap: 0 30px; align-items: start; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) form.checkout > * { grid-column: 1 / -1; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) form.checkout > #customer_details { grid-column: 1; grid-row: 2 / span 2; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) form.checkout > #order_review_heading { grid-column: 2; grid-row: 2; margin: 0; background: var(--tpm-heading); color: #fff; padding: 16px 20px; border-radius: 14px 14px 0 0; font-size: 16px; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) form.checkout > #order_review { grid-column: 2; grid-row: 3; background: #fff; border: 1px solid var(--tpm-border); border-top: 0; border-radius: 0 0 14px 14px; padding: 18px 20px 20px; box-shadow: 0 8px 26px rgba(0,0,0,.06); position: sticky; top: calc(var(--tpm-h-height) + 16px); }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) form.checkout > .woocommerce-NoticeGroup { grid-row: 1; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) .col2-set .col-1, :is(body.tpmt.woocommerce, body.tpmt .woocommerce) .col2-set .col-2 { width: 100%; float: none; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) form.checkout .col2-set::before, :is(body.tpmt.woocommerce, body.tpmt .woocommerce) form.checkout .col2-set::after { display: none; }
body.tpmt .woocommerce-billing-fields, body.tpmt .woocommerce-shipping-fields, body.tpmt .woocommerce-additional-fields {
	background: #fff; border: 1px solid var(--tpm-border); border-radius: 14px; padding: 20px 22px 8px; margin-bottom: 20px;
}
body.tpmt .woocommerce-shipping-fields:empty { display: none; }
body.tpmt .woocommerce-billing-fields h3, body.tpmt .woocommerce-shipping-fields h3, body.tpmt .woocommerce-additional-fields h3 {
	font-size: 17px; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px dashed #EADBCB; display: flex; align-items: center; gap: 8px;
}
body.tpmt .woocommerce-billing-fields h3::before { content: ""; width: 20px; height: 20px; background: var(--tpm-paw) no-repeat center / contain; filter: saturate(3) brightness(.85); }
body.tpmt .woocommerce-shipping-fields h3#ship-to-different-address { border: 0; padding: 0; margin: 0 0 12px; font-size: 15px; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) form .form-row { padding: 0; margin: 0 0 14px; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) form .form-row label { margin-bottom: 5px; display: block; line-height: 1.4; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) form .form-row .required { color: #D93838; text-decoration: none; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) form .form-row-first, :is(body.tpmt.woocommerce, body.tpmt .woocommerce) form .form-row-last { width: calc(50% - 7px); }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) form .form-row.woocommerce-invalid .input-text, :is(body.tpmt.woocommerce, body.tpmt .woocommerce) form .form-row.woocommerce-invalid select { border-color: #D93838; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) form .form-row.woocommerce-validated .input-text { border-color: #8BC9A3; }
body.tpmt .woocommerce-checkout-review-order-table { border: 0 !important; border-radius: 0 !important; margin: 0 0 16px !important; }
body.tpmt .woocommerce-checkout-review-order-table th, body.tpmt .woocommerce-checkout-review-order-table td { background: none !important; padding: 10px 0 !important; font-size: 13.5px !important; text-transform: none !important; letter-spacing: 0 !important; border-top: 1px solid var(--tpm-border) !important; }
body.tpmt .woocommerce-checkout-review-order-table thead th { border-top: 0 !important; color: var(--tpm-muted) !important; font-size: 12px !important; text-transform: uppercase !important; }
body.tpmt .woocommerce-checkout-review-order-table td.product-total, body.tpmt .woocommerce-checkout-review-order-table tfoot td { text-align: right; }
body.tpmt .woocommerce-checkout-review-order-table td.product-name { color: var(--tpm-heading); font-weight: 500; }
body.tpmt .woocommerce-checkout-review-order-table .order-total th, body.tpmt .woocommerce-checkout-review-order-table .order-total td { font-size: 17px !important; color: var(--tpm-heading); }
body.tpmt .woocommerce-checkout-review-order-table .order-total .amount { color: var(--tpm-price); }
body.tpmt .woocommerce-checkout #payment, body.tpmt.woocommerce-checkout #payment { background: #FFF8F1; border-radius: 12px; border: 1px solid #F6E3CF; }
body.tpmt.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid #F6E3CF; padding: 14px 16px; }
body.tpmt.woocommerce-checkout #payment ul.payment_methods li { line-height: 1.5; margin-bottom: 6px; }
body.tpmt.woocommerce-checkout #payment ul.payment_methods li label { font-weight: 600; font-size: 14px; }
body.tpmt.woocommerce-checkout #payment ul.payment_methods li input { accent-color: var(--tpm-primary); margin-right: 6px; }
body.tpmt.woocommerce-checkout #payment div.payment_box { background: #fff; color: var(--tpm-text); border-radius: 8px; font-size: 13px; }
body.tpmt.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #fff; }
body.tpmt.woocommerce-checkout #payment div.form-row { padding: 14px 16px; margin: 0; }
body.tpmt.woocommerce-checkout #payment #place_order { width: 100%; float: none; padding: 17px; font-size: 16px; border-radius: 8px; margin-top: 6px; }
body.tpmt .woocommerce-terms-and-conditions-wrapper { font-size: 12px; }
.tpmt-secure { text-align: center; padding-top: 12px; }
.tpmt-secure-title { display: flex; justify-content: center; align-items: center; gap: 6px; font-weight: 600; color: #1F8A4C; margin: 0 0 4px; font-size: 13px; }
.tpmt-secure-note { font-size: 12px; color: var(--tpm-muted); margin: 0; }
body.tpmt .woocommerce-form-coupon-toggle .woocommerce-info, body.tpmt .woocommerce-form-login-toggle .woocommerce-info { margin-bottom: 14px; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) form.checkout_coupon, :is(body.tpmt.woocommerce, body.tpmt .woocommerce) form.login, :is(body.tpmt.woocommerce, body.tpmt .woocommerce) form.register {
	border: 1px solid var(--tpm-border); border-radius: 14px; padding: 20px; background: #fff; margin: 0 0 20px;
}
@media (max-width: 1024px) {
	:is(body.tpmt.woocommerce, body.tpmt .woocommerce) form.checkout { grid-template-columns: minmax(0, 1fr); }
	:is(body.tpmt.woocommerce, body.tpmt .woocommerce) form.checkout > #customer_details, :is(body.tpmt.woocommerce, body.tpmt .woocommerce) form.checkout > #order_review_heading, :is(body.tpmt.woocommerce, body.tpmt .woocommerce) form.checkout > #order_review { grid-column: 1; grid-row: auto; position: static; }
}
@media (max-width: 767px) {
	body.tpmt .woocommerce-billing-fields, body.tpmt .woocommerce-shipping-fields, body.tpmt .woocommerce-additional-fields { padding: 16px 14px 4px; }
	:is(body.tpmt.woocommerce, body.tpmt .woocommerce) form .form-row-first, :is(body.tpmt.woocommerce, body.tpmt .woocommerce) form .form-row-last { width: 100%; float: none; }
	:is(body.tpmt.woocommerce, body.tpmt .woocommerce) form.checkout > #order_review { padding: 14px; }
}

/* ---------- Thank you ---------- */
body.tpmt .woocommerce-order .woocommerce-thankyou-order-received { background: #EAF6EE; border: 1px solid #BFE5CB; color: #1F6B3E; border-radius: 14px; padding: 22px; text-align: center; font-size: 18px; font-weight: 600; margin-bottom: 22px; }
body.tpmt .woocommerce-order .woocommerce-thankyou-order-received::before { content: "✓"; display: flex; width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 50%; background: #2E9F5A; color: #fff; align-items: center; justify-content: center; font-size: 28px; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) ul.order_details { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; padding: 0; margin: 0 0 30px; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) ul.order_details::before, :is(body.tpmt.woocommerce, body.tpmt .woocommerce) ul.order_details::after { display: none; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) ul.order_details li { float: none; margin: 0; padding: 14px 16px; border: 1px solid var(--tpm-border); border-radius: 12px; background: #fff; font-size: 12px; text-transform: uppercase; color: var(--tpm-muted); }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) ul.order_details li strong { font-size: 15px; text-transform: none; color: var(--tpm-heading); margin-top: 4px; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) .woocommerce-order-details h2, :is(body.tpmt.woocommerce, body.tpmt .woocommerce) .woocommerce-customer-details h2 { font-size: 18px; }
:is(body.tpmt.woocommerce, body.tpmt .woocommerce) .woocommerce-customer-details address { border: 1px solid var(--tpm-border); border-radius: 12px; padding: 16px; }

/* ---------- My account ---------- */
body.tpmt.woocommerce-account .tpmt-wc-page > .woocommerce { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
body.tpmt.woocommerce-account .tpmt-wc-page > .woocommerce::before, body.tpmt.woocommerce-account .tpmt-wc-page > .woocommerce::after { display: none; }
body.tpmt.woocommerce-account:not(.logged-in) .tpmt-wc-page > .woocommerce { display: block; }
body.tpmt.woocommerce-account .woocommerce-MyAccount-navigation, body.tpmt.woocommerce-account .woocommerce-MyAccount-content { width: auto; float: none; }
body.tpmt .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--tpm-border); border-radius: 14px; }
body.tpmt .woocommerce-MyAccount-navigation li a { display: block; padding: 11px 14px; border-radius: 8px; color: var(--tpm-heading); font-weight: 500; font-size: 14px; }
body.tpmt .woocommerce-MyAccount-navigation li.is-active a, body.tpmt .woocommerce-MyAccount-navigation li a:hover { background: var(--tpm-primary); color: #fff; }
body.tpmt .woocommerce-MyAccount-content { background: #fff; border: 1px solid var(--tpm-border); border-radius: 14px; padding: 24px; }
body.tpmt .woocommerce-account .u-columns.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
body.tpmt .woocommerce-account .u-columns.col2-set::before, body.tpmt .woocommerce-account .u-columns.col2-set::after { display: none; }
body.tpmt .woocommerce-account .u-columns .u-column1, body.tpmt .woocommerce-account .u-columns .u-column2 { width: auto; float: none; }
body.tpmt .woocommerce-account:not(.logged-in) .tpmt-wc-page > .woocommerce > h2 { text-align: center; }
@media (max-width: 767px) {
	body.tpmt.woocommerce-account .tpmt-wc-page > .woocommerce { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	body.tpmt .woocommerce-MyAccount-navigation ul { display: flex; overflow-x: auto; gap: 4px; }
	body.tpmt .woocommerce-MyAccount-navigation li a { white-space: nowrap; padding: 9px 12px; font-size: 13px; }
	body.tpmt .woocommerce-MyAccount-content { padding: 16px; }
	body.tpmt .woocommerce-account .u-columns.col2-set { grid-template-columns: 1fr; }
}

/* ---------- WooCommerce blocks (if used) ---------- */
body.tpmt .wc-block-components-button:not(.is-link), body.tpmt .wc-block-cart__submit-button, body.tpmt .wc-block-components-checkout-place-order-button {
	background: var(--tpm-btn-bg) !important; color: var(--tpm-btn-color) !important; border-radius: 8px !important; font-weight: 600 !important;
}
body.tpmt .wc-block-components-product-price__value.is-discounted, body.tpmt .wc-block-formatted-money-amount { color: inherit; }

/* ---------- Blog ---------- */
.tpmt-blog { padding-top: 34px; padding-bottom: 50px; }
.tpmt-blog.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; align-items: start; }
.tpmt-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 30px; }
.tpmt-blog.has-sidebar .tpmt-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tpmt-card { background: #fff; border: 1px solid var(--tpm-border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.tpmt-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.08); transform: translateY(-3px); }
.tpmt-card-media { display: block; aspect-ratio: 16 / 10; background: #FFF5EA; overflow: hidden; }
.tpmt-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tpmt-card:hover .tpmt-card-media img { transform: scale(1.05); }
.tpmt-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.tpmt .tpmt-card-title { font-size: 17px; margin: 4px 0 8px; }
.tpmt-card-title a { color: var(--tpm-heading); }
.tpmt-card-title a:hover { color: var(--tpm-primary); }
.tpmt-card-excerpt { font-size: 13.5px; color: var(--tpm-text); flex: 1; }
.tpmt-card-excerpt p { margin: 0 0 12px; }
.tpmt-readmore { font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.tpmt-post-meta { font-size: 12px; color: var(--tpm-muted); display: flex; flex-wrap: wrap; gap: 6px; justify-content: inherit; }
.tpmt-pagehead .tpmt-post-meta { justify-content: center; }
.tpmt-post-meta a { color: var(--tpm-primary); }
.tpmt-search-again { margin-bottom: 24px; display: flex; justify-content: center; }
.tpmt-single { padding-top: 30px; padding-bottom: 50px; }
.tpmt-single-thumb { margin-bottom: 24px; border-radius: 16px; overflow: hidden; }
.tpmt-single-thumb img { width: 100%; display: block; }
.tpmt-entry { font-size: 15.5px; line-height: 1.8; color: var(--tpm-text); }
.tpmt-entry h2 { font-size: 24px; margin-top: 1.4em; }
.tpmt-entry h3 { font-size: 20px; margin-top: 1.3em; }
.tpmt-entry blockquote { border-left: 4px solid var(--tpm-primary); background: #FFF8F1; margin: 1.5em 0; padding: 14px 20px; border-radius: 0 10px 10px 0; font-style: italic; }
.tpmt-entry img { border-radius: 10px; }
.tpmt-entry a { text-decoration: underline; text-underline-offset: 3px; }
.tpmt-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.tpmt-tags a { background: #FFF5EA; color: var(--tpm-heading); padding: 5px 12px; border-radius: 20px; font-size: 12px; }
.tpmt .post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 30px 0; }
.tpmt .post-navigation a { display: block; border: 1px solid var(--tpm-border); border-radius: 12px; padding: 14px 16px; color: var(--tpm-heading); font-weight: 600; }
.tpmt .post-navigation a span { display: block; font-size: 11px; color: var(--tpm-muted); text-transform: uppercase; font-weight: 500; }
.tpmt .post-navigation .nav-next { text-align: right; }
.tpmt-comments { margin-top: 40px; }
.tpmt .comment-list { list-style: none; padding: 0; }
.tpmt .comment-list .comment-body { border: 1px solid var(--tpm-border); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.tpmt .comment-list .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.tpmt .comment-form p { margin: 0 0 14px; }
@media (max-width: 1024px) {
	.tpmt-posts, .tpmt-blog.has-sidebar .tpmt-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tpmt-blog.has-sidebar { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
	.tpmt-posts, .tpmt-blog.has-sidebar .tpmt-posts { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.tpmt .post-navigation .nav-links { grid-template-columns: 1fr; }
}

/* ---------- 404 / empty ---------- */
.tpmt-404 { text-align: center; padding: 70px 0 80px; background: radial-gradient(ellipse at top, #FFF5EA, transparent 70%); }
.tpmt-404-art { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 130px; font-weight: 800; line-height: 1; color: var(--tpm-heading); font-family: var(--tpm-font-h); }
.tpmt-404-art .tpm-ico { width: 120px; height: 120px; color: var(--tpm-primary); transform: rotate(-14deg); }
.tpmt-404 h1 { font-size: 28px; margin-top: 16px; }
.tpmt-404 p { max-width: 520px; margin: 0 auto 22px; color: var(--tpm-muted); }
.tpmt-404-search { display: flex; justify-content: center; margin-bottom: 20px; }
.tpmt-404-search .tpmt-searchform { width: 100%; }
.tpmt-404-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.tpmt-empty { text-align: center; padding: 50px 20px; border: 1px dashed #EADBCB; border-radius: 16px; background: #FFFCF8; }
.tpmt-empty > .tpm-ico { width: 64px; height: 64px; color: #F3C9A8; }
.tpmt .tpmt-empty h2 { font-size: 20px; margin: 12px 0 6px; }
.tpmt-empty p { color: var(--tpm-muted); margin: 0 0 18px; }
.tpmt-empty .tpmt-searchform { margin: 0 auto; }
@media (max-width: 767px) {
	.tpmt-404 { padding: 44px 0 50px; }
	.tpmt-404-art { font-size: 80px; }
	.tpmt-404-art .tpm-ico { width: 72px; height: 72px; }
	.tpmt-404 h1 { font-size: 21px; }
}

/* ---------- Full width template / page builders ---------- */
.tpmt-fullwidth { width: 100%; }
.tpmt-fullwidth > .alignfull { margin-left: 0; margin-right: 0; }
.tpmt-entry .alignwide { margin-left: -80px; margin-right: -80px; max-width: calc(100% + 160px); }
.tpmt-entry .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
@media (max-width: 1100px) { .tpmt-entry .alignwide { margin-left: 0; margin-right: 0; max-width: 100%; } }

/* =====================================================================
   v1.1 — CRO blocks, FBT, reviews section, custom sections in pages
   ===================================================================== */
.tpmt-product-wrap .tpm-section > .tpm-container, .tpmt-shop .tpm-section > .tpm-container { padding-left: 0; padding-right: 0; max-width: none; }
.tpmt-shop > .tpm-section:first-of-type { padding-top: 0; margin-bottom: 26px; }
.tpmt-shop > .tpm-section { margin-top: 10px; }
.summary .tpm-section { padding: 8px 0 14px !important; background: none; }
.summary .tpm-section .tpm-title-wrap { text-align: left; margin-bottom: 10px; }
.summary .tpm-section .tpm-title { font-size: 15px !important; }
.summary .tpm-section .tpm-title-line { display: none; }

/* Sold / low stock / sale timer */
.tpmt-sold { display: flex; align-items: center; gap: 6px; margin: -4px 0 14px; font-size: 13px; font-weight: 600; color: #C2410C; }
.tpmt-sold .tpm-ico { font-size: 16px; color: #EA580C; }
.tpmt-lowstock { margin: 0 0 14px; }
.tpmt-lowstock p { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: #C62828; }
.tpmt-lowstock .tpm-ico { color: #E53935; }
.tpmt-lowstock-bar { height: 7px; border-radius: 10px; background: #FDE2E2; overflow: hidden; }
.tpmt-lowstock-bar span { display: block; height: 100%; border-radius: 10px; background: linear-gradient(90deg, #E53935, #FF7043); animation: tpmtPulseBar 1.6s ease-in-out infinite alternate; }
@keyframes tpmtPulseBar { from { opacity: .75; } to { opacity: 1; } }
.tpmt-saletimer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; background: #FFF1E6; border: 1px solid #FBD5B5; }
.tpmt-saletimer-label { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--tpm-primary); }
.tpmt-saletimer-boxes { display: flex; gap: 6px; }
.tpmt-saletimer-boxes span { display: inline-flex; align-items: baseline; gap: 1px; background: var(--tpm-heading); color: #fff; border-radius: 6px; padding: 4px 7px; font-size: 11px; }
.tpmt-saletimer-boxes b { font-size: 15px; font-variant-numeric: tabular-nums; }

/* WhatsApp / ETA / payment strip */
.tpmt-wa-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: -8px 0 16px; padding: 13px 16px; border-radius: 6px; background: #25D366; color: #fff !important; font-weight: 700; font-size: 15px; transition: background .2s; }
.tpmt-wa-btn:hover { background: #1DA851; }
.tpmt-wa-btn .tpm-ico { font-size: 20px; }
.tpmt-eta { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; padding: 11px 14px; border-radius: 10px; background: #EEF7F1; border: 1px solid #CFE9D8; }
.tpmt-eta > .tpm-ico { color: #1F8A4C; font-size: 20px; flex: none; margin-top: 1px; }
.tpmt-eta p { margin: 0; font-size: 13px; color: #1E3A2B; }
.tpmt-eta b { color: #1F8A4C; }
.tpmt-paystrip { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--tpm-border); border-radius: 10px; text-align: center; }
.tpmt-paystrip p { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 12.5px; font-weight: 600; color: var(--tpm-heading); }
.tpmt-paystrip p .tpm-ico { color: #1F8A4C; }
.tpmt-paystrip .tpm-payments { justify-content: center; margin: 0; }
.tpmt-paystrip .tpm-pay { border: 1px solid var(--tpm-border); height: 28px; min-width: 48px; font-size: 12px; }

/* Info accordion */
.tpmt-info { margin: 0 0 16px; border: 1px solid var(--tpm-border); border-radius: 10px; overflow: hidden; }
.tpmt-info-item + .tpmt-info-item { border-top: 1px solid var(--tpm-border); }
.tpmt-info-item summary { list-style: none; cursor: pointer; position: relative; padding: 12px 48px 12px 14px; font-weight: 600; font-size: 14px; color: var(--tpm-heading); }
.tpmt-info-item summary::-webkit-details-marker { display: none; }
.tpmt-info-item[open] summary { color: var(--tpm-primary); }
.tpmt-info-item > div { padding: 0 14px 12px; font-size: 13px; color: var(--tpm-text); }
.tpmt-info-item > div p { margin: 0; }

/* Frequently bought together */
.tpmt-fbt { margin-top: 40px; }
.tpmt-fbt-box { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; background: #fff; border: 1px solid var(--tpm-border); border-radius: 14px; padding: 20px; }
.tpmt-fbt-items { display: flex; align-items: center; gap: 10px; flex: 1 1 520px; flex-wrap: wrap; }
.tpmt-fbt-plus { font-size: 24px; font-weight: 300; color: var(--tpm-muted); }
.tpmt-fbt-item { position: relative; display: flex; flex-direction: column; width: 160px; gap: 4px; cursor: pointer; padding: 8px; border: 2px solid var(--tpm-border); border-radius: 12px; transition: border-color .2s, opacity .2s; }
.tpmt-fbt-item:has(input:checked) { border-color: var(--tpm-primary); }
.tpmt-fbt-item:has(input:not(:checked)) { opacity: .55; }
.tpmt-fbt-item input { position: absolute; opacity: 0; }
.tpmt-fbt-check { position: absolute; top: 8px; left: 8px; z-index: 2; width: 20px; height: 20px; border-radius: 5px; border: 2px solid #CFC6BD; background: #fff; }
.tpmt-fbt-item input:checked + .tpmt-fbt-check { background: var(--tpm-primary); border-color: var(--tpm-primary); }
.tpmt-fbt-item input:checked + .tpmt-fbt-check::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tpmt-fbt-item input:focus-visible + .tpmt-fbt-check { box-shadow: 0 0 0 3px color-mix(in srgb, var(--tpm-primary) 30%, transparent); }
.tpmt-fbt-img { display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #fff; }
.tpmt-fbt-img img { width: 100%; height: 100%; object-fit: contain; }
.tpmt-fbt-name { font-size: 12.5px; font-weight: 500; color: var(--tpm-heading); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tpmt-fbt-name em { font-style: normal; color: var(--tpm-primary); font-weight: 600; }
.tpmt-fbt-price { font-size: 13px; font-weight: 700; color: var(--tpm-price); display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; }
.tpmt-fbt-price del { color: var(--tpm-muted); font-weight: 400; font-size: 11px; }
.tpmt-fbt-price ins { order: -1; text-decoration: none; }
.tpmt-fbt-total { flex: 0 0 250px; display: flex; flex-direction: column; gap: 8px; padding-left: 24px; border-left: 1px dashed #EADBCB; }
.tpmt-fbt-total > span { font-size: 13px; color: var(--tpm-muted); }
.tpmt-fbt-sum { font-size: 24px; color: var(--tpm-price); }
.tpmt-fbt-add { width: 100%; }
.tpmt-fbt-add .tpm-ico { font-size: 18px; }
.tpmt-fbt-add.is-loading { opacity: .65; pointer-events: none; }
.tpmt-fbt-msg { margin: 0; font-size: 12.5px; min-height: 16px; color: #1F8A4C; }
.tpmt-fbt-msg.is-error { color: #C62828; }
@media (max-width: 767px) {
	.tpmt-fbt-box { padding: 14px; gap: 14px; }
	.tpmt-fbt-items { flex-wrap: nowrap; overflow-x: auto; gap: 6px; flex-basis: 100%; padding-bottom: 4px; }
	.tpmt-fbt-item { flex: 0 0 128px; width: 128px; }
	.tpmt-fbt-plus { font-size: 18px; }
	.tpmt-fbt-total { flex-basis: 100%; padding-left: 0; border-left: 0; border-top: 1px dashed #EADBCB; padding-top: 12px; }
}

/* Customer reviews section */
.tpmt-reviews { margin-top: 44px; }
.tpmt-rv-summary { display: grid; grid-template-columns: 220px minmax(0, 1fr) 280px; gap: 30px; align-items: center; background: #FFF8F1; border: 1px solid #F6E3CF; border-radius: 16px; padding: 24px 28px; margin-bottom: 24px; }
.tpmt-rv-summary.is-empty { grid-template-columns: 1fr auto; }
.tpmt-rv-score { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.tpmt-rv-score b { font-size: 48px; line-height: 1; color: var(--tpm-heading); font-weight: 800; }
.tpmt-rv-score .tpm-stars { font-size: 20px; }
.tpmt-rv-score > span:last-child { font-size: 13px; color: var(--tpm-muted); }
.tpmt-rv-bars { display: grid; gap: 7px; }
.tpmt-rv-row { display: grid; grid-template-columns: 44px 1fr 36px; align-items: center; gap: 10px; font-size: 13px; color: var(--tpm-heading); }
.tpmt-rv-label { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }
.tpmt-rv-label .tpm-ico { color: var(--tpm-star); font-size: 13px; }
.tpmt-rv-bar { height: 9px; background: #EFE4D8; border-radius: 10px; overflow: hidden; }
.tpmt-rv-bar i { display: block; height: 100%; background: var(--tpm-star); border-radius: 10px; }
.tpmt-rv-n { color: var(--tpm-muted); text-align: right; }
.tpmt-rv-cta { text-align: center; }
.tpmt-rv-cta p { margin: 0 0 12px; font-size: 13.5px; color: var(--tpm-text); }
.tpmt-rv-cta .tpmt-button { width: 100%; }
.tpmt-reviews #reviews h2.woocommerce-Reviews-title { display: none; }
body.tpmt.woocommerce .tpmt-reviews #reviews #comments ol.commentlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 0 0 20px; }
body.tpmt.woocommerce .tpmt-reviews #reviews #comments ol.commentlist li { margin: 0; background: #fff; border: 1px solid var(--tpm-border); border-radius: 14px; padding: 18px; }
body.tpmt.woocommerce .tpmt-reviews #reviews #comments ol.commentlist li .comment_container { display: flex; gap: 12px; }
body.tpmt.woocommerce .tpmt-reviews #reviews #comments ol.commentlist li img.avatar { position: static; float: none; width: 44px; height: 44px; flex: none; }
body.tpmt.woocommerce .tpmt-reviews #reviews #comments ol.commentlist li .comment-text { margin: 0; border: 0; padding: 0; flex: 1; display: flex; flex-direction: column; }
body.tpmt.woocommerce .tpmt-reviews #reviews #comments ol.commentlist li .comment-text .star-rating { order: 2; float: none; margin: 4px 0 6px; font-size: 13px; }
body.tpmt.woocommerce .tpmt-reviews #reviews #comments ol.commentlist li .comment-text p.meta { order: 1; margin: 0; font-size: 12px; color: var(--tpm-muted); }
body.tpmt.woocommerce .tpmt-reviews #reviews #comments ol.commentlist li .comment-text p.meta strong { color: var(--tpm-heading); font-size: 14px; }
body.tpmt.woocommerce .tpmt-reviews #reviews #comments ol.commentlist li .comment-text p.meta em.woocommerce-review__verified { color: #1F8A4C; font-style: normal; font-weight: 600; }
body.tpmt.woocommerce .tpmt-reviews #reviews #comments ol.commentlist li .comment-text .description { order: 3; font-size: 14px; color: var(--tpm-text); }
body.tpmt.woocommerce .tpmt-reviews #reviews #comments ol.commentlist li .comment-text .description p { margin: 0; }
.tpmt-reviews .woocommerce-noreviews { display: none !important; }
.tpmt-reviews #review_form_wrapper { display: none; max-width: 760px; margin: 0 auto; }
.tpmt-reviews.is-writing #review_form_wrapper { display: block; animation: tpmtFade .3s ease; }
@keyframes tpmtFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
body.tpmt.woocommerce .tpmt-reviews #review_form #respond { background: #fff; border: 1px solid var(--tpm-border); border-radius: 14px; padding: 22px; }
.tpmt-reviews #reply-title { display: block; font-size: 18px; font-weight: 700; color: var(--tpm-heading); margin-bottom: 10px; }
.tpmt-reviews .comment-form-rating p.stars a { font-size: 22px; }
.tpmt-reviews .form-submit input#submit { width: 100%; }
@media (max-width: 1024px) {
	.tpmt-rv-summary { grid-template-columns: 180px minmax(0, 1fr); }
	.tpmt-rv-cta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: left; }
	.tpmt-rv-cta p { margin: 0; }
	.tpmt-rv-cta .tpmt-button { width: auto; flex: none; }
}
@media (max-width: 767px) {
	.tpmt-reviews { margin-top: 30px; }
	.tpmt-rv-summary, .tpmt-rv-summary.is-empty { grid-template-columns: 1fr; padding: 18px; gap: 16px; }
	.tpmt-rv-cta { flex-direction: column; text-align: center; }
	.tpmt-rv-cta .tpmt-button { width: 100%; }
	body.tpmt.woocommerce .tpmt-reviews #reviews #comments ol.commentlist { grid-template-columns: 1fr; gap: 10px; }
}
body.tpmt.woocommerce .tpmt-reviews #reviews #comments ol.commentlist::before, body.tpmt.woocommerce .tpmt-reviews #reviews #comments ol.commentlist::after { display: none; content: none; }
body.tpmt.woocommerce .tpmt-reviews #reviews #comments ol.commentlist li::before, body.tpmt.woocommerce .tpmt-reviews #reviews #comments ol.commentlist li::after { display: none; }
