/* Ensure the container has relative positioning for the absolute SVG */
.container.flex.flex-col {
    position: relative;
}

/* Style the SVG curve */
.store-footer__curve {
    margin-bottom: 20px; /* Add margin-bottom */
    fill: #f3f4f6; /* Set color to #f3f4f6 */
    z-index: 0;
}


/* Set RTL direction for the footer */
.footer-middle.footer-container {
    direction: rtl;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
}

@media (min-width: 992px) {
    [dir="rtl"] .store-footer .footer-middle h3 {
        text-align: center !important;
    }
}

/* Let's identify and style the three main sections */
.footer-middle.footer-container > div {
    flex: 1;
    padding: 10px;
}

/* Right section - links (روابط تهمك) */
.footer-middle.footer-container > div:nth-child(2) {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Center section - logo and description */
.footer-middle.footer-container > div:first-child {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Left section - customer service icons and VAT info */
.footer-middle.footer-container > div:nth-child(3),
.footer-middle.footer-container > div:nth-child(4) {
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Combine the customer service and VAT sections */
.footer-middle.footer-container > div:nth-child(3) {
    margin-bottom: 20px;
}

/* Style the links list as a column */
.footer-list.store-links-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* For mobile devices, stack everything vertically and center text */
@media (max-width: 768px) {
    .footer-middle.footer-container {
        flex-direction: column;
    }
    
    .footer-middle.footer-container > div {
        order: initial !important;
        width: 100%;
        text-align: center;
    }
    
    /* Center all headings on mobile */
    .footer-middle.footer-container h3 {
        text-align: center;
        width: 100%;
    }
    
    /* Center the links list on mobile */
    .footer-list.store-links-items {
        align-items: center;
    }
    
    /* Center the contact links on mobile */
    .contact-links {
        justify-content: center;
    }
    
    /* Center the VAT info on mobile */
    .footer-vat {
        justify-content: center;
    }
}













.footer-middle {
    order:1;
}
.footer-top {
        order:2;

}
.footer-bottom{
        order:3;

}
ul.flex.justify-center.items-center.flex-wrap.gap-2 {
    order: 1;
}
/* == CSS للتنسيق الأساسي والحركة السلسة مع انكماش المساحة == */
.header-beshr-container {
    /* هذه الخصائص هي المسؤولة عن الحركة السلسة */
    opacity: 1; /* الحالة الافتراضية: مرئي */
    visibility: visible; /* الحالة الافتراضية: مرئي */
    max-height: 200px; /* أعلى ارتفاع متوقع للعنصر */
    overflow: hidden; /* لإخفاء المحتوى الزائد عند انكماش الارتفاع */

    /* تأثير الانتقال السلس على كل الخصائص */
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out, max-height 0.4s ease-in-out;
}

/* هذا هو الكلاس الذي تضيفه/تزيله الجافاسكريبت */
.header-beshr-container.is-hidden {
    opacity: 0; /* يصبح شفافاً */
    visibility: hidden; /* يختفي تماماً */
    max-height: 0; /* هنا السر: ارتفاعه ينكمش للصفر */
}

/* == باقي تنسيقات النص تبقى كما هي == */
.header-beshr-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 0.2rem;
    margin-top: 0.5rem;
    text-align: center;
    line-height: 1.6;
}

.header-beshr-title {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    text-align: center;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ريسبونسف للشاشات الصغيرة */
@media (max-width: 768px) {
    .header-beshr-subtitle {
        font-size: 1rem;
    }

    .header-beshr-title {
        font-size: 1.4rem;
        line-height: 1.6;
    }
}

/* ريسبونسف للجوالات الصغيرة جدًا */
@media (max-width: 480px) {
    .header-beshr-subtitle {
        font-size: 0.9rem;
    }

    .header-beshr-title {
        font-size: 1.1rem;
        line-height: 1.5;
    }
}



/* ===== Footer Container ===== */
.store-footer__inner {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  overflow: hidden; /* يمنع أي محتوى يطلع برا الحواف */
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
  animation: footerFadeUp 0.8s ease-in-out;
  background: var(--footer-bg) !important;
  position: relative;
  z-index: 2;
}

/* ===== Animation ===== */
@keyframes footerFadeUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Titles inside footer ===== */
.store-footer__inner h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
}

.store-footer__inner h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary-color, #a67c52);
  margin-top: 0.3rem;
  border-radius: 2px;
}

/* ===== Social icons hover ===== */
.store-footer__inner .social-icon {
  transition: transform 0.3s ease, color 0.3s ease;
}

.store-footer__inner .social-icon:hover {
  transform: translateY(-5px) scale(1.05);
  color: var(--primary-color, #a67c52);
}

/* ===== Newsletter input ===== */
.store-footer__inner .mail-input {
  border: 1px solid #ddd;
  padding: 0.75rem 1rem;
  border-radius: 8px 0 0 8px;
  transition: all 0.3s ease;
}

.store-footer__inner .mail-input:focus {
  border-color: var(--primary-color, #a67c52);
  box-shadow: 0 0 8px rgba(166, 124, 82, 0.4);
  outline: none;
}

/* ===== Buttons ===== */
.store-footer__inner .s-button-element {
  border-radius: 0 8px 8px 0 !important;
  transition: all 0.3s ease;
}

.store-footer__inner .s-button-element:hover {
  background: var(--primary-color, #a67c52);
  transform: scale(1.05);
}

/* ====== Global Variables & Reset ====== */
:root {
  --font-main: 'sky-bold';
  --font-secondary: 'sky';
  --color-primary: #050f2c;
  --color-primary-dark: #000006;
  --color-primary-light: #2b3552;
  --color-primary-reverse: #d1dbf8;
  --dark-bg-main: #292929;
  --dark-text-main: #ffffff;
  --dark-text-sec: #a9a9a9;
  --dark-grey: #3d3d3d;
  --text-btn: #ffffff;
  --bg-color: #ffffff;
  --header-bg: #ffffff;
  --menu-bg: #ffffff;
  --footer-bg: #f3f4f6;
}

/* ====== Base Styles ====== */
body {
  font-family: var(--font-secondary);
  background-color: var(--bg-color);
  direction: rtl;
}

/* ====== Header Styles ====== */
.store-header {
  /* Header styles */
}

.main-nav-container {
  /* Navigation container styles */
}

.header-inner {
  /* Header inner styles */
}

.angel-ad {
  /* Announcement bar styles */
  background-color: red;
  overflow: hidden;
}

.angel-ad__slider {
  /* Announcement slider styles */
}

.angel-ad__item {
  /* Announcement item styles */
  color: #ffffff;
}

.angel-ad__icon {
  /* Announcement icon styles */
}

.angel-ad__content {
  /* Announcement content styles */
}

.header-container {
  /* Header container styles */
}

.navbar-brand {
  /* Logo styles */
}

.logo-light, .logo-dark {
  /* Logo image styles */
}

.header-buttons {
  /* Header buttons styles */
}

.header-btn {
  /* Header button styles */
}

.header-cart {
  /* Cart button styles */
}

/* ====== Mobile Menu Styles ====== */
.mobile-menu {
  /* Mobile menu styles */
}

.main-menu {
  /* Main menu styles */
}

.sidemenu-link {
  /* Side menu link styles */
}

.menu_title {
  /* Menu title styles */
}

/* ====== Slider Styles ====== */
.home-slider {
  /* Home slider styles */
}

.main-slider {
  /* Main slider styles */
}

.swiper-lazy-wrap {
  /* Slider lazy wrap styles */
}

/* ====== Banner Styles ====== */
.banner-square {
  /* Banner square styles */
}

.box-img {
  /* Box image styles */
}

/* ====== Divider Styles ====== */
.s-angel--divider {
  /* Divider section styles */
}

.divider-container {
  /* Divider container styles */
}

.divider-title {
  /* Divider title styles */
}

.vertical-lines {
  /* Vertical lines styles */
}

.divider-wrapper {
  /* Divider wrapper styles */
}

.divider-item {
  /* Divider item styles */
}

.divider-title {
  /* Divider title styles */
}

.divider-url {
  /* Divider URL styles */
}

/* ====== Product Slider Styles ====== */
.s-block--best-offers {
  /* Best offers block styles */
}

/* ====== Testimonials Styles ====== */
.s-block--testimonials {
  /* Testimonials block styles */
}

.testimonials-slider {
  /* Testimonials slider styles */
}

.testimonial__avatar {
  /* Testimonial avatar styles */
}

.testimonial__rating {
  /* Testimonial rating styles */
}

.testimonial__icon {
  /* Testimonial icon styles */
}

/* ====== Footer Styles ====== */
.store-footer {
  /* Footer styles */
}

.store-footer__inner {
  /* Footer inner styles */
}

.footer-top {
  /* Footer top styles */
}

.footer-newsletter {
  /* Footer newsletter styles */
}

.mail {
  /* Mail form styles */
}

.title-mail {
  /* Mail title styles */
}

.mail-input {
  /* Mail input styles */
}

.footer-social {
  /* Footer social styles */
}

.social-links {
  /* Social links styles */
}

.social-icon {
  /* Social icon styles */
}

.social-label {
  /* Social label styles */
}

.footer-middle {
  /* Footer middle styles */
}

.footer-profile {
  /* Footer profile styles */
}

.logo-footer {
  /* Footer logo styles */
}

.footer-description {
  /* Footer description styles */
}

.menu-list {
  /* Menu list styles */
}

.footer-list {
  /* Footer list styles */
}

.contact-links {
  /* Contact links styles */
}

.footer-vat {
  /* Footer VAT styles */
}

.vat-num {
  /* VAT number styles */
}

.footer-images {
  /* Footer images styles */
}

.footer-bottom {
  /* Footer bottom styles */
}

.copyrights {
  /* Copyrights styles */
}

/* ====== Modal Styles ====== */
.angel-search-modal {
  /* Search modal styles */
}

.angelmodal {
  /* Modal styles */
}

.angelmodal-overlay {
  /* Modal overlay styles */
}

.angelmodal__close {
  /* Modal close button styles */
}

.angelmodal__container {
  /* Modal container styles */
}

.angelmodal__container_search {
  /* Modal search container styles */
}

.angel-search-block {
  /* Search block styles */
}

.angel-title {
  /* Title styles */
}

.angelmodal__search {
  /* Modal search styles */
}

.angelmodal__keywords {
  /* Modal keywords styles */
}

.angel-search-keywords {
  /* Search keywords styles */
}

.angel-search-title {
  /* Search title styles */
}

.angel-search-keywords-list {
  /* Search keywords list styles */
}

.angel-search-keyword-1, 
.angel-search-keyword-2, 
.angel-search-keyword-3 {
  /* Search keyword item styles */
}

.angel-search-keyword-input {
  /* Search keyword input styles */
}

.angel-search-keyword-btn {
  /* Search keyword button styles */
}

/* ====== Animation Styles ====== */
.angel_anime {
  /* Animation styles */
}

.animate__fadeIn {
  /* Fade in animation */
}

.animate__fadeInUp {
  /* Fade in up animation */
}

.animate__zoomOut {
  /* Zoom out animation */
}

/* ====== Utility Classes ====== */
.da-bgm {
  /* Dark mode background */
}

.da-tm {
  /* Dark mode text */
}

.da-ts {
  /* Dark mode text secondary */
}

.da-cp {
  /* Dark mode primary */
}

.da-bgg {
  /* Dark mode background grey */
}

.da-brdr {
  /* Dark mode border */
}

/* ====== Responsive Styles ====== */
@media (max-width: 768px) {
  /* Mobile styles */
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* Tablet styles */
}

@media (min-width: 1025px) {
  /* Desktop styles */
}



.s-product-card-entry {
  border-radius: 12px; /* زوايا دائرية */
  transition: all 0.3s ease; /* حركة سلسة عند الهوفر */
  background: #fff; /* خلفية بيضاء للكرت */
}
.s-products-slider-card.swiper-slide{
margin-bottom:16px;
}

.s-product-card-entry:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); /* ظل أكبر عند الهوفر */
  transform: translateY(-4px); /* يطلع الكرت لفوق شوي */
}



















/* chat section */

.fab {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #d4af37, #b8860b); /* ذهبي متدرج */
    border-radius: 50%;
    border: none;
    color: #ffffff; /* أبيض للنص */
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4); /* ظل ذهبي ناعم */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.fab:hover {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.6);
    animation: none;
}

.chat-icon {
    width: 30px;
    height: 30px;
    fill: white;
    transition: transform 0.3s ease;
}

.fab:hover .chat-icon {
    transform: scale(1.1);
}

/* Dialog Overlay - أبيض شفاف مع blur */
.chat-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 250, 250, 0.95); /* أبيض شفاف */
    backdrop-filter: blur(12px); /* تأثير زجاج مجروش */
    z-index: 1001;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    direction: rtl; /* دعم RTL للعربية */
}

.chat-dialog.show {
    display: flex;
    opacity: 1;
}

.chat-container {
    background: linear-gradient(145deg, #ffffff, #fafafa); /* أبيض متدرج ناعم */
    border: 1px solid rgba(212, 175, 55, 0.3); /* حد ذهبي خفيف */
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(212, 175, 55, 0.2); /* ظلال ناعمة */
    animation: bounceIn 0.4s ease-out;
    overflow: hidden;
    direction: rtl; /* RTL للكل */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Tahoma",
    sans-serif; /* دعم خطوط عربية */
}

@keyframes bounceIn {
    0% {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }
    60% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.chat-header {
    background: linear-gradient(135deg, #d4af37, #b8860b); /* ذهبي متدرج */
    color: #ffffff;
    padding: 20px;
    border-radius: 24px 24px 0 0;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    position: relative;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #fafafa;
    scrollbar-width: thin;
    scrollbar-color: #d4af37 #e0e0e0; /* لون شريط التمرير */
    direction: rtl;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #e0e0e0;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d4af37; /* لون شريط التمرير */
    border-radius: 3px;
}

.message {
    margin-bottom: 16px;
    padding: 12px 18px;
    border-radius: 28px;
    max-width: 80%;
    word-wrap: break-word;
    animation: slideIn 0.3s ease-out;
    font-family: inherit;
    line-height: 1.4;
    direction: rtl;
    position: relative;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.user-message {
    background: linear-gradient(
        135deg,
        #d4af37,
        #b8860b
    ); /* ذهبي لرسائل المستخدم */
    color: #ffffff;
    margin-left: auto;
    text-align: right;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
}

.bot-message {
    background: #ffffff; /* أبيض للبوت */
    color: #333333; /* نص رمادي داكن */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2); /* حد ذهبي خفيف */
}

.welcome-message {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: white;
    max-width: 90%;
    text-align: center;
    margin: 0 auto 20px auto;
}

.faq-section {
    background: #ffffff;
    border-radius: 15px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.1); /* حد ذهبي خفيف */
}

.faq-title {
    color: #d4af37; /* لون ذهبي للعنوان */
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    font-size: 16px;
}

.faq-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    color: #333;
    transition: all 0.2s ease;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item:hover {
    color: #d4af37; /* لون ذهبي عند المرور */
    padding-right: 5px;
}

.chat-input-container {
    display: flex;
    padding: 20px;
    gap: 12px;
    background: #ffffff;
    border-top: 1px solid rgba(212, 175, 55, 0.3); /* حد ذهبي خفيف */
    direction: rtl;
}

.chat-input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid rgba(212, 175, 55, 0.3); /* حد ذهبي خفيف */
    border-radius: 28px;
    outline: none;
    background: #fafafa;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
    direction: rtl;
    text-align: right;
}

.chat-input:focus {
    border-color: #d4af37; /* لون ذهبي عند التركيز */
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    background: #ffffff;
}

.send-btn {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 28px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
    direction: ltr; /* للزر الإنجليزي إذا لزم */
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    left: 15px;
    transition: transform 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    transform: rotate(180deg) scale(1.2);
}

/* Typing indicator styles */
.typing-indicator {
    display: inline-block;
    padding: 10px 15px;
}

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

.typing-dots span {
    height: 8px;
    width: 8px;
    background: #d4af37; /* لون ذهبي */
    border-radius: 50%;
    margin: 0 2px;
    display: inline-block;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

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

/* Responsive للموبايل */
@media (max-width: 600px) {
    .chat-container {
        width: 95%;
        height: 90vh;
        border-radius: 18px;
    }

    .fab {
        width: 60px;
        height: 60px;
        bottom: 80px;
        right: 15px;
    }

    .chat-icon {
        width: 25px;
        height: 25px;
    }

    .chat-header {
        padding: 15px;
        font-size: 16px;
    }

    .chat-messages {
        padding: 15px;
    }

    .chat-input-container {
        padding: 15px;
    }

    .message {
        padding: 10px 15px;
        font-size: 14px;
    }
}