

/* السلايد شو*/
.container-0 { max-width: 1260px; margin: 0 auto; padding: 20px; }

.carousel-container { margin: 0px 0 0px 0; padding: 0 15px; }

.carousel { position: relative; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }

.carousel-inner { position: relative; width: 100%; overflow: hidden; }

.carousel-item { position: relative; display: none; transition: transform 0.6s ease; }

.carousel-item.active { display: block; }

.carousel-image { width: 100%; height: 500px; object-fit: cover; display: block; transition: transform 0.5s ease; }

.carousel-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: white; text-align: center; }

.carousel-caption h5 { font-size: 2.2rem; margin-bottom: 15px; font-weight: 700; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }

.carousel-caption p { font-size: 1.2rem; margin-bottom: 0; max-width: 700px; margin: 0 auto; }

.carousel-control { position: absolute; top: 10%; transform: translateY(-10%); background-color: rgba(255, 255, 255, 0.2); border: none; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; transition: var(--transition); z-index: 10; cursor: pointer; }

.carousel-control:hover { background-color: rgba(255, 255, 255, 0.3); color: white; }

.carousel-indicators { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }

.carousel-indicator { width: 12px; height: 12px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.5); cursor: pointer; transition: var(--transition); }

.carousel-indicator.active { background-color: white; transform: scale(1.2); }

.carousel:hover .carousel-image { transform: scale(1.02); }

@media (max-width: 992px) { .carousel-image { height: 400px; } .carousel-caption h5 { font-size: 1.8rem; } .carousel-caption p { font-size: 1.1rem; } }

@media (max-width: 768px) { .carousel-image { height: 350px; } .carousel-caption { padding: 20px; } .carousel-caption h5 { font-size: 1.5rem; } .carousel-caption p { font-size: 1rem; } }

@media (max-width: 576px) { .carousel-image { height: 300px; } .carousel-caption h5 { font-size: 1.3rem; } .carousel-caption p { display: none; } .carousel-indicators { bottom: 10px; } }








/* قسم الأقسام بالتمرير */
.container-1 { max-width: 1250px; margin: 0 auto 0px auto; border-radius: 0px; padding: 20px; }

.categories-wrapper { margin: 0 0; position: relative; width: 100%; display: flex; align-items: center; }

.scroll-btn { background-color: white; border: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--dark-bg); font-size: 1rem; box-shadow: var(--shadow); cursor: pointer; transition: var(--transition); z-index: 2; flex-shrink: 0; }

.scroll-btn:hover { background-color: var(--primary-color); color: white; transform: scale(1.1); }

.scroll-left { margin-left: 10px; }

.scroll-right { margin-right: 10px; }

.categories-container { display: flex; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; gap: 15px; padding: 15px 10px; width: 100%; -ms-overflow-style: none; }

.categories-container::-webkit-scrollbar { display: none; }

.category-box { background: white; border-radius: 12px; padding: 15px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 120px; min-height: 120px; flex-shrink: 0; }

.category-box:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); }

.category-box img { width:100px; height: 100px; object-fit: contain; margin-bottom: 10px; transition: var(--transition); }

.category-box:hover img { transform: scale(1.1); }

.category-box a { text-decoration: none; color: var(--dark-bg); font-weight: 600; font-size: 0.9rem; transition: var(--transition); text-align: center; }

.category-box:hover a { color: var(--primary-color); }

@media (max-width: 992px) { .category-box { min-width: 110px; min-height: 110px; padding: 12px; } .category-box img { width: 100px; height:100px; } }

@media (max-width: 768px) { .scroll-btn { width: 35px; height: 35px; font-size: 0.9rem; } .category-box { min-width: 100px; min-height: 100px; padding: 10px; } .category-box img { width: 100px; height: 10px; } .category-box a { font-size: 0.85rem; } }

@media (max-width: 576px) { .categories-wrapper { margin: 0px 0; } .scroll-btn { width: 30px; height: 30px; font-size: 0.8rem; display: none; } .categories-container { gap: 10px; padding: 10px 5px; } .category-box { min-width: 90px; min-height: 90px; padding: 8px; border-radius: 10px; } .category-box img { width: 90px; height: 90px; margin-bottom: 8px; } .category-box a { font-size: 0.8rem; } }

@media (max-width: 400px) { .category-box { min-width: 80px; min-height: 80px; } .category-box img { width: 90px; height: 90px; } .category-box a { font-size: 0.75rem; } }







/*اخر المنتجات*/
.products { max-width: 1200px; margin: 0 auto 40px auto; background: white; border-radius: 8px; box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08); padding: 20px; }

.products h2 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: 20px; color: #232f3e; padding-bottom: 12px; border-bottom: 2px solid #eee; }

.products h2 a { display: inline-flex; align-items: center; text-decoration: none; font-size: 14px; color: #007185; transition: all 0.3s ease; font-weight: 500; }

.products h2 a:hover { color: #c7511f; text-decoration: underline; }

.products h2 img { width: 18px; height: 18px; margin: 0 6px; transition: transform 0.3s ease; }

.products h2 a:hover img { transform: translateX(5px); }

.product-list { display: flex; overflow-x: auto; gap: 18px; padding: 10px 5px 25px; scrollbar-width: thin; scrollbar-color: #ccc transparent; -ms-overflow-style: -ms-autohiding-scrollbar; }

.product-list::-webkit-scrollbar { height: 8px; }

.product-list::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }

.product-list::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 10px; }

.product-list::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }

.product-card { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; display: flex; flex-direction: column; min-width: 220px; max-width: 220px; border: 1px solid #e6e6e6; flex-shrink: 0; }

.product-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); transform: translateY(-3px); }

.product-image { position: relative; overflow: hidden; height: 180px; background: #fafafa; display: flex; align-items: center; justify-content: center; padding: 15px; }

.product-image img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.5s ease; cursor: pointer; }

.product-card:hover .product-image img { transform: scale(1.05); }

.product-details { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }

.product-title { font-size: 15px; margin-bottom: 10px; color: #0f1111; font-weight: 500; line-height: 1.4; height: 42px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.product-rating { color: #ffa41c; margin-bottom: 10px; font-size: 13px; }

.product-price { margin-bottom: 12px; }

.price, .sale-price { font-weight: 600; color: #0f1111; font-size: 17px; }

.original-price { text-decoration: line-through; color: #565959; margin-left: 6px; font-size: 13px; }

.sale-price { color: #b12704; }

.discount-badge { background: #cc0c39; color: white; font-size: 11px; padding: 2px 6px; border-radius: 3px; margin-right: 5px; font-weight: 500; }

.btn-view-details { display: inline-flex; align-items: center; justify-content: center; background: #e9c46a; color: #0f1111; padding: 8px 12px; border-radius: 6px; text-decoration: none; font-weight: 500; transition: all 0.3s ease; margin-top: auto; border: none; cursor: pointer; font-size: 13px; border: 1px solid #fcd200; }

.btn-view-details:hover { background: #f7ca00; border-color: #f2c200; }

.btn-view-details i { margin-left: 5px; font-size: 12px; }

.product-list > p { text-align: center; padding: 2rem; color: #7f8c8d; font-size: 1rem; width: 100%; }

.image-modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); justify-content: center; align-items: center; }

.modal-content { max-width: 90%; max-height: 90%; }

.close-modal { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; cursor: pointer; }

@media (max-width: 768px) { .products h2 { font-size: 18px; } .product-card { min-width: 190px; max-width: 190px; } .product-image { height: 160px; } .products { border-radius: 0px; } }

@media (max-width: 576px) { body { padding: 15px 10px; } .products { padding: 15px; border-radius: 0px; } .products h2 { gap: 8px; } .product-card { min-width: 170px; max-width: 170px; } .product-image { height: 150px; } .product-title { font-size: 14px; } }

[dir="ltr"] .products h2 a img { transform: rotate(180deg); }

[dir="ltr"] .products h2 a:hover img { transform: rotate(180deg) translateX(5px); }

[dir="ltr"] .btn-view-details i { margin-left: 0; margin-right: 5px; }

[dir="ltr"] .original-price { margin-left: 0; margin-right: 6px; }

[dir="ltr"] .discount-badge { margin-right: 0; margin-left: 5px; }












/* قسم المنتجات على حسب القسم */
.custom-category-section { max-width: 1250px; margin: 0 auto 20px auto; padding: 20px; }

.custom-category-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font-size: 20px; color: #232f3e; padding-bottom: 12px; border-bottom: 2px solid #eee; }

.custom-category-arrow { display: inline-flex; align-items: center; text-decoration: none; font-size: 14px; color: #007185; transition: all 0.3s ease; font-weight: 500; }

.custom-category-arrow:hover { color: #c7511f; text-decoration: underline; }

.custom-category-arrow img { width: 18px; height: 18px; margin: 0 6px; transition: transform 0.3s ease; }

.custom-category-arrow:hover img { transform: translateX(5px); }

.custom-products-wrapper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }

.custom-product-card { display: flex; flex-direction: row; align-items: center; background: #ffffff; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; padding: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; }

.custom-product-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }

.custom-product-image { position: relative; width: 35%; display: flex; align-items: center; justify-content: center; }

.custom-product-image img { max-width: 100%; max-height: 100px; object-fit: contain; border-radius: 5px; transition: transform 0.3s ease; }

.custom-product-card:hover .custom-product-image img { transform: scale(1.05); }

.custom-product-info { width: 65%; padding: 10px; text-align: right; }

.custom-product-info h3 { font-size: 14px; color: #0f1111; margin-bottom: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; max-height: calc(1.4em * 2); }

.custom-product-rating { color: #ffa41c; font-size: 12px; text-align: right; margin-bottom: 8px; }

.custom-product-price { margin-bottom: 10px; }

.custom-product-price .price, .custom-product-price .sale-price { font-weight: 600; color: #0f1111; font-size: 15px; }

.custom-product-price .original-price { text-decoration: line-through; color: #565959; margin-left: 6px; font-size: 12px; }

.btn-view-details-custom { display: inline-flex; align-items: center; justify-content: center; background: #e9c46a; color: #0f1111; padding: 8px 12px; border-radius: 6px; text-decoration: none; font-weight: 500; transition: all 0.3s ease; border: 1px solid #fcd200; font-size: 12px; width: 100%; box-sizing: border-box; }

.btn-view-details-custom:hover { background: #f7ca00; border-color: #f2c200; }

.btn-view-details-custom i { margin-left: 5px; font-size: 12px; }

@media (max-width: 1024px) { .custom-products-wrapper { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 768px) { .custom-category-section { padding: 0 20px; } .custom-products-wrapper { display: grid; grid-template-columns: 1fr; gap: 10px; padding-bottom: 0; } .custom-product-card { padding: 6px; } .custom-product-image { width: 30%; } .custom-product-info { width: 70%; padding: 5px; } .custom-product-info h3 { font-size: 13px; } .custom-category-title { font-size: 18px; } }

[dir="ltr"] .custom-product-card { flex-direction: row-reverse; }

[dir="ltr"] .custom-category-arrow img { transform: rotate(180deg); }

[dir="ltr"] .custom-category-arrow:hover img { transform: rotate(180deg) translateX(5px); }

[dir="ltr"] .btn-view-details-custom i { margin-left: 0; margin-right: 5px; }

[dir="ltr"] .original-price { margin-left: 0; margin-right: 6px; }









/* تنسيق قسم إرسال رسالة */
.contact-section { width: 100%; margin: 40px auto; padding: 25px; background: #ffffff; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); transition: all 0.3s ease; }

.contact-section:hover { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); }

.section-title { text-align: center; font-size: 24px; color: #232f3e; margin-bottom: 25px; position: relative; padding-bottom: 10px; }

.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background-color: #e9c46a; border-radius: 2px; }

.contact-form { display: flex; flex-direction: column; gap: 15px; }

.contact-form input[type="text"], .contact-form textarea { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; color: #333; transition: all 0.3s ease; background-color: #f9f9f9; }

.contact-form input[type="text"]:focus, .contact-form textarea:focus { border-color: #e9c46a; box-shadow: 0 0 0 3px rgba(233, 196, 106, 0.3); outline: none; background-color: #fff; }

.contact-form textarea { resize: vertical; min-height: 120px; }

.contact-form button[type="submit"] { display: block; width: 100%; padding: 12px; background: #e9c46a; color: #232f3e; font-weight: bold; font-size: 16px; border: none; border-radius: 8px; cursor: pointer; transition: background-color 0.3s ease, transform 0.2s ease; }

.contact-form button[type="submit"]:hover { background-color: #f7ca00; transform: translateY(-2px); }

.popup-message { padding: 15px; margin-bottom: 20px; text-align: center; border-radius: 8px; background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; opacity: 0; transition: opacity 0.5s ease; }

[dir="ltr"] .section-title { font-family: 'Arial', sans-serif; }

[dir="ltr"] .contact-form input, [dir="ltr"] .contact-form textarea { direction: ltr; text-align: left; }






/* الشات بوت */
.chatbot-icon { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 28px; cursor: pointer; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); z-index: 1001; transition: all 0.3s ease; }

.chatbot-icon:hover { transform: scale(1.1); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }

/* نافذة الشات بوت */
.chatbot-window { position: fixed; bottom: 100px; right: 30px; width: 350px; height: 450px; background-color: white; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); overflow: hidden; display: flex; flex-direction: column; z-index: 1000; transform: translateY(20px) scale(0.95); opacity: 0; visibility: hidden; transition: transform 0.3s ease-out, opacity 0.3s ease-out, visibility 0s linear 0.3s; }

.chatbot-window.active { transform: translateY(0) scale(1); opacity: 1; visibility: visible; transition: transform 0.3s ease-out, opacity 0.3s ease-out, visibility 0s linear 0s; }

.chatbot-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; border-top-left-radius: 15px; border-top-right-radius: 15px; }

.chatbot-header h3 { margin: 0; font-size: 18px; font-family: 'Tajawal', sans-serif; }

.close-chat { background: none; border: none; color: white; font-size: 22px; cursor: pointer; padding: 5px; transition: transform 0.2s ease; }

.close-chat:hover { transform: rotate(90deg); }

.chatbot-body { flex: 1; padding: 15px; overflow-y: auto; background-color: #f9f9f9; display: flex; flex-direction: column; gap: 10px; font-family: 'Tajawal', sans-serif; }

.chatbot-body::-webkit-scrollbar { width: 8px; }

.chatbot-body::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 4px; }

.message { max-width: 85%; padding: 10px 15px; border-radius: 18px; line-height: 1.4; word-wrap: break-word; font-size: 15px; animation: fadeIn 0.3s ease forwards; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.bot-message { background-color: #e6e6ff; align-self: flex-start; color: #333; border-bottom-left-radius: 5px; }

.user-message { background-color: #6c5ce7; color: white; align-self: flex-end; border-bottom-right-radius: 5px; }

.options-container { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 5px; align-self: flex-start; }

.option { background-color: #d1e7dd; color: #155724; padding: 8px 15px; border-radius: 20px; cursor: pointer; transition: all 0.2s ease; font-size: 14px; border: 1px solid #a3cfb5; }

.option:hover { background-color: #c3e6cb; transform: translateY(-2px); }

.chatbot-footer { padding: 15px; background-color: white; border-top: 1px solid #eee; border-bottom-left-radius: 15px; border-bottom-right-radius: 15px; }

.chat-input { display: flex; gap: 10px; }

.chat-input input { flex: 1; padding: 10px 15px; border: 1px solid #ddd; border-radius: 25px; outline: none; font-family: 'Tajawal', sans-serif; }

.chat-input input:focus { border-color: #6c5ce7; }

.send-btn { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px; transition: background-color 0.3s ease; }

.send-btn:hover { background-color: #5a4ac7; }

.chat-input input:disabled, .send-btn:disabled { background-color: #e0e0e0; cursor: not-allowed; color: #888; }

/* Responsive for smaller screens */
@media (max-width: 500px) { .chatbot-window { width: 90%; height: 70%; bottom: 80px; right: 5%; left: 5%; } .chatbot-icon { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 24px; } }
