/* ==========================================================
   دارة التحبير للنشر والتوزيع
   Custom CSS - Organized Version
   ========================================================== */


/* ==========================================================
   1. اسم المتجر بجانب الشعار
   ========================================================== */

a[data-testid="store-header-logo"].navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

a[data-testid="store-header-logo"].navbar-brand::after {
    content: "دارة التحبير للنشر والتوزيع";
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: inherit;
    white-space: nowrap;
    line-height: 1.5;
}


/* ==========================================================
   2. الفوتر - التخطيط الأساسي
   ========================================================== */

footer .container.grid {
    display: grid !important;
    grid-template-columns:
        minmax(0, 1.3fr)
        minmax(180px, 0.7fr)
        minmax(240px, 1fr) !important;
    justify-content: start;
    align-items: start;
    gap: 40px 48px;
    padding-block: 56px 40px;
}

footer .container.grid > div,
footer .container.grid > salla-apps-icons {
    min-width: 0;
    max-width: none !important;
    padding: 0 !important;
    grid-column: auto !important;
}

footer .container.grid > salla-apps-icons:empty {
    display: none !important;
}


/* ==========================================================
   3. عناوين الفوتر
   ========================================================== */

footer .container.grid h3 {
    position: relative;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 22px;
    padding-bottom: 12px;
}

footer .container.grid h3::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-primary, #2f9fd8);
}

footer .container.grid > div:first-child > a {
    margin-bottom: 22px !important;
}

footer .container.grid > div:first-child > a h3 {
    margin-bottom: 0;
}


/* ==========================================================
   4. وصف المتجر
   ========================================================== */

footer .container.grid > div:first-child .max-w-sm {
    max-width: none;
    margin-bottom: 28px;
}

footer .container.grid > div:first-child .max-w-sm p {
    margin: 0 0 6px;
    line-height: 1.9;
    opacity: 0.85;
}


/* ==========================================================
   5. بطاقات السجل التجاري والرقم الضريبي
   ========================================================== */

footer div:has(> salla-trust-badges) {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch !important;
    gap: 12px !important;
}

footer .s-trust-badges-wrapper,
footer div:has(> salla-trust-badges) > div {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin: 0 !important;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

footer .s-trust-badges-image {
    width: 42px !important;
    height: 42px !important;
    border-radius: 8px;
    object-fit: contain;
}

footer .s-trust-badges-label,
footer div:has(> salla-trust-badges) > div p {
    margin: 0 0 2px !important;
    font-size: 12px !important;
    opacity: 0.7;
}

footer .s-trust-badges-number,
footer div:has(> salla-trust-badges) > div b {
    display: block;
    font-size: 14px !important;
    letter-spacing: 0.3px;
}


/* ==========================================================
   6. الروابط المهمة
   ========================================================== */

footer .footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

footer .footer-links a {
    display: inline-block;
    color: inherit;
    opacity: 0.85;
    font-size: 15px;
    transition: color 0.2s, opacity 0.2s, transform 0.2s;
}

footer .footer-links a:hover {
    color: var(--color-primary, #2f9fd8);
    opacity: 1;
    transform: translateX(-4px);
}


/* ==========================================================
   7. قسم تواصل معنا
   ========================================================== */

footer .s-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

footer .s-contacts-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    transition: color 0.2s;
}

footer .s-contacts-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

footer .s-contacts-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

footer .s-contacts-item .unicode {
    direction: ltr;
    unicode-bidi: isolate;
    font-size: 15px;
    min-width: 0;
    overflow-wrap: anywhere;
}

footer .s-contacts-item:hover {
    color: var(--color-primary, #2f9fd8);
}

footer .s-contacts-item:hover .s-contacts-icon {
    background: var(--color-primary, #2f9fd8);
    border-color: var(--color-primary, #2f9fd8);
    color: #fff;
}


/* ==========================================================
   8. الأجهزة اللوحية - عمودان
   ========================================================== */

@media (max-width: 1100px) {

    footer .container.grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 40px 32px;
    }

    footer .container.grid > div:first-child {
        grid-column: 1 / -1 !important;
    }
}


/* ==========================================================
   9. الجوال - عمود واحد
   ========================================================== */

@media (max-width: 640px) {

    /* اسم المتجر */
    a[data-testid="store-header-logo"].navbar-brand::after {
        font-size: 12px;
        white-space: normal;
        max-width: 130px;
    }

    /* التخطيط العام */
    footer .container.grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        padding: 32px 20px 8px !important;
    }

    footer .container.grid > div {
        padding: 24px 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    footer .container.grid > div:first-child {
        grid-column: auto !important;
        border-top: 0;
        padding-top: 0 !important;
    }

    /* العناوين */
    footer .container.grid h3 {
        font-size: 17px;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }

    footer .container.grid > div:first-child > a {
        margin-bottom: 16px !important;
    }

    /* وصف المتجر */
    footer .container.grid > div:first-child .max-w-sm {
        margin-bottom: 20px;
    }

    footer .container.grid > div:first-child .max-w-sm p {
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 2px;
    }

    /* بطاقات التوثيق */
    footer div:has(> salla-trust-badges) {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px !important;
    }

    footer .s-trust-badges-wrapper,
    footer div:has(> salla-trust-badges) > div {
        padding: 10px 12px;
        gap: 10px;
        min-width: 0;
    }

    footer .s-trust-badges-image {
        width: 34px !important;
        height: 34px !important;
    }

    footer .s-trust-badges-label,
    footer div:has(> salla-trust-badges) > div p {
        font-size: 11px !important;
    }

    footer .s-trust-badges-number,
    footer div:has(> salla-trust-badges) > div b {
        font-size: 13px !important;
        letter-spacing: 0;
    }

    /* الروابط المهمة - عمودان */
    footer .footer-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 16px;
    }

    footer .footer-links a {
        display: block;
        padding: 10px 0;
        font-size: 14px;
    }

    footer .footer-links a:hover {
        transform: none;
    }

    /* التواصل */
    footer .s-contacts-list {
        gap: 10px;
    }
}
/* إخفاء إصداراتنا مع الجمعية الفقهية والمزيد */
a[href*="c1285704535"],
a[aria-label="المزيد"] {
    display: none !important;
}
/* إخفاء المقررات الدراسية والسهم والنقاط */
a[href*="c222643788"],
a[aria-label=".."] {
    display: none !important;
}
/* ==========================================================
   نهاية الكود
   ========================================================== */