/* ==========================================================================
   Faras Market — homepage only. Depends on faras-global.css (tokens, font).
   ========================================================================== */

.fm-home { font-family: var(--fm-font); color: var(--fm-ink); background: #fff; }
.fm-home *,
.fm-nav * { box-sizing: border-box; }
.fm-wrap { max-width: var(--fm-container); margin: 0 auto; padding-left: var(--fm-gutter); padding-right: var(--fm-gutter); }
.fm-home img { max-width: 100%; height: auto; }
.fm-home svg { display: block; }
.fm-ic { stroke-width: 1.8; }

/* --- S3 Nav -------------------------------------------------------------- */
.fm-nav { border-bottom: 1px solid var(--fm-line); background: #fff; }
.fm-nav-in { display: flex; align-items: center; gap: 36px; height: 56px; }
.fm-allcat {
	width: 280px; height: 56px; flex: none; display: flex; align-items: center; gap: 14px;
	padding: 0 20px; background: var(--fm-red); color: #fff; font-weight: 700; font-size: 15px;
	border-radius: var(--fm-r-btn) var(--fm-r-btn) 0 0; text-decoration: none;
}
.fm-allcat:hover { background: var(--fm-red-dark); color: #fff; }
.fm-allcat .fm-allcat-chev { margin-left: auto; }
.fm-links { display: flex; gap: 34px; align-items: center; height: 100%; margin: 0; padding: 0; list-style: none; }
.fm-links a {
	display: flex; align-items: center; height: 100%; font-size: 15px; font-weight: 600;
	color: var(--fm-ink); text-decoration: none; border-bottom: 3px solid transparent;
}
.fm-links a:hover { color: var(--fm-red); }
.fm-links a.is-active { color: var(--fm-red); border-bottom-color: var(--fm-red); }
.fm-nav-help { margin-left: auto; display: flex; gap: 26px; }
.fm-nav-help a { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--fm-ink); text-decoration: none; }
.fm-nav-help a:hover { color: var(--fm-red); }
.fm-nav-help .fm-wa { color: var(--fm-green); }
.fm-nav-help .fm-wa:hover { color: #14703b; }

/* --- S4 Hero ------------------------------------------------------------- */
.fm-hero { padding-top: 22px; }
.fm-hero-in { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: start; }

.fm-side { border: 1px solid var(--fm-line); border-top: 0; border-radius: 0 0 12px 12px; padding: 6px 0; background: #fff; align-self: start; }
.fm-side-r {
	display: flex; align-items: center; gap: 13px; padding: 0 18px; height: 41px;
	font-size: 14px; font-weight: 500; color: var(--fm-ink); text-decoration: none; border-bottom: 1px solid #F1F3F6;
}
.fm-side-r:last-child { border-bottom: 0; }
.fm-side-r:hover { color: var(--fm-red); background: #FBFCFE; }
.fm-side-r .fm-side-ic { color: var(--fm-navy); width: 19px; height: 19px; flex: none; }
.fm-side-r .fm-side-ch { margin-left: auto; width: 14px; height: 14px; color: #A2AAB7; flex: none; }
.fm-side-r.is-hl { color: var(--fm-red); font-weight: 700; }
.fm-side-r.is-hl .fm-side-ic { color: var(--fm-red); }
.fm-side-sub { padding-left: 50px; height: 36px; font-size: 13.5px; font-weight: 400; color: #3A4250; border-bottom: 1px solid #F6F7F9; }
.fm-side-sub span { flex: 1; }

/* Banner */
.fm-banner {
	position: relative; height: 452px; border-radius: var(--fm-r-banner); overflow: hidden;
	background: linear-gradient(105deg, #EEF4FC 0%, #E4EEFA 46%, #CFE1F6 100%);
}
.fm-slides { position: absolute; inset: 0; }
.fm-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease; }
.fm-slide.is-current { opacity: 1; visibility: visible; z-index: var(--fm-z-raised); }
/* Non-current slides carry [hidden] (display:none) until JS takes over, so with
   JS disabled only slide 1 (is-current, not hidden) renders. */

.fm-banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fm-banner-art { position: absolute; right: 0; top: 0; width: 56%; height: 100%; pointer-events: none; }
.fm-banner-art svg { position: absolute; }
.fm-banner-art .fm-a-tee { left: 8%; top: 44%; width: 170px; transform: rotate(-8deg); }
.fm-banner-art .fm-a-tall { left: 26%; top: 18%; width: 140px; }
.fm-banner-art .fm-a-sq { left: 42%; top: 12%; width: 152px; }
.fm-banner-art .fm-a-rd { left: 60%; top: 30%; width: 112px; }
.fm-banner-art .fm-a-xalwa { left: 28%; top: 56%; width: 140px; }
.fm-banner-art .fm-a-lotion { left: 56%; top: 58%; width: 104px; }
.fm-banner-art .fm-a-box { left: 70%; top: 6%; width: 92px; transform: rotate(10deg); }
.fm-banner-art .fm-a-cap { left: 46%; top: 50%; width: 150px; }

.fm-seal {
	position: absolute; left: 44%; top: 7%; width: 116px; height: 116px; border-radius: 50%;
	background: var(--fm-red); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center; z-index: var(--fm-z-control); box-shadow: 0 10px 26px rgba(215, 38, 30, .35); border: 4px solid #fff;
}
.fm-seal b { font-size: 19px; line-height: 1; font-weight: 900; letter-spacing: -.02em; }
.fm-seal small { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; margin-top: 6px; }

.fm-banner-txt { position: absolute; left: 64px; top: 46px; width: 560px; z-index: var(--fm-z-raised); }
.fm-kick { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--fm-red); }
.fm-h1 { font-size: 54px; line-height: 1.02; font-weight: 900; letter-spacing: -.035em; margin-top: 14px; color: var(--fm-navy); text-wrap: balance; }
.fm-h1 em { font-style: normal; color: var(--fm-red); }
.fm-lead { font-size: 17px; line-height: 1.6; color: #33415A; margin-top: 18px; max-width: 470px; }
.fm-slide-price { font-size: 17px; margin-top: 14px; color: #33415A; }
.fm-slide-price strong { color: var(--fm-navy); font-weight: 800; }
.fm-feats { display: flex; gap: 26px; margin-top: 26px; flex-wrap: wrap; }
.fm-feat { display: flex; gap: 11px; align-items: center; }
.fm-feat-c { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--fm-shadow-soft); flex: none; }
.fm-feat-c svg { stroke: var(--fm-red); width: 21px; height: 21px; }
.fm-feat b { display: block; font-size: 14px; }
.fm-feat small { font-size: 12.5px; color: var(--fm-muted); }
.fm-cta {
	display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; height: 56px; padding: 0 32px;
	border-radius: var(--fm-r-btn); background: var(--fm-red); color: #fff; font-size: 17px; font-weight: 700;
	text-decoration: none; box-shadow: var(--fm-shadow-red); transition: background .15s ease, transform .15s ease;
}
.fm-cta:hover { background: var(--fm-red-dark); color: #fff; transform: translateY(-1px); }
.fm-cta svg { stroke: #fff; }

.fm-arrow {
	position: absolute; top: 50%; margin-top: -23px; width: 46px; height: 46px; border-radius: 50%; border: 0;
	background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
	box-shadow: 0 6px 18px rgba(11, 36, 71, .14); z-index: var(--fm-z-control); color: var(--fm-navy);
}
.fm-arrow:hover { background: #F3F6FB; }
.fm-arrow-prev { left: 16px; }
.fm-arrow-next { right: 16px; }
.fm-dots { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; gap: 8px; z-index: var(--fm-z-control); }
.fm-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 5px; background: #B5C6DD; cursor: pointer; transition: width .2s ease, background .2s ease; }
.fm-dot.is-on { width: 30px; background: var(--fm-red); }

/* --- S5 Category tiles --------------------------------------------------- */
.fm-cats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; margin-top: 28px; }
.fm-ct {
	border-radius: var(--fm-r-card); height: 150px; display: flex; flex-direction: column; align-items: center;
	justify-content: flex-end; padding-bottom: 16px; gap: 10px; font-size: 14px; font-weight: 600;
	color: var(--fm-ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.fm-ct:hover { transform: translateY(-3px); box-shadow: var(--fm-shadow-soft); color: var(--fm-ink); }
.fm-ct-art { display: flex; align-items: flex-end; justify-content: center; height: 84px; }
.fm-ct-art svg { width: 84px; height: 84px; }
.fm-ct-all { background: var(--fm-red); color: #fff; }
.fm-ct-all:hover { color: #fff; background: var(--fm-red-dark); }
.fm-ct-allring { width: 84px; height: 84px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; }
.fm-ct-allring svg { stroke: #fff; stroke-width: 2.2; }

/* --- S6 Trust strip ------------------------------------------------------ */
.fm-trust { margin-top: 24px; background: var(--fm-bg); border-radius: var(--fm-r-card); display: grid; grid-template-columns: repeat(4, 1fr); padding: 22px 0; }
.fm-tr { display: flex; gap: 16px; align-items: center; padding: 0 30px; border-right: 1px solid #DDE3EB; }
.fm-tr:last-child { border-right: 0; }
.fm-tr > svg { width: 38px; height: 38px; stroke: var(--fm-navy); stroke-width: 1.5; flex: none; }
.fm-tr b { display: block; font-size: 15px; }
.fm-tr small { font-size: 13px; color: var(--fm-muted); }

/* --- Section heading ----------------------------------------------------- */
.fm-sh { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 46px; margin-bottom: 20px; gap: 18px; flex-wrap: wrap; }
.fm-h2 { font-size: 32px; font-weight: 900; letter-spacing: -.025em; color: var(--fm-navy); display: flex; align-items: center; gap: 12px; margin: 0; }
.fm-sh-l p { font-size: 15px; color: var(--fm-muted); margin: 4px 0 0; }
.fm-sh-r { display: flex; gap: 18px; align-items: center; }
.fm-tabs { display: flex; gap: 8px; }
.fm-tab { height: 42px; padding: 0 18px; border-radius: 21px; border: 1.5px solid var(--fm-line); background: #fff; font-size: 14px; font-weight: 600; font-family: inherit; color: var(--fm-ink); cursor: pointer; display: flex; align-items: center; }
.fm-tab:hover { border-color: #C7CEDA; }
.fm-tab.is-on { background: var(--fm-navy); border-color: var(--fm-navy); color: #fff; }
.fm-va { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border: 1.5px solid var(--fm-red); color: var(--fm-red); border-radius: var(--fm-r-btn); font-weight: 700; font-size: 14px; text-decoration: none; }
.fm-va:hover { background: var(--fm-red); color: #fff; }
.fm-va svg { stroke: currentColor; }

/* --- S7 Featured products ------------------------------------------------ */
.fm-prods { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.fm-prods[hidden] { display: none; }
.fm-empty { grid-column: 1 / -1; padding: 30px; text-align: center; color: var(--fm-muted); font-size: 15px; }
.fm-empty a { color: var(--fm-red); font-weight: 600; }

.fm-pc { border: 1px solid var(--fm-line); border-radius: var(--fm-r-card); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .15s ease, transform .15s ease; }
.fm-pc:hover { box-shadow: var(--fm-shadow-soft); transform: translateY(-2px); }
.fm-pc-im { height: 200px; display: flex; align-items: center; justify-content: center; position: relative; }
.fm-pc-imglink { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.fm-pc-photo { max-height: 172px; width: auto; max-width: 86%; object-fit: contain; }
.fm-pc-im .fm-art { height: 164px; width: 164px; }
.fm-tag { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 800; padding: 5px 9px; border-radius: 5px; letter-spacing: .04em; color: #fff; }
.fm-tag-navy { background: var(--fm-navy); }
.fm-tag-red { background: var(--fm-red); }
.fm-tag-sale { top: auto; bottom: 12px; left: 12px; background: var(--fm-red); }
.fm-tag-new { top: auto; bottom: 12px; left: 12px; background: var(--fm-green); }
.fm-heart, .fm-heart-wrap > a, .fm-heart-wrap .wd-wishlist-btn-icon {
	position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; background: #fff;
	display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); color: var(--fm-red);
}
.fm-heart svg { width: 17px; height: 17px; stroke: var(--fm-red); stroke-width: 2; }
.fm-heart::after { content: ""; position: absolute; inset: -4px; } /* 44px tap target */
.fm-pc-bd { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.fm-pc-cg { font-size: 12px; color: var(--fm-muted); font-weight: 600; }
.fm-pc-name { font-size: 15px; font-weight: 700; line-height: 1.35; margin: 4px 0 0; min-height: 41px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fm-pc-name a { color: var(--fm-ink); text-decoration: none; }
.fm-pc-name a:hover { color: var(--fm-red); }
.fm-pc-stk { font-size: 12px; font-weight: 700; color: var(--fm-green); display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.fm-pc-stk i { width: 7px; height: 7px; border-radius: 50%; background: var(--fm-green); }
.fm-pc-oos { color: var(--fm-muted); }
.fm-pc-oos i { background: var(--fm-muted); }
.fm-pc-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 10px; }
.fm-pc-pr { font-size: 21px; font-weight: 900; color: var(--fm-red); letter-spacing: -.01em; }
.fm-pc-pr del { color: var(--fm-muted); font-weight: 600; font-size: 14px; margin-right: 4px; }
.fm-pc-pr ins { text-decoration: none; }
.fm-pc-cb { width: 42px; height: 42px; flex: none; border-radius: var(--fm-r-btn); background: var(--fm-navy); display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; transition: background .15s ease; }
.fm-pc-cb:hover { background: var(--fm-navy-2); color: #fff; }
.fm-pc-cb svg { stroke: #fff; width: 19px; height: 19px; }
.fm-pc-cb.added::after { content: "✓"; }

/* --- S8 Promo banners ---------------------------------------------------- */
.fm-promos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.fm-pm { position: relative; overflow: hidden; height: 200px; border-radius: var(--fm-r-banner); padding: 30px 32px; text-decoration: none; display: block; }
.fm-pm-navy { background: linear-gradient(120deg, #0B2447, #1D4A86); color: #fff; }
.fm-pm-red { background: linear-gradient(120deg, #D7261E, #B81D16); color: #fff; }
.fm-pm-gold { background: linear-gradient(120deg, #F6C445, #EBA61E); color: #2A1A04; }
.fm-pm-h { font-size: 30px; font-weight: 900; letter-spacing: -.02em; line-height: 1.05; text-transform: uppercase; margin: 0; max-width: 60%; position: relative; z-index: var(--fm-z-raised); }
.fm-pm p { font-size: 17px; margin: 6px 0 0; font-weight: 500; max-width: 58%; position: relative; z-index: var(--fm-z-raised); }
.fm-pm-navy p { color: #C9D8EE; }
.fm-pm-red p { color: #FFDCD9; }
.fm-pm-b { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; height: 44px; padding: 0 20px; border-radius: 22px; font-size: 14px; font-weight: 700; background: #fff; position: relative; z-index: var(--fm-z-raised); transition: transform .15s ease; }
.fm-pm-navy .fm-pm-b { color: var(--fm-navy); }
.fm-pm-red .fm-pm-b { color: var(--fm-red); }
.fm-pm-b-navy { background: var(--fm-navy); color: #fff !important; }
.fm-pm:hover .fm-pm-b { transform: translateX(3px); }
.fm-pm-art { position: absolute; right: 8px; bottom: 0; width: 210px; height: 190px; z-index: var(--fm-z-base); }
.fm-pm-art svg { position: absolute; bottom: 0; }
.fm-pm-art .fm-pm-a1 { right: 86px; bottom: 6px; width: 120px; }
.fm-pm-art .fm-pm-a2 { right: 10px; bottom: 10px; width: 120px; }
.fm-pm-art .fm-pm-tee { right: 40px; bottom: 6px; width: 150px; }
.fm-pm-art .fm-pm-cap { right: 6px; bottom: 2px; width: 96px; }
.fm-pm-art .fm-pm-xalwa { right: 18px; bottom: 18px; width: 170px; }

/* --- S9 Popular searches + payments ------------------------------------- */
.fm-strip { margin-top: 30px; border: 1px solid var(--fm-line); border-radius: var(--fm-r-card); display: flex; align-items: center; gap: 14px; padding: 14px 28px; min-height: 78px; flex-wrap: wrap; }
.fm-strip-t { font-size: 18px; font-weight: 800; color: var(--fm-navy); }
.fm-chip { height: 38px; padding: 0 16px; border-radius: 19px; background: var(--fm-bg); display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--fm-ink); text-decoration: none; }
.fm-chip:hover { background: #E7ECF3; color: var(--fm-red); }
.fm-chip svg { stroke: var(--fm-muted); }
.fm-pay { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fm-pay-badge { height: 34px; padding: 0 12px; border: 1px solid var(--fm-line); border-radius: 7px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 800; background: #fff; color: var(--fm-ink); }

.fm-home { padding-bottom: 8px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.fm-hero-in { grid-template-columns: 1fr; }
	.fm-side { display: none; }
	.fm-banner-txt { width: 56%; }
	.fm-banner-art { width: 44%; }
	.fm-seal { left: auto; right: 6%; top: 5%; }
	.fm-prods { grid-template-columns: repeat(4, 1fr); }
	.fm-cats { grid-template-columns: repeat(4, 1fr); }
	.fm-promos { grid-template-columns: 1fr; }
	/* Promos are full-width here — let text use the room. */
	.fm-pm-h, .fm-pm p { max-width: 70%; }
}

@media (max-width: 900px) {
	.fm-nav-in { gap: 18px; }
	.fm-allcat { width: 220px; }
	.fm-links { gap: 20px; overflow-x: auto; }
	.fm-nav-help { display: none; }
	.fm-h1 { font-size: 44px; }
	.fm-trust { grid-template-columns: 1fr 1fr; gap: 6px 0; }
	.fm-tr:nth-child(2) { border-right: 0; }
}

@media (max-width: 640px) {
	:root { --fm-gutter: 16px; }
	.fm-nav-in { height: 52px; }
	.fm-allcat { width: auto; padding: 0 14px; font-size: 14px; }
	.fm-allcat span { display: none; }
	.fm-banner { height: auto; }
	.fm-slide { position: relative; }
	.fm-slides { position: static; }
	.fm-banner-txt { position: static; width: auto; padding: 28px 22px 0; }
	.fm-banner-bg { display: none; }
	.fm-banner-art { position: relative; width: 100%; height: 220px; margin-top: 10px; }
	.fm-seal { left: auto; right: 16px; top: 16px; width: 92px; height: 92px; }
	.fm-seal b { font-size: 15px; }
	.fm-h1 { font-size: 34px; }
	.fm-lead { font-size: 15px; }
	.fm-feats { gap: 16px; }
	.fm-cta { margin-bottom: 24px; }
	.fm-arrow { display: none; }
	.fm-dots { position: static; transform: none; justify-content: center; padding: 14px 0; }

	.fm-cats { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
	.fm-ct { flex: 0 0 150px; scroll-snap-align: start; }

	.fm-trust { grid-template-columns: 1fr 1fr; padding: 16px 0; }
	.fm-tr { padding: 10px 16px; border-right: 1px solid #DDE3EB; }
	.fm-tr:nth-child(2n) { border-right: 0; }

	.fm-sh { margin-top: 34px; }
	.fm-h2 { font-size: 26px; }
	.fm-sh-r { width: 100%; flex-direction: column; align-items: flex-start; }
	.fm-tabs { width: 100%; overflow-x: auto; }
	.fm-prods { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.fm-pc-pr { font-size: 18px; }

	.fm-strip { gap: 10px; }
	.fm-pay { margin-left: 0; width: 100%; }
}

/* --- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	.fm-slide { transition: none; }
	.fm-cta, .fm-ct, .fm-pc, .fm-pm-b, .fm-dot { transition: none; }
	.fm-cta:hover, .fm-ct:hover, .fm-pc:hover { transform: none; }
}
