/* ==========================================================================
   Farshju — main stylesheet
   ========================================================================== */

@font-face {
	font-family: "Vazirmatn";
	src: url("../fonts/Vazirmatn-wght.woff2") format("woff2-variations"), url("../fonts/Vazirmatn-wght.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--fj-primary: #9E1B22;
	--fj-primary-dark: #6B1014;
	--fj-bg: #FBF7F1;
	--fj-accent: #C39A5F;
	--fj-surface: #FFFFFF;
	--fj-beige: #F4ECE0;
	--fj-border: #ECE1D2;
	--fj-text: #2A1F1C;
	--fj-muted: #7C6D64;
	--fj-success: #3C8A55;
	--fj-success-bg: #E7F3EA;
	--fj-warning: #B9832B;
	--fj-warning-bg: #FBF0DC;
	--fj-info: #3F6FA8;
	--fj-info-bg: #E6EEF8;
	--fj-radius: 14px;
	--fj-radius-sm: 10px;
	--fj-shadow: 0 6px 24px rgba(74, 32, 20, .08);
	--fj-shadow-sm: 0 2px 10px rgba(74, 32, 20, .06);
	--fj-container: 1240px;
	--fj-header-h: 76px;
	--fj-font: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--fj-font);
	font-size: 15px;
	line-height: 1.85;
	color: var(--fj-text);
	background: var(--fj-bg);
	direction: rtl;
	text-align: right;
	-webkit-font-smoothing: antialiased;
	font-feature-settings: "ss01";
	overflow-x: clip;
}
[hidden] { display: none !important; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--fj-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--fj-primary-dark); }
h1, h2, h3, h4, h5, h6 { line-height: 1.45; margin: 0 0 .6em; font-weight: 800; color: var(--fj-text); }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.25em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--fj-primary); outline-offset: 2px; }
::selection { background: var(--fj-primary); color: #fff; }
.icon { flex-shrink: 0; display: inline-block; vertical-align: middle; }
hr { border: 0; border-top: 1px solid var(--fj-border); margin: 2em 0; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 1000;
	top: 8px; right: 8px; padding: 10px 16px; background: #fff; border-radius: 8px; box-shadow: var(--fj-shadow);
}

.container { width: 100%; max-width: var(--fj-container); margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: 860px; }
.page-wrap { padding-block: 24px 64px; }
.section { padding-block: 36px; position: relative; }

/* ---------- Buttons ---------- */
.btn,
.button,
button.button,
input[type="submit"],
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 12px 24px; min-height: 48px;
	border-radius: var(--fj-radius-sm);
	border: 1.5px solid transparent;
	font-weight: 700; font-size: 15px; line-height: 1.2;
	background: var(--fj-primary); color: #fff;
	transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
	text-decoration: none; cursor: pointer;
}
.btn:hover, .button:hover, input[type="submit"]:hover { background: var(--fj-primary-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--fj-primary); color: #fff; box-shadow: 0 6px 16px rgba(158, 27, 34, .22); }
.btn-outline { background: transparent; color: var(--fj-primary); border-color: var(--fj-primary); box-shadow: none; }
.btn-outline:hover { background: var(--fj-primary); color: #fff; }
.btn-light { background: #fff; color: var(--fj-primary); }
.btn-light:hover { background: var(--fj-beige); color: var(--fj-primary-dark); }
.btn-soft { background: var(--fj-surface); color: var(--fj-text); border-color: var(--fj-border); min-height: 42px; padding: 8px 16px; font-weight: 600; }
.btn-soft:hover { background: var(--fj-beige); color: var(--fj-text); }
.btn-lg { min-height: 54px; padding-inline: 30px; font-size: 16px; }
.btn-small { min-height: 34px; padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }

.icon-btn {
	display: inline-grid; place-items: center;
	width: 44px; height: 44px; padding: 0;
	border: 0; background: transparent; color: var(--fj-text);
	border-radius: 50%; position: relative; transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--fj-beige); color: var(--fj-primary); }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"],
input[type="number"], input[type="url"], input[type="date"], select, textarea,
.select2-container--default .select2-selection--single {
	width: 100%; min-height: 50px; padding: 12px 16px;
	background: var(--fj-surface); border: 1.5px solid var(--fj-border); border-radius: var(--fj-radius-sm);
	font-size: 15px; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
textarea { min-height: 120px; resize: vertical; }
select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237C6D64' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: left 14px center; padding-left: 40px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--fj-primary); box-shadow: 0 0 0 4px rgba(158, 27, 34, .08); }
::placeholder { color: #A89A90; opacity: 1; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--fj-primary); width: 18px; height: 18px; vertical-align: middle; }
label { font-weight: 600; font-size: 14px; }
.form-row { margin-bottom: 14px; }
.form-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fj-hp { position: absolute; left: -9999px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 90;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--fj-border);
	transition: box-shadow .25s;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(74, 32, 20, .08); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--fj-header-h); }

.site-logo, .custom-logo-link { margin: 0; font-size: inherit; flex-shrink: 0; }
.site-logo a { display: flex; align-items: center; gap: 10px; color: var(--fj-primary); }
.logo-text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-name { font-size: 26px; font-weight: 900; letter-spacing: -.5px; }
.logo-latin { font-size: 9px; letter-spacing: 4px; font-weight: 700; margin-top: 4px; direction: ltr; }
.custom-logo { max-height: 56px; width: auto; }

.primary-nav { flex: 1; min-width: 0; }
.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu > li > a {
	display: block; padding: 10px 10px; font-weight: 600; font-size: 14.5px; color: var(--fj-text); border-radius: 8px; white-space: nowrap;
}
.primary-nav .menu > li > a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a { color: var(--fj-primary); }
.primary-nav .menu-item-has-children > a::after {
	content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-start: 6px; vertical-align: 3px;
	border: solid currentColor; border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg);
}
.primary-nav .sub-menu {
	list-style: none; margin: 0; padding: 10px; position: absolute; top: 100%; right: 0; min-width: 220px;
	background: #fff; border: 1px solid var(--fj-border); border-radius: var(--fj-radius); box-shadow: var(--fj-shadow);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; z-index: 10;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--fj-text); font-size: 14px; }
.primary-nav .sub-menu a:hover { background: var(--fj-beige); color: var(--fj-primary); }
.primary-nav .sub-menu .sub-menu { top: 0; right: 100%; }

.header-search { position: relative; width: 260px; flex-shrink: 0; }
.header-search input { min-height: 44px; padding: 8px 16px 8px 44px; border-radius: 999px; background: var(--fj-bg); font-size: 13.5px; }
.header-search button {
	position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
	width: 36px; height: 36px; border: 0; background: transparent; color: var(--fj-muted); display: grid; place-items: center; border-radius: 50%;
}
.header-actions { display: flex; align-items: center; gap: 2px; }
.header-cart .cart-count,
.bottom-nav .cart-count {
	position: absolute; top: 2px; left: 2px;
	min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
	background: var(--fj-primary); color: #fff; font-size: 11px; font-weight: 700; font-style: normal; line-height: 18px; text-align: center;
	border: 2px solid #fff;
}
.menu-toggle, .search-toggle { display: none; }

/* Search overlay */
.search-overlay {
	position: fixed; inset: 0 0 auto; z-index: 120; padding: 16px; background: #fff; box-shadow: var(--fj-shadow);
	animation: fjDown .2s ease;
}
.search-overlay form { display: flex; gap: 8px; max-width: 720px; margin: 0 auto; }
.search-overlay .btn { min-height: 50px; padding-inline: 16px; }

/* Drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(30, 12, 10, .45); z-index: 130; animation: fjFade .2s; }
.mobile-drawer {
	position: fixed; top: 0; bottom: 0; right: 0; width: min(86vw, 360px); z-index: 140;
	background: var(--fj-bg); display: flex; flex-direction: column;
	transform: translateX(105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); overflow-y: auto;
}
.mobile-drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--fj-border); background: #fff; }
.drawer-nav { flex: 1; padding: 10px 12px; }
.drawer-nav ul { list-style: none; margin: 0; padding: 0; }
.drawer-nav a { display: block; padding: 12px 12px; font-weight: 600; color: var(--fj-text); border-radius: 10px; }
.drawer-nav a:hover, .drawer-nav .current-menu-item > a { background: #fff; color: var(--fj-primary); }
.drawer-nav .sub-menu { padding-inline-start: 14px; border-inline-start: 2px solid var(--fj-border); margin-inline-start: 12px; display: none; }
.drawer-nav li.is-open > .sub-menu { display: block; }
.drawer-nav .menu-item-has-children { position: relative; }
.drawer-nav .submenu-toggle { position: absolute; left: 4px; top: 4px; }
.drawer-foot { padding: 18px; border-top: 1px solid var(--fj-border); display: grid; gap: 14px; justify-items: center; }
body.drawer-open { overflow: hidden; }

/* ---------- Common ornaments ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--fj-primary); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.eyebrow span { display: inline-block; width: 36px; height: 1px; background: currentColor; position: relative; }
.eyebrow span::after { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }
.eyebrow span:first-child::after { left: 0; }
.eyebrow span:last-child::after { right: 0; }
.fj-divider { display: flex; align-items: center; gap: 10px; color: var(--fj-primary); max-width: 260px; margin: 22px auto 0; }
.fj-divider span { flex: 1; height: 1px; background: linear-gradient(to left, transparent, var(--fj-primary) 50%, transparent); opacity: .5; }
.logo-mark { display: inline-block; }

.fj-placeholder {
	display: grid; place-items: center; width: 100%; height: 100%; min-height: 120px;
	background: var(--fj-beige) url("../img/pattern.svg") center / 60px; color: var(--fj-primary);
}
.fj-placeholder .logo-mark { opacity: .35; }

.corner-ornament {
	position: absolute; top: 0; width: 180px; height: 180px; pointer-events: none; opacity: .5;
	background: url("../img/corner.svg") no-repeat center / contain; z-index: 0;
}
.corner-ornament--left { left: 0; }
.corner-ornament--right { right: 0; transform: scaleX(-1); }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; position: relative; z-index: 1; }
.section-title { font-size: 24px; margin: 0; position: relative; }
.section-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.section-link .icon { transition: transform .2s; }
.section-link:hover .icon { transform: translateX(-4px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--fj-bg); isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img, .hero__media picture, .hero__ph { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to left, var(--fj-bg) 30%, rgba(251, 247, 241, .85) 42%, rgba(251, 247, 241, 0) 64%);
}
.hero__tassels {
	position: absolute; top: 0; left: 30px; width: 36px; height: 260px;
	background: url("../img/tassel.svg") no-repeat top / contain; z-index: 1; opacity: .95;
}
.hero__inner { min-height: 560px; display: flex; align-items: center; padding-block: 60px; }
.hero__content {
	max-width: 480px; text-align: center; position: relative; padding: 36px 30px;
}
.hero__content::before {
	content: ""; position: absolute; inset: 0; border: 1px solid rgba(158, 27, 34, .18); border-radius: 4px;
	background:
		url("../img/corner.svg") top right / 70px no-repeat,
		url("../img/corner.svg") bottom left / 70px no-repeat;
	opacity: .55; pointer-events: none;
}
.hero__title { font-size: clamp(34px, 5vw, 58px); line-height: 1.3; font-weight: 900; margin-bottom: 16px; }
.hero__title span { display: block; color: var(--fj-text); }
.hero__title strong { display: block; color: var(--fj-primary); font-weight: 900; }
.hero__text { color: var(--fj-muted); font-size: 16px; line-height: 2; margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; }
.video-btn { display: inline-flex; align-items: center; gap: 12px; border: 0; background: none; padding: 0; text-align: right; color: var(--fj-text); }
.video-btn__icon {
	width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
	border: 1.5px solid var(--fj-primary); color: var(--fj-primary); background: rgba(255, 255, 255, .7); transition: .2s;
}
.video-btn__icon .icon { fill: currentColor; margin-inline-start: -3px; }
.video-btn:hover .video-btn__icon { background: var(--fj-primary); color: #fff; }
.video-btn__text strong { display: block; color: var(--fj-primary); font-size: 14px; }
.video-btn__text small { color: var(--fj-muted); font-size: 12px; }

.video-modal { position: fixed; inset: 0; z-index: 200; background: rgba(20, 8, 6, .8); display: grid; place-items: center; padding: 20px; }
.video-modal__box { width: min(960px, 100%); position: relative; }
.video-modal__frame { aspect-ratio: 16 / 9; background: #000; border-radius: var(--fj-radius); overflow: hidden; }
.video-modal__frame iframe, .video-modal__frame video { width: 100%; height: 100%; border: 0; }
.video-modal__close { position: absolute; top: -52px; left: 0; background: #fff; }

/* ---------- Features strip ---------- */
.features { position: relative; z-index: 2; margin-top: -1px; }
.features__list {
	list-style: none; margin: 0; padding: 18px 10px; display: grid; grid-template-columns: repeat(5, 1fr);
	background: #fff; border-radius: var(--fj-radius); box-shadow: var(--fj-shadow); transform: translateY(-36px);
}
.feature { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 6px 12px; position: relative; }
.feature + .feature::before { content: ""; position: absolute; right: 0; top: 18%; bottom: 18%; width: 1px; background: var(--fj-border); }
.feature__icon { color: var(--fj-primary); }
.feature__body strong { display: block; font-size: 14px; }
.feature__body small { display: block; color: var(--fj-muted); font-size: 12px; line-height: 1.6; }

/* ---------- Qualities (mobile) ---------- */
.qualities { display: none; }
.qualities__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quality { text-align: center; }
.quality__img { display: block; aspect-ratio: 3 / 4; border-radius: 999px 999px 18px 18px; overflow: hidden; margin-bottom: 8px; border: 3px solid #fff; box-shadow: var(--fj-shadow-sm); }
.quality__img img, .quality__img .fj-placeholder { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.quality strong { display: block; font-size: 13px; }
.quality small { display: block; font-size: 11px; color: var(--fj-muted); line-height: 1.5; }

/* ---------- Categories ---------- */
.home-cats { padding-top: 0; }
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; position: relative; z-index: 1; }
.cat-card a { display: block; text-align: center; color: var(--fj-text); }
.cat-card__img {
	display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-bottom: 12px;
	border: 4px solid #fff; box-shadow: 0 0 0 1.5px var(--fj-primary), var(--fj-shadow-sm);
	transition: transform .3s, box-shadow .3s;
}
.cat-card__img img, .cat-card__img .fj-placeholder { width: 100%; height: 100%; object-fit: cover; min-height: 0; transition: transform .5s; }
.cat-card a:hover .cat-card__img { transform: translateY(-4px); box-shadow: 0 0 0 1.5px var(--fj-primary), var(--fj-shadow); }
.cat-card a:hover img { transform: scale(1.06); }
.cat-card__name { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; }
.cat-card__name .logo-mark { display: none; }

/* ---------- Promo banners ---------- */
.promo { position: relative; border-radius: calc(var(--fj-radius) + 4px); overflow: hidden; min-height: 320px; display: grid; grid-template-columns: 1fr 1fr; isolation: isolate; }
.promo__media { position: relative; min-height: 260px; }
.promo__media img, .promo__media .fj-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo__body { padding: 44px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.promo__title { font-size: clamp(24px, 3vw, 34px); line-height: 1.5; margin-bottom: 12px; }
.promo--dark { background: var(--fj-primary-dark) url("../img/pattern.svg") center / 90px; color: #fff; }
.promo--dark .promo__title { color: #fff; }
.promo--dark p { color: rgba(255, 255, 255, .8); }
.promo--dark .promo__media { order: 2; }
.promo--dark .promo__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, var(--fj-primary-dark), transparent 40%); }
.promo--photo { grid-template-columns: 1fr; min-height: 340px; }
.promo--photo .promo__media { position: absolute; inset: 0; z-index: -1; }
.promo--photo .promo__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(58, 24, 16, .85), rgba(58, 24, 16, .1) 70%); }
.promo--photo .promo__body { max-width: 520px; }
.promo--photo .promo__title { color: #fff; font-weight: 700; }
.promo--photo p { color: rgba(255, 255, 255, .85); }

/* ---------- Newsletter ---------- */
.newsletter {
	display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center;
	padding: 36px 44px; border-radius: calc(var(--fj-radius) + 4px);
	background: linear-gradient(135deg, #3A0B0E, var(--fj-primary-dark)); color: #fff; position: relative; overflow: hidden;
}
.newsletter::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 140px; background: url("../img/corner.svg") left top / 140px no-repeat; opacity: .35; filter: brightness(3); }
.newsletter h2 { color: #fff; font-size: 22px; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.newsletter p { color: rgba(255, 255, 255, .75); margin: 0; }
.newsletter__form { position: relative; z-index: 1; }
.newsletter-form { display: flex; background: #fff; border-radius: 999px; padding: 5px; }
.newsletter-form input { border: 0; min-height: 46px; background: transparent; box-shadow: none !important; }
.newsletter-form button { flex-shrink: 0; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--fj-primary); color: #fff; display: grid; place-items: center; }
.newsletter-msg { margin: 10px 0 0; font-size: 14px; }
.newsletter-msg.is-ok { color: #BFE8C9; }
.newsletter-msg.is-error { color: #FFD1D1; }

/* ---------- Blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.post-card { background: #fff; border-radius: var(--fj-radius); overflow: hidden; box-shadow: var(--fj-shadow-sm); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--fj-shadow); }
.post-card__media { display: block; aspect-ratio: 16 / 11; overflow: hidden; }
.post-card__media img, .post-card__media .fj-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.post-card__title { font-size: 16px; margin-bottom: 6px; }
.post-card__title a { color: var(--fj-text); }
.post-card__title a:hover { color: var(--fj-primary); }
.post-card__excerpt { color: var(--fj-muted); font-size: 13.5px; line-height: 1.9; flex: 1; }
.post-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--fj-muted); }
.post-card__more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.post-date { display: inline-flex; align-items: center; gap: 5px; }

/* Blog pages */
.archive-head { margin-bottom: 24px; }
.page-title { font-size: 28px; margin-bottom: 8px; }
.archive-desc { color: var(--fj-muted); }
.blog-layout.has-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.blog-sidebar .widget { background: #fff; border-radius: var(--fj-radius); padding: 20px; margin-bottom: 20px; box-shadow: var(--fj-shadow-sm); }
.widget-title { font-size: 16px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--fj-border); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 6px 0; }
.widget li a { color: var(--fj-text); }
.widget li a:hover { color: var(--fj-primary); }

.single-post .entry-header { text-align: center; margin: 10px 0 24px; }
.entry-cat { display: inline-block; background: var(--fj-beige); padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.entry-title { font-size: clamp(24px, 3.4vw, 36px); }
.entry-meta { display: flex; justify-content: center; gap: 18px; color: var(--fj-muted); font-size: 13.5px; }
.entry-meta span { display: inline-flex; align-items: center; gap: 5px; }
.entry-thumb { margin: 0 0 28px; border-radius: var(--fj-radius); overflow: hidden; }
.entry-thumb img { width: 100%; }
.entry-content { font-size: 16px; line-height: 2.1; }
.entry-content h2 { font-size: 22px; margin-top: 1.6em; }
.entry-content h3 { font-size: 19px; margin-top: 1.4em; }
.entry-content img { border-radius: var(--fj-radius-sm); }
.entry-content blockquote { margin: 1.5em 0; padding: 18px 22px; background: #fff; border-inline-start: 4px solid var(--fj-primary); border-radius: var(--fj-radius-sm); }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
.entry-content th, .entry-content td { border: 1px solid var(--fj-border); padding: 10px; }
.entry-footer { margin-top: 32px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag-list a { background: #fff; border: 1px solid var(--fj-border); padding: 4px 12px; border-radius: 999px; font-size: 13px; color: var(--fj-text); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: block; padding: 16px; background: #fff; border-radius: var(--fj-radius); color: var(--fj-text); box-shadow: var(--fj-shadow-sm); height: 100%; }
.post-navigation small { display: block; color: var(--fj-muted); }
.post-navigation .nav-next { text-align: left; }

.pagination, .woocommerce-pagination { margin-top: 32px; }
.nav-links, .woocommerce-pagination ul.page-numbers { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; border: 0; }
.page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 10px; background: #fff; border: 1px solid var(--fj-border); color: var(--fj-text); font-weight: 600; }
.woocommerce-pagination ul.page-numbers li { border: 0 !important; }
.page-numbers.current { background: var(--fj-primary); color: #fff; border-color: var(--fj-primary); }
a.page-numbers:hover { border-color: var(--fj-primary); color: var(--fj-primary); }

/* Comments */
.comments-area { margin-top: 40px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-inline-start: 24px; }
.comment-body { background: #fff; padding: 16px 18px; border-radius: var(--fj-radius); margin-bottom: 14px; box-shadow: var(--fj-shadow-sm); }
.comment-author { display: flex; align-items: center; gap: 10px; }
.comment-author img { border-radius: 50%; }
.comment-meta { font-size: 13px; color: var(--fj-muted); }
.comment-respond { background: #fff; padding: 22px; border-radius: var(--fj-radius); }

/* Search form */
.search-form { position: relative; max-width: 420px; margin: 0 auto; }
.search-form .search-submit { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; width: 40px; height: 40px; color: var(--fj-muted); }
.search-form .search-field { padding-left: 48px; }

/* Empty / 404 / alerts */
.fj-empty { text-align: center; padding: 48px 20px; color: var(--fj-muted); display: grid; justify-items: center; gap: 12px; background: #fff; border-radius: var(--fj-radius); }
.fj-empty .icon { color: var(--fj-primary); opacity: .5; }
.fj-404 { text-align: center; padding: 40px 0; display: grid; gap: 16px; justify-items: center; }
.fj-404 h1 { font-size: 96px; color: var(--fj-primary); margin: 0; line-height: 1; }
.fj-404 .search-form { width: 100%; }
.fj-alert { padding: 12px 16px; border-radius: var(--fj-radius-sm); font-size: 14px; }
.fj-alert--ok { background: var(--fj-success-bg); color: var(--fj-success); }
.fj-alert--error { background: #FBE7E7; color: #A12626; }
.fj-note { color: var(--fj-muted); font-size: 13.5px; text-align: center; margin-top: 16px; }

/* ---------- About ---------- */
.about-hero { background: #fff; border-bottom: 1px solid var(--fj-border); overflow: hidden; }
.about-hero__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding-block: 36px; }
.about-hero__lead { color: var(--fj-muted); font-size: 16px; line-height: 2.1; }
.about-hero__media { border-radius: calc(var(--fj-radius) + 6px); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--fj-shadow); }
.about-hero__media img, .about-hero__media .fj-placeholder { width: 100%; height: 100%; object-fit: cover; }
.value-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value-grid li { background: #fff; border-radius: var(--fj-radius); padding: 24px 12px; text-align: center; box-shadow: var(--fj-shadow-sm); display: grid; justify-items: center; gap: 10px; }
.value-grid__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--fj-primary); border: 1.5px solid var(--fj-primary); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: start; }
.contact-cards { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.contact-cards li { display: flex; align-items: center; gap: 14px; background: #fff; padding: 16px 18px; border-radius: var(--fj-radius); box-shadow: var(--fj-shadow-sm); }
.contact-cards__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--fj-beige); color: var(--fj-primary); display: grid; place-items: center; flex-shrink: 0; }
.contact-cards a { color: var(--fj-text); font-weight: 700; }
.contact-cards small { display: block; color: var(--fj-muted); font-size: 12.5px; }
.contact-form-card { background: #fff; border-radius: calc(var(--fj-radius) + 4px); padding: 28px; box-shadow: var(--fj-shadow); position: relative; overflow: hidden; }
.contact-form-card::before { content: ""; position: absolute; top: 0; left: 0; width: 110px; height: 110px; background: url("../img/corner.svg") no-repeat / contain; opacity: .25; pointer-events: none; }
.contact-form-card h2 { font-size: 20px; }
.contact-map { margin-top: 36px; border-radius: var(--fj-radius); overflow: hidden; }
.contact-map iframe { width: 100%; min-height: 360px; border: 0; display: block; }

/* ---------- Social ---------- */
.social-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid currentColor; color: var(--fj-primary); transition: .2s; }
.social-links a:hover { background: var(--fj-primary); border-color: var(--fj-primary); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #2B0A0C; color: rgba(255, 255, 255, .78); margin-top: 40px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr auto; gap: 40px; padding-block: 52px 36px; }
.site-footer .site-logo a { color: #fff; }
.site-footer .logo-mark { --fj-primary: #E23A3F; }
.footer-brand p { margin: 16px 0 18px; font-size: 14px; line-height: 2; }
.site-footer .social-links a { color: rgba(255, 255, 255, .85); }
.site-footer .social-links a:hover { background: var(--fj-primary); border-color: var(--fj-primary); color: #fff; }
.footer-title { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-links ul, .footer-contact ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding: 5px 0; }
.footer-links a { color: rgba(255, 255, 255, .78); display: inline-flex; align-items: center; gap: 6px; }
.footer-links a::before { content: "‹"; color: var(--fj-accent); }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; }
.footer-contact .icon { color: var(--fj-accent); }
.footer-contact a { color: rgba(255, 255, 255, .85); }
.footer-badges { display: flex; gap: 10px; align-items: flex-start; }
.footer-badges img { background: #fff; border-radius: 10px; padding: 6px; max-width: 110px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 14px 0; text-align: center; font-size: 13px; }
.footer-bottom p { margin: 0; }
.footer-border { height: 28px; background: url("../img/border.svg") repeat-x center / auto 28px; }

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav { display: none; }

/* ---------- Toast ---------- */
.fj-toast {
	position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 300;
	background: var(--fj-text); color: #fff; padding: 10px 20px; border-radius: 999px; font-size: 14px; box-shadow: var(--fj-shadow);
	animation: fjUp .25s ease;
}

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel__track {
	display: grid !important; grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 !important; padding: 4px 2px 12px !important; list-style: none;
	overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > li { scroll-snap-align: start; width: auto !important; margin: 0 !important; float: none !important; }
.carousel__nav {
	position: absolute; top: 38%; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
	background: #fff; border: 1px solid var(--fj-border); box-shadow: var(--fj-shadow-sm); display: grid; place-items: center; color: var(--fj-text);
	transition: .2s;
}
.carousel__nav:hover { background: var(--fj-primary); color: #fff; border-color: var(--fj-primary); }
.carousel__prev { right: -18px; }
.carousel__next { left: -18px; }
.carousel__nav[disabled] { opacity: 0; pointer-events: none; }
.carousel__dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.carousel__dots span { width: 7px; height: 7px; border-radius: 99px; background: var(--fj-border); transition: .25s; }
.carousel__dots span.is-active { width: 20px; background: var(--fj-primary); }

.fj-scroll { scrollbar-width: none; }

/* ---------- Animations ---------- */
@keyframes fjFade { from { opacity: 0; } }
@keyframes fjDown { from { opacity: 0; transform: translateY(-10px); } }
@keyframes fjUp { from { opacity: 0; transform: translate(-50%, 10px); } }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
	.header-search { width: 200px; }
	.primary-nav .menu > li > a { padding-inline: 8px; font-size: 14px; }
	.features__list { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
	.feature:nth-child(4)::before { display: none; }
	.cat-grid { grid-template-columns: repeat(3, 1fr); }
	.carousel__track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
}

@media (max-width: 991px) {
	:root { --fj-header-h: 64px; }
	.primary-nav, .header-search { display: none; }
	.menu-toggle, .search-toggle { display: inline-grid; }
	.header-inner { gap: 6px; }
	.header-inner .site-logo, .header-inner .custom-logo-link { margin-inline: auto; }
	.menu-toggle { order: 3; }
	.header-actions { order: 1; }
	.header-inner .site-logo { order: 2; }
	.header-actions { flex-direction: row-reverse; }
	.hide-mobile { display: none !important; }
	.logo-name { font-size: 22px; }

	.hero__media { position: relative; height: 320px; inset: auto; }
	.hero__media::after { background: linear-gradient(to top, var(--fj-bg) 4%, rgba(251, 247, 241, 0) 40%); }
	.hero__tassels { left: 10px; height: 200px; }
	.hero__inner { min-height: 0; padding-block: 0 30px; justify-content: center; margin-top: -40px; }
	.hero__content { margin-inline: auto; padding: 24px 10px 0; background: var(--fj-bg); border-radius: 30px 30px 0 0; }
	.hero__content::before { display: none; }
	.features__list { transform: none; margin-top: 8px; grid-template-columns: repeat(4, 1fr); box-shadow: none; background: transparent; padding: 10px 0; }
	.feature { flex-direction: column; text-align: center; gap: 6px; padding: 4px; }
	.feature:nth-child(5) { display: none; }
	.feature + .feature::before { display: block !important; }
	.feature__body small { font-size: 10.5px; }
	.feature__body strong { font-size: 12.5px; }
	.qualities { display: block; padding-block: 8px 24px; }

	.cat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.cat-card a { background: #fff; border-radius: var(--fj-radius); overflow: hidden; box-shadow: var(--fj-shadow-sm); }
	.cat-card__img { aspect-ratio: 4 / 3; border-radius: 0; border: 0; box-shadow: none; margin: 0; }
	.cat-card a:hover .cat-card__img { transform: none; box-shadow: none; }
	.cat-card__name { padding: 10px 12px; width: 100%; justify-content: center; }
	.cat-card__name .logo-mark { display: inline-block; }
	.corner-ornament { width: 110px; height: 110px; opacity: .35; }

	.carousel__track { grid-auto-columns: calc((100% - 14px) / 2.15); gap: 14px; }
	.carousel__nav { display: none; }

	.promo { grid-template-columns: 1fr; min-height: 0; }
	.promo--dark .promo__media { order: 0; min-height: 200px; position: absolute; inset: 0; z-index: -1; }
	.promo--dark .promo__media::after { background: linear-gradient(to left, rgba(107, 16, 20, .96) 40%, rgba(107, 16, 20, .45)); }
	.promo__body { padding: 28px 24px; }
	.newsletter { grid-template-columns: 1fr; padding: 28px 24px; gap: 18px; }
	.newsletter::after { display: none; }

	.home-blog .post-grid { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
	.home-blog .post-card { scroll-snap-align: start; }

	.footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
	.footer-brand { grid-column: 1 / -1; }
	.blog-layout.has-sidebar, .contact-layout, .about-hero__inner { grid-template-columns: 1fr; }
	.value-grid { grid-template-columns: repeat(2, 1fr); }

	/* Bottom nav */
	body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
	.bottom-nav {
		display: grid; grid-template-columns: repeat(4, 1fr);
		position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
		background: #fff; border-top: 1px solid var(--fj-border); box-shadow: 0 -4px 20px rgba(74, 32, 20, .06);
		padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
	}
	.bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; font-size: 11.5px; font-weight: 600; color: var(--fj-muted); }
	.bottom-nav a.is-active { color: var(--fj-primary); }
	.bottom-nav a.is-active .icon { fill: currentColor; fill-opacity: .12; }
	.bottom-nav .cart-count { top: 0; left: calc(50% - 22px); }
	.fj-toast { bottom: 90px; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 0; }
}

@media (max-width: 575px) {
	body { font-size: 14.5px; }
	.container { padding-inline: 16px; }
	.section { padding-block: 24px; }
	.section-title { font-size: 19px; }
	.hero__media { height: 280px; }
	.hero__text { font-size: 14.5px; }
	.hero__actions { flex-direction: column-reverse; gap: 14px; }
	.hero__actions .btn { width: 100%; max-width: 320px; }
	.qualities__list { gap: 8px; }
	.page-title { font-size: 22px; }
	.form-row--2 { grid-template-columns: 1fr; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.contact-form-card { padding: 20px; }
}
