/*
 * Shopino Elementor Addons – addons.css
 * رنگ‌ها از متغیرهای قالب شاپینو (--sh-*) خوانده می‌شوند؛ با قالب دیگر هم مقدار پیش‌فرض دارند.
 * از ویژگی‌های منطقی (inline-start/end) استفاده شده تا در RTL و LTR درست کار کند.
 */

.sea-w {
	--sea-primary: var(--sh-primary, #0b7a75);
	--sea-accent: var(--sh-accent, #f2a93b);
	--sea-surface: var(--sh-surface, #ffffff);
	--sea-bg: var(--sh-bg, #f4f6f8);
	--sea-border: var(--sh-border, #e3e6eb);
	--sea-text: var(--sh-text, #3a4252);
	--sea-heading: var(--sh-heading, #101a2b);
	--sea-muted: var(--sh-muted, #7b8494);
	--sea-star: var(--sh-star, #f2a93b);
	--sea-sale: var(--sh-sale-bg, #e5484d);
	--sea-radius: var(--sh-radius, 14px);
	--sea-soft: color-mix(in srgb, var(--sea-primary) 10%, transparent);
	--sea-ease: cubic-bezier(.2, .7, .2, 1);
	box-sizing: border-box;
	font-family: inherit;
	color: var(--sea-text);
}
.sea-w *, .sea-w *::before, .sea-w *::after { box-sizing: border-box; }
.sea-w a { text-decoration: none; }

.sea-notice {
	padding: 18px; border: 1px dashed var(--sea-border); border-radius: var(--sea-radius);
	background: var(--sea-surface); color: var(--sea-muted); text-align: center;
}

/* ---------- عنوان بخش ---------- */
.sea-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sea-head__title {
	position: relative; margin: 0; padding-inline-start: 18px;
	color: var(--sea-heading); font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); font-weight: 700; line-height: 1.5;
}
.sea-head__title::before {
	content: ""; position: absolute; inset-inline-start: 0; inset-block: .25em;
	width: 6px; border-radius: 6px; background: var(--sea-accent);
}
.sea-head__more {
	display: inline-flex; align-items: center; padding: .45em 1.1em;
	border: 1px solid var(--sea-border); border-radius: 999px; background: var(--sea-surface);
	color: var(--sea-heading); font-size: .9rem; font-weight: 500;
	transition: border-color .2s, color .2s, background-color .2s;
}
.sea-head__more:hover { border-color: var(--sea-primary); background: var(--sea-soft); color: var(--sea-primary); }

/* ---------- محصولات ---------- */
.sea-products { --sea-cols: 4; --sea-gap: 20px; }
.sea-stage { position: relative; }

.sea-products--grid .sea-track {
	display: grid; gap: var(--sea-gap);
	grid-template-columns: repeat(var(--sea-cols), minmax(0, 1fr));
}
.sea-products--carousel .sea-track {
	display: flex; gap: var(--sea-gap); padding-block: 4px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.sea-products--carousel .sea-track::-webkit-scrollbar { display: none; }
.sea-products--carousel .sea-card {
	flex: 0 0 calc((100% - var(--sea-gap) * (var(--sea-cols) - 1)) / var(--sea-cols));
	scroll-snap-align: start;
}

.sea-card {
	position: relative; display: flex; flex-direction: column; min-width: 0; padding: 10px 10px 16px;
	background: var(--sea-surface); border: 1px solid var(--sea-border); border-radius: var(--sea-radius);
	transition: transform .3s var(--sea-ease), box-shadow .3s, border-color .2s;
}
.sea-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--sea-primary) 30%, var(--sea-border)); box-shadow: 0 14px 32px -16px rgba(16, 26, 43, .28); }

.sea-card__media {
	position: relative; display: block; margin-bottom: 14px; overflow: hidden;
	aspect-ratio: 1; border-radius: max(6px, calc(var(--sea-radius) - 4px)); background: var(--sea-bg);
}
.sea-card__media img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; transition: transform .6s var(--sea-ease); }
.sea-card:hover .sea-card__media img { transform: scale(1.05); }

.sea-badge {
	position: absolute; inset-block-start: 10px; inset-inline-start: 10px; z-index: 2;
	padding: .1em .75em; border-radius: 999px; background: var(--sea-sale); color: #fff;
	font-size: .8rem; font-weight: 700; line-height: 1.8;
}
.sea-badge--out { inset-inline-start: auto; inset-inline-end: 10px; background: var(--sea-heading); }

.sea-card__title {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	min-height: 3.4em; margin: 0 6px .4em; font-size: .96rem; font-weight: 600; line-height: 1.7;
}
.sea-card__title a { color: var(--sea-heading); transition: color .15s; }
.sea-card__title a:hover { color: var(--sea-primary); }

.sea-card__rating { margin: 0 6px .3em; }
.sea-card__rating .star-rating {
	position: relative; display: block; width: 5.7em; height: 1.1em; margin: 0;
	overflow: hidden; font-size: 1rem; line-height: 1; letter-spacing: .1em;
}
.sea-card__rating .star-rating::before { content: "★★★★★"; position: absolute; inset-block-start: 0; inset-inline-start: 0; color: var(--sea-border); }
.sea-card__rating .star-rating span { position: absolute; inset-block-start: 0; inset-inline-start: 0; height: 100%; overflow: hidden; font-size: 0; }
.sea-card__rating .star-rating span::before { content: "★★★★★"; position: absolute; inset-block-start: 0; inset-inline-start: 0; color: var(--sea-star); font-size: 1rem; }

.sea-card__price { margin: auto 6px 0; padding-top: .3em; color: var(--sea-heading); font-size: 1.02rem; font-weight: 700; }
.sea-card__price del { margin-inline-end: .5em; color: var(--sea-muted); font-size: .85em; font-weight: 400; }
.sea-card__price ins { text-decoration: none; background: none; }
.sea-card__price .woocommerce-Price-currencySymbol { margin-inline-start: .25em; font-size: .8em; font-weight: 500; }

.sea-card .button {
	display: flex; align-items: center; justify-content: center;
	width: calc(100% - 12px); margin: 14px 6px 0; padding: .65em 1em; border: 0; border-radius: 10px;
	background: var(--sea-soft); color: var(--sea-primary);
	font: inherit; font-size: .92rem; font-weight: 600; line-height: 1.5; cursor: pointer;
	transition: background-color .2s, color .2s;
}
.sea-card .button:hover { background: var(--sea-primary); color: #fff; }
.sea-card .button.loading { opacity: .6; pointer-events: none; }
.sea-card .added_to_cart { display: block; margin: 8px 6px 0; color: var(--sea-primary); font-size: .88rem; text-align: center; }

/* فلش‌های کاروسل */
.sea-nav__btn {
	position: absolute; inset-block-start: calc(50% - 22px); z-index: 5;
	display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
	border: 1px solid var(--sea-border); border-radius: 50%;
	background: var(--sea-surface); color: var(--sea-heading); cursor: pointer;
	box-shadow: 0 8px 20px -8px rgba(16, 26, 43, .35);
	transition: background-color .2s, color .2s, opacity .2s, transform .2s var(--sea-ease);
}
.sea-nav__btn:hover { background: var(--sea-primary); color: #fff; transform: scale(1.06); }
.sea-nav__btn--prev { inset-inline-start: -14px; }
.sea-nav__btn--next { inset-inline-end: -14px; }
[dir="ltr"] .sea-nav__btn svg { transform: scaleX(-1); }
.sea-nav__btn.is-hidden { opacity: 0; pointer-events: none; }
@media (max-width: 767px) {
	.sea-nav__btn { width: 38px; height: 38px; inset-block-start: calc(50% - 19px); }
	.sea-nav__btn--prev { inset-inline-start: -6px; }
	.sea-nav__btn--next { inset-inline-end: -6px; }
}

/* ---------- دسته‌بندی‌ها ---------- */
.sea-cats { --sea-cols: 6; --sea-gap: 16px; }
.sea-cats__grid { display: grid; gap: var(--sea-gap); grid-template-columns: repeat(var(--sea-cols), minmax(0, 1fr)); }
.sea-cat {
	display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 22px 12px 18px;
	background: var(--sea-surface); border: 1px solid var(--sea-border); border-radius: var(--sea-radius);
	color: var(--sea-heading); text-align: center;
	transition: transform .3s var(--sea-ease), box-shadow .3s, border-color .2s;
}
.sea-cat:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--sea-primary) 35%, var(--sea-border)); box-shadow: 0 14px 32px -16px rgba(16, 26, 43, .28); }
.sea-cat__media {
	display: grid; place-items: center; width: 92px; height: 92px; margin-bottom: 10px; overflow: hidden;
	border-radius: 50%; background: var(--sea-soft);
	outline: 2px dashed color-mix(in srgb, var(--sea-primary) 25%, transparent); outline-offset: 4px;
	transition: outline-color .2s;
}
.sea-cat:hover .sea-cat__media { outline-color: var(--sea-primary); }
.sea-cat__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sea-cat__mono { color: var(--sea-primary); font-size: 2.2rem; font-weight: 800; line-height: 1; }
.sea-cat__name { font-weight: 600; }
.sea-cat__count { color: var(--sea-muted); font-size: .82rem; }

/* ---------- هیرو ---------- */
.sea-hero {
	position: relative; isolation: isolate; overflow: hidden;
	display: grid; align-items: center; gap: 32px; min-height: 320px;
	padding: clamp(28px, 5vw, 64px); border-radius: 28px;
	background:
		radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--sea-primary) 60%, #fff) 0%, transparent 55%),
		linear-gradient(135deg, var(--sea-primary), color-mix(in srgb, var(--sea-primary) 62%, #000));
	color: #fff; grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 800px) { .sea-hero.has-image { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.sea-hero--img-start .sea-hero__media { order: -1; }
.sea-pattern-yes .sea-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .1;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.2'%3E%3Crect x='14' y='14' width='44' height='44'/%3E%3Crect x='14' y='14' width='44' height='44' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 72px 72px;
	-webkit-mask-image: linear-gradient(to left, #000, transparent 85%); mask-image: linear-gradient(to left, #000, transparent 85%);
}
.sea-hero__title { max-width: 18ch; margin: 0 0 .45em; color: #fff; font-size: clamp(1.9rem, 1.1rem + 3vw, 3.2rem); font-weight: 800; line-height: 1.4; }
.sea-hero__text { max-width: 48ch; margin: 0 0 1.6em; color: #fff; font-size: 1.1rem; opacity: .92; }
.sea-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sea-btn {
	display: inline-flex; align-items: center; justify-content: center; padding: .95em 2em;
	border-radius: 12px; font-weight: 600; line-height: 1.5;
	transition: background-color .2s, color .2s, transform .2s var(--sea-ease);
}
.sea-btn--main { background: var(--sea-accent); color: #1b1300; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
.sea-btn--main:hover { background: #fff; color: #101a2b; transform: translateY(-2px); }
.sea-btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px currentColor; }
.sea-btn--ghost:hover { background: rgba(255, 255, 255, .14); }
.sea-hero__media img { display: block; width: 100%; max-height: 440px; object-fit: cover; border-radius: 22px; box-shadow: 0 28px 60px -24px rgba(0, 0, 0, .5); }

/* ---------- بنر تبلیغاتی ---------- */
.sea-promo {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px;
	min-height: 200px; padding: clamp(22px, 3vw, 38px); border-radius: 20px;
	background: var(--sea-accent); color: #2a1c00; text-align: start;
	transition: transform .3s var(--sea-ease), box-shadow .3s;
}
a.sea-promo:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(16, 26, 43, .4); color: #2a1c00; }
.sea-align-center .sea-promo { align-items: center; text-align: center; }
.sea-align-end .sea-promo { align-items: flex-end; text-align: end; }
.sea-shape-yes .sea-promo::before {
	content: ""; position: absolute; z-index: -1; inset-block-end: -70px; inset-inline-end: -50px;
	width: 260px; aspect-ratio: 1; background: currentColor; opacity: .1;
	clip-path: polygon(50% 0, 63% 18.6%, 85.4% 14.6%, 81.4% 37%, 100% 50%, 81.4% 63%, 85.4% 85.4%, 63% 81.4%, 50% 100%, 37% 81.4%, 14.6% 85.4%, 18.6% 63%, 0 50%, 18.6% 37%, 14.6% 14.6%, 37% 18.6%);
}
.sea-promo__title { margin: 0; color: inherit; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); font-weight: 800; line-height: 1.5; }
.sea-promo__text { max-width: 34ch; margin: 0 0 12px; color: inherit; opacity: .85; }
.sea-promo__btn { display: inline-flex; padding: .5em 1.3em; border-radius: 999px; background: #2a1c00; color: #fff; font-size: .92rem; font-weight: 600; }

/* ---------- نوار مزایا ---------- */
.sea-trust {
	--sea-cols: 4;
	display: grid; gap: 20px; padding: 24px clamp(20px, 3vw, 36px);
	grid-template-columns: repeat(var(--sea-cols), minmax(0, 1fr));
	background: var(--sea-surface); border: 1px solid var(--sea-border); border-radius: 20px;
}
.sea-trust__item { display: flex; align-items: center; gap: 14px; }
.sea-trust__icon {
	display: grid; place-items: center; flex: none; width: 54px; height: 54px;
	border-radius: 16px; background: var(--sea-soft); color: var(--sea-primary); font-size: 24px;
}
.sea-trust__icon svg { width: 1em; height: 1em; fill: currentColor; }
.sea-trust__title { display: block; color: var(--sea-heading); font-weight: 600; line-height: 1.6; }
.sea-trust__desc { display: block; color: var(--sea-muted); font-size: .85rem; line-height: 1.6; }

/* ---------- تایمر ---------- */
.sea-count {
	display: flex; flex-direction: column; align-items: center; gap: 18px; padding: clamp(22px, 3vw, 36px);
	border: 1px solid transparent; border-radius: 22px;
	background: linear-gradient(135deg, var(--sea-heading), color-mix(in srgb, var(--sea-heading) 80%, var(--sea-primary)));
	color: #fff; text-align: center;
}
.sea-count__title { color: #fff; font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem); font-weight: 700; line-height: 1.6; }
.sea-count__cells { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; direction: rtl; }
.sea-count__cell {
	min-width: 82px; padding: 14px 12px 12px; border-radius: 16px;
	background: rgba(255, 255, 255, .1); color: #fff;
}
.sea-count__num { display: block; color: var(--sea-accent); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 800; line-height: 1.3; font-variant-numeric: tabular-nums; }
.sea-count__label { display: block; margin-top: 2px; color: rgba(255, 255, 255, .75); font-size: .85rem; }
.sea-count__expired { padding: .6em 1.4em; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.sea-count__expired[hidden] { display: none; }
.sea-count__btn { display: inline-flex; padding: .8em 2em; border-radius: 12px; background: var(--sea-accent); color: #1b1300; font-weight: 600; transition: background-color .2s, color .2s; }
.sea-count__btn:hover { background: #fff; color: #101a2b; }

/* ---------- ریسپانسیو پیش‌فرض (اگر در المنتور تنظیم نشده باشد) ---------- */
@media (max-width: 1024px) {
	.sea-products { --sea-cols: 3; }
	.sea-cats { --sea-cols: 3; }
	.sea-trust { --sea-cols: 2; }
}
@media (max-width: 767px) {
	.sea-products { --sea-cols: 2; --sea-gap: 12px; }
	.sea-cats { --sea-cols: 2; }
	.sea-trust { --sea-cols: 1; }
	.sea-count__cell { min-width: 68px; }
}

@media (prefers-reduced-motion: reduce) {
	.sea-w *, .sea-w *::before, .sea-w *::after { transition-duration: .01ms !important; }
}
