/* ==========================================================================
   Yarnest — main stylesheet
   Palette: lilac paper, aubergine ink, yarn pastels (rose, butter, pistachio).
   Type: Anek Bangla (all text, Bangla + English), Caprasimo (Yarnest wordmark only).
   ========================================================================== */

@font-face {
	font-family: "Caprasimo"; font-style: normal; font-weight: 400; font-display: swap;
	src: url("../fonts/caprasimo-latin-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Anek Bangla"; font-style: normal; font-weight: 100 800; font-display: swap;
	src: url("../fonts/anek-bangla-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/anek-bangla-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Anek Bangla"; font-style: normal; font-weight: 100 800; font-display: swap;
	src: url("../fonts/anek-bangla-bengali-wght-normal.woff2") format("woff2-variations"), url("../fonts/anek-bangla-bengali-wght-normal.woff2") format("woff2");
	unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}

:root {
	--paper: #F6F4FA;
	--paper-deep: #ECE7F4;
	--white: #FFFFFF;
	--ink: #2A1B3D;
	--ink-soft: #5E5270;
	--line: #DDD5E8;
	--rose: #F4A9BC;
	--rose-deep: #C2476A;
	--butter: #FFDF7E;
	--pistachio: #BFDDA9;
	--sky: #A8C5F0;
	--ok: #2F6B3A;
	--deal: #E0283E;        /* price + Buy now red */
	--deal-soft: #FFF0F1;
	--err: #A3243F;

	--f-display: "Anek Bangla", system-ui, sans-serif;
	--f-brand: "Caprasimo", Georgia, serif;
	--f-text: "Anek Bangla", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Type scale (1.25) */
	--t-xs: .8125rem;
	--t-sm: .9375rem;
	--t-md: 1.0625rem;
	--t-lg: 1.3125rem;
	--t-xl: 1.625rem;
	--t-2xl: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
	--t-hero: clamp(2.25rem, 1.2rem + 4.4vw, 4.25rem);

	--wrap: 1240px;
	--gut: clamp(1rem, .5rem + 2vw, 2rem);
	--r-sm: 8px;
	--r-md: 14px;
	--r-lg: 28px;
	--r-pill: 999px;
	--header-h: 68px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-text);
	font-size: var(--t-md);
	line-height: 1.6;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--rose-deep); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--butter); color: var(--ink); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 1rem; top: -100px; z-index: 100;
	background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: var(--r-sm);
}
.skip-link:focus { top: 1rem; color: var(--white); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- Buttons ---------- */
.btn,
.button,
button.button,
input.button,
#respond input#submit,
.wc-block-components-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 48px; padding: .7rem 1.4rem;
	border: 2px solid var(--ink); border-radius: var(--r-pill);
	background: var(--white); color: var(--ink);
	font-family: var(--f-text); font-weight: 700; font-size: var(--t-sm); line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background-color .15s ease, color .15s ease, transform .1s ease;
}
.btn:hover, .button:hover { background: var(--butter); color: var(--ink); }
.btn:active, .button:active { transform: translateY(1px); }
.btn--ink,
.button.alt,
.single_add_to_cart_button,
.checkout-button,
#place_order {
	background: var(--ink); color: var(--white);
}
.btn--ink:hover,
.button.alt:hover,
.single_add_to_cart_button:hover,
.checkout-button:hover,
#place_order:hover { background: #3E2A57; color: var(--white); }
.button:disabled, .button.disabled { opacity: .45; cursor: not-allowed; }
.button.loading { opacity: .6; pointer-events: none; }
.added_to_cart { display: inline-block; margin-top: .5rem; font-size: var(--t-xs); font-weight: 600; }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="search"], input[type="number"], input[type="url"], textarea, select,
.select2-container--default .select2-selection--single {
	width: 100%; min-height: 48px; padding: .65rem .9rem;
	border: 1.5px solid var(--line); border-radius: var(--r-sm);
	background: var(--white); color: var(--ink);
	font: inherit; font-size: 16px; /* 16px stops iOS zoom on focus */
}
textarea { min-height: 110px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--butter); }
label { display: block; margin-bottom: .3rem; font-weight: 600; font-size: var(--t-sm); }
.required { color: var(--rose-deep); text-decoration: none; border: 0; }

.select2-container--default .select2-selection--single { display: flex; align-items: center; height: auto; }
.select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 1.4; color: var(--ink); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; right: 8px; }
.select2-dropdown { border-color: var(--ink); border-radius: var(--r-sm); }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--ink); }

.search-form { display: flex; gap: .5rem; }
.search-form input[type="search"] { flex: 1; border-radius: var(--r-pill); padding-inline: 1.2rem; }
.search-form button {
	min-height: 48px; padding: 0 1.3rem; border: 0; border-radius: var(--r-pill);
	background: var(--ink); color: var(--white); font-weight: 700; cursor: pointer;
}

/* ---------- Announcement + header ---------- */
.announce { background: var(--ink); color: var(--white); text-align: center; font-size: var(--t-xs); font-weight: 500; }
.announce p { margin: 0; padding: .5rem var(--gut); }

.site-header {
	position: sticky; top: 0; z-index: 40;
	background: rgba(246, 244, 250, .94);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.75rem; line-height: 1; letter-spacing: -.01em; }
.brand a { text-decoration: none; color: var(--ink); }
.custom-logo { max-height: 48px; width: auto; }

.header-icon {
	display: inline-grid; place-items: center; position: relative;
	width: 44px; height: 44px; border: 0; border-radius: 50%;
	background: transparent; color: var(--ink); cursor: pointer; text-decoration: none;
}
.header-icon:hover { background: var(--paper-deep); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.cart-count {
	position: absolute; top: 3px; right: 1px; min-width: 20px; height: 20px; padding: 0 5px;
	border-radius: var(--r-pill); background: var(--rose); color: var(--ink);
	font-size: 11px; font-weight: 700; line-height: 20px; text-align: center;
}
.cart-count.is-empty { display: none; }

.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav .menu a {
	display: block; padding: .5rem .85rem; border-radius: var(--r-pill);
	font-weight: 600; font-size: var(--t-sm); text-decoration: none;
}
.site-nav .menu a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-product_cat-ancestor > a { background: var(--paper-deep); color: var(--ink); }
.site-nav .sub-menu { list-style: none; margin: 0; padding: .4rem; }
.site-nav__head, .site-nav .social { display: none; }
.menu-toggle { display: none; }

@media (min-width: 961px) {
	.site-nav { margin-left: 1.5rem; }
	.site-nav .menu > li { position: relative; }
	.site-nav .sub-menu {
		position: absolute; top: 100%; left: 0; min-width: 220px;
		background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
		box-shadow: 0 12px 30px -12px rgba(42, 27, 61, .3);
		opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
	}
	.site-nav li:hover > .sub-menu,
	.site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
}

@media (max-width: 960px) {
	.menu-toggle { display: inline-grid; margin-left: -8px; }
	.site-nav {
		position: fixed; inset: 0 auto 0 0; z-index: 60;
		width: min(86vw, 360px); padding: 1rem 1.25rem 2rem;
		background: var(--paper); overflow-y: auto;
		transform: translateX(-102%); transition: transform .25s ease;
	}
	.nav-open .site-nav { transform: none; box-shadow: 20px 0 50px rgba(42, 27, 61, .18); }
	.site-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; font-weight: 700; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu a { padding: .85rem .25rem; border-radius: 0; border-bottom: 1px solid var(--line); font-size: var(--t-md); }
	.site-nav .sub-menu a { padding-left: 1rem; font-weight: 500; }
	.site-nav .social { display: flex; margin-top: 1.5rem; }
	.nav-scrim { position: fixed; inset: 0; z-index: 50; background: rgba(42, 27, 61, .35); }
	.nav-open { overflow: hidden; }
	.brand { font-size: 1.5rem; }
	.account-link { display: none; }
}

.header-search { padding: .75rem 0 1rem; border-top: 1px solid var(--line); }

/* ---------- Layout bits ---------- */
.site-main { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) clamp(3rem, 2rem + 4vw, 6rem); }
.site-main.home { padding-top: 0; }
.section { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section__title, .page-title, .woocommerce-products-header__title, .product_title {
	font-family: var(--f-display); font-weight: 700; letter-spacing: -.01em;
}
.section__title { font-size: var(--t-2xl); margin: 0; }
.section__link { font-weight: 700; font-size: var(--t-sm); white-space: nowrap; }
.page-head { margin-bottom: 1.75rem; }
.page-title, .woocommerce-products-header__title { font-size: var(--t-2xl); margin: 0 0 .4rem; }
.page-intro, .term-description { max-width: 62ch; color: var(--ink-soft); }

/* ---------- Hero: the ball band ---------- */
.hero { padding-block: clamp(1.25rem, .5rem + 2.5vw, 3rem) clamp(1rem, .5rem + 2vw, 2.5rem); overflow: hidden; }
.hero__inner {
	display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	align-items: center; gap: clamp(1.5rem, 1rem + 3vw, 4rem);
}
.band {
	position: relative;
	padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
	background: var(--butter);
	border-radius: var(--r-lg);
}
/* Stitched edge, like the paper band around a ball of yarn. */
.band::before {
	content: ""; position: absolute; inset: 10px;
	border: 2px dashed rgba(42, 27, 61, .55); border-radius: calc(var(--r-lg) - 8px);
	pointer-events: none;
}
.band__title {
	position: relative; max-width: 14ch; margin: 0 0 1rem;
	font-family: var(--f-display); font-weight: 700; font-size: var(--t-hero); line-height: 1.02; letter-spacing: -.015em;
}
.band__text { position: relative; max-width: 44ch; font-size: var(--t-md); color: #3B2C4F; }
.band__actions { position: relative; margin-top: 1.5rem; }
.swatches { position: relative; display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.75rem 0 0; padding: 0; }
.swatches li {
	width: 26px; height: 26px; border-radius: 50%;
	background: var(--c); border: 2px solid var(--ink);
}
.hero__photo { margin: 0; justify-self: center; width: min(100%, 500px); }
.hero__photo img {
	width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
	border: 3px solid var(--ink); box-shadow: 14px 14px 0 var(--rose);
}
.hero-art { width: 100%; }

@media (max-width: 800px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__photo { order: -1; width: min(58vw, 300px); }
	.hero__photo img { box-shadow: 9px 9px 0 var(--rose); }
}

/* ---------- Category grid ---------- */
.cat-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: clamp(.75rem, .5rem + 1vw, 1.25rem);
}
@media (max-width: 600px) {
	/* One swipeable row of small circles instead of a tall grid. */
	.cat-grid {
		display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
		gap: .9rem; padding-bottom: .25rem;
	}
	.cat-grid::-webkit-scrollbar { display: none; }
	.cat-card { flex: 0 0 104px; scroll-snap-align: start; }
	.cat-card__name { font-size: var(--t-sm); }
	.cat-card__letter { font-size: 2.25rem; }
}
.cat-card a { display: block; text-decoration: none; color: var(--ink); }
.cat-card__img {
	display: grid; place-items: center; aspect-ratio: 1; overflow: hidden;
	border-radius: 50%; background: var(--rose); border: 2px solid var(--ink);
}
.cat-card--1 .cat-card__img { background: var(--pistachio); }
.cat-card--2 .cat-card__img { background: var(--sky); }
.cat-card--3 .cat-card__img { background: var(--butter); }
.cat-card--4 .cat-card__img { background: #D9C6F2; }
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.cat-card a:hover img { transform: scale(1.05); }
.cat-card__letter { font-family: var(--f-display); font-weight: 700; font-size: 3.5rem; }
.cat-card__name { display: block; margin-top: .7rem; font-weight: 700; text-align: center; line-height: 1.3; }
.cat-card__count { display: block; text-align: center; font-size: var(--t-xs); color: var(--ink-soft); }

/* ---------- Product grid (WooCommerce loop) ---------- */
ul.products {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, .5rem + 1.5vw, 1.75rem) clamp(.75rem, .5rem + 1vw, 1.5rem);
}
ul.products::before, ul.products::after { display: none; }
@media (max-width: 1000px) { ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

ul.products li.product {
	position: relative; display: flex; flex-direction: column; margin: 0; width: auto; float: none;
	background: var(--white); border-radius: var(--r-md); overflow: hidden;
}
ul.products li.product .woocommerce-LoopProduct-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); }
ul.products li.product .woocommerce-LoopProduct-link:hover { color: var(--ink); }
ul.products li.product img {
	width: 100%; aspect-ratio: 1; object-fit: cover; margin: 0;
	background: var(--paper-deep); transition: transform .3s ease;
}
ul.products li.product:hover img { transform: scale(1.03); }
ul.products li.product .woocommerce-loop-product__title {
	font-size: var(--t-sm); font-weight: 500; line-height: 1.35; margin: .6rem .7rem .35rem;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em;
}
.card-meta { display: flex; align-items: baseline; justify-content: space-between; gap: .4rem; flex-wrap: wrap; margin: auto .7rem .7rem; }
ul.products li.product .price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .35rem; color: var(--deal); font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
ul.products li.product .price del { font-size: var(--t-xs); order: 2; }
ul.products li.product .price ins { order: 1; color: var(--deal); }
.woocommerce-Price-currencySymbol { font-size: .78em; margin-right: .05em; }
.card-sold { font-size: var(--t-xs); color: var(--ink-soft); white-space: nowrap; }
@media (max-width: 680px) {
	ul.products { gap: .55rem; }
	ul.products li.product .woocommerce-loop-product__title { margin: .5rem .55rem .3rem; font-size: .875rem; }
	.card-meta { margin: auto .55rem .6rem; }
	ul.products li.product .price { font-size: 1.05rem; }
}
ul.products li.product .star-rating { margin-bottom: .35rem; font-size: .75rem; }

.price del { color: var(--ink-soft); font-weight: 400; margin-right: .35rem; opacity: .8; }
.price ins { text-decoration: none; color: var(--rose-deep); }

.onsale {
	position: absolute; top: .6rem; left: .6rem; z-index: 2;
	padding: .25rem .6rem; border-radius: var(--r-pill);
	background: var(--rose); color: var(--ink); border: 1.5px solid var(--ink);
	font-size: var(--t-xs); font-weight: 700; line-height: 1.3;
}
.card-stock {
	position: absolute; top: .6rem; right: .6rem; z-index: 2;
	padding: .25rem .6rem; border-radius: var(--r-pill);
	background: var(--white); color: var(--ink-soft); font-size: var(--t-xs); font-weight: 600;
}
li.product.outofstock img { opacity: .55; }

/* Stars */
.star-rating {
	position: relative; display: inline-block; width: 5.4em; height: 1em; overflow: hidden;
	font-size: .9rem; line-height: 1; letter-spacing: .1em;
}
.star-rating::before { content: "★★★★★"; position: absolute; inset: 0; color: var(--line); }
.star-rating span { position: absolute; inset: 0 auto 0 0; overflow: hidden; padding-top: 1.5em; }
.star-rating span::before { content: "★★★★★"; position: absolute; top: 0; left: 0; color: #E0A100; }

/* ---------- Shop archive ---------- */
.breadcrumb { margin-bottom: 1rem; font-size: var(--t-xs); color: var(--ink-soft); }
.breadcrumb a { color: var(--ink-soft); }
.crumb-sep { margin: 0 .45rem; opacity: .6; }
.woocommerce-products-header { margin-bottom: 1.25rem; }

.cat-chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; margin-bottom: 1.25rem; scrollbar-width: none; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chips a {
	flex: 0 0 auto; padding: .5rem 1rem; border: 1.5px solid var(--ink); border-radius: var(--r-pill);
	background: var(--white); font-size: var(--t-sm); font-weight: 600; text-decoration: none;
}
.cat-chips a:hover { background: var(--butter); color: var(--ink); }
.cat-chips span { color: var(--ink-soft); font-weight: 500; margin-left: .15rem; }

.shop-filters { margin-bottom: 1.25rem; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.shop-filters summary { padding: .8rem 1rem; font-weight: 700; cursor: pointer; }
.shop-filters__body { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; padding: 0 1rem 1rem; }
.filter-widget__title { font-size: var(--t-sm); }

.woocommerce-result-count { float: left; margin: .7rem 0 1.25rem; font-size: var(--t-sm); color: var(--ink-soft); }
.woocommerce-ordering { float: right; margin: 0 0 1.25rem; }
.woocommerce-ordering select { width: auto; min-height: 42px; border-radius: var(--r-pill); padding-right: 2rem; }
ul.products { clear: both; }

.woocommerce-pagination, .nav-links { margin-top: 2.5rem; text-align: center; }
.woocommerce-pagination ul { display: inline-flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.woocommerce-pagination a, .woocommerce-pagination span, .nav-links a, .nav-links span {
	display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .75rem;
	border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--white);
	font-weight: 600; text-decoration: none;
}
.woocommerce-pagination .current, .nav-links .current { background: var(--ink); border-color: var(--ink); color: var(--white); }
.woocommerce-info.woocommerce-no-products-found, .woocommerce-no-products-found { clear: both; }

/* ---------- Single product ---------- */
.single-product div.product {
	display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; position: relative;
}
.single-product div.product > .onsale { top: 1rem; left: 1rem; }
.single-product div.product .woocommerce-product-gallery { position: relative; grid-column: 1; margin: 0; opacity: 1 !important; }
.single-product div.product .summary { grid-column: 2; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.single-product div.product > .woocommerce-tabs,
.single-product div.product > .related,
.single-product div.product > .upsells { grid-column: 1 / -1; }

.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image img { width: 100%; border-radius: var(--r-md); background: var(--white); }
.woocommerce-product-gallery .flex-viewport { border-radius: var(--r-md); }
.woocommerce-product-gallery__trigger {
	position: absolute; top: .75rem; right: .75rem; z-index: 5;
	width: 40px; height: 40px; border-radius: 50%; background: var(--white);
	display: grid; place-items: center; font-size: 0; text-decoration: none;
}
.woocommerce-product-gallery__trigger::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 50%; margin: -3px 0 0 -3px; }
.woocommerce-product-gallery__trigger::after { content: ""; position: absolute; width: 2px; height: 7px; background: var(--ink); transform: rotate(-45deg); margin: 13px 0 0 13px; }
.woocommerce-product-gallery__trigger img { display: none !important; }
.flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; list-style: none; margin: .75rem 0 0; padding: 0; }
.flex-control-thumbs img { border-radius: var(--r-sm); cursor: pointer; opacity: .6; border: 2px solid transparent; aspect-ratio: 1; object-fit: cover; }
.flex-control-thumbs img.flex-active, .flex-control-thumbs img:hover { opacity: 1; border-color: var(--ink); }

.product_title { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.1; margin: 0 0 .75rem; }
.summary .price { font-size: var(--t-xl); font-weight: 700; margin-bottom: 1rem; }
.summary .woocommerce-product-rating { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; font-size: var(--t-sm); }
.woocommerce-product-details__short-description { color: #3B2C4F; max-width: 60ch; }
.stock { font-weight: 600; font-size: var(--t-sm); }
.stock.in-stock { color: var(--ok); }
.stock.out-of-stock { color: var(--err); }

form.cart { display: flex; flex-wrap: wrap; gap: .75rem; align-items: stretch; margin: 1.25rem 0; }
form.cart .single_add_to_cart_button { flex: 1 1 200px; min-height: 52px; font-size: var(--t-md); }
form.variations_form { display: block; }
form.variations_form .single_variation_wrap { margin-top: 1rem; }
form.variations_form .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: .75rem; }
table.variations { width: 100%; border-collapse: collapse; margin-bottom: .5rem; }
table.variations th, table.variations td { display: block; padding: 0; text-align: left; }
table.variations th label { margin: .75rem 0 .35rem; }
.reset_variations { display: inline-block; margin-top: .4rem; font-size: var(--t-xs); }
.woocommerce-variation-price { margin-bottom: .5rem; font-weight: 700; font-size: var(--t-lg); }
.woocommerce-grouped-product-list { width: 100%; margin-bottom: 1rem; }

.quantity { display: inline-flex; align-items: stretch; border: 2px solid var(--ink); border-radius: var(--r-pill); background: var(--white); overflow: hidden; }
.quantity input.qty {
	width: 3.2rem; min-height: 48px; border: 0; padding: 0; text-align: center; font-weight: 700; border-radius: 0;
	-moz-appearance: textfield; appearance: textfield;
}
.quantity input.qty:focus { box-shadow: none; }
.quantity input::-webkit-outer-spin-button, .quantity input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 42px; border: 0; background: transparent; font-size: 1.25rem; cursor: pointer; }
.qty-btn:hover { background: var(--paper-deep); }

.buy-notes { margin: 1.25rem 0; padding: 1rem 1.1rem; border-radius: var(--r-md); background: var(--white); border: 1.5px solid var(--line); }
.buy-notes__row { display: flex; gap: .75rem; align-items: flex-start; }
.buy-notes__row p { margin: 0; font-size: var(--t-sm); }
.buy-notes__wa { display: inline-flex; align-items: center; gap: .4rem; margin-top: .85rem; font-weight: 700; font-size: var(--t-sm); }

.product_meta { font-size: var(--t-sm); color: var(--ink-soft); display: grid; gap: .25rem; }

.woocommerce-tabs { margin-top: clamp(1.5rem, 1rem + 2vw, 3rem); }
.wc-tabs { display: flex; gap: .4rem; flex-wrap: wrap; list-style: none; margin: 0 0 1.5rem; padding: 0; border-bottom: 1.5px solid var(--line); }
.wc-tabs li a { display: block; padding: .7rem 1rem; font-weight: 700; text-decoration: none; color: var(--ink-soft); border-bottom: 3px solid transparent; margin-bottom: -1.5px; }
.wc-tabs li.active a { color: var(--ink); border-color: var(--ink); }
.woocommerce-Tabs-panel { max-width: 75ch; }
.woocommerce-Tabs-panel > h2:first-child { display: none; }
.woocommerce-product-attributes { width: 100%; border-collapse: collapse; }
.woocommerce-product-attributes th, .woocommerce-product-attributes td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); text-align: left; }
.woocommerce-product-attributes td p { margin: 0; }

.related, .upsells { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.related > h2, .upsells > h2, .cross-sells > h2 { font-family: var(--f-display); font-weight: 700; font-size: var(--t-2xl); }

/* Reviews */
#reviews .commentlist { list-style: none; padding: 0; }
#reviews .comment_container { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
#reviews .avatar { border-radius: 50%; width: 44px; height: 44px; }
#reviews .comment-text { flex: 1; }
.comment-form-rating .stars a { font-size: 1.25rem; text-decoration: none; }

@media (max-width: 860px) {
	.single-product div.product { grid-template-columns: 1fr; }
	.single-product div.product .woocommerce-product-gallery,
	.single-product div.product .summary { grid-column: 1; position: static; }
}

/* ---------- Notices ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
	margin: 0 0 1.25rem; padding: .9rem 1.1rem; border-radius: var(--r-md);
	background: var(--white); border: 1.5px solid var(--line); border-left: 6px solid var(--pistachio);
	font-size: var(--t-sm);
}
.woocommerce-info { border-left-color: var(--sky); }
.woocommerce-error { border-left-color: var(--err); display: block; }
.woocommerce-error li { margin: .15rem 0; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; min-height: 40px; padding: .4rem 1rem; }

/* ---------- Tables: cart, order review, account ---------- */
.shop_table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--r-md); overflow: hidden; font-size: var(--t-sm); }
.shop_table th, .shop_table td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.shop_table thead th { background: var(--paper-deep); font-weight: 700; }
.shop_table tfoot th { font-weight: 600; }
.shop_table .order-total td, .shop_table .order-total th { font-size: var(--t-md); font-weight: 700; }

.woocommerce-cart-form .product-thumbnail img { width: 72px; border-radius: var(--r-sm); }
.woocommerce-cart-form .product-name a { font-weight: 600; }
.woocommerce-cart-form a.remove {
	display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
	background: var(--paper-deep); color: var(--err) !important; text-decoration: none; font-size: 1.2rem; line-height: 1;
}
.woocommerce-cart-form a.remove:hover { background: var(--err); color: var(--white) !important; }
.woocommerce-cart-form td.actions { text-align: right; }
.woocommerce-cart-form .coupon { display: flex; gap: .5rem; float: left; }
.woocommerce-cart-form .coupon input { width: 180px; min-height: 44px; }
.woocommerce-cart-form .coupon label { display: none; }

.cart-collaterals { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 2rem; margin-top: 2rem; }
.cart-collaterals .cross-sells { grid-column: 1; }
.cart_totals { grid-column: 2; }
.cart_totals h2 { font-family: var(--f-display); font-weight: 700; font-size: var(--t-xl); }
.wc-proceed-to-checkout { margin-top: 1rem; }
.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 54px; font-size: var(--t-md); }
#shipping_method { list-style: none; margin: 0; padding: 0; }
#shipping_method li { margin: .25rem 0; }
#shipping_method input { margin-right: .35rem; accent-color: var(--ink); }
.woocommerce-shipping-destination { font-size: var(--t-xs); color: var(--ink-soft); }
.shipping-calculator-button { font-size: var(--t-xs); }

@media (max-width: 760px) {
	.cart-collaterals { grid-template-columns: 1fr; }
	.cart_totals, .cart-collaterals .cross-sells { grid-column: 1; }

	/* Stacked cart rows on phones */
	.shop_table_responsive thead { display: none; }
	.shop_table_responsive tr { display: block; border-bottom: 1px solid var(--line); }
	.shop_table_responsive td, .shop_table_responsive th { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .45rem 1rem; text-align: right; }
	.shop_table_responsive td::before { content: attr(data-title); font-weight: 600; text-align: left; }
	.shop_table_responsive td.product-remove::before,
	.shop_table_responsive td.product-thumbnail::before,
	.shop_table_responsive td.actions::before { content: none; }
	.shop_table_responsive td.product-thumbnail { display: none; }
	.shop_table_responsive td.product-remove { justify-content: flex-end; padding-top: .9rem; }
	.shop_table_responsive td.actions { display: block; text-align: left; padding: 1rem; }
	.woocommerce-cart-form .coupon { float: none; margin-bottom: .75rem; }
	.woocommerce-cart-form .coupon input { flex: 1; width: auto; }
	.woocommerce-cart-form td.actions > .button { width: 100%; }
}

/* ---------- Checkout ---------- */
form.checkout {
	display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr;
	grid-template-areas: "notice notice" "details heading" "details review";
	gap: 0 clamp(1.5rem, 1rem + 2vw, 3rem); align-items: start;
}
form.checkout > .woocommerce-NoticeGroup { grid-area: notice; }
form.checkout #customer_details { grid-area: details; }
form.checkout #order_review_heading { grid-area: heading; }
form.checkout #order_review { grid-area: review; }
form.checkout #order_review_heading { margin-top: 0; font-family: var(--f-display); font-weight: 700; font-size: var(--t-xl); }
#order_review { position: sticky; top: calc(var(--header-h) + 1rem); }
.col2-set .col-1, .col2-set .col-2 { width: 100%; float: none; }
.woocommerce-billing-fields h3, .woocommerce-shipping-fields h3, .woocommerce-additional-fields h3 { font-family: var(--f-display); font-weight: 700; font-size: var(--t-xl); }

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-row { margin: 0 0 1rem; padding: 0; grid-column: 1 / -1; }
.form-row-first { grid-column: 1; }
.form-row-last { grid-column: 2; }
.form-row .optional { font-weight: 400; color: var(--ink-soft); }
.form-row.woocommerce-invalid input, .form-row.woocommerce-invalid select { border-color: var(--err); }
.form-row .description { font-size: var(--t-xs); color: var(--ink-soft); margin-top: .3rem; }
#ship-to-different-address label { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--ink); }

#payment { margin-top: 1.25rem; background: var(--white); border-radius: var(--r-md); border: 1.5px solid var(--line); padding: 1rem; }
#payment ul.payment_methods { list-style: none; margin: 0 0 1rem; padding: 0; }
#payment ul.payment_methods > li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
#payment ul.payment_methods > li:last-child { border-bottom: 0; }
#payment ul.payment_methods > li > label { display: inline; font-size: var(--t-md); cursor: pointer; margin-left: .35rem; }
#payment ul.payment_methods > li > input { vertical-align: -3px; }
#payment .payment_box {
	margin-top: .75rem; padding: 1rem; border-radius: var(--r-sm);
	background: var(--paper); font-size: var(--t-sm);
}
#payment .payment_box p:last-child { margin-bottom: 0; }
#payment .place-order { padding: 0; }
#place_order { width: 100%; min-height: 56px; font-size: var(--t-md); margin-top: .5rem; }
.woocommerce-privacy-policy-text { font-size: var(--t-xs); color: var(--ink-soft); }
.woocommerce-terms-and-conditions-wrapper .form-row { margin-top: .5rem; }

.woocommerce-form-coupon-toggle .woocommerce-info, .woocommerce-form-login-toggle .woocommerce-info { display: block; }
form.checkout_coupon, form.woocommerce-form-login { margin-bottom: 1.5rem; padding: 1rem; border: 1.5px dashed var(--line); border-radius: var(--r-md); }

@media (max-width: 900px) {
	form.checkout { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "notice" "details" "heading" "review"; }
	#order_review { position: static; }
}
@media (max-width: 520px) {
	.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; }
	.form-row-first, .form-row-last { grid-column: 1; }
}

/* Thank-you page */
.woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; list-style: none; padding: 0; margin: 1.5rem 0; }
.woocommerce-order-overview li { padding: .9rem 1rem; background: var(--white); border-radius: var(--r-md); font-size: var(--t-xs); color: var(--ink-soft); }
.woocommerce-order-overview li strong { display: block; color: var(--ink); font-size: var(--t-md); margin-top: .2rem; }
.woocommerce-thankyou-order-received { font-family: var(--f-display); font-weight: 700; font-size: var(--t-xl); }
.woocommerce-customer-details address { font-style: normal; padding: 1rem; background: var(--white); border-radius: var(--r-md); }

/* ---------- My account ---------- */
.woocommerce-account .shop-page > .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2rem; align-items: start; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: .5rem; background: var(--white); border-radius: var(--r-md); }
.woocommerce-MyAccount-navigation a { display: block; padding: .65rem .85rem; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: var(--white); }
.woocommerce-account:not(.logged-in) .shop-page > .woocommerce { display: block; max-width: 900px; }
.u-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.u-columns .u-column1, .u-columns .u-column2 { width: auto; float: none; }
.woocommerce-form-login, .woocommerce-form-register { padding: 1.5rem; background: var(--white); border-radius: var(--r-md); }
.woocommerce-form-login__rememberme { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
.woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.woocommerce-Address address { font-style: normal; }
@media (max-width: 760px) {
	.woocommerce-account .shop-page > .woocommerce, .u-columns, .woocommerce-Addresses { grid-template-columns: 1fr; }
	.woocommerce-MyAccount-navigation ul { display: flex; overflow-x: auto; gap: .25rem; }
	.woocommerce-MyAccount-navigation a { white-space: nowrap; }
}

/* ---------- Steps ---------- */
.steps {
	background: var(--ink); color: var(--white); border-radius: var(--r-lg);
	width: calc(100% - 2 * var(--gut)); max-width: calc(var(--wrap) - 2 * var(--gut)); margin: clamp(1rem, .5rem + 2vw, 2.5rem) auto;
}
.steps .section__title { margin-bottom: 1.75rem; }
.steps__list {
	list-style: none; counter-reset: step; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem;
}
.steps__list li { counter-increment: step; }
.steps__list li::before {
	content: counter(step);
	display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: .9rem;
	border-radius: 50%; background: var(--butter); color: var(--ink);
	font-family: var(--f-display); font-weight: 700; font-size: 1.25rem;
}
.steps__list li:nth-child(2)::before { background: var(--rose); }
.steps__list li:nth-child(3)::before { background: var(--pistachio); }
.steps__list li:nth-child(4)::before { background: var(--sky); }
.steps h3 { font-size: var(--t-lg); margin-bottom: .35rem; }
.steps p { color: #D6CDE2; font-size: var(--t-sm); margin: 0; max-width: 32ch; }
@media (max-width: 900px) { .steps__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps__list { grid-template-columns: 1fr; } }

/* ---------- Prose & blog ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-family: var(--f-display); font-weight: 700; font-size: var(--t-xl); margin-top: 1.75em; }
.prose h3 { font-size: var(--t-lg); margin-top: 1.5em; }
.prose img { border-radius: var(--r-md); }
.prose blockquote { margin: 1.5em 0; padding-left: 1.2em; border-left: 4px solid var(--rose); }
.home-about .prose { margin-inline: auto; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem 1.5rem; }
.post-card__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); margin-bottom: .9rem; }
.post-card__title { font-size: var(--t-lg); margin-bottom: .3rem; }
.post-card__title a { text-decoration: none; }
.post-card__meta { font-size: var(--t-xs); color: var(--ink-soft); }
.post__cover { margin: 0 0 2rem; }
.post__cover img { width: 100%; border-radius: var(--r-lg); }

.empty, .not-found { max-width: 560px; }
.not-found .search-form { margin: 1.5rem 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-deep); padding-top: clamp(2.5rem, 2rem + 2vw, 4rem); font-size: var(--t-sm); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer__about p { max-width: 38ch; color: var(--ink-soft); }
.brand--footer { font-size: 1.6rem; margin-bottom: .75rem; }
.site-footer__title { font-size: var(--t-sm); margin-bottom: .75rem; }
.footer-menu, .footer-contact, .pay-list, .site-footer .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__base { margin-top: 2.5rem; padding-block: 1.25rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: var(--t-xs); }
.site-footer__base p { margin: 0; }
.social { display: flex; gap: .4rem; }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--white); color: var(--ink); }
.social a:hover { background: var(--ink); color: var(--white); text-decoration: none; }
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }

/* ---------- Bangla text gets its own face automatically through the font stack ---------- */
:lang(bn) body, [lang="bn"] { line-height: 1.7; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Print (order pages) ---------- */
@media print {
	.site-header, .site-footer, .announce, .nav-scrim { display: none !important; }
	body { background: #fff; }
}


/* ==========================================================================
   Marketplace-style product page
   ========================================================================== */
.single-product div.product .pg { grid-column: 1; position: relative; }
.single-product div.product > .woocommerce-tabs { grid-column: 1; }

/* Gallery */
.pg__stage { position: relative; }
.pg__track {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	border-radius: var(--r-md); background: var(--white); outline-offset: -3px;
}
.pg__track::-webkit-scrollbar { display: none; }
.pg__slide { flex: 0 0 100%; margin: 0; aspect-ratio: 1; scroll-snap-align: start; position: relative; overflow: hidden; background: var(--white); }
.pg__slide img, .pg__video, .pg__slide iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.pg__slide--video { background: var(--ink); }
.pg__video { object-fit: contain; cursor: pointer; }
.pg__zoom { display: block; height: 100%; cursor: zoom-in; }
.pg__sound {
	position: absolute; left: .75rem; bottom: .75rem; width: 40px; height: 40px; border: 0; border-radius: 50%;
	display: grid; place-items: center; background: rgba(20, 12, 30, .55); color: var(--white); cursor: pointer;
}
.pg__sound .pg__sound-on { display: none; }
.pg__sound[aria-pressed="true"] .pg__sound-on { display: inline; }
.pg__sound[aria-pressed="true"] .pg__sound-off { display: none; }
.pg__yt-play { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.pg__yt-play img { opacity: .9; }
.pg__play, .pg__thumb--video::after {
	position: absolute; left: 50%; top: 50%; translate: -50% -50%;
	width: 64px; height: 64px; border-radius: 50%; background: rgba(20, 12, 30, .6);
}
.pg__play::after, .pg__thumb--video::before {
	content: ""; position: absolute; left: 50%; top: 50%; translate: -35% -50%;
	border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff;
}
.pg__count {
	position: absolute; right: .75rem; bottom: .75rem; padding: .15rem .6rem; border-radius: var(--r-pill);
	background: rgba(20, 12, 30, .55); color: var(--white); font-size: var(--t-xs); font-weight: 600; pointer-events: none;
}
.pg__nav {
	position: absolute; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border: 0; border-radius: 50%;
	display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--ink); cursor: pointer;
	box-shadow: 0 2px 10px rgba(42, 27, 61, .15);
}
.pg__nav--prev { left: .75rem; }
.pg__nav--next { right: .75rem; }
.pg__thumbs { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; scrollbar-width: none; }
.pg__thumb {
	position: relative; flex: 0 0 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: var(--r-sm);
	overflow: hidden; background: var(--white); cursor: pointer;
}
.pg__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pg__thumb.is-active { border-color: var(--deal); }
.pg__thumb--video::after { content: ""; width: 28px; height: 28px; }
.pg__thumb--video::before { z-index: 1; border-width: 6px 0 6px 10px; }
.pg__viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0c0812; }
.pg__viewer::backdrop { background: #0c0812; }
.pg__viewer img { width: 100%; height: 100%; object-fit: contain; }
.pg__viewer-close {
	position: fixed; top: 1rem; right: 1rem; width: 44px; height: 44px; border: 0; border-radius: 50%;
	display: grid; place-items: center; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer;
}

/* Price block */
.pp-price {
	display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap;
	margin-bottom: .6rem;
}
.pp-price__now .price, .pp-price__now { color: var(--deal); font-weight: 800; font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.4rem); line-height: 1; letter-spacing: -.01em; }
.pp-price__now del { display: block; margin: 0 0 .35rem; font-size: var(--t-sm); font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.pp-price__now ins { color: var(--deal); }
.pp-price__side { display: flex; align-items: center; gap: .6rem; }
.pp-off { padding: .2rem .55rem; border-radius: 6px; background: var(--deal); color: var(--white); font-size: var(--t-xs); font-weight: 700; }
.pp-sold { font-size: var(--t-sm); color: var(--ink-soft); }
.summary .product_title { font-family: var(--f-text); font-weight: 600; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.35; letter-spacing: 0; }
.pp-services { display: flex; flex-wrap: wrap; gap: .35rem .9rem; list-style: none; margin: 0 0 1rem; padding: .65rem .8rem; border-radius: var(--r-sm); background: #EEF6E8; }
.pp-services li { display: inline-flex; align-items: center; gap: .3rem; font-size: var(--t-xs); font-weight: 600; color: var(--ok); }
.pp-select { display: none; }

/* Swatches */
table.variations tr.has-swatches th { display: none; }
table.variations .sw-native { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sw { margin: .25rem 0 1rem; }
.sw__label { margin: 0 0 .5rem; font-size: var(--t-sm); color: var(--ink-soft); }
.sw__label strong { color: var(--ink); font-weight: 600; }
.sw__list { display: flex; flex-wrap: wrap; gap: .5rem; }
.sw__opt {
	display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .35rem .85rem;
	border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white); color: var(--ink);
	font: inherit; font-size: var(--t-sm); cursor: pointer; transition: border-color .12s ease, background-color .12s ease;
}
.sw--visual .sw__opt { padding: .25rem .7rem .25rem .25rem; }
.sw__opt img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.sw__dot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(42, 27, 61, .2); margin-left: .25rem; }
.sw__opt:hover:not(:disabled) { border-color: var(--ink-soft); }
.sw__opt.is-on { border-color: var(--deal); background: var(--deal-soft); color: var(--deal); font-weight: 600; }
.sw__opt.is-out { border-style: dashed; opacity: .45; cursor: not-allowed; }
.sw__opt.is-out .sw__text { text-decoration: line-through; }
.reset_variations { font-size: var(--t-xs); color: var(--ink-soft); }
.single_variation_wrap .woocommerce-variation-price { display: none; }
.woocommerce-variation-availability { font-size: var(--t-sm); margin-bottom: .5rem; }

/* Buttons */
form.cart .single_add_to_cart_button { background: var(--butter); color: var(--ink); border-color: var(--ink); }
form.cart .single_add_to_cart_button:hover { background: #FFD45A; color: var(--ink); }
form.cart .buy-now-button { flex: 1 1 200px; min-height: 52px; font-size: var(--t-md); background: var(--deal); border-color: var(--deal); color: var(--white); }
form.cart .buy-now-button:hover { background: #C41F33; border-color: #C41F33; color: var(--white); }
.pp-hint { flex: 1 0 100%; margin: 0; color: var(--deal); font-size: var(--t-sm); font-weight: 600; }

/* Sheet + bar: phones only */
.buy-bar, .sheet { display: none; }
.toast {
	position: fixed; left: 50%; bottom: 1.5rem; translate: -50% 0; z-index: 90;
	display: flex; align-items: center; gap: 1rem; max-width: calc(100vw - 2rem);
	padding: .75rem 1.1rem; border-radius: var(--r-pill); background: var(--ink); color: var(--white);
	font-size: var(--t-sm); font-weight: 600; box-shadow: 0 10px 30px rgba(42, 27, 61, .3);
}
.toast[hidden] { display: none; }
.toast a { color: var(--butter); white-space: nowrap; }
.toast.is-error { background: var(--err); }

@media (max-width: 860px) {
	.single-product .shop-main { padding-top: 0; }
	.single-product .breadcrumb { display: none; }
	.single-product div.product .pg { margin-inline: calc(var(--gut) * -1); }
	.pg__track { border-radius: 0; }
	.pg__thumbs, .pg__nav { display: none; }
	.single-product div.product { gap: 1rem; }
	.single-product div.product > .woocommerce-tabs { grid-column: 1; }

	.pp-select {
		display: flex; align-items: center; gap: .75rem; width: 100%; margin: 0 0 1rem; padding: .85rem 0;
		border: 0; border-block: 1px solid var(--line); background: none; text-align: left; cursor: pointer; font: inherit;
	}
	.pp-select__label { color: var(--ink-soft); font-size: var(--t-sm); flex: 0 0 auto; }
	.pp-select__value { flex: 1; font-weight: 600; font-size: var(--t-sm); }

	.has-buy-bar { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
	.has-buy-bar .site-footer { padding-bottom: 0; }
	.buy-bar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
		display: flex; align-items: center; gap: .4rem;
		padding: .5rem .6rem calc(.5rem + env(safe-area-inset-bottom));
		background: var(--white); border-top: 1px solid var(--line);
	}
	.buy-bar__icon {
		flex: 0 0 48px; display: flex; flex-direction: column; align-items: center; gap: 1px;
		font-size: 11px; font-weight: 600; text-decoration: none; color: var(--ink);
	}
	.buy-bar__icon .icon { width: 22px; height: 22px; }
	.buy-bar__cart, .buy-bar__buy {
		flex: 1; min-height: 46px; border: 0; font: inherit; font-weight: 700; font-size: var(--t-sm); cursor: pointer;
	}
	.buy-bar__cart { background: var(--butter); color: var(--ink); border-radius: var(--r-pill) 0 0 var(--r-pill); }
	.buy-bar__buy { background: var(--deal); color: var(--white); border-radius: 0 var(--r-pill) var(--r-pill) 0; }
	.buy-bar__out { flex: 1; text-align: center; padding: .8rem; border-radius: var(--r-pill); background: var(--paper-deep); color: var(--ink-soft); font-weight: 700; }
	.toast { bottom: calc(80px + env(safe-area-inset-bottom)); }

	.sheet { display: block; position: fixed; inset: 0; z-index: 85; }
	.sheet[hidden] { display: none; }
	.sheet__scrim { position: absolute; inset: 0; background: rgba(20, 12, 30, .45); opacity: 0; transition: opacity .2s ease; }
	.sheet__panel {
		position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; display: flex; flex-direction: column;
		background: var(--white); border-radius: 18px 18px 0 0; translate: 0 100%; transition: translate .22s ease;
	}
	.sheet.is-open .sheet__scrim { opacity: 1; }
	.sheet.is-open .sheet__panel { translate: 0 0; }
	.sheet__head { display: flex; gap: .85rem; align-items: flex-end; padding: 1rem 1rem .75rem; border-bottom: 1px solid var(--line); }
	.sheet__img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; margin-top: -2rem; border: 3px solid var(--white); background: var(--paper-deep); box-shadow: 0 4px 14px rgba(42, 27, 61, .15); }
	.sheet__info { flex: 1; min-width: 0; }
	.sheet__price, .sheet__price .price { color: var(--deal); font-weight: 800; font-size: 1.5rem; line-height: 1.1; }
	.sheet__price del { font-size: var(--t-xs); font-weight: 500; color: var(--ink-soft); }
	.sheet__price ins { color: var(--deal); }
	.sheet__chosen { margin: .25rem 0 0; font-size: var(--t-xs); color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.sheet__close { align-self: flex-start; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--paper); display: grid; place-items: center; cursor: pointer; }
	.sheet__body { overflow-y: auto; padding: 1rem 1rem 0; overscroll-behavior: contain; }
	.sheet__body form.cart { margin: 0; }
	.sheet__body .variations_form .woocommerce-variation-add-to-cart,
	.sheet__body form.cart:not(.variations_form) {
		position: sticky; bottom: 0; background: var(--white);
		padding: .75rem 0 calc(.75rem + env(safe-area-inset-bottom)); margin-top: .5rem;
		display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
	}
	.sheet__body .quantity { flex: 0 0 auto; }
	.sheet__body .single_add_to_cart_button, .sheet__body .buy-now-button { flex: 1 1 140px; min-height: 48px; }
	.sheet[data-mode="cart"] .buy-now-button,
	.sheet[data-mode="buy"] .single_add_to_cart_button { display: none; }
	.sheet__body .reset_variations { display: none !important; }
	.sheet-open, .sheet-open body { overflow: hidden; }
}
@media (min-width: 861px) { .single-product div.product .summary { grid-row: 1 / span 2; } }

/* Options shown on the page on phones; the bottom bar does the buying. */
@media (max-width: 860px) {
	.has-buy-bar form.cart .single_add_to_cart_button,
	.has-buy-bar form.cart .buy-now-button { display: none; }
	.has-buy-bar form.cart .quantity { margin-bottom: .25rem; }
	.has-buy-bar form.variations_form .woocommerce-variation-add-to-cart { align-items: center; }
}
table.variations.is-flash { animation: yn-flash 1s ease; border-radius: var(--r-sm); }
@keyframes yn-flash { 0%, 60% { box-shadow: 0 0 0 4px var(--deal-soft), 0 0 0 6px var(--deal); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { table.variations.is-flash { animation: none; outline: 2px solid var(--deal); } }

/* Options block: full width, wraps cleanly on small phones */
.summary form.cart { margin: .75rem 0 1rem; }
table.variations, table.variations tbody, table.variations tr, table.variations td { display: block; width: 100%; }
table.variations td.value { padding: 0; }
.reset_variations, .woocommerce-variation-description:empty { display: none !important; }
.sw { margin: 0 0 .9rem; }
.sw__opt { max-width: 100%; text-align: left; line-height: 1.25; }
.sw__text { overflow-wrap: anywhere; }
.woocommerce-variation.single_variation:empty { display: none; }
.single_variation .stock { margin: 0 0 .5rem; }
.pp-services { margin-top: .25rem; }
@media (max-width: 400px) {
	.sw__list { gap: .4rem; }
	.sw__opt { min-height: 38px; padding: .3rem .65rem; font-size: .875rem; }
	.sw--visual .sw__opt { padding: .2rem .55rem .2rem .2rem; }
	.sw__opt img { width: 34px; height: 34px; }
	.pp-services { gap: .3rem .7rem; padding: .55rem .65rem; }
	.pp-price__now .price, .pp-price__now { font-size: 1.75rem; }
}

/* Price row with the colour photo (phones) */
.pp-price__main { flex: 1; min-width: 0; }
.pp-thumb { display: none; }
.pp-chosen { margin: .35rem 0 0; font-size: var(--t-sm); color: var(--ink-soft); }
.pp-chosen.is-done { color: var(--ink); font-weight: 600; }
.pp-chosen.is-done::before { content: "✓ "; color: var(--ok); }
@media (max-width: 860px) {
	.pp-price--variable { align-items: center; flex-wrap: nowrap; }
	.pp-thumb {
		display: block; flex: 0 0 64px; width: 64px; height: 64px; object-fit: cover;
		border-radius: 12px; background: var(--white); border: 1px solid var(--line);
	}
	.pp-price--variable .pp-price__side { flex-direction: column; align-items: flex-end; gap: .3rem; }
	.pp-chosen { font-size: var(--t-xs); }
}
.is-swap { animation: yn-swap .25s ease; }
@keyframes yn-swap { from { opacity: .3; transform: scale(.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .is-swap { animation: none; } }

/* Buttons inside the sheet are visible again (hidden on the page on phones) */
@media (max-width: 860px) {
	.has-buy-bar .sheet__body form.cart .single_add_to_cart_button,
	.has-buy-bar .sheet__body form.cart .buy-now-button { display: inline-flex; }
	.has-buy-bar .sheet[data-mode="cart"] .sheet__body form.cart .buy-now-button,
	.has-buy-bar .sheet[data-mode="buy"] .sheet__body form.cart .single_add_to_cart_button { display: none; }
	.sheet__chosen { color: var(--ink-soft); }
	.sheet__chosen.is-done { color: var(--ink); font-weight: 600; }
}

/* ==========================================================================
   Product page, PC: everything from price to Buy now fits on one screen,
   same order as on phones (photo + price, title, options, quantity, buttons).
   ========================================================================== */
@media (min-width: 861px) {
	.single-product .shop-main { padding-top: .75rem; }
	.single-product .breadcrumb { margin-bottom: .6rem; }
	.single-product div.product {
		grid-template-columns: auto minmax(340px, 1fr);
		gap: clamp(1.5rem, 1rem + 2vw, 3rem);
	}
	/* Gallery never taller than the screen */
	.single-product div.product .pg { width: min(560px, calc(100vh - 230px), 46vw); min-width: 340px; }
	.single-product div.product .summary { top: calc(var(--header-h) + .75rem); }

	.pp-price--variable { align-items: center; flex-wrap: nowrap; }
	.pp-thumb {
		display: block; flex: 0 0 56px; width: 56px; height: 56px; object-fit: cover;
		border-radius: 10px; background: var(--white); border: 1px solid var(--line);
	}
	.pp-price { margin-bottom: .35rem; gap: .75rem; }
	.pp-price__now .price, .pp-price__now { font-size: 2rem; }
	.pp-chosen { margin-top: .2rem; font-size: var(--t-xs); }
	.summary .product_title { font-size: 1.3rem; margin-bottom: .5rem; }
	.summary form.cart { margin: .5rem 0 .9rem; }
	.sw { margin-bottom: .65rem; }
	.sw__label { margin-bottom: .35rem; }
	.single_variation .stock { margin: 0 0 .4rem; font-size: var(--t-xs); }

	/* Quantity, Add to cart and Buy now in one row */
	form.cart:not(.variations_form),
	form.variations_form .woocommerce-variation-add-to-cart { display: flex; flex-wrap: nowrap; gap: .6rem; align-items: stretch; }
	form.cart .single_add_to_cart_button,
	form.cart .buy-now-button { flex: 1 1 0; min-height: 48px; font-size: var(--t-sm); }
	form.cart .quantity input.qty { min-height: 44px; }
	.pp-hint { flex-basis: 100%; }
	form.variations_form .woocommerce-variation-add-to-cart { flex-wrap: wrap; }
	form.variations_form .woocommerce-variation-add-to-cart .pp-hint:empty,
	form.variations_form .woocommerce-variation-add-to-cart .pp-hint[hidden] { display: none; }

	.pp-services { margin: 0 0 .75rem; padding: .5rem .7rem; }
	.buy-notes { margin: .75rem 0; padding: .75rem .9rem; }
}
@media (min-width: 861px) and (max-height: 720px) {
	.pp-price__now .price, .pp-price__now { font-size: 1.7rem; }
	.sw__opt { min-height: 36px; padding: .25rem .7rem; }
	.sw--visual .sw__opt { padding: .2rem .6rem .2rem .2rem; }
	.sw__opt img { width: 32px; height: 32px; }
}

/* ==========================================================================
   Home page: shortcuts row + tighter, responsive sections
   ========================================================================== */
.home-shortcuts { padding-block: clamp(1rem, .5rem + 1.5vw, 2rem); }
.hs-grid {
	list-style: none; margin: 0; padding: clamp(.9rem, .5rem + 1vw, 1.4rem);
	display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 1rem .5rem;
	background: var(--white); border-radius: var(--r-lg);
}
.hs-grid a { display: flex; flex-direction: column; align-items: center; gap: .45rem; text-decoration: none; color: var(--ink); }
.hs-grid a:hover { color: var(--deal); }
.hs-ico {
	display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px;
	background: var(--c, var(--ink)); color: var(--c, var(--ink));
	transition: transform .15s ease;
}
.hs-grid a:hover .hs-ico { transform: translateY(-2px); }
.hs-ico svg { width: 30px; height: 30px; }
.hs-ico--img { background: var(--paper-deep); overflow: hidden; }
.hs-ico--img img { width: 100%; height: 100%; object-fit: cover; }
.hs-label { font-size: var(--t-xs); font-weight: 600; line-height: 1.25; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.home-more { margin: 1.75rem 0 0; text-align: center; }

@media (max-width: 1000px) {
	.hs-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.home .section { padding-block: 1.75rem; }
	.hero { padding-top: .75rem; }
	.hero__inner { gap: 1rem; }
	.hero__photo { width: min(52vw, 220px); }
	.band { padding: 1.5rem 1.25rem; border-radius: 22px; }
	.band::before { inset: 7px; border-radius: 16px; }
	.band__title { font-size: clamp(1.9rem, 1.2rem + 4vw, 2.4rem); max-width: none; }
	.band__text { font-size: var(--t-sm); }
	.band__actions { margin-top: 1rem; }
	.band__actions .btn { width: 100%; }
	.swatches { margin-top: 1.1rem; gap: .4rem; }
	.swatches li { width: 22px; height: 22px; }
	.hs-grid { gap: .85rem .25rem; padding: .9rem .5rem; border-radius: var(--r-md); }
	.hs-ico { width: 46px; height: 46px; border-radius: 15px; }
	.hs-ico svg { width: 26px; height: 26px; }
	.hs-label { font-size: .72rem; }
	.section__head { margin-bottom: 1rem; }
	.home-more .btn { width: 100%; }
}
/* Home: less empty space between sections, hero fits the first screen */
.home .section { padding-block: clamp(1.5rem, 1rem + 1.5vw, 2.75rem); }
.home .hero { padding-block: clamp(1rem, .5rem + 1.5vw, 2rem) .5rem; }
.home .band__title { font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); max-width: 16ch; }
.home .hero__photo { width: min(100%, 420px); }
.home .cat-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
@media (max-width: 800px) {
	.home .hero__photo { width: min(42vw, 170px); }
}

/* ---------- Anek Bangla: tune headings; keep the Yarnest wordmark in Caprasimo ---------- */
.brand { font-family: var(--f-brand); font-weight: 400; }
h1, h2, h3, .section__title, .page-title, .product_title, .band__title { letter-spacing: -.01em; }
.band__title { font-weight: 800; line-height: 1.05; }
body { line-height: 1.6; }

/* ---------- Home: banner slider ---------- */
.banners { padding-top: clamp(.75rem, .5rem + 1vw, 1.5rem); }
.banners__frame { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--paper-deep); aspect-ratio: var(--ratio, 8 / 3); }
.banners__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.banners__track::-webkit-scrollbar { display: none; }
.banners__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; display: block; }
.banners__slide picture, .banners__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.banners__dots {
	position: absolute; left: 50%; bottom: .65rem; translate: -50% 0; display: flex; gap: .35rem;
	padding: .3rem .45rem; border-radius: var(--r-pill); background: rgba(20, 12, 30, .35);
}
.banners__dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: var(--r-pill); background: rgba(255, 255, 255, .6); cursor: pointer; transition: width .2s ease; }
.banners__dots button.is-active { width: 18px; background: var(--white); }
@media (max-width: 700px) {
	.banners__frame { aspect-ratio: var(--mratio, var(--ratio, 4 / 3)); border-radius: var(--r-md); }
}

/* ---------- Home: text-only banner (no illustration) ---------- */
.hero--text .hero__inner { grid-template-columns: 1fr; }
.hero--text .band__title { max-width: 22ch; }
.hero--text .band__text { max-width: 60ch; }
@media (min-width: 801px) {
	.hero--text .band { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; align-items: end; column-gap: 2rem; }
	.hero--text .band > * { grid-column: 1; }
	.hero--text .band__actions { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; }
}

/* ---------- "How to order" button + popup ---------- */
.hto-btn {
	position: fixed; left: 1rem; bottom: 1rem; z-index: 65;
	display: inline-flex; align-items: center; gap: .45rem; height: 44px; padding: 0 1rem 0 .75rem;
	border: 0; border-radius: var(--r-pill); background: var(--ink); color: var(--white);
	font: inherit; font-weight: 700; font-size: var(--t-sm); cursor: pointer;
	box-shadow: 0 8px 24px -8px rgba(42, 27, 61, .55);
}
.hto-btn svg { color: var(--butter); }
.hto-btn:hover { background: #3E2A57; }
.has-buy-bar .hto-btn { bottom: 1rem; }
@media (max-width: 860px) {
	.has-buy-bar .hto-btn { bottom: calc(76px + env(safe-area-inset-bottom)); }
	.hto-btn { left: .75rem; height: 40px; font-size: var(--t-xs); }
}
.hto {
	width: min(92vw, 460px); max-height: 92vh; padding: 0; border: 0; border-radius: var(--r-lg);
	background: var(--white); color: var(--ink); overflow: auto;
	box-shadow: 0 30px 80px -20px rgba(20, 12, 30, .5);
}
.hto::backdrop { background: rgba(20, 12, 30, .55); }
.hto__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem .6rem 1.2rem; }
.hto__head h2 { margin: 0; font-size: var(--t-lg); font-weight: 700; }
.hto__close { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; }
.hto__media { margin: 0 1rem; border-radius: var(--r-md); overflow: hidden; background: #0c0812; }
.hto__media video, .hto__media img, .hto__media iframe { display: block; width: 100%; max-height: 70vh; border: 0; object-fit: contain; }
.hto__media iframe { aspect-ratio: 9 / 16; max-height: 70vh; }
.hto__steps { margin: .9rem 1.2rem 1.2rem; padding-left: 1.2rem; font-size: var(--t-sm); }
.hto__steps li { margin: .3rem 0; }
.hto__media:last-child { margin-bottom: 1rem; }

/* ==========================================================================
   Cart page
   ========================================================================== */
.woocommerce-cart .page-head { margin-bottom: 1rem; }
.woocommerce-cart .shop-page > .woocommerce {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
	gap: 1.5rem clamp(1.25rem, 1rem + 2vw, 2.5rem); align-items: start;
}
.woocommerce-cart .shop-page > .woocommerce > * { grid-column: 1 / -1; }
.woocommerce-cart .shop-page > .woocommerce > .woocommerce-cart-form { grid-column: 1; }
.woocommerce-cart .shop-page > .woocommerce > .cart-collaterals { grid-column: 2; grid-row: span 1; margin: 0; display: block; position: sticky; top: calc(var(--header-h) + 1rem); }

/* Items as cards */
.woocommerce-cart table.cart { display: block; background: none; border-radius: 0; }
.woocommerce-cart table.cart thead { display: none; }
.woocommerce-cart table.cart tbody { display: grid; gap: .75rem; }
.woocommerce-cart table.cart tr.cart_item {
	display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr;
	column-gap: .9rem; row-gap: .15rem; align-items: start;
	padding: .85rem; background: var(--white); border-radius: var(--r-md); border: 1px solid var(--line);
}
.woocommerce-cart table.cart tr.cart_item td {
	display: block; padding: 0; border: 0; text-align: left; background: none;
}
.woocommerce-cart table.cart tr.cart_item td::before { content: none !important; }
.woocommerce-cart table.cart td.product-thumbnail { display: block !important; grid-column: 1; grid-row: 1 / span 3; }
.woocommerce-cart table.cart td.product-thumbnail img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; background: var(--paper-deep); }
.woocommerce-cart table.cart td.product-name { grid-column: 2; grid-row: 1; font-size: var(--t-sm); line-height: 1.35; }
.woocommerce-cart table.cart td.product-name a { font-weight: 600; color: var(--ink); text-decoration: none; }
.woocommerce-cart table.cart td.product-name dl.variation { margin: .25rem 0 0; display: flex; flex-wrap: wrap; gap: 0 .6rem; font-size: var(--t-xs); color: var(--ink-soft); }
.woocommerce-cart table.cart td.product-name dl.variation dt, .woocommerce-cart table.cart td.product-name dl.variation dd { margin: 0; display: inline; }
.woocommerce-cart table.cart td.product-name dl.variation dd p { display: inline; margin: 0; }
.woocommerce-cart table.cart td.product-remove { grid-column: 3; grid-row: 1; justify-self: end; }
.woocommerce-cart table.cart td.product-price { grid-column: 2; grid-row: 2; font-size: var(--t-xs); color: var(--ink-soft); }
.woocommerce-cart table.cart td.product-quantity { grid-column: 2; grid-row: 3; align-self: end; margin-top: .45rem; }
.woocommerce-cart table.cart td.product-subtotal { grid-column: 3; grid-row: 3; align-self: end; justify-self: end; font-weight: 800; color: var(--deal); font-size: var(--t-md); }
.woocommerce-cart table.cart .quantity { border-width: 1.5px; }
.woocommerce-cart table.cart .quantity input.qty { min-height: 36px; width: 2.6rem; font-size: 15px; }
.woocommerce-cart table.cart .qty-btn { width: 34px; }
.woocommerce-cart table.cart a.remove {
	width: 30px; height: 30px; font-size: 1.25rem; background: var(--paper); color: var(--ink-soft) !important;
}
.woocommerce-cart table.cart a.remove:hover { background: var(--deal); color: var(--white) !important; }

/* Coupon + update row */
.woocommerce-cart table.cart tr:not(.cart_item) { display: block; }
.woocommerce-cart table.cart td.actions {
	display: flex !important; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between;
	padding: .75rem .85rem; background: var(--white); border: 1px dashed var(--line); border-radius: var(--r-md); text-align: left;
}
.woocommerce-cart table.cart td.actions .coupon { display: flex; flex: 1 1 260px; gap: .5rem; float: none; margin: 0; }
.woocommerce-cart table.cart td.actions .coupon input { flex: 1; width: auto; min-height: 42px; }
.woocommerce-cart table.cart td.actions .coupon .button { min-height: 42px; padding: .4rem 1rem; }
.woocommerce-cart table.cart td.actions > .button { min-height: 42px; padding: .4rem 1rem; width: auto; }
.cart-auto .woocommerce-cart-form [name="update_cart"] { display: none; }
.woocommerce-cart-form.processing, .cart_totals.processing { opacity: .55; pointer-events: none; }

/* Summary card */
.woocommerce-cart .cart_totals { width: auto; float: none; padding: 1.1rem 1.1rem 1.2rem; background: var(--white); border-radius: var(--r-md); border: 1px solid var(--line); }
.woocommerce-cart .cart_totals h2 { margin: 0 0 .6rem; font-size: var(--t-lg); font-weight: 700; }
.woocommerce-cart .cart_totals table.shop_table { background: none; border-radius: 0; }
.woocommerce-cart .cart_totals table.shop_table tr { display: table-row; }
.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td { display: table-cell; padding: .65rem 0; text-align: left; font-size: var(--t-sm); border-bottom: 1px solid var(--line); }
.woocommerce-cart .cart_totals table.shop_table td { text-align: right; }
.woocommerce-cart .cart_totals table.shop_table td::before { content: none !important; }
.woocommerce-cart .cart_totals th { font-weight: 500; color: var(--ink-soft); width: 40%; }
.woocommerce-cart .cart_totals .order-total th, .woocommerce-cart .cart_totals .order-total td { border-bottom: 0; padding-top: .9rem; font-size: var(--t-md); color: var(--ink); }
.woocommerce-cart .cart_totals .order-total td strong { color: var(--deal); font-size: 1.35rem; font-weight: 800; }
.woocommerce-cart .cart_totals #shipping_method { text-align: right; }
.woocommerce-cart .cart_totals #shipping_method li { display: flex; justify-content: flex-end; align-items: center; gap: .35rem; }
.woocommerce-cart .cart_totals #shipping_method label { display: inline; margin: 0; font-weight: 500; }
.woocommerce-cart .woocommerce-shipping-destination, .woocommerce-cart .shipping-calculator-button { font-size: var(--t-xs); }
.woocommerce-cart .wc-proceed-to-checkout { margin-top: .9rem; padding: 0; }
.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
	display: flex; width: 100%; min-height: 54px; margin: 0; border: 0;
	background: var(--deal); color: var(--white); font-size: var(--t-md); font-weight: 800;
}
.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover { background: #C41F33; color: var(--white); }
.cart-promises { list-style: none; margin: .85rem 0 0; padding: 0; display: grid; gap: .3rem; }
.cart-promises li { display: flex; align-items: center; gap: .4rem; font-size: var(--t-xs); font-weight: 600; color: var(--ok); }
.cart-bar { display: none; }

/* Suggestions under the cart */
.woocommerce-cart .cross-sells { margin-top: .5rem; }
.woocommerce-cart .cross-sells > h2 { font-size: var(--t-xl); font-weight: 700; }

/* Empty cart */
.woocommerce-cart .cart-empty.woocommerce-info {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
	padding: 3rem 1rem 1rem; border: 0; background: none; text-align: center; font-size: var(--t-lg); font-weight: 600;
}
.woocommerce-cart .cart-empty.woocommerce-info::before {
	content: ""; width: 72px; height: 72px; margin-bottom: .75rem; border-radius: 50%;
	background: var(--paper-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E5270' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.2 10.2a1.5 1.5 0 0 0 1.5 1.2h8.6a1.5 1.5 0 0 0 1.5-1.1L21 8H6.2'/%3E%3Ccircle cx='9.5' cy='19.5' r='1.3'/%3E%3Ccircle cx='17' cy='19.5' r='1.3'/%3E%3C/svg%3E") center / 36px no-repeat;
}
.woocommerce-cart .return-to-shop { text-align: center; margin: 0 0 2rem; }
.woocommerce-cart .return-to-shop .button { background: var(--ink); color: var(--white); }

@media (max-width: 900px) {
	.woocommerce-cart .shop-page > .woocommerce { grid-template-columns: 1fr; }
	.woocommerce-cart .shop-page > .woocommerce > .woocommerce-cart-form,
	.woocommerce-cart .shop-page > .woocommerce > .cart-collaterals { grid-column: 1; position: static; }
}
@media (max-width: 680px) {
	.woocommerce-cart table.cart tr.cart_item { grid-template-columns: 72px minmax(0, 1fr) auto; padding: .7rem; column-gap: .7rem; }
	.woocommerce-cart table.cart td.product-thumbnail img { width: 72px; height: 72px; }
	.woocommerce-cart .wc-proceed-to-checkout { margin-top: 0; }
	.woocommerce-cart .wc-proceed-to-checkout .checkout-button { display: none; }
	.has-cart-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
	.cart-bar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
		display: flex; align-items: center; gap: .75rem;
		padding: .6rem .85rem calc(.6rem + env(safe-area-inset-bottom));
		background: var(--white); border-top: 1px solid var(--line);
	}
	.cart-bar__total { flex: 1; display: flex; flex-direction: column; line-height: 1.15; }
	.cart-bar__total span { font-size: var(--t-xs); color: var(--ink-soft); }
	.cart-bar__total strong, .cart-bar__total strong .amount { color: var(--deal); font-size: 1.3rem; font-weight: 800; }
	.cart-bar__total small { display: none; }
	.cart-bar__go {
		flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.6rem;
		border-radius: var(--r-pill); background: var(--deal); color: var(--white); font-weight: 800; text-decoration: none;
	}
	.cart-bar__go:hover { color: var(--white); }
}
.woocommerce-cart table.cart td.actions .coupon .button { white-space: nowrap; }
.woocommerce-cart table.cart td.product-name dl.variation dd { margin-right: .2rem; }
.woocommerce-cart table.cart td.product-name dl.variation dt { margin-right: .15rem; }

/* ==========================================================================
   Shop and category pages
   ========================================================================== */
.post-type-archive-product .shop-main, .tax-product_cat .shop-main, .tax-product_tag .shop-main { padding-top: clamp(1rem, .5rem + 1.5vw, 2rem); }
.woocommerce-products-header { margin-bottom: .75rem; }
.woocommerce-products-header__title { margin-bottom: .25rem; }
.term-description { font-size: var(--t-sm); margin-bottom: .5rem; }
.term-description p:last-child { margin-bottom: 0; }

.shop-nav { display: grid; gap: .6rem; margin-bottom: 1rem; min-width: 0; }

/* Category buttons with photos */
.shop-nav .cat-chips { margin: 0; padding: .1rem 0 .3rem; gap: .5rem; }
.shop-nav .cat-chips a {
	display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .95rem .3rem .3rem;
	border: 1.5px solid var(--line); background: var(--white); font-weight: 600; white-space: nowrap;
}
.shop-nav .cat-chips a:hover { border-color: var(--ink); background: var(--white); }
.shop-nav .cat-chips a.is-active { border-color: var(--ink); background: var(--ink); color: var(--white); }
.cat-chips__img {
	display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px;
	border-radius: 50%; object-fit: cover; background: var(--paper-deep);
	font-weight: 700; font-size: .85rem; color: var(--ink);
}
.cat-chips__img--all {
	background: var(--butter) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232A1B3D'%3E%3Crect x='5' y='5' width='6' height='6' rx='1.5'/%3E%3Crect x='13' y='5' width='6' height='6' rx='1.5'/%3E%3Crect x='5' y='13' width='6' height='6' rx='1.5'/%3E%3Crect x='13' y='13' width='6' height='6' rx='1.5'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.is-active .cat-chips__img--letter { background: rgba(255, 255, 255, .15); color: var(--white); }

/* Sub-categories */
.sub-chips { display: flex; gap: 1.1rem; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.sub-chips::-webkit-scrollbar { display: none; }
.sub-chips a { position: relative; flex: 0 0 auto; padding: .4rem 0 .55rem; font-size: var(--t-sm); font-weight: 600; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.sub-chips a.is-active { color: var(--ink); }
.sub-chips a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px; background: var(--deal); }

/* Quick filters */
.quick-filters { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .1rem; }
.quick-filters::-webkit-scrollbar { display: none; }
.qf {
	flex: 0 0 auto; display: inline-flex; align-items: center; gap: .35rem; height: 34px; padding: 0 .8rem;
	border-radius: var(--r-pill); background: var(--paper-deep); color: var(--ink);
	font-size: var(--t-xs); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.qf:hover { background: #E2DBEE; color: var(--ink); }
.qf--sale { color: var(--deal); background: var(--deal-soft); }
.qf.is-active { background: var(--deal); color: var(--white); }
.qf__x { font-size: 1rem; line-height: 1; }

.shop-filters { margin: 0; }

/* Toolbar: count + sort */
.shop-bar {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	margin: 0 0 1rem; padding: .55rem .55rem .55rem 1rem; border-radius: var(--r-md);
	background: var(--white); border: 1px solid var(--line);
}
.shop-count { margin: 0; font-size: var(--t-sm); font-weight: 600; color: var(--ink-soft); }
.shop-bar .woocommerce-result-count { display: none; }
.shop-bar .woocommerce-ordering { float: none; margin: 0; }
.shop-bar .woocommerce-ordering select {
	min-height: 38px; height: 38px; width: auto; padding: 0 2.2rem 0 .9rem; border: 1.5px solid var(--line); border-radius: var(--r-pill);
	font-size: var(--t-sm); font-weight: 600; background-color: var(--paper);
	-webkit-appearance: none; appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%232A1B3D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right .75rem center; background-size: 14px;
}
.post-type-archive-product ul.products, .tax-product_cat ul.products, .tax-product_tag ul.products { clear: none; }

/* Pagination */
.woocommerce-pagination { margin-top: 2rem; }
.woocommerce-pagination ul { flex-wrap: wrap; justify-content: center; }
.woocommerce-pagination a:hover { border-color: var(--ink); color: var(--ink); }

/* Empty results */
.shop-empty { max-width: 460px; margin: 1.5rem auto 2rem; padding: 2rem 1.25rem; text-align: center; background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--line); }
.shop-empty__title { margin: 0 0 .35rem; font-size: var(--t-lg); font-weight: 700; color: var(--ink); }
.shop-empty p { color: var(--ink-soft); font-size: var(--t-sm); }

@media (max-width: 680px) {
	.woocommerce-products-header__title { font-size: 1.6rem; }
	.shop-nav { margin-inline: calc(var(--gut) * -1); }
	.shop-nav > *, .shop-nav .cat-chips, .shop-nav .quick-filters, .shop-nav .sub-chips { padding-inline: var(--gut); }
	.shop-nav .sub-chips { margin-inline: var(--gut); padding-inline: 0; }
	.shop-nav .cat-chips { scroll-padding-inline: var(--gut); }
	.shop-nav .cat-chips a { padding: .25rem .8rem .25rem .25rem; font-size: var(--t-xs); }
	.cat-chips__img { width: 28px; height: 28px; flex-basis: 28px; }
	.shop-bar { padding: .45rem .45rem .45rem .8rem; margin-bottom: .75rem; }
	.shop-count { font-size: var(--t-xs); }
	.shop-bar .woocommerce-ordering select { font-size: var(--t-xs); height: 36px; min-height: 36px; max-width: 58vw; }
}

/* ==========================================================================
   Wholesale (box on product page, request popup, [yarnest_wholesale] page)
   ========================================================================== */
.ws-box {
	display: flex; align-items: center; justify-content: space-between; gap: .75rem 1rem; flex-wrap: wrap;
	margin: 0 0 1rem; padding: .75rem .9rem; border-radius: var(--r-md);
	background: #F3EEFF; border: 1.5px dashed #B9A6E8;
}
.ws-box__text { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .45rem; min-width: 0; font-size: var(--t-sm); }
.ws-box__tag { padding: .1rem .5rem; border-radius: 6px; background: var(--ink); color: var(--white); font-size: var(--t-xs); font-weight: 700; }
.ws-box__text strong { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.ws-box__text small { flex-basis: 100%; color: var(--ink-soft); font-size: var(--t-xs); }
.ws-box__btn {
	flex: 0 0 auto; min-height: 40px; padding: 0 1rem; border: 1.5px solid var(--ink); border-radius: var(--r-pill);
	background: var(--white); color: var(--ink); font: inherit; font-weight: 700; font-size: var(--t-sm); cursor: pointer;
}
.ws-box__btn:hover { background: var(--ink); color: var(--white); }
@media (max-width: 480px) { .ws-box__btn { width: 100%; } }

.ws-dialog {
	width: min(94vw, 520px); max-height: 92vh; padding: 0 0 1rem; border: 0; border-radius: var(--r-lg);
	background: var(--white); color: var(--ink); overflow: auto; box-shadow: 0 30px 80px -20px rgba(20, 12, 30, .5);
}
.ws-dialog::backdrop { background: rgba(20, 12, 30, .55); }
.ws-dialog__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: .9rem 1rem .5rem 1.2rem; background: var(--white); }
.ws-dialog__head h2 { margin: 0; font-size: var(--t-lg); font-weight: 700; }
.ws-dialog__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink); }
.ws-dialog .ws-form, .ws-dialog .ws-done { padding: 0 1.2rem; }

.ws-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ws-form__product { margin: 0 0 .75rem; padding: .5rem .75rem; border-radius: var(--r-sm); background: var(--paper); font-size: var(--t-sm); font-weight: 600; }
.ws-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .75rem; }
.ws-form__grid p { margin: 0 0 .75rem; }
.ws-form__grid .ws-form__wide { grid-column: 1 / -1; }
.ws-form label { font-size: var(--t-xs); margin-bottom: .25rem; }
.ws-form input, .ws-form textarea { min-height: 44px; }
.ws-form textarea { min-height: 84px; }
.ws-form__error { margin: 0 0 .75rem; padding: .55rem .75rem; border-radius: var(--r-sm); background: var(--deal-soft); color: var(--err); font-size: var(--t-sm); font-weight: 600; }
.ws-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.ws-form__send {
	min-height: 48px; padding: 0 1.6rem; border: 0; border-radius: var(--r-pill);
	background: var(--deal); color: var(--white); font: inherit; font-weight: 800; cursor: pointer;
}
.ws-form__send:hover { background: #C41F33; }
.ws-form__send:disabled { opacity: .6; cursor: wait; }
.ws-form__wa { font-size: var(--t-sm); font-weight: 600; }
.ws-done { padding: 1rem 0; text-align: center; }
.ws-done__title { margin: 0 0 .25rem; font-size: var(--t-lg); font-weight: 800; color: var(--ok); }
.ws-page { max-width: 640px; padding: 1.25rem; background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--line); }
@media (max-width: 520px) {
	.ws-form__grid { grid-template-columns: 1fr; }
	.ws-form__send { width: 100%; }
}

/* ---------- Minimum order ---------- */
.moq-note {
	display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 .6rem; padding: .3rem .7rem;
	border-radius: var(--r-pill); background: #FFF4D6; color: #6B4E00; font-size: var(--t-xs); font-weight: 700;
}
.moq-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #E5A400; }
.moq-note--pass { background: #E6F4EA; color: var(--ok); }
.moq-note--pass::before { background: var(--ok); }
ul.products li.product .card-moq { display: block; margin: -.15rem .7rem .35rem; font-size: .72rem; font-weight: 700; color: #8A6400; }
@media (max-width: 680px) { ul.products li.product .card-moq { margin-inline: .55rem; } }

/* ---------- Wholesale: after sending ---------- */
.ws-done__title span { color: var(--ink-soft); font-weight: 600; font-size: var(--t-sm); }
.ws-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .75rem; }
.ws-done__wa, .ws-done__view {
	display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 1.25rem;
	border-radius: var(--r-pill); font-weight: 700; text-decoration: none;
}
.ws-done__wa { background: #25D366; color: #073B1D; }
.ws-done__wa:hover { color: #073B1D; filter: brightness(.95); }
.ws-done__view { border: 1.5px solid var(--ink); color: var(--ink); }
.ws-done__wa[hidden], .ws-done__view[hidden] { display: none; }

/* ---------- Card buy button ---------- */
ul.products li.product .woocommerce-LoopProduct-link { height: auto; flex: 1; }
.card-buy { display: flex; flex-direction: column; gap: .3rem; padding: 0 .7rem .75rem; }
.card-btn {
	display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 .75rem;
	border-radius: 999px; border: 1.5px solid var(--ink); background: var(--white); color: var(--ink);
	font-size: var(--t-sm); font-weight: 700; line-height: 1; text-decoration: none; text-align: center;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.card-btn:hover, .card-btn:focus-visible { background: var(--ink); color: var(--white); }
.card-btn:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 2px; }
.card-btn.loading { opacity: .6; pointer-events: none; }
.card-btn.is-added { background: var(--ok); border-color: var(--ok); color: var(--white); }
.card-btn.is-off { border-color: var(--line); color: var(--ink-soft); background: var(--paper); cursor: default; }
.card-btn--choose { border-color: var(--line); }
.card-buy .added_to_cart { margin: 0; text-align: center; font-size: var(--t-xs); color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.card-meta { margin-bottom: .55rem; }
@media (max-width: 680px) {
	.card-buy { padding: 0 .55rem .6rem; }
	.card-btn { min-height: 38px; font-size: .875rem; padding: 0 .5rem; }
	.card-meta { margin-bottom: .45rem; }
}
