/**
 * الصفحة الرئيسية — تصميم Dyani
 * الألوان من tokens.css فقط. الاتجاهات منطقية (inline-start/end)
 * فتنقلب العربية وحدها.
 */

.dy-wrap {
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 24px;
    box-sizing: border-box;
}

/* ── الفاصل الذهبي ─────────────────────────────────── */
.dy-divider {
    max-width: 1240px;
    margin: 44px auto 0;
    padding-inline: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-sizing: border-box;
}
.dy-divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gp-gold-line)); }
.dy-divider span:last-child { background: linear-gradient(270deg, transparent, var(--gp-gold-line)); }
.dy-divider i { width: 9px; height: 9px; background: var(--gp-brand); transform: rotate(45deg); }

/* ── شريط الثقة ────────────────────────────────────── */
.dy-trust { background: var(--gp-surface-alt); border-bottom: 1px solid var(--gp-border-soft); margin-top: 28px; } /* مسافة عن نقاط السلايد */
.dy-trust__grid {
    padding-block: 22px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.dy-trust__item { display: flex; gap: 12px; align-items: flex-start; color: inherit; text-decoration: none; }
a.dy-trust__item:hover .dy-trust__icon { background: var(--gp-brand); color: #fff; }
.dy-trust__w { display: none; }
.dy-trust__icon {
    flex: none; width: 44px; height: 44px; border-radius: 50%;
    border: 1.5px solid var(--gp-brand); color: var(--gp-brand);
    display: flex; align-items: center; justify-content: center;
}
.dy-trust__icon svg { width: 22px; height: 22px; }
.dy-trust__t { font-weight: 900; font-size: 13.5px; color: var(--gp-text); }
.dy-trust__d { font-size: 12px; color: var(--gp-text-soft); line-height: 1.6; }
[dir="rtl"] .dy-trust__d[dir="ltr"] { text-align: end; }

/* ── ماذا تبحث؟ ────────────────────────────────────── */
.dy-quick { padding-block: 36px 40px; }
.dy-quick__h { margin: 0 0 18px; font-size: 22px; font-weight: 900; color: var(--gp-text); text-align: center; }
.dy-quick__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.dy-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    min-height: 104px; padding: 14px 8px; box-sizing: border-box;
    border: 1.5px solid var(--gp-border); border-radius: 12px; background: var(--gp-surface);
    font-weight: 700; font-size: 13.5px; color: var(--gp-text); text-align: center; text-decoration: none;
    transition: border-color .15s, background .15s;
}
.dy-tile svg { width: 32px; height: 32px; color: var(--gp-teal); }
.dy-tile:hover, .dy-tile:focus-visible { border-color: var(--gp-teal); background: var(--gp-teal-tint); color: var(--gp-text); }
.dy-tile--sale, .dy-tile--sale:hover { color: var(--gp-sale-text); }
.dy-tile--sale svg { color: var(--gp-sale); }

.dy-quick__budget { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; }
.dy-quick__budget > span { font-weight: 700; font-size: 13px; color: var(--gp-text-soft); margin-inline-end: 4px; }
.dy-chip {
    display: flex; align-items: center; min-height: 44px; padding: 0 18px; box-sizing: border-box;
    border: 1.5px solid var(--gp-border); border-radius: 999px; background: var(--gp-surface);
    font-weight: 700; font-size: 13px; color: var(--gp-text); text-decoration: none;
    transition: border-color .15s, background .15s;
}
.dy-chip:hover, .dy-chip:focus-visible { border-color: var(--gp-teal); background: var(--gp-teal-tint); color: var(--gp-text); }

/* سطر زخرفي تحت المربّعات — نصّ فقط، لا شيء قابل للنقر */
.dy-quick__note {
    display: flex; align-items: center; gap: 16px;
    margin-top: 24px; min-height: 44px;
}
.dy-quick__note p {
    margin: 0; flex: none; max-width: 70%;
    text-align: center; font-size: 14px; font-weight: 600; line-height: 1.6;
    color: var(--gp-gold-text);
}
.dy-quick__orn { flex: 1; display: flex; align-items: center; gap: 10px; }
.dy-quick__orn::before { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gp-gold-line)); }
.dy-quick__orn i { width: 7px; height: 7px; background: var(--gp-brand); transform: rotate(45deg); flex: none; }
.dy-quick__orn:last-child { flex-direction: row-reverse; }
.dy-quick__orn:last-child::before { background: linear-gradient(270deg, transparent, var(--gp-gold-line)); }
@media (max-width: 768px) {
    .dy-quick__note { gap: 10px; margin-top: 18px; }
    .dy-quick__note p { max-width: 80%; font-size: 12.5px; }
}

/* ── أقسام المنتجات: عنوان السلايد بشكل التصميم ───── */
.dy-sec { padding-top: 36px; }
.dy-sec .products-slider-container { width: 100%; max-width: none; margin: 0; padding: 0; }
.dy-sec .slider-header { align-items: center; margin-bottom: 22px; }
.dy-sec .slider-title {
    margin: 0; font-size: 25px; font-weight: 900; color: var(--gp-text);
    display: inline-flex; align-items: center; gap: 10px;
}
.dy-sec .slider-title::before {
    content: ""; flex: none; width: 14px; height: 14px;
    border: 2px solid var(--gp-brand); transform: rotate(45deg);
    box-shadow: inset 0 0 0 3px var(--gp-surface), inset 0 0 0 5px var(--gp-brand);
}
.dy-sec .view-all-link {
    color: var(--gp-teal-dark); font-weight: 700; font-size: 14px;
    text-decoration: underline; text-underline-offset: 4px;
    display: inline-flex; align-items: center; min-height: 44px;
}

/* ── التصفية ───────────────────────────────────────── */
.dy-sale-band {
    background: var(--gp-sale-band);
    border-block: 1px solid var(--gp-sale-line);
}
.dy-liq { padding-block: 40px 44px; }
.dy-liq__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.dy-liq__title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dy-h2 {
    margin: 0; font-size: 25px; font-weight: 900; color: var(--gp-text);
    display: inline-flex; align-items: center; gap: 10px;
}
.dy-h2::before {
    content: ""; flex: none; width: 14px; height: 14px;
    border: 2px solid var(--gp-brand); transform: rotate(45deg);
    box-shadow: inset 0 0 0 3px var(--gp-surface), inset 0 0 0 5px var(--gp-brand);
}
.dy-liq__badge {
    background: var(--gp-sale); color: var(--gp-text-invert);
    font-weight: 700; font-size: 11px; padding: 5px 12px; border-radius: 999px; letter-spacing: 1px;
}
.dy-more {
    color: var(--gp-teal-dark); font-weight: 700; font-size: 14px;
    text-decoration: underline; text-underline-offset: 4px;
    display: inline-flex; align-items: center; min-height: 44px;
}
.dy-liq__sub { margin: 0 0 22px; color: var(--gp-text-soft); font-size: 14px; }
.dy-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px 16px;
}
.dy-liq .perfume-image-wrapper { background: var(--gp-surface); }
.dy-liq .discount-badge { background: var(--gp-sale); }

/* ── Notre Héritage ────────────────────────────────── */
.dy-her { background: var(--gp-surface-alt); margin-top: 72px; }
.dy-her__grid { padding-block: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.dy-her__text, .dy-her__facts { flex: 1 1 340px; min-width: 0; }
.dy-her__label { color: var(--gp-gold-text); font-weight: 700; font-size: 12px; margin-bottom: 10px; }
.dy-her h2 { margin: 0 0 18px; font-size: 27px; font-weight: 900; line-height: 1.3; color: var(--gp-text); }
.dy-her__text > p { margin: 0 0 20px; font-size: 14px; font-weight: 600; line-height: 1.8; color: var(--gp-text); }
.dy-her__col {
    border-inline-start: 3px solid var(--gp-brand); padding: 4px 14px;
    font-size: 12.5px; font-weight: 600; line-height: 1.8; color: var(--gp-text-soft);
}
.dy-her__col strong { display: block; color: var(--gp-gold-text); font-size: 14px; }
.dy-her__media {
    flex: 0 0 270px; width: 268px; height: 360px; margin-inline: auto;
    border-radius: 134px 134px 14px 14px; overflow: hidden;
    border: 1px solid var(--gp-brand); background: var(--gp-surface-sunken);
}
.dy-her__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dy-her__facts { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.dy-her__fact { display: flex; gap: 12px; }
.dy-her__fact i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--gp-brand); margin-top: 8px; }
.dy-her__fact h3 { margin: 0; font-weight: 900; font-size: 15px; color: var(--gp-text); }
.dy-her__fact p { margin: 0; font-size: 12.5px; font-weight: 600; line-height: 1.8; color: var(--gp-text-soft); }
.dy-her__badge {
    display: inline-block; background: var(--gp-teal-soft); color: var(--gp-teal-dark);
    font-weight: 700; font-size: 12px; padding: 8px 14px; border-radius: 999px;
}

/* ── عرض موحّد: كل الأقسام في حاوية 1240px (السلايد الكبير وحده بعرض الشاشة) ── */
.nishane-banner { width: calc(100% - 48px) !important; max-width: 1192px; margin: 8px auto 0 !important; }
@media (min-width: 769px) {
    .hd-bs__section .hd-bs__container { width: 100%; max-width: 1240px; padding-inline: 74px; box-sizing: border-box; }
}

/* ── الهاتف ────────────────────────────────────────── */
@media (max-width: 768px) {
    .dy-wrap, .dy-divider { padding-inline: 16px; }
    /* صفّ واحد: أيقونة + كلمة واحدة تحتها (كان شبكة 2×2 بنصوص تأخذ مساحة كبيرة) */
    .dy-trust { margin-top: 18px; }
    .dy-trust__grid { grid-template-columns: repeat(4, 1fr); gap: 6px; padding-block: 12px; }
    .dy-trust__item { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
    .dy-trust__txt { display: none; }
    .dy-trust__w { display: block; font-size: 11.5px; font-weight: 700; line-height: 1.2; color: var(--gp-text); }
    .dy-trust__icon { width: 38px; height: 38px; }
    .dy-trust__icon svg { width: 19px; height: 19px; }
    .dy-quick { padding-block: 28px 30px; }
    .dy-quick__tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .dy-tile { min-height: 88px; font-size: 12px; padding: 10px 4px; }
    .dy-tile svg { width: 26px; height: 26px; }
    .dy-quick__budget { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
    .dy-quick__budget > * { flex: none; }
    .dy-sec .slider-title { font-size: 20px; }
    .dy-h2 { font-size: 20px; }
    .dy-grid { grid-template-columns: repeat(2, 1fr); gap: 14px 10px; }
    .dy-her { margin-top: 48px; }
    .dy-her__grid { padding-block: 48px; gap: 32px; }
    .dy-her h2 { font-size: 22px; }
}

/* ── الهاتف: صفّ الأقسام فوق السلايد بدل «ماذا تبحث؟» ── */
.dy-mchips { display: none; }
@media (max-width: 768px) {
    .dy-quick { display: none; }
    .dy-mchips {
        display: flex; gap: 8px; overflow-x: auto;
        padding: 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .dy-mchips::-webkit-scrollbar { display: none; }
    .dy-mchip {
        flex: none; display: flex; align-items: center; min-height: 44px; padding: 0 16px;
        border: 1.5px solid #ddd; border-radius: 999px; background: var(--gp-surface);
        font-weight: 700; font-size: 13px; color: var(--gp-text); white-space: nowrap; text-decoration: none;
    }
    .dy-mchip.is-sale { color: var(--gp-sale-text); border-color: #e3b4ad; }
    .dy-mchip:active { background: var(--gp-teal-tint); }
}

/* ── لافتة عريضة [dyani_banner] ─────────────────────── */
.dy-banner { display: block; width: 80%; margin: 0 auto; overflow: hidden; border-radius: 8px; text-decoration: none; color: inherit; }
.dy-banner img { display: block; width: 100%; height: auto; transition: transform .4s ease; }
.dy-banner:hover img { transform: scale(1.02); }
.dy-banner__cap { display: none; }
@media (max-width: 768px) {
    /* كانت 9:1 → شريط بارتفاع 38px. الآن أعلى بمرّتين تقريباً، مقصوصة على جزء النصّ (pos) */
    .dy-banner { width: auto; margin-inline: 12px; border-radius: 10px; }
    .dy-banner img { height: 88px; object-fit: cover; object-position: var(--dy-bpos, 50%) center; }
    .dy-banner:hover img { transform: none; }
}
