/*
 Theme Name:   GeneratePress Child
 Description:   قالب ابن مخصص لمتجر جديد في جديد
 Template:      generatepress
 Version:       1.4
*/

/*
 | ملاحظة هامة:
 | القواعد التالية تمت إزالتها من هنا لأنها انتقلت إلى tailwind-output.css:
 |   - .gdid-archive-title
 |   - .woocommerce ul.products li.product  (الكرت + hover)
 |   - .woocommerce-loop-product__title
 |   - .woocommerce ul.products li.product .button  (+ hover)
 |   - .woocommerce-breadcrumb  (+ a + hover)
 |   - .flex-control-thumbs  (+ li + img + states)
 |   - .scroll-indicator  (+ keyframes)
 | ما تبقّى هنا: Layout، الفوتر، وصف المنتج — لم تُرحَّل بعد.
*/

/* ================================================================
   1. إعدادات عامة للمتجر
   ================================================================ */

/* إخفاء عناوين الصفحات الافتراضية */
.woocommerce-products-header__title.page-title,
body:not(.single-product) .entry-title {
    display: none !important;
}

/* إلغاء السايدبار — عرض كامل */
.archive.woocommerce #primary,
.archive.woocommerce .content-area {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    max-width: 100% !important;
}

.archive.woocommerce #right-sidebar,
.archive.woocommerce #left-sidebar {
    display: none !important;
}

/* ================================================================
   2. الفوتر الاحترافي
   ================================================================ */
.gdid-custom-footer {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 28px;
    padding: 56px 7%;
    background: linear-gradient(125deg, #0E2A47 0%, #0E2A47 60%, #0E2A47 100%) !important;
    color: #fff !important;
    direction: rtl;
    text-align: right;
    border-top: 4px solid #D81B1B;
    overflow: hidden;
}

.gdid-custom-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 18%, rgba(216, 27, 27, .16), transparent 34%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, .06), transparent 36%);
    pointer-events: none;
}

.footer-col {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 16px;
    padding: 24px 20px;
    backdrop-filter: blur(3px);
}

.footer-logo {
    max-width: 120px !important;
    height: auto;
    margin-bottom: 16px;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .28));
}

.footer-desc,
.footer-col p {
    font-size: 15px !important;
    line-height: 1.9;
    color: #d6deec !important;
    margin: 0;
}

.gdid-custom-footer .footer-col a {
    color: #D81B1B !important;
    font-weight: 700;
    text-decoration: none;
}

.gdid-custom-footer .footer-col a:hover {
    color: #fff !important;
    text-decoration: underline;
}

.footer-col h3 {
    color: #D81B1B !important;
    margin-bottom: 18px;
    font-size: 20px !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col h3 i {
    color: #F3A812;
}

/* --- تنسيقات دليل الفروع --- */
.branch-item {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.branch-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.branch-name {
    color: #F3A812;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.branch-name i {
    color: #D81B1B;
    font-size: 14px;
}

.branch-address {
    font-size: 14px !important;
    line-height: 1.6;
    color: #d6deec !important;
    margin: 0 0 6px 0 !important;
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

.branch-address i {
    color: #F3A812;
    font-size: 13px;
    margin-top: 4px;
    flex-shrink: 0;
}

.gdid-custom-footer .footer-col a.branch-phone,
.branch-phone {
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none !important;
    transition: all .25s ease;
}

.gdid-custom-footer .footer-col a.branch-phone:hover,
.branch-phone:hover {
    color: #D81B1B !important;
    text-decoration: none !important;
}

.branch-phone i {
    color: #D81B1B;
    font-size: 13px;
    transition: all .25s ease;
}

.branch-phone:hover i {
    color: #F3A812;
    transform: scale(1.15);
}

/* --- التواصل الاجتماعي وخدمة العملاء --- */
.footer-social-icons {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}

.footer-social-icons a {
    color: #fff !important;
    font-size: 18px;
    background: rgba(255, 255, 255, .08);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(216, 27, 27, .55);
    text-decoration: none !important;
    transition: all .3s ease;
}

.footer-social-icons a:hover {
    background: #D81B1B;
    border-color: #D81B1B;
    color: #fff !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(216, 27, 27, .32);
}

.footer-cs-item {
    margin-top: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: #d6deec !important;
}

.footer-cs-item strong {
    color: #F3A812;
}

.footer-privacy {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.gdid-custom-footer .footer-col .footer-privacy a {
    color: #d6deec !important;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .3s ease;
}

.gdid-custom-footer .footer-col .footer-privacy a:hover {
    color: #F3A812 !important;
    text-decoration: none !important;
}

.custom-copyright-bar {
    background: #0a111f;
    color: #c0cadb;
    text-align: center;
    padding: 16px 20px;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    letter-spacing: .2px;
}

.custom-copyright-bar span {
    font-weight: 700;
}

@media (max-width: 992px) {
    .gdid-custom-footer {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 36px 20px;
    }
}

/* إخفاء فوتر القالب الأصلي */
.site-info,
.site-footer {
    display: none !important;
}

/* ================================================================
   3. وصف المنتج
   ================================================================ */
.product-description-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: #181C25;
    max-width: 900px;
    margin: 0 auto;
    direction: rtl;
}

.spec-list {
    list-style: none;
    padding: 0;
}

.spec-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spec-list i {
    color: #D81B1B;
}

.product-spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
}

.product-spec-table th,
.product-spec-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.product-spec-table th {
    background-color: #f8f9fa;
    color: #0E2A47;
}

.faq-item {
    background: #fdfdfd;
    border: 1px solid #eee;
    margin-bottom: 10px;
    border-radius: 5px;
    padding: 10px;
}

.faq-item summary {
    font-weight: bold;
    cursor: pointer;
    color: #0E2A47;
    outline: none;
}

.faq-item p {
    margin-top: 10px;
    color: #181C25;
}

/* ================================================================
   ستروك وظل لنصوص البانر الترويجي لإبرازها على الخلفية
   ================================================================ */
.gdid-promo-kicker {
    -webkit-text-stroke: 1px #000;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.gdid-promo-percent {
    -webkit-text-stroke: 1.5px #000;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.8);
}