/* =====================================================================
   Friends World Shop — POS প্লাগিনের ডিজাইন টোকেন অনুযায়ী
   লেআউট: পুরো স্ক্রিন জুড়ে হেডার, বাম পাশে স্থির ক্যাটাগরি সাইডবার, ডানে মূল অংশ
   ===================================================================== */
:root {
	--fw-primary: #ed6332;
	--fw-primary-600: #d95327;
	--fw-primary-soft: #f4cebd;
	--fw-primary-tint: #fdf1ec;
	--fw-bg: #f8f6f4;
	--fw-surface: #ffffff;
	--fw-line: #e8ddd8;
	--fw-text: #2b211d;
	--fw-muted: #7a6b65;
	--fw-success: #16a34a;
	--fw-success-soft: #ecfdf3;
	--fw-danger: #dc2626;
	--fw-danger-soft: #fef2f2;
	--fw-dark: #2d1d17;
	--fw-dark-2: #4a2c22;
	--fw-radius: 12px;
	--fw-radius-sm: 8px;
	--fw-shadow: 0 1px 3px rgba(43, 33, 29, .08), 0 4px 16px rgba(43, 33, 29, .06);
	--fw-shadow-lg: 0 10px 40px rgba(43, 33, 29, .18);
	--fw-font: "Noto Sans Bengali", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
	--fw-gutter: 16px;
	--fw-header-h: 112px;   /* মোবাইলে দুই সারি */
	--fw-sidebar-w: 272px;
	--fw-bottomnav-h: 62px;
	--fw-ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--fw-font);
	font-size: 15px;
	line-height: 1.6;
	color: var(--fw-text);
	background: var(--fw-bg);
	-webkit-font-smoothing: antialiased;
	padding-bottom: var(--fw-bottomnav-h);
}
body.fw-lock { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
/* WordPress global-styles এর underline বাতিল (তাদের নিয়ম পরে লোড হয়) */
body a:where(:not(.wp-element-button)) { text-decoration: none; }
body .fw-prose a, body .fw-filterbar__reset, body .fw-linkbtn { text-decoration: underline; }
a:hover { color: var(--fw-primary); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
:focus-visible { outline: 2px solid var(--fw-primary); outline-offset: 2px; }
[hidden] { display: none !important; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.fw-skip:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 999; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* পুরো স্ক্রিন চওড়া র‍্যাপার */
.fw-wrap { width: 100%; padding-left: var(--fw-gutter); padding-right: var(--fw-gutter); }
.fw-container { width: 100%; padding-left: var(--fw-gutter); padding-right: var(--fw-gutter); }
.fw-narrow { max-width: 900px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.fw-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 42px; padding: 0 18px; border: 1px solid var(--fw-line); border-radius: var(--fw-radius-sm);
	background: var(--fw-surface); font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, transform .1s, color .15s;
	white-space: nowrap;
}
.fw-btn:active:not(:disabled) { transform: scale(.98); }
.fw-btn:disabled { opacity: .6; cursor: not-allowed; }
.fw-btn--primary { background: var(--fw-primary); border-color: var(--fw-primary); color: #fff; }
.fw-btn--primary:hover:not(:disabled) { background: var(--fw-primary-600); border-color: var(--fw-primary-600); color: #fff; }
.fw-btn--ghost { background: transparent; }
.fw-btn--ghost:hover { border-color: var(--fw-primary); color: var(--fw-primary); }
.fw-btn--lg { min-height: 50px; font-size: 16px; padding: 0 24px; }
.fw-btn--block { width: 100%; }
.fw-linkbtn { background: none; border: 0; color: var(--fw-muted); cursor: pointer; text-decoration: underline; padding: 6px; }
.fw-linkbtn:hover { color: var(--fw-danger); }

.fw-iconbtn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-width: 42px; height: 42px; padding: 0 8px; border: 0; border-radius: 10px; background: transparent; cursor: pointer;
}
.fw-iconbtn:hover { background: var(--fw-primary-tint); color: var(--fw-primary); }
.fw-count {
	position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
	background: var(--fw-primary); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
	box-shadow: 0 0 0 2px #fff;
}

/* ---------- Topbar & header ---------- */
.fw-topbar { background: var(--fw-dark); color: #f3e4dd; font-size: 13px; }
.fw-topbar__inner { display: flex; align-items: center; justify-content: center; min-height: 32px; text-align: center; }

.fw-header { position: sticky; top: 0; z-index: 50; background: var(--fw-surface); box-shadow: 0 1px 0 var(--fw-line), 0 4px 18px rgba(43, 33, 29, .04); }
.fw-header__inner {
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "menu brand actions" "search search search";
	align-items: center; gap: 8px 10px; padding-top: 8px; padding-bottom: 10px;
}
.fw-header__menu { grid-area: menu; }
.fw-header__brand { grid-area: brand; min-width: 0; }
.fw-header__actions { grid-area: actions; display: flex; align-items: center; gap: 4px; }
.fw-header .fw-search { grid-area: search; }

.fw-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--fw-text); }
.fw-logo__img { height: 40px; width: auto; max-width: 180px; object-fit: contain; }
.fw-logo__mark {
	display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px;
	background: var(--fw-primary); color: #fff; font-size: 20px;
}
.fw-logo__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fw-search { position: relative; display: flex; align-items: center; }
.fw-search > .fw-icon { position: absolute; left: 16px; color: var(--fw-muted); pointer-events: none; }
.fw-search input {
	width: 100%; height: 46px; padding: 0 104px 0 46px; border: 1.5px solid var(--fw-line); border-radius: 99px;
	background: var(--fw-bg); outline: none; transition: border-color .15s, background .15s, box-shadow .15s;
}
.fw-search input:focus { border-color: var(--fw-primary); background: #fff; box-shadow: 0 0 0 4px var(--fw-primary-tint); }
.fw-search button {
	position: absolute; right: 4px; top: 4px; bottom: 4px; padding: 0 20px; border: 0; border-radius: 99px;
	background: var(--fw-primary); color: #fff; font-weight: 600; cursor: pointer;
}
.fw-search button:hover { background: var(--fw-primary-600); }

.fw-action { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 8px; border-radius: 10px; color: var(--fw-text); font-size: 11px; font-weight: 600; }
.fw-action:hover, .fw-action.is-current { color: var(--fw-primary); background: var(--fw-primary-tint); }
.fw-action__icon { position: relative; display: inline-flex; }
.fw-action--offer { color: var(--fw-primary-600); }

/* ---------- Shell & sidebar ---------- */
.fw-shell { display: block; }
.fw-main { min-width: 0; min-height: 60vh; padding-bottom: 32px; }
.fw-sidebar { display: none; }

.fw-sidenav { display: flex; flex-direction: column; gap: 6px; }
.fw-sidenav__quick { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fw-sidenav__quick a {
	display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-weight: 600;
}
.fw-sidenav__quick a:hover, .fw-sidenav__quick a.is-current { background: var(--fw-primary-tint); color: var(--fw-primary); }
.fw-sidenav__offer { color: var(--fw-primary-600); }
.fw-sidenav__offer em { margin-left: auto; font-style: normal; font-size: 12px; background: var(--fw-primary); color: #fff; border-radius: 99px; padding: 0 8px; line-height: 20px; }
.fw-sidenav__title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--fw-muted); margin: 14px 12px 4px; }
.fw-sidenav__help {
	display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px; border-radius: var(--fw-radius);
	background: var(--fw-primary-tint); color: var(--fw-primary-600);
}
.fw-sidenav__help span { display: flex; flex-direction: column; line-height: 1.35; }
.fw-sidenav__help small { color: var(--fw-muted); font-size: 12px; }
.fw-sidenav__help strong { color: var(--fw-text); }

/* ক্যাটাগরি ট্রি */
.fw-cattree, .fw-cattree__sub { list-style: none; margin: 0; padding: 0; }
.fw-cattree__item { position: relative; }
.fw-cattree__row { display: flex; align-items: center; border-radius: 10px; transition: background .15s; }
.fw-cattree__row:hover, .fw-cattree__row.is-current { background: var(--fw-primary-tint); }
.fw-cattree__row.is-current a { color: var(--fw-primary); font-weight: 700; }
.fw-cattree__row > a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.fw-cattree__icon { flex: none; width: 34px; height: 34px; border-radius: 9px; overflow: hidden; background: var(--fw-primary-tint); display: inline-flex; align-items: center; justify-content: center; }
.fw-cattree__icon img { width: 100%; height: 100%; object-fit: cover; }
.fw-cattree__icon .fw-catcard__initial { font-size: 15px; }
.fw-cattree__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-cattree__count { flex: none; font-size: 12px; color: var(--fw-muted); background: var(--fw-bg); border-radius: 99px; padding: 0 8px; line-height: 20px; }
.fw-cattree__toggle {
	flex: none; width: 34px; height: 34px; margin-right: 2px; border: 0; border-radius: 8px; background: transparent; color: var(--fw-muted);
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .25s var(--fw-ease), background .15s;
}
.fw-cattree__toggle:hover { background: #fff; color: var(--fw-primary); }
.fw-cattree__item.is-open > .fw-cattree__row .fw-cattree__toggle { transform: rotate(90deg); color: var(--fw-primary); }

/* সাব-ক্যাটাগরি: accordion (ডিফল্ট) */
.fw-cattree__sub {
	max-height: 0; overflow: hidden; transition: max-height .35s var(--fw-ease);
	margin-left: 26px; border-left: 2px solid var(--fw-line);
}
.fw-cattree__item.is-open > .fw-cattree__sub { max-height: 1200px; }
.fw-cattree__sub .fw-cattree__row > a { padding: 7px 10px 7px 14px; font-size: 14px; }
.fw-cattree__subhead a { display: block; padding: 7px 10px 7px 14px; font-size: 13px; color: var(--fw-primary-600); font-weight: 600; }
.fw-cattree__empty { color: var(--fw-muted); font-size: 14px; padding: 0 12px; }

/* ---------- Drawer (মোবাইল) ---------- */
.fw-drawer { position: fixed; inset: 0; z-index: 100; }
.fw-drawer__overlay { position: absolute; inset: 0; background: rgba(43, 33, 29, .45); opacity: 0; transition: opacity .25s; }
.fw-drawer__panel {
	position: absolute; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); background: var(--fw-surface);
	display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .3s var(--fw-ease); box-shadow: var(--fw-shadow-lg);
}
.fw-drawer.is-open .fw-drawer__overlay { opacity: 1; }
.fw-drawer.is-open .fw-drawer__panel { transform: none; }
.fw-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--fw-line); }
.fw-drawer__body { overflow-y: auto; padding: 12px 10px 24px; }

/* ---------- Slider ---------- */
.fw-home { padding-top: var(--fw-gutter); }
.fw-slider {
	position: relative; overflow: hidden; border-radius: 18px; background: var(--fw-dark);
	aspect-ratio: 16 / 9; box-shadow: var(--fw-shadow); isolation: isolate; touch-action: pan-y;
}
.fw-slider__track { display: flex; height: 100%; transition: transform .7s var(--fw-ease); will-change: transform; }
.fw-slider.is-dragging .fw-slider__track { transition: none; }
.fw-slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }
.fw-slide__media, .fw-slide__media img, .fw-slide__media video, .fw-slide__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fw-slide__media img, .fw-slide__media video { object-fit: cover; transform: scale(1.06); transition: transform 6s ease-out; }
.fw-slide.is-active .fw-slide__media img, .fw-slide.is-active .fw-slide__media video { transform: scale(1); }
.fw-slide__media iframe { pointer-events: none; transform: scale(1.35); }
/* পণ্যের চৌকো ছবি: পেছনে ঝাপসা রঙ, ডানে পুরো ছবি */
.fw-slide--product .fw-slide__media img.fw-slide__bg,
.fw-slide--product.is-active .fw-slide__media img.fw-slide__bg { filter: blur(40px) saturate(1.2); transform: scale(1.3); opacity: .9; }
.fw-slide--product .fw-slide__media .fw-slide__product {
	left: auto; right: 5%; top: 8%; width: auto; height: 84%; aspect-ratio: 1 / 1; object-fit: cover;
	border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); transform: translateX(24px) scale(.96); opacity: 0;
	transition: transform .8s .1s var(--fw-ease), opacity .6s .1s;
}
.fw-slide--product.is-active .fw-slide__media .fw-slide__product { transform: none; opacity: 1; }
@media (max-width: 599px) {
	.fw-slider { aspect-ratio: 4 / 3.4; }
	.fw-slide--product .fw-slide__media .fw-slide__product { right: 50%; margin-right: -24%; top: 6%; height: 48%; border-radius: 14px; }
	.fw-slide--product::after { background: linear-gradient(0deg, rgba(20, 12, 9, .85) 0%, rgba(20, 12, 9, .35) 45%, rgba(20, 12, 9, 0) 70%); }
	.fw-slide__caption { padding: 14px 16px 34px; }
	.fw-slide__title { font-size: 20px; margin-bottom: 8px; }
	.fw-slide__btn { padding: 6px 14px; font-size: 13px; }
	/* অর্ডারের ধাপ: পাশাপাশি স্ক্রল */
	.fw-steps-strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-left: calc(-1 * var(--fw-gutter)); margin-right: calc(-1 * var(--fw-gutter)); padding: 0 var(--fw-gutter); }
	.fw-steps-strip::-webkit-scrollbar { display: none; }
	.fw-steps-strip > li { scroll-snap-align: start; }
}
.fw-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 12, 9, .72) 0%, rgba(20, 12, 9, .25) 55%, rgba(20, 12, 9, 0) 100%); pointer-events: none; }
.fw-slide__caption {
	position: absolute; z-index: 2; left: 0; bottom: 0; right: 0; padding: 18px 18px 40px; color: #fff; max-width: 680px;
	opacity: 0; transform: translateY(16px); transition: opacity .6s .2s, transform .6s .2s var(--fw-ease);
}
.fw-slide.is-active .fw-slide__caption { opacity: 1; transform: none; }
.fw-slide__kicker { display: inline-block; font-size: 12px; font-weight: 600; background: var(--fw-primary); padding: 2px 10px; border-radius: 99px; margin-bottom: 8px; }
.fw-slide__title { font-size: clamp(20px, 3.4vw, 46px); line-height: 1.15; margin: 0 0 10px; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.fw-slide__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.fw-slide__price { font-size: clamp(18px, 2.4vw, 30px); }
.fw-slide__btn { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--fw-text); padding: 8px 16px; border-radius: 99px; font-weight: 700; font-size: 14px; transition: background .2s, color .2s; }
.fw-slide:hover .fw-slide__btn { background: var(--fw-primary); color: #fff; }
.fw-slide__link { position: absolute; inset: 0; z-index: 3; }
.fw-slide__link:focus-visible { outline: 3px solid #fff; outline-offset: -6px; border-radius: 18px; }

.fw-slider__arrow {
	position: absolute; z-index: 4; top: 50%; width: 46px; height: 46px; margin-top: -23px; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .9); color: var(--fw-text); cursor: pointer; display: none; align-items: center; justify-content: center;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .18); opacity: 0; transition: opacity .25s, background .2s, transform .2s;
}
.fw-slider:hover .fw-slider__arrow, .fw-slider__arrow:focus-visible { opacity: 1; }
.fw-slider__arrow:hover { background: var(--fw-primary); color: #fff; }
.fw-slider__arrow--prev { left: 16px; }
.fw-slider__arrow--next { right: 16px; }
.fw-slider__dots { position: absolute; z-index: 4; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.fw-slider__dots button { width: 28px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.fw-slider__dots span { display: block; width: 100%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .45); overflow: hidden; position: relative; }
.fw-slider__dots .is-active span::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: fw-dot var(--fw-slide-ms, 6000ms) linear forwards; }
.fw-slider.is-paused .fw-slider__dots .is-active span::after { animation-play-state: paused; }
@keyframes fw-dot { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Steps strip ---------- */
.fw-steps-strip { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.fw-steps-strip li, .fw-steps-strip__call a {
	display: flex; align-items: center; gap: 12px; background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: var(--fw-radius); padding: 10px 14px;
}
.fw-steps-strip li > span { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--fw-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.fw-steps-strip strong { display: block; font-size: 14px; line-height: 1.35; }
.fw-steps-strip small { color: var(--fw-muted); font-size: 12px; }
.fw-steps-strip__call { padding: 0 !important; border: 0 !important; background: none !important; }
.fw-steps-strip__call a { width: 100%; background: var(--fw-primary-tint); border-color: var(--fw-primary-soft); color: var(--fw-primary-600); }
.fw-steps-strip__call a:hover { background: var(--fw-primary); color: #fff; }
.fw-steps-strip__call a:hover small, .fw-steps-strip__call a:hover strong { color: #fff; }

/* ---------- Sections ---------- */
.fw-section { padding: 22px 0 4px; }
.fw-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.fw-section__head h2 { font-size: 20px; margin: 0; }
.fw-section__head a { display: inline-flex; align-items: center; gap: 4px; color: var(--fw-primary); font-weight: 600; font-size: 14px; white-space: nowrap; }

.fw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fw-chips--scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin: 0 0 14px; scrollbar-width: none; }
.fw-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--fw-line); font-size: 14px; white-space: nowrap; }
.fw-chip small { color: var(--fw-muted); }
.fw-chip:hover { border-color: var(--fw-primary); }

.fw-catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.fw-catcard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 8px; background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: var(--fw-radius); }
.fw-catcard:hover { border-color: var(--fw-primary-soft); box-shadow: var(--fw-shadow); color: var(--fw-text); }
.fw-catcard__img { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; background: var(--fw-primary-tint); display: flex; align-items: center; justify-content: center; }
.fw-catcard__img img { width: 100%; height: 100%; object-fit: cover; }
.fw-catcard__initial { font-size: 24px; font-weight: 700; color: var(--fw-primary); }
.fw-catcard__name { font-weight: 600; font-size: 14px; line-height: 1.35; }
.fw-catcard small { color: var(--fw-muted); font-size: 12px; }

/* ---------- Product grid & card ---------- */
.fw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fw-card { position: relative; display: flex; flex-direction: column; background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: var(--fw-radius); overflow: hidden; transition: box-shadow .25s, border-color .25s, transform .25s var(--fw-ease); }
.fw-card:hover { box-shadow: var(--fw-shadow); border-color: var(--fw-primary-soft); transform: translateY(-2px); }
.fw-card__media { position: relative; display: block; aspect-ratio: 1 / 1; background: #f6efeb; overflow: hidden; }
.fw-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--fw-ease); }
.fw-card:hover .fw-card__media img { transform: scale(1.05); }
.fw-card.is-out .fw-card__media img { opacity: .55; filter: grayscale(.5); }
.fw-card__badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.fw-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--fw-primary); color: #fff; }
.fw-badge--new { background: var(--fw-success); }
.fw-badge--offer { background: #c2185b; }
.fw-badge--out { background: var(--fw-text); }

.fw-like { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, .92); color: var(--fw-muted); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); transition: color .15s, transform .15s; }
.fw-like:hover { color: var(--fw-primary); }
.fw-like.is-active { color: var(--fw-danger); }
.fw-like.is-active svg { fill: currentColor; }
.fw-like:active { transform: scale(.9); }
.fw-like--inline { position: static; width: 50px; height: 50px; border: 1px solid var(--fw-line); box-shadow: none; border-radius: var(--fw-radius-sm); background: #fff; flex: none; }

.fw-card__body { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 12px; flex: 1; }
.fw-card__brand { font-size: 12px; color: var(--fw-muted); }
.fw-card__title { font-size: 14px; font-weight: 500; margin: 0; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.fw-card__price { display: flex; align-items: baseline; gap: 4px; margin-top: 2px; }
.fw-card__price strong { font-size: 17px; color: var(--fw-primary); }
.fw-card__price span { font-size: 12px; color: var(--fw-muted); }
.fw-btn--add { margin-top: auto; min-height: 38px; padding: 0 10px; font-size: 13px; background: var(--fw-primary-tint); border-color: var(--fw-primary-soft); color: var(--fw-primary-600); }
.fw-btn--add:hover:not(:disabled) { background: var(--fw-primary); border-color: var(--fw-primary); color: #fff; }
.fw-btn--add:disabled { background: var(--fw-bg); border-color: var(--fw-line); color: var(--fw-muted); opacity: 1; }
.fw-btn--add.is-in-cart, .fw-btn--primary.is-in-cart { background: var(--fw-success-soft); border-color: #a7e3bd; color: #166534; }
.fw-btn--add.is-in-cart:hover:not(:disabled), .fw-btn--primary.is-in-cart:hover:not(:disabled) { background: var(--fw-success); border-color: var(--fw-success); color: #fff; }

/* ---------- Breadcrumb & page head ---------- */
.fw-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 14px 0 6px; font-size: 13px; color: var(--fw-muted); }
.fw-breadcrumb li + li::before { content: "›"; margin-right: 4px; }
.fw-breadcrumb [aria-current] { color: var(--fw-text); max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-pagehead { padding: 10px 0 14px; }
.fw-pagehead h1 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 4px; }
.fw-pagehead p { color: var(--fw-muted); margin: 0; }
.fw-pagehead--offer { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 18px; border-radius: var(--fw-radius); background: linear-gradient(120deg, var(--fw-primary-tint), #fff); border: 1px solid var(--fw-primary-soft); }
.fw-pagehead__icon { flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--fw-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Archive head: বামে breadcrumb + নাম, ডানে সংখ্যা + ফিল্টার ---------- */
.fw-archivehead { display: flex; flex-direction: column; gap: 10px; padding: 14px 0 16px; margin-bottom: 16px; border-bottom: 1px solid var(--fw-line); }
.fw-archivehead__title { min-width: 0; }
.fw-archivehead__title .fw-breadcrumb ol { padding: 0 0 2px; }
.fw-archivehead__title h1 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; margin: 0; }
.fw-archivehead__title p { color: var(--fw-muted); margin: 4px 0 0; font-size: 14px; }

.fw-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fw-filterbar__count { color: var(--fw-muted); font-size: 14px; margin-right: auto; white-space: nowrap; }
.fw-filterbar__count strong { color: var(--fw-text); font-size: 16px; }
.fw-filterbar__toggle { min-height: 38px; padding: 0 12px; }
.fw-filterbar__fields { display: none; width: 100%; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: var(--fw-radius); }
.fw-filters-open .fw-filterbar__fields { display: flex; }
.fw-filterbar__price { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 4px 0 12px; background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: var(--fw-radius-sm); color: var(--fw-muted); }
.fw-filterbar__price input { width: 84px; height: 30px; padding: 0 8px; border: 0; border-radius: 6px; background: var(--fw-bg); outline: none; }
.fw-filterbar__price input:focus { box-shadow: 0 0 0 2px var(--fw-primary-soft); }
.fw-filterbar .fw-check { height: 38px; padding: 0 12px; background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: var(--fw-radius-sm); white-space: nowrap; }
.fw-filterbar .fw-check input { width: 16px; height: 16px; }
.fw-filterbar .fw-sort select { height: 38px; min-width: 170px; }
.fw-filterbar .fw-btn { min-height: 38px; padding: 0 16px; }
.fw-filterbar__reset { color: var(--fw-muted); text-decoration: underline; font-size: 13px; white-space: nowrap; }
.fw-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.fw-toolbar__count { color: var(--fw-muted); font-size: 14px; }
.fw-sort select { height: 38px; padding: 0 30px 0 12px; border: 1px solid var(--fw-line); border-radius: var(--fw-radius-sm); background: #fff; cursor: pointer; }
.fw-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.fw-check input { width: 18px; height: 18px; accent-color: var(--fw-primary); }

.fw-pagination { margin: 24px 0 8px; }
.fw-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.fw-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--fw-radius-sm); background: #fff; border: 1px solid var(--fw-line); }
.fw-pagination .page-numbers.current { background: var(--fw-primary); border-color: var(--fw-primary); color: #fff; font-weight: 700; }

/* ---------- Empty / success ---------- */
.fw-empty, .fw-success { text-align: center; padding: 48px 16px; max-width: 480px; margin: 0 auto; }
.fw-empty__icon, .fw-success__icon { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--fw-primary-tint); color: var(--fw-primary); }
.fw-success__icon { background: var(--fw-success-soft); color: var(--fw-success); }
.fw-empty h2, .fw-success h2 { font-size: 21px; }
.fw-empty p, .fw-success p { color: var(--fw-muted); }
.fw-empty .fw-btn, .fw-success .fw-btn { margin-top: 8px; }

/* ---------- Single product ---------- */
.fw-product { display: grid; gap: 20px; background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: var(--fw-radius); padding: 14px; }
.fw-gallery__main { position: relative; aspect-ratio: 1 / 1; background: #f6efeb; border-radius: var(--fw-radius-sm); overflow: hidden; }
.fw-gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.fw-gallery__badge { position: absolute; top: 10px; left: 10px; font-size: 13px; padding: 4px 10px; }
.fw-gallery__main [data-fw-gallery-main] { cursor: zoom-in; }
/* হোভারে ডানদিকের উপরের কোণে বড় করার আইকন */
.fw-gallery__zoom {
	position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .95); color: var(--fw-text); display: inline-flex; align-items: center; justify-content: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18); cursor: pointer; opacity: 0; transform: scale(.85);
	transition: opacity .2s, transform .2s var(--fw-ease), background .15s, color .15s;
}
.fw-gallery__main:hover .fw-gallery__zoom, .fw-gallery__zoom:focus-visible { opacity: 1; transform: none; }
.fw-gallery__zoom:hover { background: var(--fw-primary); color: #fff; }
@media (hover: none) { .fw-gallery__zoom { opacity: 1; transform: none; } }

/* ---------- Lightbox ---------- */
.fw-lightbox {
	position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; background: rgba(15, 10, 8, .94);
	opacity: 0; transition: opacity .22s;
}
.fw-lightbox.is-open { opacity: 1; }
.fw-lightbox__top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; color: #fff; }
.fw-lightbox__count { font-size: 14px; color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .1); padding: 4px 12px; border-radius: 99px; }
.fw-lightbox__close {
	width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; transition: background .15s, transform .15s;
}
.fw-lightbox__close:hover { background: var(--fw-primary); transform: rotate(90deg); }
.fw-lightbox__stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 64px 12px; }
.fw-lightbox__img {
	max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .5); opacity: 0; transform: scale(.97); transition: opacity .25s, transform .3s var(--fw-ease);
	user-select: none; -webkit-user-drag: none;
}
.fw-lightbox__img.is-in { opacity: 1; transform: none; }
.fw-lightbox__nav {
	position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -30px; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
	transition: background .15s;
}
.fw-lightbox__nav:hover { background: var(--fw-primary); }
.fw-lightbox__nav--prev { left: 10px; }
.fw-lightbox__nav--next { right: 10px; }
.fw-lightbox__thumbs { display: flex; justify-content: center; gap: 10px; padding: 12px 16px 20px; overflow-x: auto; }
.fw-lightbox__thumbs button {
	flex: none; width: 68px; height: 68px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden;
	background: none; cursor: pointer; opacity: .55; transition: opacity .15s, border-color .15s, transform .15s;
}
.fw-lightbox__thumbs button:hover { opacity: .9; }
.fw-lightbox__thumbs button.is-active { opacity: 1; border-color: var(--fw-primary); transform: translateY(-2px); }
.fw-lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 599px) {
	.fw-lightbox__stage { padding: 0 8px 8px; }
	.fw-lightbox__nav { width: 40px; height: 40px; background: rgba(0, 0, 0, .45); }
	.fw-lightbox__thumbs button { width: 56px; height: 56px; }
}
.fw-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.fw-gallery__thumbs button { flex: none; width: 68px; height: 68px; padding: 0; border: 2px solid var(--fw-line); border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; }
.fw-gallery__thumbs button.is-active { border-color: var(--fw-primary); }
.fw-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.fw-product__brand { display: inline-block; font-size: 13px; color: var(--fw-primary-600); background: var(--fw-primary-tint); padding: 2px 10px; border-radius: 99px; margin-bottom: 8px; }
.fw-product__title { font-size: clamp(20px, 2.6vw, 30px); margin-bottom: 8px; }
.fw-product__short { color: var(--fw-muted); margin: 0 0 12px; }
.fw-product__price { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 8px; }
.fw-product__price strong { font-size: 30px; color: var(--fw-primary); }
.fw-product__price span { color: var(--fw-muted); }
.fw-stock { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.fw-stock--in { background: var(--fw-success-soft); color: #166534; }
.fw-stock--out { background: var(--fw-danger-soft); color: #991b1b; }
.fw-product__buy { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.fw-product__buy .fw-btn--primary { flex: 1; min-width: 180px; }
.fw-product__buy .fw-btn:disabled { flex: 1; }
.fw-product__rule { font-size: 13px; color: var(--fw-muted); margin: 0 0 8px; }
.fw-product__help { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0; padding: 12px 14px; background: var(--fw-bg); border-radius: var(--fw-radius-sm); font-size: 14px; }
.fw-product__help a { display: inline-flex; align-items: center; gap: 6px; }
.fw-product__meta { margin: 0; font-size: 14px; }
.fw-product__meta div { display: flex; gap: 8px; padding: 4px 0; }
.fw-product__meta dt { color: var(--fw-muted); min-width: 80px; }
.fw-product__meta dd { margin: 0; }
.fw-product__meta dd a { color: var(--fw-primary-600); }

.fw-qty { display: inline-flex; align-items: stretch; border: 1px solid var(--fw-line); border-radius: var(--fw-radius-sm); overflow: hidden; background: #fff; height: 50px; }
.fw-qty button { width: 44px; border: 0; background: var(--fw-bg); font-size: 20px; cursor: pointer; }
.fw-qty button:hover:not(:disabled) { background: var(--fw-primary-tint); color: var(--fw-primary); }
.fw-qty button:disabled { opacity: .4; cursor: not-allowed; }
.fw-qty input { width: 52px; border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.fw-qty input::-webkit-outer-spin-button, .fw-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fw-qty--sm { height: 36px; }
.fw-qty--sm button { width: 34px; font-size: 17px; }
.fw-qty--sm input { width: 40px; }

.fw-product__details { display: grid; gap: 14px; margin-top: 14px; }
.fw-panel { background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: var(--fw-radius); padding: 16px 18px; }
.fw-panel h2 { font-size: 18px; margin-bottom: 12px; }
.fw-panel p:last-child { margin-bottom: 0; }
.fw-attrs { width: 100%; border-collapse: collapse; font-size: 14px; }
.fw-attrs th, .fw-attrs td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--fw-line); vertical-align: top; }
.fw-attrs tr:nth-child(odd) { background: var(--fw-bg); }
.fw-attrs th { width: 40%; color: var(--fw-muted); font-weight: 500; }
.fw-prose { overflow-wrap: break-word; }
.fw-prose a { color: var(--fw-primary-600); text-decoration: underline; }
.fw-video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--fw-radius-sm); }

/* ---------- Cart ---------- */
.fw-cart__loading { padding: 40px 0; text-align: center; color: var(--fw-muted); }
.fw-cart__layout { display: grid; gap: 16px; }
.fw-cart__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fw-cartitem { display: flex; gap: 12px; background: var(--fw-surface); border: 1px solid var(--fw-line); border-radius: var(--fw-radius); padding: 10px; }
.fw-cartitem.has-issue { border-color: #fca5a5; background: #fffafa; }
.fw-cartitem__img { flex: none; width: 84px; height: 84px; border-radius: var(--fw-radius-sm); overflow: hidden; background: #f6efeb; }
.fw-cartitem__img img { width: 100%; height: 100%; object-fit: cover; }
.fw-cartitem__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fw-cartitem__title { font-weight: 600; font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fw-cartitem__price { font-size: 13px; color: var(--fw-muted); }
.fw-cartitem__issue { font-size: 13px; color: var(--fw-danger); font-weight: 600; }
.fw-cartitem__row { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.fw-cartitem__total { margin-left: auto; color: var(--fw-primary); white-space: nowrap; }
.fw-cartitem__remove {
	display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px; border: 1px solid var(--fw-line);
	border-radius: var(--fw-radius-sm); background: #fff; color: var(--fw-muted); font-size: 13px; font-weight: 600; cursor: pointer;
	transition: color .15s, background .15s, border-color .15s;
}
.fw-cartitem__remove:hover { color: var(--fw-danger); background: var(--fw-danger-soft); border-color: #fca5a5; }
.fw-cartitem__limit { font-size: 12px; color: var(--fw-muted); white-space: nowrap; }
.fw-qty button:disabled { background: var(--fw-bg); color: #c9bdb8; }
@media (max-width: 420px) { .fw-cartitem__remove span { display: none; } .fw-cartitem__row { flex-wrap: wrap; } }
.fw-cart__actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.fw-cart__side { display: grid; gap: 14px; align-content: start; }
.fw-summary__row { display: flex; justify-content: space-between; padding: 6px 0; }
.fw-summary__total { border-top: 1px dashed var(--fw-line); margin-top: 6px; padding-top: 12px; font-size: 17px; }
.fw-summary__total strong { color: var(--fw-primary); font-size: 22px; }
.fw-summary__note { font-size: 13px; color: var(--fw-muted); margin: 8px 0 0; }
.fw-field { margin-bottom: 12px; }
.fw-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.fw-field label small { color: var(--fw-muted); font-weight: 400; }
.fw-field input, .fw-field textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--fw-line); border-radius: var(--fw-radius-sm); background: #fff; outline: none; font-size: 16px; }
.fw-field input:focus, .fw-field textarea:focus { border-color: var(--fw-primary); }
.fw-field__err { display: block; color: var(--fw-danger); font-size: 13px; margin-top: 3px; }
.fw-field__err:empty { display: none; }
.fw-req { color: var(--fw-danger); }
.fw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fw-alert { background: var(--fw-danger-soft); color: #991b1b; padding: 10px 12px; border-radius: var(--fw-radius-sm); font-size: 14px; margin-bottom: 12px; }
.fw-alert ul { margin: 6px 0 0; padding-left: 18px; }
.fw-orderform__privacy { font-size: 12px; color: var(--fw-muted); text-align: center; margin: 10px 0 0; }

/* ---------- Footer ---------- */
.fw-footer { background: var(--fw-dark); color: #e9d9d1; font-size: 14px; }
.fw-footer a:hover { color: #fff; }
.fw-footer__grid { display: grid; gap: 24px; padding-top: 32px; padding-bottom: 24px; }
.fw-footer h3 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.fw-footer .fw-logo { color: #fff; background: #fff; padding: 8px 12px; border-radius: 12px; }
.fw-footer .fw-logo__text { color: var(--fw-text); }
.fw-footer__brand { margin-bottom: 10px; }
.fw-footer p { margin: 0; color: #c9b3a9; }
.fw-footer__contact, .fw-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fw-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.fw-footer__contact .fw-icon { flex: none; margin-top: 3px; color: var(--fw-primary); }
.fw-footer__bottom { border-top: 1px solid var(--fw-dark-2); padding: 14px 0; font-size: 13px; color: #b39d93; }

/* ---------- Bottom nav (mobile) ---------- */
.fw-bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: var(--fw-bottomnav-h); display: grid; grid-template-columns: repeat(5, 1fr); background: var(--fw-surface); border-top: 1px solid var(--fw-line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(43, 33, 29, .06); }
.fw-bottomnav a, .fw-bottomnav button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: none; font-size: 11px; color: var(--fw-muted); cursor: pointer; padding: 0; }
.fw-bottomnav .is-active, .fw-bottomnav a:hover, .fw-bottomnav button:hover { color: var(--fw-primary); }
.fw-bottomnav .fw-count { top: 4px; right: calc(50% - 22px); }

/* ---------- Toast: উপরে ডানদিকে (হেডারের ঠিক নিচে) ---------- */
.fw-toasts {
	position: fixed; z-index: 120; top: calc(var(--fw-header-h) + 12px); right: 16px; left: 16px;
	display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none;
}
.admin-bar .fw-toasts { top: calc(var(--fw-header-h) + 44px); }
.fw-toast {
	display: flex; align-items: center; gap: 10px; width: min(380px, 100%); padding: 10px 8px 10px 12px;
	border-radius: var(--fw-radius); background: var(--fw-surface); color: var(--fw-text); border: 1px solid var(--fw-line);
	border-left: 4px solid var(--fw-primary); box-shadow: var(--fw-shadow-lg); font-size: 14px; line-height: 1.45; pointer-events: auto;
	opacity: 0; transform: translateX(24px); transition: opacity .25s, transform .3s var(--fw-ease);
}
.fw-toast.is-in { opacity: 1; transform: none; }
.fw-toast__icon { flex: none; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--fw-primary-tint); color: var(--fw-primary); }
.fw-toast__text { flex: 1; min-width: 0; }
.fw-toast a { flex: none; color: var(--fw-primary-600); font-weight: 700; white-space: nowrap; padding: 4px 6px; border-radius: 6px; }
.fw-toast a:hover { background: var(--fw-primary-tint); }
.fw-toast__close { flex: none; width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; color: var(--fw-muted); font-size: 20px; line-height: 1; cursor: pointer; }
.fw-toast__close:hover { background: var(--fw-bg); color: var(--fw-text); }
.fw-toast--success { border-left-color: var(--fw-success); }
.fw-toast--success .fw-toast__icon { background: var(--fw-success-soft); color: var(--fw-success); }
.fw-toast--heart { border-left-color: var(--fw-danger); }
.fw-toast--heart .fw-toast__icon { background: var(--fw-danger-soft); color: var(--fw-danger); }

/* =====================================================================
   Tablet
   ===================================================================== */
@media (min-width: 600px) {
	:root { --fw-gutter: 20px; }
	.fw-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
	.fw-catgrid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
	.fw-footer__grid { grid-template-columns: repeat(3, 1fr); }
	.fw-slider { aspect-ratio: 21 / 9; }
	.fw-slide__caption { padding: 28px 32px 48px; }
	.fw-filterbar__fields { display: flex; width: auto; padding: 0; background: none; border: 0; }
	.fw-filterbar__toggle { display: none; }
}

/* ফিল্টার এক সারিতে নাম-এর পাশে */
@media (min-width: 1200px) {
	.fw-archivehead { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; }
	.fw-filterbar { flex-wrap: nowrap; gap: 16px; }
	.fw-filterbar__count { margin-right: 0; padding-right: 16px; border-right: 1px solid var(--fw-line); }
	.fw-filterbar__fields { flex-wrap: nowrap; }
}

/* লগইন থাকলে WordPress admin bar (৭৮৩px+ এ ৩২px, ৬০০–৭৮২px এ ৪৬px স্থির) */
.admin-bar .fw-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .fw-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .fw-header { top: 0; } }

/* =====================================================================
   Desktop — বাম সাইডবার, হেডার এক সারিতে
   ===================================================================== */
@media (min-width: 1024px) {
	:root { --fw-gutter: 24px; --fw-header-h: 60px; }
	body { padding-bottom: 0; }
	.fw-bottomnav, .fw-only-mobile { display: none !important; }
	.fw-toasts { left: auto; right: 24px; }

	.fw-header__inner { grid-template-columns: var(--fw-sidebar-w) minmax(0, 1fr) auto; grid-template-areas: "brand search actions"; gap: 24px; height: var(--fw-header-h); padding-top: 0; padding-bottom: 0; }
	.fw-header__menu { display: none; }
	.fw-header .fw-search { width: 100%; max-width: 760px; justify-self: center; }
	.fw-header .fw-search input { height: 42px; }
	.fw-logo__img { height: 40px; max-width: 200px; }
	.fw-action { padding: 6px 12px; }
	.fw-header__actions { gap: 6px; }
	.fw-action { flex-direction: row; gap: 8px; font-size: 14px; padding: 8px 14px; }
	.fw-action--cart { background: var(--fw-primary); color: #fff; }
	.fw-action--cart:hover, .fw-action--cart.is-current { background: var(--fw-primary-600); color: #fff; }
	.fw-action--cart .fw-count { background: #fff; color: var(--fw-primary); box-shadow: 0 0 0 2px var(--fw-primary); }

	.fw-shell { display: grid; grid-template-columns: var(--fw-sidebar-w) minmax(0, 1fr); align-items: start; }
	.fw-sidebar {
		display: block; position: sticky; z-index: 40; top: var(--fw-header-h); height: calc(100vh - var(--fw-header-h));
		overflow-y: auto; overscroll-behavior: contain; padding: 16px 12px 24px 16px; background: var(--fw-surface);
		border-right: 1px solid var(--fw-line); scrollbar-width: thin; scrollbar-color: var(--fw-line) transparent;
	}
	.admin-bar .fw-sidebar { top: calc(var(--fw-header-h) + 32px); height: calc(100vh - var(--fw-header-h) - 32px); }
	.fw-main .fw-container { padding-left: var(--fw-gutter); padding-right: var(--fw-gutter); }

	.fw-slider { aspect-ratio: auto; height: clamp(320px, 36vw, 560px); }
	.fw-slider__arrow { display: inline-flex; }
	.fw-slide__caption { padding: 40px 48px 56px; }

	.fw-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

	.fw-product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 24px; }
	.fw-product__details { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
	.fw-product__details .fw-prose { grid-column: 1 / -1; order: -1; }
	.fw-cart__layout { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 24px; }
	.fw-cart__side { position: sticky; top: calc(var(--fw-header-h) + 16px); }
	.admin-bar .fw-cart__side { top: calc(var(--fw-header-h) + 48px); }
	.fw-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* হোভার করা যায় এমন ডেস্কটপে: সাব-ক্যাটাগরি পাশে ভেসে ওঠে (flyout)।
   তীর চিহ্নে ক্লিক করে খুললে (is-open) নিচে accordion হিসেবে থাকে। */
@media (min-width: 1024px) and (hover: hover) {
	/* ডেস্কটপ সাইডবার: যেকোনো লেভেলের ক্যাটাগরিতে হোভার করলেই ভেতরের তালিকা পাশে খোলে (cascading flyout)।
	   JS প্রতিবার হোভারে --fw-fly-top / --fw-fly-left বসায় — সারির ঠিক ডান পাশে। */
	.fw-sidebar .fw-cattree__item.has-children > .fw-cattree__sub {
		position: fixed; z-index: 80; top: var(--fw-fly-top, 0); left: var(--fw-fly-left, calc(var(--fw-sidebar-w) + 6px));
		width: 240px; max-height: none; overflow: visible; margin: 0; padding: 6px;
		border: 1px solid var(--fw-line); border-radius: var(--fw-radius); background: var(--fw-surface); box-shadow: var(--fw-shadow-lg);
		opacity: 0; visibility: hidden; pointer-events: none;
		/* লুকানোয় সামান্য দেরি — ফাঁকা জায়গা পার হওয়ার সময় মেনু বন্ধ হবে না */
		transition: opacity .15s .12s, visibility 0s .27s;
	}
	/* অদৃশ্য সেতু: সারি আর মেনুর মাঝের ফাঁকা অংশে মাউস থাকলেও হোভার ধরে রাখে।
	   মেনু সারি থেকে ১৪px নিচে শুরু হয়, তাই সেতু উপরেও সারির পুরো উচ্চতা ঢেকে রাখে। */
	.fw-sidebar .fw-cattree__item.has-children > .fw-cattree__sub::before {
		content: ""; position: absolute; top: -34px; bottom: -6px; left: -12px; width: 12px;
	}
	.fw-sidebar .fw-cattree__item.has-children:hover > .fw-cattree__sub,
	.fw-sidebar .fw-cattree__item.has-children:focus-within > .fw-cattree__sub {
		opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .15s, visibility 0s;
	}
	.fw-sidebar .fw-cattree__item.has-children:hover > .fw-cattree__row { background: var(--fw-primary-tint); }
	.fw-sidebar .fw-cattree__sub .fw-cattree__row > a { padding: 8px 10px; font-size: 14px; }
	/* হোভারে খোলে, তাই তীর চিহ্ন শুধু নির্দেশক — ঘোরে না */
	.fw-sidebar .fw-cattree__item.is-open > .fw-cattree__row .fw-cattree__toggle { transform: none; }
	.fw-sidebar .fw-cattree__toggle { pointer-events: none; width: 26px; }
	/* বর্তমান ক্যাটাগরির উপরের ধাপগুলো হালকা চিহ্নিত */
	.fw-sidebar .fw-cattree__row.is-ancestor > a { color: var(--fw-primary-600); font-weight: 600; }
}

@media (min-width: 1440px) {
	:root { --fw-sidebar-w: 288px; }
	.fw-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* POS অফার গ্রুপের নাম ও ছাড় (প্রোডাক্ট পেজে দামের পাশে) */
.fw-product__price { flex-wrap: wrap; }
.fw-product__price .fw-offer-note { display: inline-flex; align-self: center; align-items: center; padding: 3px 10px; border-radius: 99px; background: var(--fw-primary); color: #fff; font-size: 13px; font-weight: 700; }
