/* ==========================================================================
   Salmod home — "warm boutique" (brand magenta, ivory, soft radii).
   Global fashion (big imagery, quiet type) + Iranian shop conventions
   (category row, amazing-offers box, side-by-side promo banners).
   Colours: --salmod-* tokens only.
   ========================================================================== */

.salmod-home-page .wd-page-title { display: none !important; }
.salmod-home-page #main-content { padding-top: 0 !important; padding-bottom: 0 !important; }
.salmod-home-page .wd-page-content { overflow-x: clip; background: var(--salmod-surface); }

.salmod-home {
	--brand: var(--salmod-brand);
	--brand-ink: var(--salmod-brand-ink);
	--brand-soft: var(--salmod-brand-soft);
	--ink: var(--salmod-primary);
	--muted: var(--salmod-muted-fg);
	--ivory: var(--salmod-ivory);
	--line: var(--salmod-line-soft);
	--rr: 18px;           /* large cards */
	--r: 12px;            /* small cards */
	--gap: clamp(10px, 1.4vw, 18px);
	--sec: clamp(36px, 5vw, 72px);
	--ease: cubic-bezier(.2, .7, .2, 1);
	color: var(--ink);
	padding-top: 12px;
}
.salmod-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.salmod-sec { margin-block: var(--sec); }
.salmod-arrow { flex: 0 0 auto; transition: transform .25s var(--ease); }
.salmod-js .salmod-reveal { opacity: 0; transform: translateY(14px); transition: opacity .4s ease-out, transform .4s var(--ease); }
.salmod-js .salmod-reveal.is-in { opacity: 1; transform: none; }

/* ---------------- Section head ---------------- */
.salmod-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.salmod-title { margin: 0; font-size: clamp(20px, 2.2vw, 30px); font-weight: 800; line-height: 1.4; color: var(--ink); text-wrap: balance; position: relative; padding-inline-start: 14px; }
.salmod-title::before { content: ""; position: absolute; inset-inline-start: 0; top: .35em; bottom: .35em; width: 4px; border-radius: 4px; background: var(--brand); }
.salmod-sub { margin: 4px 0 0; padding-inline-start: 14px; font-size: 14px; color: var(--muted); }
.salmod-more {
	display: inline-flex; align-items: center; gap: 6px;
	min-height: 44px; padding: 0 16px;
	border: 1px solid var(--salmod-border); border-radius: 999px;
	font-size: 14px; font-weight: 700; white-space: nowrap;
	color: var(--ink) !important;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.salmod-more:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink) !important; }
.salmod-more:hover .salmod-arrow, .salmod-btn:hover .salmod-arrow, a:hover .salmod-more--text .salmod-arrow { transform: translateX(-4px); }
.salmod-more--text { border: 0; padding: 0; min-height: 0; color: var(--brand-ink) !important; }

/* ---------------- Buttons ---------------- */
.salmod-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 24px;
	border-radius: 999px;
	background: var(--ink); color: var(--salmod-on-primary) !important;
	font-weight: 800; font-size: 15px;
	text-decoration: none !important;
	touch-action: manipulation;
	transition: background-color .2s ease, transform .15s ease;
}
.salmod-btn:hover { background: var(--brand); }
.salmod-btn:active { transform: scale(.98); }
.salmod-btn--light { background: var(--salmod-surface); color: var(--ink) !important; }
.salmod-btn--light:hover { background: var(--brand-soft); }
.salmod-btn--ghost { background: transparent; border: 1px solid currentColor; color: var(--salmod-surface) !important; }
.salmod-btn--ghost:hover { background: transparent; opacity: .85; }

/* ==================== HERO (inset, rounded) ==================== */
.salmod-hero { position: relative; }
.salmod-hero__viewport {
	position: relative; overflow: hidden;
	border-radius: var(--rr);
	background: var(--ivory);
	touch-action: pan-y;
	user-select: none; -webkit-user-select: none;
	cursor: grab;
	isolation: isolate;
}
.salmod-hero.is-dragging .salmod-hero__viewport { cursor: grabbing; }
.salmod-hero__track { display: flex; will-change: transform; }
.salmod-hero__slide { flex: 0 0 100%; position: relative; height: var(--hero-h-d, 520px); overflow: hidden; }
.salmod-hero__link { display: block; height: 100%; color: inherit !important; -webkit-user-drag: none; }
.salmod-hero__media, .salmod-hero__media img { display: block; width: 100%; height: 100%; }
.salmod-hero__media img { object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.salmod-hero__content { position: absolute; inset: 0; display: flex; align-items: center; }
.salmod-tone-light { background: linear-gradient(to left, rgba(12,10,9,.55), rgba(12,10,9,.15) 50%, transparent 75%); color: var(--salmod-surface); }
.salmod-tone-dark { background: linear-gradient(to left, rgba(255,255,255,.75), rgba(255,255,255,.25) 50%, transparent 75%); color: var(--ink); }
.salmod-hero__inner { padding: 0 clamp(24px, 5vw, 72px); max-width: 620px; }
.salmod-hero__sub { display: inline-block; font-size: clamp(12px, 1.1vw, 14px); font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--brand); color: var(--salmod-on-brand); margin-bottom: 14px; }
.salmod-hero__title { margin: 0 0 22px; font-size: clamp(26px, 3.8vw, 54px); font-weight: 900; line-height: 1.25; text-wrap: balance; }
.salmod-btn--hero { background: var(--salmod-surface); color: var(--ink) !important; }
.salmod-tone-dark .salmod-btn--hero { background: var(--ink); color: var(--salmod-on-primary) !important; }
.salmod-hero__slide:not(.is-active) .salmod-hero__inner { opacity: 0; transform: translateY(12px); }
.salmod-hero__inner { transition: opacity .5s ease .1s, transform .5s var(--ease) .1s; }
.salmod-hero__arrow {
	all: unset; position: absolute; top: 50%; z-index: 2;
	width: 48px; height: 48px; margin-top: -24px;
	border-radius: 999px; background: var(--salmod-surface); color: var(--ink);
	box-shadow: 0 6px 20px rgba(12,10,9,.15);
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer; opacity: 0; transition: opacity .2s ease, background-color .2s ease;
}
.salmod-hero__arrow svg { width: 20px; height: 20px; }
.salmod-hero:hover .salmod-hero__arrow, .salmod-hero__arrow:focus-visible { opacity: 1; }
.salmod-hero__arrow:hover { background: var(--brand-soft); }
.salmod-hero__arrow:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.salmod-hero__arrow--prev { right: 16px; }
.salmod-hero__arrow--next { left: 16px; }
.salmod-hero__bar { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; }
.salmod-hero__dots { display: flex; align-items: center; gap: 2px; }
.salmod-hero__dots button { all: unset; position: relative; cursor: pointer; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; }
.salmod-hero__dots button::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--salmod-border); transition: width .3s var(--ease), background-color .2s ease; }
.salmod-hero__dots button[aria-current="true"] { width: 44px; }
.salmod-hero__dots button[aria-current="true"]::before { width: 36px; }
.salmod-hero__dots button span { display: none; position: absolute; top: 8px; right: 4px; width: 36px; height: 8px; border-radius: 999px; background: var(--brand); transform-origin: right; }
.salmod-hero__dots button[aria-current="true"] span { display: block; }
.salmod-hero__dots button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-radius: 6px; }
.salmod-hero__pause { all: unset; cursor: pointer; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); border-radius: 999px; }
.salmod-hero__pause:hover { color: var(--ink); background: var(--ivory); }
.salmod-hero__pause:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.salmod-hero__pause svg { width: 14px; height: 14px; }
.salmod-hero__pause .i-play { display: none; }
.salmod-hero__pause[aria-pressed="true"] .i-play { display: block; }
.salmod-hero__pause[aria-pressed="true"] .i-pause { display: none; }
@media (max-width: 1024px) {
	.salmod-hero__slide { height: calc(var(--hero-h-d, 520px) * .75); }
	.salmod-hero__arrow { display: none; }
}
@media (max-width: 767px) {
	.salmod-home { --rr: 14px; }
	.salmod-hero__slide { height: var(--hero-h-m, 380px); }
	.salmod-hero__content { align-items: flex-end; }
	.salmod-tone-light { background: linear-gradient(to top, rgba(12,10,9,.62), rgba(12,10,9,.15) 55%, transparent 80%); }
	.salmod-tone-dark { background: linear-gradient(to top, rgba(255,255,255,.85), rgba(255,255,255,.3) 55%, transparent 80%); }
	.salmod-hero__inner { padding: 0 18px 22px; }
	.salmod-hero__title { margin-bottom: 14px; }
	.salmod-btn--hero { min-height: 44px; padding: 0 18px; font-size: 14px; }
}

/* ==================== STORIES ==================== */
.salmod-sec--stories { margin-block: 18px 0; }
.salmod-sec--stories .salmod-stories { margin: 0; }

/* ==================== Horizontal scrollers (touch-safe) ==================== */
.salmod-scroller, .salmod-rail .products {
	overflow-x: auto !important;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	touch-action: auto !important;          /* undo any theme touch-action:none */
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.salmod-scroller::-webkit-scrollbar, .salmod-rail .products::-webkit-scrollbar { display: none; }
.salmod-scroller *, .salmod-rail .products * { touch-action: auto !important; }
.is-dragging { scroll-snap-type: none !important; cursor: grabbing; }
.is-dragging a, .is-dragging img { pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .salmod-scroller, .salmod-rail .products { cursor: grab; } }

/* ==================== CATEGORY ROW ==================== */
.salmod-cats { display: flex; gap: var(--gap); padding-bottom: 6px; }
.salmod-cat { flex: 0 0 calc((100% - 7 * var(--gap)) / 8); scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink) !important; text-align: center; }
.salmod-cat__img { display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: var(--ivory); }
.salmod-cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); -webkit-user-drag: none; }
.salmod-cat__name { font-size: 14px; font-weight: 700; line-height: 1.4; }
@media (hover: hover) {
	.salmod-cat:hover .salmod-cat__img img { transform: scale(1.06); }
	.salmod-cat:hover .salmod-cat__name { color: var(--brand-ink); }
}
@media (max-width: 1024px) { .salmod-cat { flex-basis: calc((100% - 4 * var(--gap)) / 5.3); } }
@media (max-width: 767px) { .salmod-cat { flex-basis: calc((100% - 2 * var(--gap)) / 3.4); } .salmod-cat__name { font-size: 13px; } }

/* ==================== PRODUCT RAILS ==================== */
.salmod-sec--rail, .salmod-deal__rail { position: relative; }
.salmod-rail .woocommerce { width: 100%; }
.salmod-rail .products {
	display: flex !important; flex-wrap: nowrap !important;
	gap: var(--gap) !important;
	margin: 0 !important; padding: 0 0 6px !important;
	grid-template-columns: none !important;
}
.salmod-rail .products::before, .salmod-rail .products::after { display: none !important; }
.salmod-rail .products > * { flex: 0 0 calc((100% - 4 * var(--gap)) / 5.2) !important; max-width: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; scroll-snap-align: start; }
@media (max-width: 1024px) { .salmod-rail .products > * { flex-basis: calc((100% - 2 * var(--gap)) / 3.2) !important; } }
@media (max-width: 767px) { .salmod-rail .products > * { flex-basis: calc((100% - var(--gap)) / 2.2) !important; } }
.salmod-rail__nav { display: none; gap: 8px; position: absolute; top: 0; inset-inline-end: 0; }
.salmod-rail__nav button {
	all: unset; cursor: pointer; width: 44px; height: 44px;
	border-radius: 999px; border: 1px solid var(--salmod-border); background: var(--salmod-surface);
	display: inline-flex; align-items: center; justify-content: center;
	transition: background-color .2s ease, border-color .2s ease;
}
.salmod-rail__nav button::before { content: ""; width: 8px; height: 8px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: rotate(45deg); margin-right: 3px; }
.salmod-rail__nav [data-rail-next]::before { transform: rotate(-135deg); margin: 0 0 0 3px; }
.salmod-rail__nav button:hover { background: var(--brand-soft); border-color: var(--brand); }
.salmod-rail__nav button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (min-width: 1025px) {
	.salmod-sec--rail .salmod-rail__nav { display: flex; }
	.salmod-sec--rail .salmod-head { padding-inline-end: 112px; }
	.salmod-sec--rail .salmod-more { margin-inline-end: 0; }
}

/* ==================== AMAZING OFFERS BOX ==================== */
.salmod-deal { display: flex; gap: var(--gap); align-items: stretch; padding: clamp(14px, 2vw, 22px); border-radius: var(--rr); background: var(--brand); }
.salmod-deal__intro { flex: 0 0 clamp(170px, 16vw, 230px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; color: var(--salmod-on-brand); padding: 8px 6px; }
.salmod-deal__badge { width: 52px; height: 52px; border-radius: 999px; background: var(--salmod-surface); color: var(--brand-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900; }
.salmod-deal__title { margin: 0; font-size: clamp(22px, 2.4vw, 32px); font-weight: 900; color: var(--salmod-on-brand); }
.salmod-deal__intro p { margin: 0 0 6px; font-size: 14px; line-height: 1.9; color: var(--salmod-on-brand); }
.salmod-deal__rail { flex: 1; min-width: 0; }
.salmod-deal .salmod-rail .products > * { background: var(--salmod-surface); border-radius: var(--r); padding: 8px !important; flex-basis: calc((100% - 3 * var(--gap)) / 4.2) !important; }
.salmod-deal .salmod-rail__nav { display: none !important; }
@media (max-width: 1024px) { .salmod-deal .salmod-rail .products > * { flex-basis: calc((100% - var(--gap)) / 2.3) !important; } }
@media (max-width: 767px) {
	.salmod-deal { flex-direction: column; padding: 14px 12px; }
	.salmod-deal__intro { flex-basis: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 0; }
	.salmod-deal__intro p { display: none; }
	.salmod-deal__badge { width: 40px; height: 40px; font-size: 18px; }
	.salmod-deal__intro .salmod-btn { margin-inline-start: auto; min-height: 40px; padding: 0 14px; font-size: 13px; }
	.salmod-deal .salmod-rail .products > * { flex-basis: calc((100% - var(--gap)) / 2.15) !important; }
}

/* ==================== PROMO DUO ==================== */
.salmod-promos { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--gap); }
.salmod-promo { position: relative; overflow: hidden; border-radius: var(--rr); min-height: 300px; display: flex; isolation: isolate; }
.salmod-promo__body { position: relative; padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; width: 100%; }
.salmod-promo h2 { margin: 0; font-size: clamp(20px, 2vw, 28px); font-weight: 900; line-height: 1.4; }
.salmod-promo p { margin: 0; line-height: 1.95; font-size: 14.5px; }
.salmod-promo--photo { color: var(--salmod-surface); background: var(--ink); }
.salmod-promo__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.salmod-promo--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(12,10,9,.85), rgba(12,10,9,.35) 60%, rgba(12,10,9,.15)); }
.salmod-promo--photo h2 { color: var(--salmod-surface); }
.salmod-promo--photo p { color: var(--salmod-on-dark); max-width: 52ch; }
.salmod-promo__tag { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--brand); color: var(--salmod-on-brand); font-size: 12px; font-weight: 800; }
.salmod-promo__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.salmod-promo--soft { background: var(--brand-soft); color: var(--ink); }
.salmod-promo--soft .salmod-promo__body { justify-content: center; gap: 22px; }
.salmod-promo__row { display: flex; gap: 14px; align-items: flex-start; }
.salmod-promo__row h2 { font-size: clamp(17px, 1.6vw, 21px); margin-bottom: 4px; }
.salmod-promo__row p { color: var(--muted); }
.salmod-promo__icon { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 999px; background: var(--salmod-surface); color: var(--brand-ink); display: inline-flex; align-items: center; justify-content: center; }
.salmod-promo__icon .salmod-ico { width: 26px; height: 26px; }
@media (max-width: 900px) { .salmod-promos { grid-template-columns: 1fr; } .salmod-promo { min-height: 260px; } }

/* ==================== BENEFITS ==================== */
.salmod-benefits .salmod-features { margin: 0; gap: var(--gap); }
.salmod-benefits .salmod-features__item { border: 0; border-radius: var(--r); background: var(--ivory); padding: 18px; }
.salmod-benefits .salmod-features__icon { background: var(--salmod-surface); color: var(--brand-ink); }
.salmod-benefits .salmod-features__text strong { color: var(--ink); font-size: 15px; }
.salmod-benefits .salmod-features__text small { color: var(--muted); opacity: 1; font-size: 13px; }

/* ==================== ABOUT ==================== */
.salmod-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0; align-items: stretch; border-radius: var(--rr); overflow: hidden; background: var(--ivory); }
.salmod-about--noimg { grid-template-columns: 1fr; }
.salmod-about__img { margin: 0; min-height: 320px; }
.salmod-about__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.salmod-about__text { padding: clamp(24px, 4vw, 56px); align-self: center; }
.salmod-about__text p { margin: 12px 0 0; color: var(--muted); line-height: 2.05; font-size: 15px; max-width: 60ch; }
.salmod-about__text .salmod-btn { margin-top: 22px; }
@media (max-width: 767px) { .salmod-about { grid-template-columns: 1fr; } .salmod-about__img { min-height: 200px; max-height: 240px; } }

/* ==================== BLOG ==================== */
.salmod-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.salmod-post a { display: flex; flex-direction: column; height: 100%; border-radius: var(--rr); overflow: hidden; background: var(--salmod-surface); border: 1px solid var(--line); color: var(--ink) !important; transition: box-shadow .25s ease, transform .25s var(--ease); }
.salmod-post a:hover { box-shadow: 0 14px 34px rgba(12,10,9,.08); transform: translateY(-3px); }
.salmod-post__img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.salmod-post__ph { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: var(--brand-soft); color: var(--brand); }
.salmod-post__ph .salmod-ico { width: 44px; height: 44px; opacity: .6; }
.salmod-post__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.salmod-post h3 { margin: 0 0 8px; font-size: 16px; font-weight: 800; line-height: 1.7; }
.salmod-post p { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.95; flex: 1; }
@media (max-width: 900px) {
	.salmod-posts { display: flex; }
	.salmod-post { flex: 0 0 80%; scroll-snap-align: start; }
}

/* ==================== FAQ ==================== */
.salmod-faq__list { display: grid; gap: 10px; }
.salmod-faq__item { border-radius: var(--r); background: var(--ivory); padding: 0 18px; }
.salmod-faq__item summary { cursor: pointer; list-style: none; min-height: 56px; padding: 14px 0; font-weight: 800; font-size: 15px; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.salmod-faq__item summary::-webkit-details-marker { display: none; }
.salmod-faq__item summary::after { content: "+"; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 999px; background: var(--salmod-surface); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; color: var(--brand-ink); transition: transform .25s var(--ease); }
.salmod-faq__item[open] summary::after { transform: rotate(45deg); }
.salmod-faq__item p { margin: 0 0 18px; color: var(--muted); line-height: 2; }

@media (prefers-reduced-motion: reduce) {
	.salmod-js .salmod-reveal { opacity: 1; transform: none; transition: none; }
	.salmod-hero__inner, .salmod-hero__slide:not(.is-active) .salmod-hero__inner { opacity: 1; transform: none; transition: none; }
	.salmod-cat__img img, .salmod-post a, .salmod-arrow { transition: none; }
}
