/* Qaem Toys storefront: home, archive, product page, wishlist, product cards. */

.wp-site-blocks > .qt-main, .wp-site-blocks > .qt-main + footer { margin-block-start: 0; }
.qt-main { margin: 0; padding: 0; }
.qt-main :where(.qt-pcard, .qt-mcard, .qt-catcard, .qt-filter-card, .qt-toolbar, .qt-gallery__main, .qt-tabs__content, .qt-specs) { box-sizing: border-box; }
.qt-main :where(h1, h2, h3, p, ul, figure, blockquote) { margin-block: 0; }
.qt-main a { text-decoration: none; }
.qt-main--shop-archive, .qt-main--single-product, .qt-main--wishlist { padding-bottom: var(--qt-space-12); }

.qt-section--flush-top { padding-top: 0; }
.qt-section--card { background: var(--qt-bg-card); }
.qt-section-title { font-size: 22px; }

/* ---------- Page head + breadcrumb ---------- */
.qt-page-head { padding-top: var(--qt-space-6); padding-bottom: var(--qt-space-6); }
.qt-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: var(--qt-space-3);
	font-size: 12px;
	color: var(--qt-text-muted);
}
.qt-breadcrumb a { color: var(--qt-text-muted); transition: color var(--qt-ease); }
.qt-breadcrumb a:hover { color: var(--qt-primary); }
.qt-breadcrumb__current, .qt-breadcrumb > :last-child:not(a) { color: var(--qt-text-secondary); font-weight: 500; }
.qt-page-title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; line-height: 1.35; }
.qt-page-sub { margin-top: var(--qt-space-2); font-size: 14px; color: var(--qt-text-secondary); max-width: 70ch; }
.qt-page-sub p { margin: 0; }

/* ---------- Grids ---------- */
.qt-grid { display: grid; gap: var(--qt-space-5); }
.qt-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.qt-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qt-grid--compact { gap: var(--qt-space-4); }
.qt-js .qt-grid--collapsible > :nth-child(n+9) { display: none; }
.qt-more { display: flex; justify-content: center; margin-top: var(--qt-space-8); }

/* ---------- Product card ---------- */
.qt-pcard {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--qt-bg-card);
	border: 1px solid var(--qt-border);
	border-radius: var(--qt-radius-lg);
	box-shadow: var(--qt-shadow-sm);
	transition: box-shadow .2s, transform .2s;
}
.qt-pcard:hover { box-shadow: var(--qt-shadow-md); transform: translateY(-4px); }
.qt-pcard__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--qt-bg-page);
}
.qt-pcard__media img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.qt-pcard:hover .qt-pcard__media img { transform: scale(1.04); }
.qt-pcard.is-oos .qt-pcard__media img { filter: grayscale(.6); opacity: .75; }
.qt-pcard__badges { position: absolute; top: 10px; right: 10px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.qt-pbadge {
	padding: 3px 9px;
	border-radius: var(--qt-radius-full);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
}
.qt-pbadge--sale { background: var(--qt-error); color: #fff; }
.qt-pbadge--new { background: var(--qt-success); color: #fff; }
.qt-pbadge--muted { background: rgba(36, 48, 44, .75); color: #fff; }
.qt-pbadge--gift { background: var(--qt-accent); color: #24302C; }

.qt-pcard__body { display: flex; flex: 1; flex-direction: column; padding: var(--qt-space-4); }
.qt-pcard__name { margin-bottom: 6px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.qt-pcard__name a { color: var(--qt-text); }
.qt-pcard__name a:hover { color: var(--qt-primary); }
.qt-pcard__name a::after { content: ''; position: absolute; inset: 0; z-index: 0; }

.qt-stars { display: inline-flex; align-items: center; gap: 2px; margin-bottom: 8px; }
.qt-star { color: var(--qt-border-strong); font-size: 12px; line-height: 1; }
.qt-star.is-on { color: #F5C842; }
.qt-stars__count { margin-right: 4px; font-size: 11px; color: var(--qt-text-muted); }
.qt-stars--lg .qt-star { font-size: 17px; }
.qt-stars--lg { margin: 0; }
.qt-stars--sm { margin: 4px 0 0; }

.qt-pricing { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: auto; margin-bottom: 12px; }
.qt-price-original { font-size: 12px; color: var(--qt-text-muted); text-decoration: line-through; }
.qt-price-sale { font-size: 16px; font-weight: 800; color: var(--qt-accent); text-decoration: none; background: none; }
.qt-price-normal { font-size: 16px; font-weight: 800; color: var(--qt-text); }
.qt-price-unit { font-size: 11px; color: var(--qt-text-muted); }
.qt-price-call { font-size: 14px; font-weight: 700; color: var(--qt-primary); }

.qt-pcard__add {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 40px;
	padding: 9px 16px;
	border: 0;
	border-radius: var(--qt-radius-md);
	background: var(--qt-primary);
	color: var(--qt-on-primary);
	font-family: var(--qt-font);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	cursor: pointer;
	transition: background var(--qt-ease), opacity .2s;
	box-sizing: border-box;
}
.qt-main .qt-pcard__add { color: var(--qt-on-primary); }
.qt-pcard__add:hover { background: var(--qt-primary-dark); }
.qt-pcard__add.loading { opacity: .6; pointer-events: none; }
.qt-pcard__add.added::after { content: ' ✓'; }
.qt-pcard__add.is-disabled { background: var(--qt-bg-subtle); color: var(--qt-text-muted); cursor: default; }
.qt-main .qt-pcard__add.is-disabled { color: var(--qt-text-muted); }
.qt-pcard .added_to_cart { display: none; }

@media (hover: hover) and (min-width: 769px) {
	.qt-pcard--hover-cta .qt-pcard__add { opacity: 0; }
	.qt-pcard--hover-cta:hover .qt-pcard__add,
	.qt-pcard--hover-cta:focus-within .qt-pcard__add { opacity: 1; }
}

/* Wishlist heart */
.qt-wish-btn {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: #6B7A75;
	box-shadow: var(--qt-shadow-sm);
	cursor: pointer;
	transition: transform .2s, color .2s;
}
.qt-wish-btn svg { width: 17px; height: 17px; }
.qt-wish-btn:hover { transform: scale(1.12); color: var(--qt-error); }
.qt-wish-btn.is-active { color: var(--qt-error); }
.qt-wish-btn.is-active svg, .qt-wish-link.is-active svg { fill: currentColor; }
.qt-wish-btn.is-busy, .qt-wish-link.is-busy { opacity: .6; pointer-events: none; }

/* Header wishlist badge uses the accent color like the design */
.qt-iconbtn--wish .qt-count-badge { background: var(--qt-accent); color: #24302C; }

/* Toast */
.qt-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	z-index: 700;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: calc(100vw - 32px);
	padding: 12px 20px;
	border-radius: var(--qt-radius-full);
	background: #24302C;
	color: #FBF8F2;
	box-shadow: var(--qt-shadow-lg);
	font-size: 14px;
	font-weight: 500;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 16px);
	transition: opacity .25s, transform .25s;
}
.qt-toast.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.qt-toast a { color: var(--qt-accent-light); font-weight: 700; text-decoration: underline; }
[data-theme="dark"] .qt-toast { background: #ECECEC; color: #121212; }
[data-theme="dark"] .qt-toast a { color: var(--qt-primary-dark); }

/* ---------- Empty state ---------- */
.qt-empty { display: flex; flex-direction: column; align-items: center; padding: 64px 20px; text-align: center; }
.qt-empty[hidden] { display: none; }
.qt-empty__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	margin-bottom: var(--qt-space-5);
	border-radius: 50%;
	background: var(--qt-primary-light);
	color: var(--qt-primary);
}
.qt-empty__icon svg { width: 40px; height: 40px; }
.qt-empty__title { margin-bottom: 8px; font-size: 20px; font-weight: 700; }
.qt-empty__sub { max-width: 340px; margin-bottom: var(--qt-space-6); font-size: 14px; line-height: 1.7; color: var(--qt-text-secondary); }

/* ---------- Pills ---------- */
.qt-pills { display: flex; flex-wrap: wrap; gap: var(--qt-space-2); }
.qt-pills--center { justify-content: center; }
.qt-pill {
	padding: 8px 16px;
	border: 1px solid var(--qt-border-strong);
	border-radius: var(--qt-radius-full);
	background: var(--qt-bg-card);
	color: var(--qt-text);
	font-size: 13px;
	font-weight: 500;
	transition: background var(--qt-ease), color var(--qt-ease), border-color var(--qt-ease);
}
.qt-main .qt-pill { color: var(--qt-text); }
.qt-main .qt-pill:hover { background: var(--qt-primary); border-color: var(--qt-primary); color: var(--qt-on-primary); }

/* Gift finder: the chosen type / budget, and the swap while new suggestions load */
.qt-main .qt-pill.is-active {
	background: var(--qt-primary);
	border-color: var(--qt-primary);
	color: var(--qt-on-primary);
	font-weight: 700;
}
.qt-gift__products.is-loading { opacity: .45; transition: opacity var(--qt-ease); }
.qt-gift__empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: var(--qt-space-6) var(--qt-space-4);
	border: 1px dashed var(--qt-border-strong);
	border-radius: var(--qt-radius-lg);
	background: var(--qt-bg-card);
	text-align: center;
	color: var(--qt-text-secondary);
}
.qt-gift__reset { margin: var(--qt-space-4) 0 0; text-align: center; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .qt-gift__products.is-loading { transition: none; } }

/* =========================================================
   HOME
   ========================================================= */
.qt-hero { position: relative; display: flex; min-height: 500px; overflow: hidden; }
.qt-hero__bg { position: absolute; inset: 0; background: linear-gradient(225deg, var(--qt-primary-dark) 0%, var(--qt-primary) 60%, var(--qt-bg-page) 60%); }
[data-theme="dark"] .qt-hero__bg { background: linear-gradient(225deg, #0d2b23 0%, #1a3d32 60%, #1E1E1E 60%); }
.qt-hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: var(--qt-space-12);
	width: 100%;
	max-width: var(--qt-container);
	margin: 0 auto;
	padding: var(--qt-space-16) var(--qt-space-6);
	box-sizing: border-box;
}
.qt-hero__text { flex: 1.2; }
.qt-hero__tag {
	display: inline-flex;
	align-items: center;
	gap: var(--qt-space-2);
	margin-bottom: var(--qt-space-5);
	padding: var(--qt-space-1) var(--qt-space-3);
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: var(--qt-radius-full);
	background: rgba(255, 255, 255, .15);
	color: rgba(255, 255, 255, .9);
	font-size: 12px;
}
.qt-hero__tag svg { width: 14px; height: 14px; }
.qt-hero__title { margin-bottom: var(--qt-space-4); font-size: clamp(26px, 3.5vw, 44px); font-weight: 800; line-height: 1.4; color: #FBF8F2; }
.qt-hero__sub { max-width: 460px; margin-bottom: var(--qt-space-8); font-size: 16px; line-height: 1.8; color: rgba(235, 245, 242, .85); }
.qt-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: var(--qt-space-2);
	padding: 14px var(--qt-space-8);
	border-radius: var(--qt-radius-full);
	background: var(--qt-accent);
	box-shadow: 0 4px 16px rgba(201, 151, 75, .4);
	font-size: 15px;
	font-weight: 700;
	transition: background .2s, transform .2s, box-shadow .2s;
}
.qt-main .qt-hero__cta { color: #24302C; }
.qt-hero__cta svg { width: 16px; height: 16px; }
.qt-hero__cta:hover { background: var(--qt-accent-dark); box-shadow: 0 8px 24px rgba(201, 151, 75, .5); transform: translateY(-2px); }
.qt-hero__note { margin-top: var(--qt-space-4); font-size: 13px; color: rgba(235, 245, 242, .75); }
.qt-hero__note span { color: #a8d5c8; font-weight: 600; }
.qt-hero__image { display: flex; flex: .8; align-items: center; justify-content: center; }
/* The frame follows the photo's own proportions, so landscape or portrait
   images are both shown in full instead of being cropped. */
.qt-hero__frame {
	position: relative;
	width: 480px;
	max-width: 100%;
	overflow: hidden;
	border-radius: var(--qt-radius-xl);
	background: linear-gradient(145deg, #f5e6c8 0%, #ffe4b5 50%, #fad7a0 100%);
	box-shadow: var(--qt-shadow-xl);
	line-height: 0;
}
.qt-hero__frame img { display: block; width: 100%; height: auto; }

.qt-hometrust { padding: var(--qt-space-5) 0; background: var(--qt-bg-card); border-bottom: 1px solid var(--qt-border); }
.qt-hometrust__inner {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--qt-space-4);
	max-width: var(--qt-container);
	margin: 0 auto;
	padding: 0 var(--qt-space-6);
	list-style: none;
	box-sizing: border-box;
}
.qt-hometrust__item { display: flex; align-items: center; justify-content: center; gap: var(--qt-space-3); }
.qt-hometrust__icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--qt-radius-md);
	background: var(--qt-primary-light);
	color: var(--qt-primary);
}
.qt-hometrust__icon svg { width: 20px; height: 20px; }
.qt-hometrust__label { display: block; font-size: 13px; font-weight: 600; color: var(--qt-text); }
.qt-hometrust__sub { display: block; margin-top: 2px; font-size: 11px; color: var(--qt-text-muted); }
.qt-main a.qt-hometrust__sub { color: var(--qt-text-muted); }

.qt-catgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--qt-space-4); }
.qt-catcard {
	overflow: hidden;
	border: 1px solid var(--qt-border);
	border-radius: var(--qt-radius-lg);
	background: var(--qt-bg-card);
	text-align: center;
	transition: border-color .2s, box-shadow .2s;
}
.qt-catcard:hover { border-color: var(--qt-primary); box-shadow: var(--qt-shadow-md); }
.qt-catcard__img { display: block; height: 120px; overflow: hidden; background: var(--qt-primary-light); }
.qt-catcard--blue .qt-catcard__img { background: #e3f2fd; }
.qt-catcard--pink .qt-catcard__img { background: #fce4ec; }
.qt-catcard--purple .qt-catcard__img { background: #f3e5f5; }
.qt-catcard--yellow .qt-catcard__img { background: #fffde7; }
.qt-catcard__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.qt-catcard:hover .qt-catcard__img img { transform: scale(1.06); }
.qt-catcard__label { display: block; padding: var(--qt-space-3) var(--qt-space-2); font-size: 13px; font-weight: 700; color: var(--qt-text); }

.qt-gift { margin: 0 0 var(--qt-space-12); padding: var(--qt-space-10) var(--qt-space-8); border-radius: var(--qt-radius-xl); background: var(--qt-accent-light); }
[data-theme="dark"] .qt-gift { background: #2a2010; }
.qt-gift__header { margin-bottom: var(--qt-space-8); text-align: center; }
.qt-gift__title { margin-bottom: var(--qt-space-2); font-size: 26px; font-weight: 800; }
.qt-gift__sub { font-size: 15px; color: var(--qt-text-secondary); }
.qt-gift__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--qt-space-8); margin-bottom: var(--qt-space-8); }
.qt-gift__col-title { margin-bottom: var(--qt-space-4); font-size: 15px; font-weight: 700; }
.qt-gift__products .qt-pcard__media { aspect-ratio: auto; height: 200px; background: var(--qt-bg-page); }

.qt-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--qt-space-5); }
.qt-review {
	margin: 0;
	padding: var(--qt-space-5);
	border: 1px solid var(--qt-border);
	border-right: 3px solid var(--qt-accent);
	border-radius: var(--qt-radius-md);
	background: var(--qt-bg-card);
	box-shadow: var(--qt-shadow-sm);
}
.qt-review__quote { margin: 0 0 var(--qt-space-4); padding: 0; border: 0; font-size: 14px; line-height: 1.8; color: var(--qt-text-secondary); }
.qt-review__name { display: block; font-size: 13px; font-weight: 700; }
.qt-review__role, .qt-review__date { display: block; margin-top: 2px; font-size: 11px; color: var(--qt-text-muted); }

/* FAQ: joined list like the design */
.qt-acc-heading { margin: 0; font-size: inherit; font-weight: inherit; }
.qt-accordion--joined { gap: 0; max-width: 800px; margin: 0 auto; overflow: hidden; border: 1px solid var(--qt-border); border-radius: var(--qt-radius-lg); }
.qt-accordion--joined .qt-acc-item { border: 0; border-bottom: 1px solid var(--qt-border); border-radius: 0; }
.qt-accordion--joined .qt-acc-item:last-child { border-bottom: 0; }
.qt-faq .qt-acc-btn { padding: var(--qt-space-5) var(--qt-space-6); font-size: 15px; }
.qt-faq .qt-acc-btn:hover { background: var(--qt-primary-light); }
.qt-faq .qt-acc-icon { width: 24px; height: 24px; background: var(--qt-primary-light); color: var(--qt-primary); font-size: 14px; }
.qt-faq .qt-acc-panel-inner { padding: var(--qt-space-4) var(--qt-space-6) var(--qt-space-5); font-size: 14px; }
.qt-faq .qt-acc-panel-inner a { color: var(--qt-primary); font-weight: 600; text-decoration: underline; }
[data-theme="dark"] .qt-faq .qt-acc-item.is-open .qt-acc-btn,
[data-theme="dark"] .qt-faq .qt-acc-item.is-open .qt-acc-panel { background: #1a2e28; }

.qt-insta { padding: var(--qt-space-12) 0; background: var(--qt-primary); }
[data-theme="dark"] .qt-insta { background: #1a3d32; }
.qt-insta__inner { display: flex; flex-direction: column; align-items: center; max-width: 600px; margin: 0 auto; padding: 0 var(--qt-space-6); text-align: center; }
.qt-insta__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: var(--qt-space-4);
	border-radius: var(--qt-radius-md);
	background: rgba(255, 255, 255, .2);
	color: #fff;
}
.qt-insta__icon svg { width: 24px; height: 24px; }
.qt-insta h2 { margin-bottom: var(--qt-space-3); font-size: 26px; font-weight: 800; color: #FBF8F2; }
.qt-insta p { margin-bottom: var(--qt-space-6); font-size: 15px; line-height: 1.8; color: rgba(235, 245, 242, .8); }
.qt-insta__btn {
	display: inline-flex;
	align-items: center;
	gap: var(--qt-space-2);
	padding: 12px var(--qt-space-6);
	border-radius: var(--qt-radius-full);
	background: var(--qt-accent);
	font-size: 14px;
	font-weight: 700;
	transition: background .2s;
}
.qt-main .qt-insta__btn { color: #24302C; }
.qt-insta__btn:hover { background: var(--qt-accent-dark); }
.qt-insta__btn svg { width: 18px; height: 18px; }

/* =========================================================
   ARCHIVE
   ========================================================= */
.qt-shop {
	display: flex;
	align-items: flex-start;
	gap: 28px;
	max-width: var(--qt-container);
	margin: 0 auto;
	padding: 0 var(--qt-space-6);
	box-sizing: border-box;
}
.qt-shop__sidebar { position: sticky; top: 64px; flex-shrink: 0; width: 280px; }
.admin-bar .qt-shop__sidebar { top: 96px; }
.qt-shop__main { flex: 1; min-width: 0; }
.qt-filter-overlay { display: none; }

.qt-filter-card { padding: var(--qt-space-6); border: 1px solid var(--qt-border); border-radius: var(--qt-radius-lg); background: var(--qt-bg-card); box-shadow: var(--qt-shadow-sm); }
.qt-filter-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--qt-space-5); }
.qt-filter-card__title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; }
.qt-filter-card__title svg { width: 18px; height: 18px; color: var(--qt-primary); }
.qt-filter-card__close {
	display: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--qt-border);
	border-radius: 8px;
	background: transparent;
	color: var(--qt-text-secondary);
	cursor: pointer;
}
.qt-filter-card__close svg { width: 18px; height: 18px; }

.qt-filters__section { min-width: 0; margin: 0 0 20px; padding: 0 0 20px; border: 0; border-bottom: 1px solid var(--qt-border); }
.qt-filters__title { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 12px; padding: 0; font-size: 13px; font-weight: 700; color: var(--qt-text); }
.qt-filters__title span { font-size: 11px; font-weight: 400; color: var(--qt-text-muted); }
.qt-filters__price { display: flex; align-items: center; gap: 8px; }
.qt-filters__price input {
	flex: 1;
	min-width: 0;
	padding: 8px 10px;
	border: 1px solid var(--qt-border);
	border-radius: 8px;
	background: var(--qt-bg-page);
	color: var(--qt-text);
	font-family: var(--qt-font);
	font-size: 12px;
	text-align: center;
	outline: none;
	-moz-appearance: textfield;
}
.qt-filters__price input:focus { border-color: var(--qt-primary); box-shadow: var(--qt-focus-ring); }
.qt-filters__sep { font-size: 12px; color: var(--qt-text-muted); }
.qt-checks { display: flex; flex-direction: column; gap: 10px; }
.qt-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.qt-check input {
	position: relative;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin: 0;
	border: 2px solid var(--qt-border-strong);
	border-radius: 5px;
	background: var(--qt-bg-card);
	cursor: pointer;
	appearance: none;
	transition: border-color .2s, background .2s;
}
.qt-check input:checked { border-color: var(--qt-primary); background: var(--qt-primary); }
.qt-check input:checked::after {
	content: '';
	position: absolute;
	top: 1px;
	left: 4px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.qt-check__label { flex: 1; font-size: 13px; color: var(--qt-text-secondary); }
.qt-check__count { padding: 2px 7px; border-radius: var(--qt-radius-full); background: var(--qt-bg-page); font-size: 11px; color: var(--qt-text-muted); }
.qt-filters__actions { display: flex; flex-direction: column; gap: 10px; }
.qt-filters__apply {
	width: 100%;
	padding: 9px;
	border: 0;
	border-radius: 8px;
	background: var(--qt-primary);
	color: var(--qt-on-primary);
	font-family: var(--qt-font);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s;
}
.qt-filters__apply:hover { background: var(--qt-primary-dark); }
.qt-main .qt-filters__reset { font-size: 12px; color: var(--qt-error); text-align: center; }

.qt-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--qt-space-3);
	margin-bottom: var(--qt-space-6);
	padding: 14px 20px;
	border: 1px solid var(--qt-border);
	border-radius: var(--qt-radius-md);
	background: var(--qt-bg-card);
	box-shadow: var(--qt-shadow-sm);
}
.qt-toolbar__count { font-size: 14px; color: var(--qt-text-secondary); }
.qt-toolbar__count strong { font-weight: 700; color: var(--qt-text); }
.qt-toolbar__actions { display: flex; align-items: center; gap: 12px; }
.qt-toolbar__filter {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border: 0;
	border-radius: 8px;
	background: var(--qt-primary);
	color: var(--qt-on-primary);
	font-family: var(--qt-font);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.qt-toolbar__filter svg { width: 16px; height: 16px; }
.qt-sort { display: flex; gap: 8px; margin: 0; }
.qt-sort__select {
	padding: 8px 14px;
	border: 1px solid var(--qt-border);
	border-radius: 8px;
	background: var(--qt-bg-page);
	color: var(--qt-text);
	font-family: var(--qt-font);
	font-size: 13px;
	cursor: pointer;
	outline: none;
}
.qt-sort__select:focus { border-color: var(--qt-primary); }
.qt-shop__grid { margin-bottom: var(--qt-space-8); }

.qt-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.qt-pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 6px;
	border: 1px solid var(--qt-border);
	border-radius: 10px;
	background: var(--qt-bg-card);
	color: var(--qt-text-secondary);
	font-size: 14px;
	font-weight: 500;
	box-sizing: border-box;
	transition: all .2s;
}
.qt-pagination a.page-numbers:hover { border-color: var(--qt-primary); background: var(--qt-primary-light); color: var(--qt-primary); }
.qt-pagination .page-numbers.current { border-color: var(--qt-primary); background: var(--qt-primary); color: var(--qt-on-primary); font-weight: 700; }
.qt-pagination .page-numbers.dots { border: 0; background: none; color: var(--qt-text-muted); }
.qt-pagination .prev, .qt-pagination .next { font-size: 18px; }

/* =========================================================
   SINGLE PRODUCT
   ========================================================= */
.qt-single { padding-top: var(--qt-space-3); }
.qt-single > .qt-breadcrumb { padding: var(--qt-space-3) 0; margin: 0; }
.qt-product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 48px; }

.qt-gallery { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.qt-gallery__main {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 500px;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--qt-border);
	border-radius: var(--qt-radius-lg);
	background: var(--qt-bg-card);
	box-shadow: var(--qt-shadow-md);
	cursor: zoom-in;
	transition: box-shadow .2s;
}
.qt-gallery__main:hover { box-shadow: var(--qt-shadow-lg); }
.qt-gallery__img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.qt-gallery__main:hover .qt-gallery__img { transform: scale(1.02); }
.qt-gallery__zoom {
	position: absolute;
	bottom: 16px;
	left: 50%;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 14px;
	border-radius: var(--qt-radius-full);
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font-size: 11px;
	white-space: nowrap;
	transform: translateX(-50%);
	backdrop-filter: blur(4px);
}
.qt-gallery__zoom svg { width: 13px; height: 13px; }
.qt-gallery__thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.qt-gallery__thumb {
	width: 80px;
	height: 80px;
	padding: 0;
	overflow: hidden;
	border: 2px solid var(--qt-border);
	border-radius: var(--qt-radius-sm);
	background: var(--qt-bg-card);
	cursor: pointer;
	transition: border-color .2s, box-shadow .2s;
}
.qt-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.qt-gallery__thumb:hover, .qt-gallery__thumb.is-active { border-color: var(--qt-primary); }
.qt-gallery__thumb.is-active { box-shadow: 0 0 0 1px var(--qt-primary); }
.qt-lightbox { max-width: min(92vw, 1100px); max-height: 92vh; padding: 0; border: 0; border-radius: var(--qt-radius-lg); background: var(--qt-bg-card); }
.qt-lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.qt-lightbox img { display: block; max-width: 100%; max-height: 90vh; margin: 0 auto; }
.qt-lightbox__close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .6);
	color: #fff;
	cursor: pointer;
}
.qt-lightbox__close svg { width: 20px; height: 20px; }

.qt-pinfo { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.qt-pinfo__title { margin-bottom: 8px; font-size: 22px; font-weight: 700; line-height: 1.4; }
.qt-pinfo__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.qt-tag { padding: 4px 10px; border-radius: var(--qt-radius-full); font-size: 11px; font-weight: 600; white-space: nowrap; }
.qt-tag--sale { background: var(--qt-error); color: #fff; }
.qt-tag--primary { background: var(--qt-primary-light); }
.qt-main .qt-tag--primary { color: var(--qt-primary); }
.qt-tag--accent { background: var(--qt-accent-light); color: var(--qt-accent-dark); }
.qt-tag--info { background: #E3F2FD; color: #1565C0; }
.qt-tag--muted { background: var(--qt-bg-subtle); color: var(--qt-text-secondary); }
[data-theme="dark"] .qt-tag--accent { color: var(--qt-accent); }
[data-theme="dark"] .qt-tag--info { background: #14283a; color: #90caf9; }

.qt-pinfo__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.qt-pinfo__rating-text { font-weight: 600; }
.qt-main .qt-pinfo__review-link { font-size: 13px; color: var(--qt-primary); text-decoration: underline; }

.qt-pprice { display: flex; flex-direction: column; gap: 6px; }
.qt-pprice__original { font-size: 14px; color: var(--qt-text-muted); text-decoration: line-through; }
.qt-pprice__current { font-size: 28px; font-weight: 800; color: var(--qt-text); text-decoration: none; background: none; }
.qt-pprice__current.is-sale { color: var(--qt-error); }
.qt-pprice__saving {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	width: fit-content;
	padding: 4px 12px;
	border-radius: var(--qt-radius-full);
	background: var(--qt-primary-light);
	color: var(--qt-primary);
	font-size: 11px;
	font-weight: 600;
}
.qt-pprice__saving svg { width: 13px; height: 13px; transform: scaleY(-1); }

.qt-pinfo__short { padding: var(--qt-space-4); border: 1px solid var(--qt-border); border-radius: var(--qt-radius-md); background: var(--qt-bg-page); font-size: 14px; line-height: 1.7; color: var(--qt-text-secondary); }
.qt-pinfo__short p { margin: 0; }
.qt-pinfo__specs { display: flex; flex-direction: column; gap: 8px; }
.qt-pinfo__specs-title { margin-bottom: 4px; font-size: 14px; font-weight: 700; }

.qt-specs { width: 100%; overflow: hidden; border: 1px solid var(--qt-border); border-collapse: separate; border-spacing: 0; border-radius: var(--qt-radius-md); font-size: 13px; }
.qt-specs th, .qt-specs td { padding: 8px 14px; border-bottom: 1px solid var(--qt-border); text-align: right; }
.qt-specs tr:last-child th, .qt-specs tr:last-child td { border-bottom: 0; }
.qt-specs th { width: 35%; background: var(--qt-primary-light); color: var(--qt-primary-dark); font-weight: 600; }
.qt-specs td { color: var(--qt-text-secondary); }
.qt-specs tr:nth-child(odd) td { background: var(--qt-bg-card); }
.qt-specs tr:nth-child(even) td { background: var(--qt-bg-page); }
.qt-specs td a { color: var(--qt-primary); }
.qt-specs--full th { width: 30%; }
.qt-specs--full th, .qt-specs--full td { padding: 10px 16px; }
[data-theme="dark"] .qt-specs th { color: var(--qt-primary-200, #A8D5C8); }

.qt-warning {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 12px 16px;
	border-right: 4px solid var(--qt-warning);
	border-radius: var(--qt-radius-md);
	background: #FFF8E1;
	color: #5D4037;
	font-size: 13px;
	line-height: 1.6;
}
.qt-warning svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; color: var(--qt-warning); }
[data-theme="dark"] .qt-warning { background: #2A2400; color: #C8A843; }

.qt-ptrust { display: flex; align-items: stretch; margin: 0; padding: 12px 16px; border: 1px solid var(--qt-border); border-radius: var(--qt-radius-md); background: var(--qt-bg-card); list-style: none; }
.qt-ptrust li { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--qt-text-secondary); text-align: center; }
.qt-ptrust li:not(:last-child)::after { content: ''; position: absolute; top: 10%; left: 0; width: 1px; height: 80%; background: var(--qt-border); }
.qt-ptrust svg { width: 18px; height: 18px; color: var(--qt-primary); }

.qt-buy { display: flex; flex-direction: column; gap: 12px; }
.qt-buy form.cart { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.qt-buy .stock { margin: 0; font-size: 13px; color: var(--qt-text-secondary); }
.qt-buy .stock.out-of-stock { color: var(--qt-error); font-weight: 600; }
.qt-buy .quantity { display: flex; align-items: center; gap: 0; margin: 0; }
.qt-buy .quantity::before { content: 'تعداد:'; margin-left: 12px; font-size: 14px; font-weight: 500; color: var(--qt-text-secondary); }
.qt-buy .quantity .qty {
	width: 48px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 1.5px solid var(--qt-border-strong);
	border-radius: 0;
	background: var(--qt-bg-card);
	color: var(--qt-text);
	font-family: var(--qt-font);
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	-moz-appearance: textfield;
	box-sizing: border-box;
}
.qt-buy .quantity:not(.qt-qty) .qty { border-radius: var(--qt-radius-sm); }
.qt-buy .quantity .qty::-webkit-inner-spin-button, .qt-buy .quantity .qty::-webkit-outer-spin-button,
.qt-filters__price input::-webkit-inner-spin-button, .qt-filters__price input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.qt-qty-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1.5px solid var(--qt-border-strong);
	background: var(--qt-bg-card);
	color: var(--qt-text);
	font-family: var(--qt-font);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: background .2s, border-color .2s, color .2s;
	box-sizing: border-box;
}
.qt-qty-btn--plus { border-left: 0; border-radius: 0 var(--qt-radius-sm) var(--qt-radius-sm) 0; }
.qt-qty-btn--minus { border-right: 0; border-radius: var(--qt-radius-sm) 0 0 var(--qt-radius-sm); }
.qt-qty-btn:hover { border-color: var(--qt-primary); background: var(--qt-primary-light); color: var(--qt-primary); }
.qt-main .qt-buy .single_add_to_cart_button {
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 14px 32px;
	border: 0;
	border-radius: var(--qt-radius-full);
	background: var(--qt-primary);
	box-shadow: 0 4px 12px rgba(47, 110, 93, .3);
	color: var(--qt-on-primary);
	font-family: var(--qt-font);
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background .2s, box-shadow .2s, transform .15s;
}
.qt-main .qt-buy .single_add_to_cart_button:hover { background: var(--qt-primary-dark); box-shadow: 0 6px 18px rgba(47, 110, 93, .4); transform: translateY(-1px); }
.qt-wish-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 4px;
	border: 0;
	background: none;
	color: var(--qt-text-secondary);
	font-family: var(--qt-font);
	font-size: 13px;
	cursor: pointer;
	transition: color .2s;
}
.qt-wish-link svg { width: 16px; height: 16px; }
.qt-wish-link:hover { color: var(--qt-primary); }
.qt-wish-link.is-active { color: var(--qt-error); }

.qt-shipnote { display: flex; align-items: flex-start; gap: 8px; padding: 8px 12px; border: 1px solid var(--qt-border); border-radius: var(--qt-radius-sm); background: var(--qt-bg-page); font-size: 12px; line-height: 1.6; color: var(--qt-text-muted); }
.qt-shipnote svg { flex-shrink: 0; width: 16px; height: 16px; color: var(--qt-primary); }
.qt-main .qt-shipnote a { color: var(--qt-primary); text-decoration: underline; }

/* Tabs */
.qt-tabs { margin-bottom: 48px; scroll-margin-top: 80px; }
.qt-tabs__header { display: flex; overflow-x: auto; border-bottom: 2px solid var(--qt-border); scrollbar-width: none; }
.qt-tabs__header::-webkit-scrollbar { display: none; }
.qt-tabs__btn {
	min-height: 44px;
	margin-bottom: -2px;
	padding: 14px 24px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: none;
	color: var(--qt-text-secondary);
	font-family: var(--qt-font);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
	transition: color .2s, border-color .2s;
}
.qt-tabs__btn:hover { color: var(--qt-primary); }
.qt-tabs__btn.is-active { border-bottom-color: var(--qt-primary); color: var(--qt-primary); font-weight: 700; }
.qt-tabs__content { padding: 24px; border: 1px solid var(--qt-border); border-top: 0; border-radius: 0 0 var(--qt-radius-lg) var(--qt-radius-lg); background: var(--qt-bg-card); box-shadow: var(--qt-shadow-sm); }
.qt-prose { font-size: 14px; line-height: 1.8; color: var(--qt-text-secondary); }
.qt-prose h3 { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: var(--qt-text); }
.qt-prose p { margin: 0 0 12px; }
.qt-prose ul { margin: 8px 0; padding-right: 20px; }
.qt-prose img { border-radius: var(--qt-radius-md); }

.qt-qa { display: flex; flex-direction: column; align-items: center; padding: var(--qt-space-6) 0; text-align: center; }
.qt-qa__icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: var(--qt-space-3); border-radius: 50%; background: var(--qt-primary-light); color: var(--qt-primary); }
.qt-qa__icon svg { width: 26px; height: 26px; }
.qt-qa__title { margin-bottom: 6px; font-size: 16px; font-weight: 700; }
.qt-qa__text { max-width: 440px; margin-bottom: var(--qt-space-5); font-size: 14px; line-height: 1.8; color: var(--qt-text-secondary); }
.qt-qa__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.qt-main .qt-qa__actions .qt-btn--primary { color: var(--qt-on-primary); }
.qt-main .qt-qa__actions .qt-btn--ghost { color: var(--qt-primary); }

/* WooCommerce reviews inside the tab */
.qt-reviews-wrap #reviews { margin: 0; }
.qt-reviews-wrap .woocommerce-Reviews-title { margin: 0 0 var(--qt-space-4); font-size: 16px; font-weight: 700; }
.qt-reviews-wrap .woocommerce-noreviews { margin: 0 0 var(--qt-space-5); padding: var(--qt-space-4); border-radius: var(--qt-radius-md); background: var(--qt-bg-page); font-size: 14px; color: var(--qt-text-secondary); }
.qt-reviews-wrap ol.commentlist { margin: 0 0 var(--qt-space-6); padding: 0; list-style: none; }
.qt-reviews-wrap .commentlist li { padding: 16px 0; border-bottom: 1px solid var(--qt-border); }
.qt-reviews-wrap .commentlist li:last-child { border-bottom: 0; }
.qt-reviews-wrap .comment_container { display: flex; gap: 10px; }
.qt-reviews-wrap .avatar { width: 36px; height: 36px; border-radius: 50%; }
.qt-reviews-wrap .comment-text { flex: 1; font-size: 13px; line-height: 1.7; color: var(--qt-text-secondary); }
.qt-reviews-wrap .woocommerce-review__author { font-size: 14px; font-weight: 600; color: var(--qt-text); }
.qt-reviews-wrap .woocommerce-review__verified { padding: 2px 8px; border-radius: var(--qt-radius-full); background: var(--qt-primary-light); color: var(--qt-primary); font-size: 10px; font-style: normal; font-weight: 600; }
.qt-reviews-wrap .star-rating { color: #F5A623; }
.qt-reviews-wrap #review_form_wrapper { padding: var(--qt-space-5); border: 1px solid var(--qt-border); border-radius: var(--qt-radius-md); background: var(--qt-bg-page); }
.qt-reviews-wrap .comment-reply-title { display: block; margin-bottom: var(--qt-space-3); font-size: 15px; font-weight: 700; color: var(--qt-text); }
.qt-reviews-wrap .comment-form { display: flex; flex-direction: column; gap: var(--qt-space-3); margin: 0; }
.qt-reviews-wrap .comment-form p { margin: 0; }
.qt-reviews-wrap .comment-form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--qt-text); }
.qt-reviews-wrap .comment-form input[type="text"],
.qt-reviews-wrap .comment-form input[type="email"],
.qt-reviews-wrap .comment-form textarea,
.qt-reviews-wrap .comment-form select {
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid var(--qt-border-strong);
	border-radius: var(--qt-radius-md);
	background: var(--qt-bg-card);
	color: var(--qt-text);
	font-family: var(--qt-font);
	font-size: 14px;
	box-sizing: border-box;
}
.qt-reviews-wrap .comment-form :is(input, textarea, select):focus { border-color: var(--qt-primary); box-shadow: var(--qt-focus-ring); outline: none; }
.qt-reviews-wrap .comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
.qt-reviews-wrap .comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.qt-reviews-wrap p.stars a { color: #F5A623; }
.qt-reviews-wrap .form-submit input[type="submit"] {
	padding: 10px 28px;
	border: 0;
	border-radius: var(--qt-radius-full);
	background: var(--qt-primary);
	color: var(--qt-on-primary);
	font-family: var(--qt-font);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}
.qt-reviews-wrap .form-submit input[type="submit"]:hover { background: var(--qt-primary-dark); }

/* Related rows */
.qt-related { margin-bottom: 48px; }
.qt-hscroll { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.qt-hscroll::-webkit-scrollbar { height: 4px; }
.qt-hscroll::-webkit-scrollbar-track { border-radius: 4px; background: var(--qt-border); }
.qt-hscroll::-webkit-scrollbar-thumb { border-radius: 4px; background: var(--qt-primary-200, #A8D5C8); }
.qt-mcard {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--qt-border);
	border-radius: var(--qt-radius-lg);
	background: var(--qt-bg-card);
	box-shadow: var(--qt-shadow-sm);
	transition: box-shadow .25s, transform .25s;
}
.qt-mcard:hover { box-shadow: var(--qt-shadow-md); transform: translateY(-4px); }
.qt-mcard--mini { flex: 0 0 220px; scroll-snap-align: start; }
.qt-mcard--comp { border-radius: var(--qt-radius-md); }
.qt-mcard--comp:hover { transform: translateY(-3px); }
.qt-mcard__img { display: block; height: 160px; overflow: hidden; border-bottom: 1px solid var(--qt-border); background: var(--qt-bg-page); }
.qt-mcard--comp .qt-mcard__img { height: 120px; }
.qt-mcard__img { background: var(--qt-bg-page); }
.qt-mcard__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.qt-mcard__body { display: flex; flex-direction: column; padding: 12px; }
.qt-mcard--comp .qt-mcard__body { padding: 10px; }
.qt-mcard__title { margin-bottom: 6px; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--qt-text); }
.qt-mcard--comp .qt-mcard__title { margin-bottom: 4px; font-size: 12px; }
.qt-mcard__price { font-size: 14px; font-weight: 700; color: var(--qt-error); }
.qt-mcard--comp .qt-mcard__price { font-size: 13px; }

/* WooCommerce notices inside our pages */
.qt-main .woocommerce-notices-wrapper:not(:empty) { margin-bottom: var(--qt-space-4); }
.qt-main .woocommerce-message,
.qt-main .woocommerce-info,
.qt-main .woocommerce-error {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 var(--qt-space-4);
	padding: 12px 16px;
	border: 0;
	border-right: 4px solid var(--qt-success);
	border-radius: var(--qt-radius-md);
	background: var(--qt-success-bg);
	color: var(--qt-text);
	font-size: 14px;
	list-style: none;
}
.qt-main .woocommerce-error { border-right-color: var(--qt-error); background: var(--qt-error-bg); }
.qt-main .woocommerce-message::before, .qt-main .woocommerce-info::before, .qt-main .woocommerce-error::before { display: none; }
.qt-main .woocommerce-message .button { order: 2; padding: 6px 16px; border-radius: var(--qt-radius-full); background: var(--qt-primary); color: var(--qt-on-primary); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.qt-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.qt-product { gap: 28px; }

	.qt-shop__sidebar {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: var(--qt-z-drawer);
		width: 300px;
		max-width: 88vw;
		overflow-y: auto;
		background: var(--qt-bg-card);
		box-shadow: var(--qt-shadow-lg);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform .3s ease, visibility .3s;
	}
	.qt-shop__sidebar.is-open { transform: translateX(0); visibility: visible; }
	.admin-bar .qt-shop__sidebar { top: 0; }
	.qt-filter-card { border: 0; border-radius: 0; box-shadow: none; }
	.qt-filter-card__close { display: flex; }
	.qt-filter-overlay { display: block; }
	.qt-toolbar__filter { display: flex; }
	.qt-shop .qt-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
	.qt-section-title { font-size: 19px; }
	.qt-grid--4, .qt-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.qt-grid { gap: 12px; }

	.qt-hero { min-height: 350px; }
	.qt-hero__bg { background: linear-gradient(180deg, var(--qt-primary-dark) 0%, var(--qt-primary) 100%) !important; }
	.qt-hero__content { flex-direction: column; gap: var(--qt-space-6); padding: var(--qt-space-8) var(--qt-space-5); text-align: center; }
	.qt-hero__image { order: -1; }
	.qt-hero__frame { width: min(320px, 86%); }
	.qt-hero__sub { margin: 0 auto var(--qt-space-6); }

	.qt-hometrust__inner { grid-template-columns: repeat(2, 1fr); padding: 0 var(--qt-space-4); }
	.qt-hometrust__item { justify-content: flex-start; }

	.qt-catgrid { display: flex; gap: var(--qt-space-3); overflow-x: auto; padding-bottom: var(--qt-space-3); scroll-snap-type: x proximity; }
	.qt-catcard { flex-shrink: 0; min-width: 120px; scroll-snap-align: start; }

	.qt-gift { padding: var(--qt-space-8) var(--qt-space-4); }
	.qt-gift__title { font-size: 22px; }
	.qt-gift__cols { grid-template-columns: 1fr; gap: var(--qt-space-5); }
	.qt-gift__products { grid-template-columns: 1fr; }

	.qt-reviews { display: flex; gap: var(--qt-space-4); overflow-x: auto; padding-bottom: var(--qt-space-3); }
	.qt-review { flex-shrink: 0; min-width: 280px; }

	.qt-faq .qt-acc-btn { padding: var(--qt-space-4); font-size: 14px; }
	.qt-faq .qt-acc-panel-inner { padding: var(--qt-space-3) var(--qt-space-4) var(--qt-space-4); }

	.qt-insta h2 { font-size: 22px; }

	.qt-page-head { padding-top: var(--qt-space-4); padding-bottom: var(--qt-space-4); }
	.qt-shop { padding: 0 16px; }
	.qt-toolbar { flex-wrap: wrap; padding: 12px 14px; }
	.qt-toolbar__count { font-size: 13px; }
	.qt-toolbar__actions { flex: 1; justify-content: flex-end; }
	.qt-pcard__body { padding: 12px; }
	.qt-pcard__name { font-size: 13px; }
	.qt-price-sale, .qt-price-normal { font-size: 15px; }

	.qt-single { padding-left: 16px; padding-right: 16px; }
	.qt-product { grid-template-columns: 1fr; gap: 24px; }
	.qt-gallery__main { height: auto; aspect-ratio: 1 / 1; }
	.qt-gallery__thumb { width: 64px; height: 64px; }
	.qt-pinfo__title { font-size: 20px; }
	.qt-pprice__current { font-size: 24px; }
	.qt-tabs__btn { padding: 12px 16px; }
	.qt-tabs__content { padding: 16px; }
	.qt-specs th, .qt-specs td { padding: 8px 10px; }
}

@media (max-width: 480px) {
	.qt-hometrust__inner { gap: var(--qt-space-3); }
	.qt-hometrust__icon { width: 34px; height: 34px; }
	.qt-pcard__add { font-size: 12px; min-height: 38px; padding: 8px 10px; }
	.qt-wish-btn { width: 30px; height: 30px; top: 8px; left: 8px; }
	.qt-pbadge { font-size: 10px; padding: 2px 7px; }
	.qt-ptrust { padding: 10px 8px; }
	.qt-ptrust li { font-size: 10px; }
}

/* Block-style store notices (e.g. "added to cart" after the product form posts) */
.qt-main > .woocommerce-notices-wrapper:not(:empty) {
	max-width: var(--qt-container);
	margin: var(--qt-space-4) auto 0;
	padding: 0 var(--qt-space-6);
	box-sizing: border-box;
}
.qt-main .wc-block-components-notice-banner {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 12px 16px;
	border: 0;
	border-right: 4px solid var(--qt-success);
	border-radius: var(--qt-radius-md);
	background: var(--qt-success-bg);
	color: var(--qt-text);
	font-size: 14px;
}
.qt-main .wc-block-components-notice-banner.is-error { border-right-color: var(--qt-error); background: var(--qt-error-bg); }
.qt-main .wc-block-components-notice-banner.is-info { border-right-color: var(--qt-info); background: var(--qt-info-bg); }
.qt-main .wc-block-components-notice-banner > svg { flex-shrink: 0; padding: 2px; border-radius: 50%; background: var(--qt-success); fill: #fff; }
.qt-main .wc-block-components-notice-banner.is-error > svg { background: var(--qt-error); }
.qt-main .wc-block-components-notice-banner__content { display: flex; flex: 1; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.qt-main .wc-block-components-notice-banner__content .button {
	order: 2;
	padding: 6px 16px;
	border-radius: var(--qt-radius-full);
	background: var(--qt-primary);
	color: var(--qt-on-primary);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
@media (max-width: 768px) {
	.qt-main > .woocommerce-notices-wrapper:not(:empty) { padding: 0 16px; }
}
.qt-reviews-wrap p.stars { margin: 0; }
.qt-reviews-wrap p.stars a { position: relative; display: inline-block; width: 1.2em; height: 1.2em; overflow: hidden; font-size: 20px; text-indent: 999em; text-decoration: none; }
.qt-reviews-wrap p.stars a::before { content: '☆'; position: absolute; inset: 0; color: #F5A623; line-height: 1; text-indent: 0; }
.qt-reviews-wrap p.stars:hover a::before,
.qt-reviews-wrap p.stars.selected a.active::before,
.qt-reviews-wrap p.stars.selected a:not(.active)::before { content: '★'; }
.qt-reviews-wrap p.stars.selected a.active ~ a::before,
.qt-reviews-wrap p.stars a:hover ~ a::before { content: '☆'; }
