/* Extracted from layouts/front.blade.php for maintainability */
body {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
        }

        .page-wrapper {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        /* تحسينات الفوتر */
        footer {
            margin-top: auto;
        }

        .rbt-footer {
        background-color: #fff; /* تأكيد الخلفية بيضاء */
        padding-top: 60px;
    }

    .footer-top {
        padding-bottom: 40px;
    }

    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 40px;
    }

    .footer-column h5 {
        font-size: 1.3rem;
        margin-bottom: 25px;
        position: relative;
        padding-bottom: 10px;
        color: #222; /* لون أغمق للعناوين */
        font-weight: 600; /* زيادة سمك الخط */
    }

    .footer-column h5::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 2px;
        background: linear-gradient(to right, #0066cc, #00aaff); /* خط زخرفي تحت العنوان */
    }

    .footer-logo {
        max-width: 180px;
        margin-bottom: 20px;
    }

    .footer-description {
        margin-bottom: 25px;
        color: #444; /* لون أغمق للوصف */
        line-height: 1.8;
    }

    .footer-links {
        list-style: none;
        padding: 0;
    }

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        color: #333; /* لون أغمق للروابط */
        text-decoration: none;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .footer-links a i {
        font-size: 0.8rem;
        color: #0066cc; /* لون أزرق للأيقونات */
    }

    .footer-links a:hover {
        color: #0066cc; /* لون عند التمرير */
        transform: translateX(5px);
    }

    .copyright {
        color: #555; /* تحسين لون حقوق النشر */
        padding: 20px 0;
        border-top: 1px solid #eee;
        text-align: center;
    }

    /* تحسين حقل الإشتراك */
    .newsletter-form input {
        border: 1px solid #ddd;
        padding: 12px 15px;
        border-radius: 6px;
        width: 100%;
        margin-bottom: 15px;
        background: #f9f9f9;
        color: #333; /* لون نص أغمق */
    }

    .newsletter-form input::placeholder {
        color: #777; /* لون نص أغمق للملاحظة */
    }

    .chat-icon {
    position: fixed;
    bottom: 20px;
    right: 90px;
    z-index: 1098;
    background: #0066cc;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.chat-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.chat-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 400px;
    display: none;
    z-index: 1097;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    border-radius: 10px;
    overflow: hidden;
}



/* WhatsApp Styles */
#whatsappPopup {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 1100; /* زيادة z-index */
    display: none;
    width: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}


#whatsappPopup.show {
    display: block;
}

#whatsappTrigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1099; /* أقل من النافذة */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

#whatsappTrigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

#whatsappNotification {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.quick-btn {
    transition: all 0.2s ease;
}

.quick-btn:hover {
    transform: translateY(-2px);
}

.chat-container {
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#chatMessages {
    padding: 15px;
    background-color: #f9f9f9;
    height: 300px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
}

.user-message {
    background: linear-gradient(135deg, #0066cc, #0099ff);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.bot-message {
    background-color: white;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 5px;
}

.typing-indicator {
    display: inline-flex;
    align-items: center;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: #999;
    border-radius: 50%;
    margin: 0 3px;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

.quick-btn {
    transition: all 0.2s ease;
    margin: 3px;
    font-size: 0.85rem;
}

    .quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* Header tuning: Arabic products index only */
body.products-index-ar-page .rbt-header-top .top-expended-inner {
    min-height: 40px;
}

body.products-index-ar-page .rbt-header-middle {
    padding-top: 8px;
    padding-bottom: 8px;
}

body.products-index-ar-page .rbt-header-middle .rbt-header-sec {
    min-height: 72px;
}

body.products-index-ar-page .rbt-header-middle .rbt-header-sec .rbt-header-sec-col.rbt-header-left,
body.products-index-ar-page .rbt-header-middle .rbt-header-sec .rbt-header-sec-col.rbt-header-right {
    flex: 1 1 0;
}

body.products-index-ar-page .rbt-header-middle .rbt-header-sec .rbt-header-sec-col.rbt-header-center {
    width: 50%;
    flex-shrink: 0;
}

body.products-index-ar-page .rbt-header-middle .logo img {
    max-height: 56px;
    width: auto;
}

body.products-index-ar-page .rbt-header-middle .rbt-search-with-category {
    max-width: 520px;
    margin: 0 auto;
}

body.products-index-ar-page .rbt-header-middle .rbt-header-content,
body.products-index-ar-page .rbt-header-middle .header-info {
    margin-bottom: 0;
}

body.products-index-ar-page .rbt-header-wrapper.height-50 {
    min-height: 52px;
}

body.products-index-ar-page .rbt-main-navigation .mainmenu > li > a {
    line-height: 1.4;
    padding-top: 14px;
    padding-bottom: 14px;
}

@media (max-width: 1199.98px) {
    body.products-index-ar-page .rbt-header-wrapper.height-50 {
        min-height: 56px;
    }
}
