/* =========================================================
   صفحهٔ اصلی دلسارو — دقیقاً مطابق طراحی کاربر
   همهٔ استایل‌ها زیر .dl-home اسکوپ شده‌اند
   ========================================================= */

.dl-home{--n:#0d3b66;--n9:#082c50;--g:#e63946;--g2:#d42b3d;--c:#f7fafc;--m:#43536b;--o:#e8833a;background:var(--c);color:var(--n);font-family:'Vazirmatn',Tahoma,'Segoe UI',sans-serif;line-height:1.8;direction:rtl}
.dl-home *{box-sizing:border-box}
.dl-home a{color:inherit;text-decoration:none}
.dl-home h1,
.dl-home h2,
.dl-home h3{line-height:1.45;font-weight:700;margin:0}
.dl-home .c{max-width:1180px;margin:auto;padding:0 20px}
.dl-home .dls-home-custom-content{display:flow-root;max-width:100%;overflow-x:auto;overflow-wrap:anywhere;isolation:isolate;contain:inline-size layout paint}
.dl-home .dls-home-custom-content img{display:inline-block;max-width:100%!important;height:auto;vertical-align:middle}
.dl-home .dls-home-custom-content :where(video,iframe){max-width:100%}
.dl-home .dls-home-custom-content :where(p,ul,ol,blockquote){margin-block:0 1em}
.dl-home .dls-home-custom-content :where(h2,h3,h4){margin-block:0 16px}
.dl-home .dls-home-custom-content a{text-decoration:underline;text-underline-offset:3px}
.dl-home .dls-home-custom-content table{border-collapse:collapse}
.dl-home .dls-home-custom-content :where(th,td){padding:10px;border:1px solid #ddd6c7}
.dl-home{padding-top:24px;padding-bottom:56px}
.dl-home .sec{padding:0}
.dl-home > * + *{margin-top:56px}
.dl-home .sh{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:28px}
.dl-home .sh h2{font-size:1.65rem}
.dl-home .sh a{font-weight:600;border-bottom:2px solid var(--g);white-space:nowrap}
.dl-home .btn{display:inline-block;padding:11px 24px;border-radius:14px;font-weight:700;font-size:.95rem;border:2px solid var(--n);background:var(--g);color:var(--n)!important;box-shadow:3px 3px 0 var(--n);text-decoration:none;transition:transform .15s,box-shadow .15s;font-family:inherit;cursor:pointer;min-height:46px;display:inline-flex;align-items:center;justify-content:center}
.dl-home .btn:hover{transform:none;box-shadow:3px 3px 0 var(--n)}
.dl-home .btn.w{background:#fff}
.dl-home .ph{aspect-ratio:1;border-radius:18px;background:repeating-linear-gradient(0deg,rgba(13,59,102,.07) 0 2px,transparent 2px 7px),var(--t,#e8e1d3);display:grid;place-items:center;color:rgba(13,59,102,.45);font-size:.75rem;overflow:hidden}
/* کل تصویر داخل کادر دیده شود (بدون برش) */
.dl-home .ph img{width:100%;height:100%;object-fit:contain;display:block}

/* ===== نوار اعتماد (زیر مراسم فصلی) ===== */
.dl-home .trust .c{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;background:#fff;border:1.5px solid #e7e0d2;border-radius:20px;padding:20px 24px;box-shadow:0 2px 10px rgba(13,59,102,.05)}
.dl-home .trust b{display:block;font-size:.95rem}
.dl-home .trust span{color:var(--m);font-size:.82rem}

/* ===== دسته‌ها ===== */
.dl-home .kt{font-size:1.15rem;display:inline-block;padding-bottom:8px;border-bottom:2px solid var(--g);margin:0 0 22px}
.dl-home .kg{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}
.dl-home .cc{background:#fff;border-radius:18px;padding:16px 10px 14px;text-align:center;box-shadow:0 2px 10px rgba(13,59,102,.06);display:flex;flex-direction:column;align-items:center;gap:12px;transition:transform .2s,box-shadow .2s}
.dl-home .cc:hover{transform:translateY(-4px);box-shadow:0 8px 20px rgba(13,59,102,.12)}
.dl-home .cc .im{width:100%;max-width:150px;aspect-ratio:1;border-radius:50%;background:repeating-linear-gradient(0deg,rgba(255,255,255,.07) 0 2px,transparent 2px 8px),radial-gradient(circle at 35% 30%,var(--g,#c9cdd2),var(--h,#5d6670));background-size:cover;background-position:center}
.dl-home .cc b{font-size:.85rem;font-weight:600;color:var(--m);min-height:2.9em;display:flex;align-items:center}

/* ===== مراسم فصلی — .hs بدون پدینگ (فاصله از بخش قبل/بعد) ===== */
.dl-home .hs{padding:0}
.dl-home .hw{position:relative;overflow:hidden;border-radius:26px;padding:34px 30px 28px;display:grid;grid-template-columns:270px 1fr;gap:26px;align-items:end;background:radial-gradient(circle at 30% 30%,#6a2fa8,#3d1670 55%,#2a0e52);box-shadow:inset 0 0 0 2px #d9b24a55;color:#fff}
.dl-home .hw:before{content:"";position:absolute;inset:0;background:radial-gradient(2px 2px at 20% 30%,#fff9,transparent),radial-gradient(2px 2px at 60% 15%,#ffd24acc,transparent),radial-gradient(2px 2px at 80% 40%,#fff9,transparent),radial-gradient(2px 2px at 45% 55%,#ffd24a99,transparent),radial-gradient(1.5px 1.5px at 10% 70%,#fff8,transparent);pointer-events:none}
.dl-home .web{position:absolute;top:0;left:0;width:150px;opacity:.55}
.dl-home .web.r{left:auto;right:0;width:150px;transform:scaleX(-1)}
.dl-home .web.r svg{width:100%}
.dl-home .bat{position:absolute;width:38px;top:70px;left:46%}
.dl-home .bat.b2{left:30%;top:40px;transform:scale(.7)}
.dl-home .bat.b3{left:62%;top:90px;transform:scale(.55)}
.dl-home .bat svg{width:100%}
.dl-home .hf{position:relative;align-self:start;padding-top:48px}
.dl-home .hf h2{font-size:1.65rem;line-height:1.7;margin-bottom:22px}
.dl-home .hf .sub{color:#d8c9ef;margin:0 0 22px}
.dl-home .tmr{display:flex;gap:8px;direction:rtl;margin-bottom:22px}
.dl-home .tmr div{flex:1;text-align:center}
.dl-home .tmr b{display:block;background:linear-gradient(180deg,#f0d77a,#cfa530);color:#2a0e52;border-radius:10px;padding:10px 0;font-size:1.3rem;box-shadow:0 3px 0 #8f6f12}
.dl-home .tmr small{display:block;font-size:.72rem;color:#d8c9ef;margin-top:6px}
.dl-home .gb{display:inline-block;background:linear-gradient(180deg,#f0d77a,#cfa530);color:#2a0e52;font-weight:800;padding:10px 30px;border-radius:12px;text-decoration:none;box-shadow:0 3px 0 #8f6f12}
.dl-home .hr{position:relative}
.dl-home .pks{display:flex;gap:6px;align-items:end;height:150px;margin-bottom:14px;filter:drop-shadow(0 0 24px #ff9a2e88)}
.dl-home .pks .pk{height:100%}
.dl-home .pks .pk:first-child{height:68%}
.dl-home .pk{display:block;aspect-ratio:120/110}
.dl-home .hl{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.dl-home .hp{background:#fff;border-radius:16px;padding:8px 8px 10px;color:var(--n);text-align:right}
.dl-home .hi{position:relative;aspect-ratio:1;border-radius:12px;display:grid;place-items:center;overflow:hidden}
.dl-home .hi .pk{width:70%}
.dl-home .hi em{position:absolute;top:8px;right:8px;background:#d92b3a;color:#fff;font-style:normal;font-size:.7rem;font-weight:700;padding:2px 9px;border-radius:7px;z-index:1}
.dl-home .hi.p1{background:radial-gradient(circle,#4a1d78,#22093f)}
.dl-home .hi.p2{background:repeating-linear-gradient(0deg,#0001 0 2px,transparent 2px 8px),#f1a7c8}
.dl-home .hi.p3{background:radial-gradient(circle,#c9c2d4,#8c849a)}
.dl-home .hi.p4{background:linear-gradient(135deg,#f0902f,#2a2a2e)}
.dl-home .hp h3{font-size:.82rem;margin:10px 2px 2px}
.dl-home .st{color:#e2b324;font-size:.8rem;letter-spacing:1px;margin:0 2px}
.dl-home .hpr{font-size:.82rem;font-weight:700;margin:2px 2px 0}

/* ===== سفارش ساخت: استایل‌ها داخل خود خروجی صفحه تزریق می‌شوند (home-render.php) ===== */
.dl-home [hidden]{display:none!important}

/* ===== پرفروش‌ها ===== */
.dl-home .tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}
.dl-home .tabs button{font-family:inherit;border:1.5px solid var(--n);background:transparent;border-radius:99px;padding:5px 18px;cursor:pointer;font-weight:600;color:var(--n)}
.dl-home .tabs button.on{background:var(--n);color:var(--g)}
.dl-home .pg{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.dl-home .p{background:#fff;border-radius:22px;padding:12px;transition:transform .2s;position:relative}
.dl-home .p:hover{transform:translateY(-4px)}
.dl-home .p .go{position:absolute;inset:0;z-index:1;border-radius:22px}
.dl-home .p .pp .buy{position:relative;z-index:2}
.dl-home .p h3{font-size:.95rem;margin:12px 4px 2px}
.dl-home .p .pp{display:flex;justify-content:space-between;align-items:center;margin:8px 4px 2px;font-size:.88rem;color:var(--m)}
.dl-home .p .pp b{color:var(--n)}
.dl-home .p .pp a{background:var(--c);border-radius:10px;padding:2px 12px;font-weight:600;text-decoration:none;color:var(--n)}

/* ===== بنرهای دوتایی ===== */
.dl-home .bn{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.dl-home .bn div{border-radius:26px;padding:32px;min-height:190px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:6px}
.dl-home .bn .a{background:var(--g);border:2px solid var(--n)}
.dl-home .bn .b{background:var(--n);color:#fff}
/* بنر با تصویر پس‌زمینه: کل کادر با عکس پر می‌شود + لایهٔ تیره برای خوانایی متن */
.dl-home .bn .has-bg{background-size:cover;background-position:center;position:relative;color:#fff}
.dl-home .bn .has-bg::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,44,80,.30),rgba(8,44,80,.68));border-radius:inherit;z-index:0}
.dl-home .bn .has-bg>*{position:relative;z-index:1}
.dl-home .bn .has-bg h3{color:#fff}
.dl-home .bn .has-bg p{color:rgba(255,255,255,.88)}
.dl-home .bn h3{font-size:1.3rem}
.dl-home .bn p{opacity:.85;margin:0 0 8px}

/* ===== نظرات ===== */
.dl-home .rv{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.dl-home .rv figure{background:#fff;border-radius:22px;padding:22px;margin:0}
.dl-home .rv blockquote{margin:0 0 14px;font-size:.95rem}
.dl-home .rv figcaption b{display:block}
.dl-home .rv figcaption span{color:var(--m);font-size:.85rem}

/* ===== CTA ===== */
.dl-home .cta{background:var(--g);border:2px solid var(--n);border-radius:28px;padding:34px 38px;display:flex;justify-content:space-between;align-items:center;gap:20px;box-shadow:5px 5px 0 var(--n)}
.dl-home .cta h2{font-size:1.5rem}
.dl-home .cta p{margin:4px 0 0}
.dl-home .ca{display:flex;gap:10px;flex-wrap:wrap}

/* ===== موبایل ===== */
@media (max-width:860px){
	.dl-home .ord,
.dl-home .bn{grid-template-columns:1fr}
	.dl-home .trust .c{grid-template-columns:1fr 1fr;gap:10px;padding:14px}
	.dl-home .sec{padding:0}
	.dl-home{padding-top:16px;padding-bottom:40px}
	.dl-home > * + *{margin-top:32px}
	.dl-home .kt{font-size:1.05rem;margin-bottom:14px}
	.dl-home .kg{grid-template-columns:1fr 1fr;gap:10px}
	.dl-home .cc{padding:12px 8px}
	.dl-home .cc b{font-size:.78rem;min-height:2.6em}
	.dl-home .cc .im{max-width:120px}
	.dl-home .hw{grid-template-columns:1fr;padding:22px 0 18px;gap:16px;margin-inline:-4px;border-radius:22px}
	.dl-home .web,
.dl-home .web.r{width:90px}
	.dl-home .bat{display:none}
	.dl-home .hf{padding:30px 18px 0;text-align:center}
	.dl-home .hf h2{font-size:1.25rem;margin-bottom:14px}
	.dl-home .tmr{max-width:300px;margin:0 auto 16px}
	.dl-home .tmr b{font-size:1.1rem;padding:8px 0}
	.dl-home .gb{padding:11px 28px}
	.dl-home .pks{height:92px;justify-content:center;margin-bottom:6px}
	.dl-home .hr{padding:0}
	.dl-home .hl{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 18px 8px;gap:10px;scrollbar-width:none}
	.dl-home .hp{flex:0 0 62%;scroll-snap-align:center}
	.dl-home .steps li{font-size:.92rem}
	.dl-home .tabs{flex-wrap:nowrap;overflow-x:auto;padding:0 0 4px;scrollbar-width:none}
	.dl-home .tabs button{flex:none;padding:8px 18px}
	.dl-home .pg{grid-template-columns:1fr 1fr;gap:12px}
	.dl-home .p{padding:8px;border-radius:18px}
	.dl-home .p:hover{transform:none}
	.dl-home .p .go{border-radius:18px}
	.dl-home .p h3{font-size:.85rem}
	.dl-home .p .pp{flex-direction:column;align-items:stretch;gap:8px}
	.dl-home .p .pp a{text-align:center;padding:8px;background:var(--n);color:var(--g)}
	.dl-home .bn div{min-height:0;padding:22px}
	.dl-home .bn h3{font-size:1.1rem}
	.dl-home .rv{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;padding:0 0 8px;scrollbar-width:none}
	.dl-home .rv figure{flex:0 0 82%;scroll-snap-align:center}
	.dl-home .cta{flex-direction:column;align-items:stretch;padding:24px 20px;text-align:center;box-shadow:3px 3px 0 var(--n)}
	.dl-home .cta h2{font-size:1.2rem}
	.dl-home .ca{flex-direction:column}
	.dl-home .stack{order:1;min-height:0;gap:3px;padding-top:34px;max-width:240px;margin:0 auto;width:100%}
	.dl-home .stack i{height:15px;border-radius:6px}
	.dl-home .stack i:nth-child(n+9){display:none}
	.dl-home .note{top:0;left:50%;margin-left:-72px;font-size:.75rem;transform:rotate(-2deg)}
}
@media (prefers-reduced-motion:reduce){
	.dl-home .stack i{animation:none}
}
