/* style.css */

/* استيراد خطوط جوجل */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root {
 --floward-primary: #108a7b; /* اللون الأخضر الأساسي المستخدم في Floward */
    --floward-secondary: #f0f0f0; /* لون الخلفيات الفاتحة جداً */
    --floward-dark: #333333; /* لون النص والعناصر الداكنة */
    --floward-text-light: #666666; /* لون النص الرمادي الفاتح */
    --floward-border: #e0e0e0; /* لون الحدود الناعمة */
    --floward-shadow: rgba(0, 0, 0, 0.08); /* ظل ناعم وخفيف للبطاقات */
    --floward-font-main: 'Cairo', sans-serif; /* خط عربي رئيسي */
    --floward-font-heading: 'Playfair Display', serif; /* خط للرؤوس إذا أردت لمسة فنية */
    --bg-dark-elegant: #232f3e; /* لون داكن للـ Navbar/Footer */
    --bg-light-gradient: linear-gradient(135deg, #f8f9fa, #e9ecef); /* تدرج خفيف لخلفيات الأقسام */
    --hero-overlay: rgba(0, 0, 0, 0.4); /* تراكب للهيرو سكشن */
    --elegant-gold: #b8860b; /* لون ذهبي للديكورات */
}
body {
  font-family: var(--floward-font-main);
    color: var(--floward-dark);
    background-color: var(--floward-secondary); /* خلفية خفيفة للجسم */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--bs-font-sans-serif);
    color: var(--bs-dark);
    font-weight: 600;
    line-height: 1.3;
}

/* تحسينات عامة للأزرار */
.btn {
    border-radius: 8px; /* حواف دائرية ناعمة */
    padding: 10px 25px; /* تم تصغير حجم البادينج قليلاً */
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: capitalize; /* أحرف أولى كبيرة فقط */
    font-size: 0.95rem; /* تم تصغير حجم خط الزر قليلاً */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* ظل خفيف جدا */
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: var(--bs-white);
}

.btn-primary:hover {
    background-color: #0056b3; /* أزرق أغمق */
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.btn-outline-primary {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--bs-primary);
    color: var(--bs-white);
}

/* تحسينات على البطاقات (Cards) */
.card {
    border: none; /* إزالة الحدود */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* ظل أعمق وأكثر انتشارا */
    background-color: var(--bs-white);
}

.card-img-top {
    border-radius: 12px 12px 0 0;
    object-fit: cover;
    height: 280px; /* ارتفاع أكبر لصور المنتجات */
}

/* تحسينات الحاويات العامة */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

/* شريط التنقل (Navbar) مع تأثير الضبابية */
.navbar {
    background-color: rgba(255, 255, 255, 0.85) !important; /* خلفية شبه شفافة */
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 18px 0;
    backdrop-filter: blur(10px); /* تأثير الضبابية */
    -webkit-backdrop-filter: blur(10px); /* للدعم في Safari */
    position: sticky; /* لجعله يلتصق بالأعلى */
    top: 0;
    z-index: 1000; /* لضمان ظهوره فوق المحتوى الآخر */
}

.navbar-brand {
    font-family: var(--bs-font-sans-serif);
    font-weight: 700;
    font-size: 1.8rem; /* تم تصغير حجم خط الشعار */
    color: var(--bs-dark) !important; /* لون الشعار داكن */
    letter-spacing: -0.5px; /* تباعد سلبي بسيط للحروف */
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--bs-dark);
    padding: 8px 15px; /* تم تصغير حجم البادينج */
    transition: all 0.3s ease;
    font-size: 0.9rem; /* تم تصغير حجم خط روابط التنقل */
    border-radius: 6px;
    position: relative; /* لتمكين استخدام ::after */
    overflow: hidden; /* لإخفاء الخط السفلي الزائد */
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 100%; /* يبدأ من خارج الرابط على اليمين */
    width: 100%;
    height: 2px;
    background-color: var(--bs-primary);
    transition: right 0.3s ease-out; /* حركة الخط */
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    right: 0; /* يتحرك للداخل ليغطي الرابط */
}

.navbar-toggler {
    border: none;
    outline: none;
    font-size: 1.6rem;
    color: var(--bs-dark);
}
.navbar-toggler:focus {
    box-shadow: none;
}


/* الهيرو سكشن (Hero Section) */
.hero-section {
    min-height: 70vh; /* ارتفاع أكبر للهيرو */
    background: linear-gradient(to right, var(--bs-white), var(--bs-gray-200)); /* تدرج لوني خفيف للخلفية */
    color: var(--bs-dark);
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero-section h1 {
    font-size: 3.5rem; /* تم تصغير حجم عنوان الهيرو سكشن بشكل ملحوظ */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--bs-dark);
}

.hero-section p {
    font-size: 1.15rem; /* تم تصغير حجم نص الوصف */
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--bs-gray-600); /* نص رمادي ناعم */
}

/* عناوين الأقسام (Section Titles) */
h2.section-title {
    position: relative;
    padding-bottom: 20px;
    font-weight: 700;
    font-size: 2.2rem; /* تم تصغير حجم عناوين الأقسام */
    color: var(--bs-dark);
    margin-bottom: 50px !important; /* مسافة أقل قليلاً */
    opacity: 0; /* مخفي في البداية لحركات الظهور */
    transform: translateY(20px); /* يبدأ من الأسفل قليلاً لحركات الظهور */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px; /* تم تصغير طول الخط السفلي */
    height: 3px; /* تم تصغير سمك الخط السفلي */
    background-color: var(--bs-primary);
    border-radius: 2px;
}

/* تأثير التكبير عند التمرير على البطاقات */
.product-card, .feature-card {
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out; /* مدة أقصر لحركة أنعم */
    opacity: 0; /* مخفي في البداية لحركات الظهور */
    transform: translateY(30px); /* يبدأ من الأسفل قليلاً لحركات الظهور */
}

.product-card:hover, .feature-card:hover {
    transform: translateY(-8px); /* رفع أقل قليلاً ليكون ناعمًا */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); /* ظل أكثر وضوحًا */
}

/* سعر المنتج */
.product-price {
    font-size: 1.5rem; /* تم تصغير حجم خط السعر */
    font-weight: 700;
    color: var(--bs-dark); /* سعر بلون داكن */
    margin-top: 12px;
    margin-bottom: 20px;
}

/* قسم "لماذا تختارنا؟" */
.feature-card {
    padding: 30px !important;
    background-color: var(--bs-white);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}
.feature-card i {
    font-size: 3.5rem; /* أيقونات أكبر */
    color: var(--bs-primary);
    margin-bottom: 20px;
}
.feature-card h3 {
    font-size: 1.4rem; /* تم تصغير حجم عنوان الميزة */
    font-weight: 600;
    margin-bottom: 12px;
}
.feature-card p {
    color: var(--bs-gray-600);
    font-size: 0.9rem; /* تم تصغير حجم نص الميزة */
}


/* قسم آراء العملاء (Testimonials) */
#customerTestimonials .blockquote {
    padding: 40px !important;
    background-color: var(--bs-white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
#customerTestimonials .blockquote p {
    font-size: 1.15rem; /* تم تصغير حجم خط الاقتباس */
    color: var(--bs-dark);
    margin-bottom: 20px;
    font-style: italic; /* لجعل الاقتباس أكثر جمالية */
}
#customerTestimonials .blockquote-footer {
    font-size: 0.9rem; /* تم تصغير حجم خط اسم العميل */
    color: var(--bs-gray-600);
}
#customerTestimonials .blockquote-footer cite {
    font-weight: 500;
    color: var(--bs-dark);
}

#customerTestimonials .carousel-control-prev-icon,
#customerTestimonials .carousel-control-next-icon {
    background-image: none;
    background-color: var(--bs-primary); /* لون أزرق */
    border-radius: 50%;
    padding: 18px; /* حجم أكبر */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* قسم الاشتراك في النشرة البريدية */
.newsletter-section {
    background: linear-gradient(to right, var(--bs-primary), #0056b3); /* تدرج لوني للأزرق */
    color: var(--bs-white);
    padding: 100px 0; /* مساحة بادئة أكبر */
}

.newsletter-section h2 {
    font-size: 2.5rem; /* تم تصغير حجم عنوان النشرة البريدية */
    font-weight: 700;
    color: var(--bs-white);
    margin-bottom: 20px;
}

.newsletter-section p {
    font-size: 1.1rem; /* تم تصغير حجم نص النشرة البريدية */
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-section .form-control {
    border-radius: 8px;
    padding: 12px 20px; /* تم تصغير حجم البادينج */
    border: none;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.newsletter-section .btn {
    border-radius: 8px;
    padding: 12px 30px; /* تم تصغير حجم البادينج */
    font-weight: 600;
    background-color: var(--bs-white); /* زر أبيض نقي */
    border-color: var(--bs-white);
    color: var(--bs-primary); /* نص أزرق */
    font-size: 0.95rem; /* تم تصغير حجم خط الزر */
}

.newsletter-section .btn:hover {
    background-color: var(--bs-gray-200); /* لون رمادي فاتح عند التمرير */
    border-color: var(--bs-gray-200);
}

/* تذييل الصفحة (Footer) */
.footer {
    background-color: var(--bs-dark) !important;
    color: var(--bs-light) !important;
    padding-top: 80px;
    padding-bottom: 80px;
}

.footer h5 {
    color: var(--bs-primary); /* عناوين التذييل باللون الأزرق */
    font-weight: 600;
    margin-bottom: 25px; /* مسافة أقل قليلاً */
    font-size: 1.3rem; /* تم تصغير حجم عناوين التذييل */
}

.footer p, .footer ul li {
    color: rgba(255, 255, 255, 0.7);
    line-height: 2;
    font-size: 0.85rem; /* تم تصغير حجم خط نصوص التذييل */
}

.footer a {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--bs-primary) !important; /* لون أزرق عند التمرير */
}

.footer .social-icons a {
    font-size: 2rem; /* تم تصغير حجم أيقونات التواصل الاجتماعي */
    color: var(--bs-white) !important;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer .social-icons a:hover {
    transform: translateY(-3px);
    color: var(--bs-primary) !important;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin-top: 50px;
    margin-bottom: 50px;
}

/* Animate.css Customizations (لتعزيز حركات الظهور) */
.animate__animated {
    --animate-duration: 0.8s; /* مدة الحركة الافتراضية */
    --animate-delay: 0s;     /* لا يوجد تأخير افتراضي */
    --animate-once: true;    /* الحركة تحدث مرة واحدة فقط عند ظهور العنصر */
}

/* فئات حركات الظهور التي يضيفها JavaScript */
/* عناوين الأقسام */
h2.section-title.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* المنتجات وبطاقات الميزات */
.product-card.animate-in,
.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* قسم النشرة البريدية - العناصر الداخلية */
.newsletter-section.animate-in h2,
.newsletter-section.animate-in p,
.newsletter-section.animate-in .input-group {
    opacity: 1;
    transform: translateY(0);
}

/* تذييل الصفحة - العناصر الداخلية */
.footer.animate-in h5,
.footer.animate-in p,
.footer.animate-in ul li,
.footer.animate-in .social-icons {
    opacity: 1;
    transform: translateY(0);
}

/* تأخير للحركات داخل التذييل ليظهر بشكل متسلسل */
.footer.animate-in h5:nth-child(1),
.footer.animate-in p:nth-child(2),
.footer.animate-in ul:nth-child(1) {
    transition-delay: 0.1s;
}
.footer.animate-in h5:nth-child(2),
.footer.animate-in p:nth-child(3),
.footer.animate-in ul:nth-child(2) {
    transition-delay: 0.2s;
}
.footer.animate-in h5:nth-child(3),
.footer.animate-in p:nth-child(4),
.footer.animate-in ul:nth-child(3) {
    transition-delay: 0.3s;
}
.footer.animate-in .social-icons {
    transition-delay: 0.4s;
}

/* الكاروسيل (Testimonials) - حركة عند التغيير */
#customerTestimonials .carousel-item {
    opacity: 0;
    transform: scale(0.95); /* تصغير بسيط عند الدخول */
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

#customerTestimonials .carousel-item.active {
    opacity: 1;
    transform: scale(1);
}


/* style.css */

/* ... (جميع الأنماط السابقة بما في ذلك تصغير الخطوط تبقى كما هي) ... */

/* الأنماط المخصصة لسلة التسوق الجانبية (Offcanvas) */
.offcanvas {
    background-color: rgba(255, 255, 255, 0.95); /* خلفية شبه شفافة */
    backdrop-filter: blur(15px); /* تأثير الضبابية */
    -webkit-backdrop-filter: blur(15px); /* لدعم Safari */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); /* ظل خفيف */
    width: 350px; /* عرض ثابت للسلة */
    border-right: none; /* إزالة الحدود الافتراضية */
}

.offcanvas-header {
    border-bottom: 1px solid var(--bs-gray-200); /* خط فاصل خفيف */
    padding: 20px 25px;
}

.offcanvas-title {
    font-size: 1.6rem; /* حجم عنوان السلة */
    font-weight: 600;
    color: var(--bs-dark);
}

.offcanvas-body {
    padding: 25px;
}

.offcanvas .btn-close {
    font-size: 1.2rem;
    color: var(--bs-dark);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.offcanvas .btn-close:hover {
    opacity: 1;
}

/* نمط عناصر المنتج داخل السلة */
.offcanvas .cart-item {
    background-color: var(--bs-gray-200); /* خلفية رمادية فاتحة لعناصر السلة */
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* ظل خفيف جداً */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.offcanvas .cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.offcanvas .cart-item h6 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--bs-dark);
}

.offcanvas .cart-item p {
    font-size: 0.85rem;
    color: var(--bs-gray-600);
}

.offcanvas .cart-item .btn-outline-danger {
    border-radius: 6px;
    font-size: 0.9rem;
    padding: 5px 10px;
}

.offcanvas .mt-auto {
    border-top: 1px solid var(--bs-gray-200); /* خط فاصل للإجمالي */
    padding-top: 25px !important;
}

.offcanvas .mt-auto h5 {
    font-size: 1.5rem; /* حجم خط الإجمالي */
    font-weight: 700;
    color: var(--bs-dark);
}

.offcanvas .btn-primary,
.offcanvas .btn-outline-secondary {
    border-radius: 8px; /* نفس حواف الأزرار في باقي الموقع */
    padding: 12px 20px; /* بادينج مناسب */
    font-size: 1rem;
    font-weight: 500;
}

.offcanvas .btn-outline-secondary {
    color: var(--bs-dark);
    border-color: var(--bs-gray-400);
    background-color: transparent;
}

.offcanvas .btn-outline-secondary:hover {
    background-color: var(--bs-gray-200);
    color: var(--bs-dark);
    border-color: var(--bs-gray-400);
}

/* أنماط بطاقة Floward العصرية */
.floward-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--floward-border); /* حدود ناعمة */
    border-radius: 12px; /* حواف أكثر استدارة */
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 5px 15px var(--floward-shadow); /* ظل ناعم وواضح */
    transition: all 0.3s ease-in-out; /* انتقال سلس عند التحويم */
    text-decoration: none; /* إزالة خطوط الروابط */
    color: var(--floward-dark);
    position: relative; /* لتحديد موقع الأيقونة العلوية */
}

.floward-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); /* ظل أعمق قليلاً عند التحويم */
    transform: translateY(-5px); /* رفع خفيف للبطاقة */
}

.floward-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* نسبة عرض إلى ارتفاع 4:3 للصورة */
    overflow: hidden;
    background-color: var(--floward-secondary); /* خلفية فاتحة لمنع الفراغات */
}

.floward-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* تغطية المساحة بالكامل */
    transition: transform 0.3s ease-in-out;
}

.floward-card:hover .floward-card-image {
    transform: scale(1.05); /* تكبير الصورة قليلاً عند التحويم */
}

.floward-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: right; /* محاذاة لليمين للغة العربية */
}

.floward-card-title {
    font-family: var(--floward-font-main);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--floward-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.floward-card-description {
    font-size: 0.9rem;
    color: var(--floward-text-light);
    margin-bottom: 10px;
}

.floward-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--floward-primary);
    margin-top: auto; /* يدفع السعر والزر للأسفل */
    margin-bottom: 10px;
}

.floward-card-button {
    background-color: var(--floward-primary);
    border: 1px solid var(--floward-primary);
    color: white;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 8px;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    width: 100%;
    text-align: center;
}

.floward-card-button:hover {
    background-color: #0c6e61; /* أغمق قليلاً عند التحويم */
    border-color: #0c6e61;
}

/* الأيقونة العلوية (مثل أيقونة السلة أو المفضلة) */
.floward-card-icon-top {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.9); /* خلفية بيضاء شبه شفافة */
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: var(--floward-dark); /* لون الأيقونة */
    font-size: 1.1rem;
    transition: all 0.2s ease-in-out;
    z-index: 10;
}

.floward-card-icon-top:hover {
    background-color: var(--floward-primary);
    color: white;
    transform: scale(1.1);
}

/* أنماط Swiper.js المخصصة للسلايدر */
.floward-seasons-slider {
    width: 100%;
    padding-bottom: 50px; /* مسافة لنقاط الترقيم في الأسفل */
    padding-top: 10px; /* مسافة من الأعلى إن احتجت */
    margin-top: 20px; /* مسافة من العنوان */
}

/* نقاط الترقيم (Pagination Dots) */
.floward-swiper-pagination.swiper-pagination-bullets {
    bottom: 0px !important; /* وضع النقاط في الأسفل */
    text-align: center;
}

.floward-swiper-pagination .swiper-pagination-bullet {
    background-color: var(--floward-border); /* لون النقاط غير النشطة */
    opacity: 1;
    width: 8px;
    height: 8px;
    margin: 0 4px !important; /* مسافة بين النقاط */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.floward-swiper-pagination .swiper-pagination-bullet-active {
    background-color: var(--floward-primary); /* لون النقطة النشطة */
    transform: scale(1.2); /* تكبير النقطة النشطة */
}

/* أزرار التنقل (Navigation Arrows) */
.floward-swiper-button-next,
.floward-swiper-button-prev {
    color: var(--floward-dark) !important; /* لون الأسهم */
    width: 45px; /* حجم أكبر قليلاً للأزرار */
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9); /* خلفية بيضاء شبه شفافة */
    box-shadow: 0 3px 10px var(--floward-shadow); /* ظل ناعم */
    transition: all 0.3s ease;
    top: 45% !important; /* تعديل مكان الأسهم عمودياً */
}

.floward-swiper-button-next:hover,
.floward-swiper-button-prev:hover {
    background-color: var(--floward-primary) !important; /* خلفية خضراء عند التحويم */
    color: white !important; /* نص أبيض عند التحويم */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* حجم أيقونات الأسهم داخل الأزرار */
.floward-swiper-button-next::after,
.floward-swiper-button-prev::after {
    font-size: 1.3rem !important; /* حجم الأيقونة */
    font-weight: bold;
}

/* إخفاء الأسهم على الشاشات الصغيرة لتجنب الفوضى */
@media (max-width: 767.98px) {
    .floward-swiper-button-next,
    .floward-swiper-button-prev {
        display: none;
    }
    .floward-seasons-slider {
        padding-bottom: 30px; /* تقليل المساحة السفلية إذا اختفت الأسهم */
    }
}

/* أنماط حركات الظهور للـ Intersection Observer */
/* (تأكد من أن هذه موجودة بالفعل لديك ولا تتعارض معها) */
[data-animation-section].animate-in .floward-card {
    opacity: 1;
    transform: translateY(0);
}

.floward-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.bg-white-floward {
    background-color: #ffffff !important; /* خلفية بيضاء ناصعة للأقسام */
}

.text-floward-primary {
    color: var(--floward-primary) !important;
}

.text-floward-dark {
    color: var(--floward-dark) !important;
}

/* تحسينات للعناوين */
.section-title {
    font-family: var(--floward-font-main); /* استخدام كايرو للعنوان أيضاً لمظهر أنظف */
    font-size: 2rem; /* حجم معتدل */
    font-weight: 700;
    margin-bottom: 2rem !important;
    padding-bottom: 0.5rem;
    position: relative;
    color: var(--floward-dark);
}

.section-title-underline {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--floward-primary);
    border-radius: 1.5px;
}


/* لمنع ظهور شريط التمرير الأفقي في كامل الصفحة */
body, html {
    overflow-x: hidden; /* هذا يخفي أي شريط تمرير أفقي زائد */
    width: 100%; /* تأكد أن الجسم يأخذ 100% من العرض المتاح */
}

/* ضمان أن الحاويات الخاصة بـ Bootstrap تعمل بشكل صحيح */
.container, .container-fluid {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    /* يمكن إضافة padding-left و padding-right هنا إذا تم إزالتها من Bootstrap */
    padding-left: var(--bs-gutter-x, 0.75rem); /* استخدام متغير Bootstrap الافتراضي */
    padding-right: var(--bs-gutter-x, 0.75rem);
}

/* ضبط إضافي لحاوية Swiper */
.floward-seasons-slider {
    width: 100%; /* تأكد أنه يأخذ 100% من عرض الحاوية الأبوية (الـ .container) */
    box-sizing: border-box; /* تأكد أن الـ padding والـ border تُحسب ضمن العرض الإجمالي */
    max-width: none; /* قم بإزالة أي تحديد لـ max-width قد يتعارض */
    /* إذا كنت قد وضعت أي هوامش سالبة (negative margins) على هذا العنصر، قم بإزالتها */
    margin-left: 0;
    margin-right: 0;
}

/* ضمان أن الصور داخل البطاقات لا تتجاوز حدودها */
.floward-card-image {
    max-width: 100%;
    height: auto; /* للحفاظ على نسبة الأبعاد */
    display: block; /* لإزالة أي مسافات إضافية تحت الصور */
}

/* نمط جديد للأيقونة بدلاً من الزر الكبير في بطاقة المنتج/الموسم */
.floward-card-action-icon {
    background-color: var(--floward-primary); /* خلفية خضراء */
    color: white; /* لون الأيقونة أبيض */
    border-radius: 50%; /* لجعلها دائرية */
    width: 40px; /* حجم الأيقونة */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem; /* حجم الأيقونة نفسها */
    cursor: pointer; /* لإظهار مؤشر اليد عند التحويم */
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* ظل خفيف */
    align-self: flex-end; /* ليدفع الأيقونة إلى أسفل اليمين في Body البطاقة */
    margin-left: auto; /* يدفع الأيقونة إلى أقصى اليمين */
    margin-top: 10px; /* هامش علوي إذا كان هناك نص قبلها */
}

.floward-card-action-icon:hover {
    background-color: #0c6e61; /* لون أغمق عند التحويم */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px); /* تأثير رفع خفيف عند التحويم */
}

/* تعديل بسيط لـ floward-card-body لضمان مرونة الأيقونة */
.floward-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: right; /* محاذاة لليمين للغة العربية */
    /* تأكد أن المسافة السفلية كافية إذا لم تستخدم mt-auto على الأيقونة */
}

/* إذا كنت تستخدم أيقونة القلب في الأعلى، تأكد أنها لا تتعارض */
.floward-card-icon-top {
    /* أنماطك الحالية لهذه الأيقونة */
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: var(--floward-dark);
    font-size: 1.1rem;
    transition: all 0.2s ease-in-out;
    z-index: 10;
}

/* --- متغيرات الألوان (Variables) --- */
/* هذه المتغيرات تسهل تغيير الألوان في مكان واحد وتطبيقها في كل مكان */
:root {
    --floward-primary: #178a7b; /* اللون الأخضر الأساسي المستخدم للأسعار والأيقونات النشطة */
    --floward-dark: #333333; /* لون النصوص الرئيسية والعناوين */
    --floward-light-gray: #f8f8f8; /* لون الخلفيات الفاتحة */
    --floward-border: #e0e0e0; /* لون الحدود الفاتحة */
    --floward-shadow: rgba(0, 0, 0, 0.08); /* لون الظل الخفيف للبطاقات */
    --floward-hover-shadow: rgba(0, 0, 0, 0.15); /* لون الظل الأغمق عند التحويم */
    --text-muted: #666; /* لون النصوص الثانوية */
}

/* --- أنماط عامة وإعادة ضبط (Reset & General Styles) --- */
body {
    font-family: 'Tajawal', sans-serif; /* استخدام خط تاجول (تأكد من تضمينه في HTML) */
    direction: rtl; /* لجعل الاتجاه من اليمين لليسار للعربية */
    text-align: right; /* محاذاة النص لليمين افتراضياً */
    background-color: var(--floward-light-gray);
    color: var(--floward-dark);
    overflow-x: hidden; /* لمنع ظهور شريط التمرير الأفقي */
}

/* إعادة تعيين لبعض أنماط Bootstrap الافتراضية إذا لزم الأمر */
a {
    text-decoration: none; /* إزالة الخط السفلي من الروابط */
    color: inherit; /* وراثة لون النص من العنصر الأب */
}

a:hover {
    color: inherit; /* الحفاظ على اللون عند التحويم ما لم يتم تحديد غير ذلك */
}

/* --- أنماط الأقسام و حركات الظهور (Section & Animation Styles) --- */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--floward-dark);
    margin-bottom: 2.5rem;
    text-align: center;
    opacity: 0; /* مخفية في البداية لتفعيل الحركة */
    transform: translateY(20px); /* تبدأ من أسفل قليلاً */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* حركة سلسة */
}

/* فئة لتفعيل حركة الظهور عند رؤية العنصر */
.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* تأثيرات الانتقال الافتراضية للعناصر المتحركة */
.product-card, 
.floward-card, 
.feature-card,
.newsletter-section h2, 
.newsletter-section p, 
.newsletter-section .input-group, 
.footer h5, 
.footer p, 
.footer ul li, 
.footer .social-icons {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}


/* --- أنماط بطاقات المنتجات والمواسم (Product & Season Card Styles) --- */

/* نمط الكارد العام (ينطبق على .product-card و .floward-card) */
.product-card, .floward-card {
    position: relative; /* مهم جداً لتحديد موقع الأيقونات المطلقة */
    display: flex;
    flex-direction: column;
    height: 100%; /* لضمان تساوي ارتفاع جميع البطاقات في الصف */
    border: 1px solid var(--floward-border);
    border-radius: 12px; /* زوايا دائرية أنيقة */
    overflow: hidden; /* لإخفاء أي جزء يتجاوز الحدود الدائرية */
    background-color: #ffffff;
    box-shadow: 0 5px 15px var(--floward-shadow); /* ظل خفيف يبرز البطاقة */
    transition: all 0.3s ease-in-out; /* حركة سلسة عند التحويم */
    text-decoration: none; /* إزالة الخط السفلي للروابط */
    color: inherit; /* وراثة لون النص من العنصر الأب */
}

.product-card:hover, .floward-card:hover {
    box-shadow: 0 8px 25px var(--floward-hover-shadow); /* ظل أكبر وأوضح عند التحويم */
    transform: translateY(-3px); /* رفع خفيف للبطاقة عند التحويم */
}

/* صور المنتج/الموسم داخل الكارد */
.product-card .card-img-top, .floward-card-image {
    width: 100%;
    height: 200px; /* ارتفاع ثابت للصور للحفاظ على تساوي البطاقات */
    object-fit: cover; /* لضمان تغطية الصورة للمساحة دون تشويه */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* حاوية الصورة لـ floward-card (إذا كانت مختلفة) */
.floward-card-image-wrapper {
    width: 100%;
    height: 200px; /* نفس الارتفاع للحفاظ على التناسق */
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* جسم الكارد (المحتوى النصي) */
.product-card .card-body, .floward-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* للسماح لجسم الكارد بالتمدد لملء المساحة المتاحة */
    padding: 1rem; /* مسافة داخلية مناسبة */
    padding-bottom: 2.2rem; /* زيادة المسافة السفلية لإفساح مجال لأيقونة الإجراء في الزاوية */
    text-align: right; /* محاذاة لليمين للنصوص العربية */
}

.product-card .card-title, .floward-card-title {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--floward-dark);
    font-size: 1.00rem;
    margin-bottom: 2.5rem;
    text-decoration: none; /* للتأكيد على عدم وجود خط تحت العنوان */
}

.product-card .card-text, .floward-card-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.5;
    flex-grow: 1; /* للسماح للوصف بالتمدد إذا كان أطول */
}

.product-card .product-price, .floward-card-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--floward-primary);
    margin-top: auto; /* يدفع السعر إلى الأسفل إذا كان هناك مساحة إضافية */
    margin-bottom: 0.5rem; /* مسافة قبل المساحة السفلية للأيقونة */
}


/* --- نمط الأيقونة الاحترافي في الزاوية (إضافة للسلة / تسوق الآن) --- */
.card-corner-action-icon {
    position: absolute; /* تحديد الموقع بشكل مطلق بالنسبة للعنصر الأب ذو position: relative */
    bottom: 15px; /* 15px من أسفل الكارد */
    right: 15px; /* 15px من يمين الكارد */
    background-color: #ffffff; /* خلفية بيضاء لتبرز على أي خلفية صورة/نص */
    border: 1px solid var(--floward-primary); /* بوردر أخضر رقيق */
    color: var(--floward-primary); /* لون الأيقونة أخضر */
    border-radius: 50%; /* لجعلها دائرة */
    width: 45px; /* حجم مناسب للأيقونة */
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem; /* حجم أيقونة Bootstrap */
    cursor: pointer;
    transition: all 0.2s ease-in-out; /* حركة سلسة عند التحويم */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* ظل خفيف يبرزها */
    z-index: 5; /* للتأكد من أنها تظهر فوق المحتوى الآخر */
    text-decoration: none; /* إزالة الخط السفلي من الرابط */
}

.card-corner-action-icon:hover {
    background-color: var(--floward-primary); /* خلفية خضراء عند التحويم */
    color: white; /* أيقونة بيضاء عند التحويم */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* ظل أوضح عند التحويم */
    transform: translateY(-2px); /* رفع خفيف للأيقونة عند التحويم */
}

/* --- أيقونة القلب في الأعلى (إذا كنت تستخدمها في المواسم) --- */
.floward-card-icon-top {
    position: absolute;
    top: 15px; /* 15px من الأعلى */
    right: 15px; /* 15px من اليمين */
    background-color: rgba(255, 255, 255, 0.9); /* خلفية بيضاء شبه شفافة */
    border-radius: 50%; /* دائري */
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* ظل خفيف */
    color: var(--floward-dark); /* لون الأيقونة */
    font-size: 1.1rem;
    transition: all 0.2s ease-in-out;
    z-index: 10; /* للتأكد أنها فوق كل شيء */
    cursor: pointer;
}

.floward-card-icon-top:hover {
    background-color: var(--floward-primary); /* خلفية خضراء عند التحويم */
    color: white; /* أيقونة بيضاء عند التحويم */
    transform: translateY(-1px); /* رفع خفيف */
}


/* --- أنماط Swiper Slider (Seasons Slider) --- */
.floward-seasons-slider {
    padding-bottom: 40px; /* مساحة للنقاط Pagination في الأسفل */
    padding-left: 20px; /* لتوفير مساحة للسهم الأيسر */
    padding-right: 20px; /* لتوفير مساحة للسهم الأيمن */
    box-sizing: border-box; /* لضمان أن الـ padding لا يزيد العرض الكلي */
}

/* أزرار التنقل (الأسهم) */
.floward-swiper-button-next,
.floward-swiper-button-prev {
    color: var(--floward-dark); /* لون الأسهم */
    background-color: rgba(255, 255, 255, 0.9); /* خلفية بيضاء شبه شفافة */
    width: 45px;
    height: 45px;
    border-radius: 50%; /* دائري */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* ظل خفيف */
    transition: all 0.3s ease; /* حركة سلسة */
    /* إعادة ضبط موضع Swiper الافتراضي وضبطه على حافة حاوية الـ padding */
    top: 50%; /* توسيط عمودي */
    transform: translateY(-50%); /* تعديل التحويل لتوسيط دقيق */
    margin-top: 0; /* إلغاء أي هامش علوي افتراضي */
}

.floward-swiper-button-next:hover,
.floward-swiper-button-prev:hover {
    background-color: var(--floward-primary); /* خلفية خضراء عند التحويم */
    color: white; /* لون أبيض للأسهم عند التحويم */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* ظل أوضح */
}

/* تعديل حجم أيقونات الأسهم داخل الأزرار */
.floward-swiper-button-next::after,
.floward-swiper-button-prev::after {
    font-size: 1.2rem; /* حجم الأيقونة نفسها (مثلاً لـ Bootstrap Icons) */
    font-weight: bold; /* جعل الأيقونة أكثر وضوحاً */
}

/* تحديد الموضع الدقيق للأسهم لكي تظهر على حافة الـ padding وليس خارج الحاوية */
.swiper-container.floward-seasons-slider .floward-swiper-button-prev {
    left: 0 !important; /* إلغاء أي overriding ووضعها عند بداية الـ padding */
}
.swiper-container.floward-seasons-slider .floward-swiper-button-next {
}


/* نقاط Pagination (النقاط أسفل السلايدر) */
.floward-swiper-pagination.swiper-pagination-bullets {
    bottom: 5px !important; /* موضع النقاط أسفل السلايدر */
}

.floward-swiper-pagination .swiper-pagination-bullet {
    background: var(--floward-border); /* لون النقاط غير النشطة */
    opacity: 1; /* للتأكد من وضوحها */
    transition: background-color 0.3s ease, transform 0.3s ease; /* حركة سلسة عند التفعيل */
}

.floward-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--floward-primary); /* لون النقطة النشطة أخضر */
    transform: scale(1.2); /* تكبير النقطة النشطة قليلاً */
}


/* --- تصميم قسم الاشتراك بالنشرة الإخبارية (Newsletter Section) --- */
.newsletter-section {
    background-color: var(--floward-primary); /* خلفية خضراء */
    color: white;
    padding: 3rem 0;
    text-align: center;
    border-radius: 15px; /* زوايا دائرية جميلة */
    margin-top: 3rem; /* هامش علوي للفصل عن القسم السابق */
    margin-bottom: 3rem; /* هامش سفلي */
}

.newsletter-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.newsletter-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-section .input-group {
    max-width: 500px;
    margin: 0 auto; /* توسيط حقل الإدخال */
    border-radius: 50px; /* زوايا دائرية جداً */
    overflow: hidden; /* لضمان أن العناصر الداخلية تلتزم بالزوايا الدائرية */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-section .form-control {
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px 0 0 50px; /* زوايا دائرية لليسار */
    text-align: right; /* محاذاة النص لليمين */
}

.newsletter-section .btn {
    background-color: var(--floward-dark); /* زر بلون أغمق */
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0 50px 50px 0; /* زوايا دائرية لليمين */
    transition: background-color 0.3s ease;
}

.newsletter-section .btn:hover {
    background-color: #000000; /* أغمق عند التحويم */
}

/* تعديل Bootstrap Input Group للعمل مع الاتجاه RTL */
.newsletter-section .input-group > .form-control,
.newsletter-section .input-group > .form-control-plaintext,
.newsletter-section .input-group > .form-select,
.newsletter-section .input-group > .input-group-text,
.newsletter-section .input-group > .btn {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.newsletter-section .input-group > .form-control:first-child,
.newsletter-section .input-group > .form-select:first-child {
    border-top-right-radius: 50px !important;
    border-bottom-right-radius: 50px !important;
    border-top-left-radius: 0 !important; /* تأكد من إزالة الزاوية من اليسار */
    border-bottom-left-radius: 0 !important; /* تأكد من إزالة الزاوية من اليسار */
}

.newsletter-section .input-group > :not(.form-control):last-child:not(.dropdown-toggle),
.newsletter-section .input-group > .form-select:last-child,
.newsletter-section .input-group > .input-group-text:last-child,
.newsletter-section .input-group > .btn:last-child {
    border-top-left-radius: 50px !important;
    border-bottom-left-radius: 50px !important;
    border-top-right-radius: 0 !important; /* تأكد من إزالة الزاوية من اليمين */
    border-bottom-right-radius: 0 !important; /* تأكد من إزالة الزاوية من اليمين */
}


/* --- تصميم الـ Footer (تذييل الصفحة) --- */
.footer {
    background-color: var(--floward-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0;
    font-size: 0.95rem;
    text-align: right;
}

.footer h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.8rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.footer ul li a:hover {
    color: var(--floward-primary); /* تغيير اللون إلى الأخضر عند التحويم */
}

.footer .social-icons a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    margin-left: 1rem; /* مسافة بين الأيقونات */
    transition: color 0.2s ease, transform 0.2s ease;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.footer .social-icons a:hover {
    color: var(--floward-primary);
    transform: translateY(-3px);
}

.footer .bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- أنماط الشاشات الصغيرة (Responsive adjustments) --- */
@media (max-width: 767.98px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .newsletter-section h2 {
        font-size: 1.8rem;
    }

    .newsletter-section p {
        font-size: 1rem;
    }

    .newsletter-section .input-group {
        flex-direction: column; /* لجعل حقل الإدخال والزر يأخذان صفاً كاملاً */
    }

    .newsletter-section .form-control,
    .newsletter-section .btn {
        width: 100%; /* تأكد من أنهم يأخذون العرض الكامل */
        border-radius: 50px !important; /* دائري بالكامل على الشاشات الصغيرة */
        margin-bottom: 10px; /* مسافة بين الحقل والزر */
    }
    .newsletter-section .btn {
        margin-bottom: 0; /* لا مسافة بعد الزر الأخير */
    }

    .footer {
        text-align: center; /* توسيط محتوى الفوتر على الشاشات الصغيرة */
    }

    .footer .col-md-4 {
        margin-bottom: 2rem;
    }

    .footer .social-icons {
        justify-content: center; /* توسيط أيقونات السوشيال ميديا */
    }
    .footer .social-icons a {
        margin: 0 0.5rem; /* تعديل المسافة بين أيقونات السوشيال ميديا */
    }
}


/* --- متغيرات الألوان (Variables) --- */
:root {
    --floward-primary: #178a7b;
    --floward-dark: #333333;
    --floward-light-gray: #f8f8f8;
    --floward-border: #e0e0e0;
    --floward-shadow: rgba(0, 0, 0, 0.08);
    --floward-hover-shadow: rgba(0, 0, 0, 0.15);
    --text-muted: #666;
}

/* --- أنماط عامة وإعادة ضبط (Reset & General Styles) --- */
body {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: var(--floward-light-gray);
    color: var(--floward-dark);
    overflow-x: hidden;
    /* مسافة علوية للجسم لتعويض ارتفاع شريط التنقل */
    /* هذه القيمة ستكون ثابتة ويجب أن تكون كافية لتجنب تداخل المحتوى مع الـ navbar الثابت */
    padding-top: 70px; /* اضبط هذه القيمة بناءً على ارتفاع الـ navbar النهائي */
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: inherit;
}

/* --- أنماط شريط التنقل (Navbar Styles) --- */
.navbar {
    position: fixed; /* لتثبيته في الأعلى دائمًا */
    width: 100%; /* ليأخذ العرض الكامل للمتصفح */
    top: 0; /* في أعلى المتصفح */
    left: 0; /* يبدأ من أقصى اليسار */
    z-index: 1030; /* لضمان أنه يظهر فوق معظم العناصر الأخرى (قيمة Bootstrap الافتراضية) */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* حركة سلسة للخلفية والظل */
    padding: 0.8rem 0; /* تباعد داخلي مناسب */
}

/* النمط الافتراضي (الشفاف) */
.navbar.transparent-navbar {
    background-color: transparent !important; /* خلفية شفافة */
    box-shadow: none !important; /* لا يوجد ظل في البداية */
    border-bottom: none !important; /* لا يوجد خط سفلي */
}

.navbar.transparent-navbar .navbar-brand,
.navbar.transparent-navbar .nav-link {
    color: #111010 !important; /* لون أبيض للنصوص في البداية */
}
/* لجعل أيقونة الـ toggler بيضاء أيضا */
.navbar.transparent-navbar .navbar-toggler-icon {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}


/* النمط عند التمرير (يصبح له خلفية وظل) */
.navbar.navbar-scrolled {
    background-color: #ffffff !important; /* خلفية بيضاء عند التمرير */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* ظل أنيق عند التمرير */
    border-bottom: 1px solid var(--floward-border); /* خط سفلي رفيع */
}

.navbar.navbar-scrolled .navbar-brand,
.navbar.navbar-scrolled .nav-link {
    color: var(--floward-dark) !important; /* لون النص يصبح داكناً عند التمرير */
}
/* أيقونة الـ toggler تعود للون الافتراضي أو الداكن */
.navbar.navbar-scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* لون الروابط النشطة أو عند التحويم ضمن شريط التنقل */
.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: var(--floward-primary) !important; /* لون أخضر أساسي للروابط النشطة وعند التحويم */
}

/* تعديل حجم الخط لشعار المتجر */
.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
}

/* تباعد عناصر قائمة التنقل */
.navbar-nav .nav-item {
    margin-left: 15px; /* مسافة بين عناصر القائمة */
}


/* --- أنماط الأقسام و حركات الظهور (Section & Animation Styles) --- */
/* (هذا الجزء هو نفسه الذي قدمته لك سابقًا، فقط تأكد من وجوده) */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--floward-dark);
    margin-bottom: 2.5rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.product-card, 
.floward-card, 
.feature-card,
.newsletter-section h2, 
.newsletter-section p, 
.newsletter-section .input-group, 
.footer h5, 
.footer p, 
.footer ul li, 
.footer .social-icons {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}


/* --- أنماط بطاقات المنتجات والمواسم (Product & Season Card Styles) --- */
/* (هذا الجزء هو نفسه الذي قدمته لك سابقًا، تأكد من وجوده بالكامل) */
.product-card, .floward-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--floward-border);
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 5px 15px var(--floward-shadow);
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    color: inherit;
}

.product-card:hover, .floward-card:hover {
    box-shadow: 0 8px 25px var(--floward-hover-shadow);
    transform: translateY(-3px);
}

.product-card .card-img-top, .floward-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.floward-card-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.product-card .card-body, .floward-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1rem;
    padding-bottom: 2.2rem;
    text-align: right;
}

.product-card .card-title, .floward-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--floward-dark);
    margin-bottom: 2.5rem;
    text-decoration: none;
}

.product-card .card-text, .floward-card-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.5;
    flex-grow: 1;
}

.product-card .product-price, .floward-card-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--floward-primary);
    margin-top: auto;
    margin-bottom: 0.5rem;
}


/* --- نمط الأيقونة الاحترافي في الزاوية (إضافة للسلة / تسوق الآن) --- */
/* (هذا الجزء هو نفسه الذي قدمته لك سابقًا، تأكد من وجوده بالكامل) */
.card-corner-action-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: #ffffff;
    border: 1px solid var(--floward-primary);
    color: var(--floward-primary);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 5;
    text-decoration: none;
}

.card-corner-action-icon:hover {
    background-color: var(--floward-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.floward-card-icon-top {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--floward-dark);
    font-size: 1.1rem;
    transition: all 0.2s ease-in-out;
    z-index: 10;
    cursor: pointer;
}

.floward-card-icon-top:hover {
    background-color: var(--floward-primary);
    color: white;
    transform: translateY(-1px);
}


/* --- أنماط Swiper Slider (Seasons Slider) --- */
/* (هذا الجزء هو نفسه الذي قدمته لك سابقًا، تأكد من وجوده بالكامل) */
.floward-seasons-slider {
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.floward-swiper-button-next,
.floward-swiper-button-prev {
    color: var(--floward-dark);
    background-color: rgba(255, 255, 255, 0.9);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
}

.floward-swiper-button-next:hover,
.floward-swiper-button-prev:hover {
    background-color: var(--floward-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.floward-swiper-button-next::after,
.floward-swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
}

.swiper-container.floward-seasons-slider .floward-swiper-button-prev {

}
.swiper-container.floward-seasons-slider .floward-swiper-button-next {
}

.floward-swiper-pagination.swiper-pagination-bullets {
    bottom: 5px !important;
}

.floward-swiper-pagination .swiper-pagination-bullet {
    background: var(--floward-border);
    opacity: 1;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.floward-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--floward-primary);
    transform: scale(1.2);
}


/* --- تصميم قسم الاشتراك بالنشرة الإخبارية (Newsletter Section) --- */
/* (هذا الجزء هو نفسه الذي قدمته لك سابقًا، تأكد من وجوده بالكامل) */
.newsletter-section {
    background-color: var(--floward-primary);
    color: white;
    padding: 3rem 0;
    text-align: center;
    border-radius: 15px;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.newsletter-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.newsletter-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-section .input-group {
    max-width: 500px;
    margin: 0 auto;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-section .form-control {
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px 0 0 50px;
    text-align: right;
}

.newsletter-section .btn {
    background-color: var(--floward-dark);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0 50px 50px 0;
    transition: background-color 0.3s ease;
}

.newsletter-section .btn:hover {
    background-color: #000000;
}

.newsletter-section .input-group > .form-control,
.newsletter-section .input-group > .form-control-plaintext,
.newsletter-section .input-group > .form-select,
.newsletter-section .input-group > .input-group-text,
.newsletter-section .input-group > .btn {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.newsletter-section .input-group > .form-control:first-child,
.newsletter-section .input-group > .form-select:first-child {
    border-top-right-radius: 50px !important;
    border-bottom-right-radius: 50px !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.newsletter-section .input-group > :not(.form-control):last-child:not(.dropdown-toggle),
.newsletter-section .input-group > .form-select:last-child,
.newsletter-section .input-group > .input-group-text:last-child,
.newsletter-section .input-group > .btn:last-child {
    border-top-left-radius: 50px !important;
    border-bottom-left-radius: 50px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}


/* --- تصميم الـ Footer (تذييل الصفحة) --- */
/* (هذا الجزء هو نفسه الذي قدمته لك سابقًا، تأكد من وجوده بالكامل) */
.footer {
    background-color: var(--floward-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0;
    font-size: 0.95rem;
    text-align: right;
}

.footer h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.8rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.footer ul li a:hover {
    color: var(--floward-primary);
}

.footer .social-icons a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    margin-left: 1rem;
    transition: color 0.2s ease, transform 0.2s ease;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.footer .social-icons a:hover {
    color: var(--floward-primary);
    transform: translateY(-3px);
}

.footer .bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- أنماط الشاشات الصغيرة (Responsive adjustments) --- */
/* (هذا الجزء هو نفسه الذي قدمته لك سابقًا، تأكد من وجوده بالكامل) */
@media (max-width: 767.98px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .newsletter-section h2 {
        font-size: 1.8rem;
    }

    .newsletter-section p {
        font-size: 1rem;
    }

    .newsletter-section .input-group {
        flex-direction: column;
    }

    .newsletter-section .form-control,
    .newsletter-section .btn {
        width: 100%;
        border-radius: 50px !important;
        margin-bottom: 10px;
    }
    .newsletter-section .btn {
        margin-bottom: 0;
    }

    .footer {
        text-align: center;
    }

    .footer .col-md-4 {
        margin-bottom: 2rem;
    }

    .footer .social-icons {
        justify-content: center;
    }
    .footer .social-icons a {
        margin: 0 0.5rem;
    }
}

/* Custom CSS for circular buttons */
.btn-circle {
    width: 30px; /* Adjust size as needed */
    height: 30px; /* Adjust size as needed */
    padding: 0;
    border-radius: 50%; /* Makes it circular */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; /* Prevents shrinking in flex containers */
}

/* Adjust icon size within circular buttons if needed */
.btn-circle i {
    font-size: 0.8rem; /* Smaller icon */
}



/* --- Shimmer Effect CSS for Product Cards Only --- */

/* Wrapper for each product card, responsible for showing/hiding shimmer */
.product-card-wrapper {
    position: relative;
    overflow: hidden; /* Ensures shimmer wave stays within bounds */
    min-height: 350px; /* Adjust this to the typical height of your product cards */
    background-color: transparent; /* Wrapper itself is transparent initially */
    border-radius: 8px; /* Matches your card styling */
}

/* The actual shimmer placeholder that covers the product card */
.product-card-wrapper .shimmer-product-card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f0f0f0; /* Light grey background for the card area */
    border-radius: 8px; /* Matches your card styling */
    display: flex; /* Use flexbox for internal layout */
    flex-direction: column;
    justify-content: space-between; /* Space out image and text placeholders */
    padding: 15px; /* Internal padding for the placeholder */
    z-index: 5; /* Ensure it's above the actual card initially */
}

/* The actual shimmer wave effect for the product card placeholder */
.product-card-wrapper .shimmer-product-card-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%); /* Start off-screen to the left */
    animation: shimmer-wave 1.5s infinite; /* Adjust duration and timing as needed */
}

/* Keyframes for the shimmer wave movement (re-used) */
@keyframes shimmer-wave {
    100% {
        transform: translateX(100%); /* Move across to the right */
    }
}

/* Styles for the placeholder shapes INSIDE the shimmer product card */
.product-card-wrapper .shimmer-image-placeholder {
    width: 100%;
    padding-bottom: 75%; /* Aspect ratio for the image area */
    background-color: #e6e6e6; /* Slightly darker grey for image area */
    border-radius: 4px;
    margin-bottom: 15px; /* Space below the image placeholder */
    flex-shrink: 0; /* Prevents shrinking in flex container */
}

.product-card-wrapper .shimmer-text-placeholder {
    height: 16px; /* Height of a text line */
    background-color: #e6e6e6; /* Slightly darker grey for text lines */
    border-radius: 4px;
    margin-bottom: 8px; /* Spacing between lines */
}

.product-card-wrapper .shimmer-text-placeholder.short {
    width: 60%; /* Shorter width for titles */
    margin-left: auto;
    margin-right: auto; /* Center align */
}

.product-card-wrapper .shimmer-text-placeholder.medium {
    width: 85%; /* Medium width for descriptions */
    margin-left: auto;
    margin-right: auto; /* Center align */
}

.product-card-wrapper .shimmer-text-placeholder.price {
    width: 40%; /* Shorter width for prices */
    height: 20px; /* Slightly taller for price */
    margin-top: auto; /* Push to bottom */
    margin-left: auto;
    margin-right: auto;
}

/* Actual product card will start hidden and fade in */
.product-card-wrapper .product-card {
    opacity: 0; /* Start hidden */
    transition: opacity 0.3s ease-in-out; /* Smooth fade-in */
    position: relative; /* Needed for z-index */
    z-index: 1; /* Below shimmer initially */
}

/* When the wrapper is loaded, show the actual card and hide the shimmer */
.product-card-wrapper.loaded .product-card {
    opacity: 1; /* Fade in the actual card */
    z-index: 6; /* Bring it to front */
}

.product-card-wrapper.loaded .shimmer-product-card-placeholder {
    display: none !important; /* Hide the shimmer placeholder */
}

/* --- Keep existing styles for .floward-card and .floward-seasons-slider untouched if they are working correctly --- */
/* For example, if .floward-card already handles its own loading or has no shimmer. */

/* For Floward Seasons (Swiper) - use the previous shimmer logic or remove if no shimmer needed */
.swiper-slide .floward-card {
    /* Ensure default visibility if not using shimmer for seasons */
    opacity: 1;
    transition: none; /* No fade-in if not loading with shimmer */
}

/* If you still want shimmer on floward-card (seasons) use the previous CSS: */
/*
.floward-card.shimmer-card-placeholder {
    // ... previous shimmer styles for full card ...
}
.floward-card.loaded {
    opacity: 1;
}
.floward-card.loaded .shimmer-card-placeholder {
    display: none !important;
}
*/
/* --- Global Card Height Equalization --- */

/* For product cards (outside Swiper) */
#products-container.row {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap to the next line */
    align-items: stretch; /* This is key: makes all flex items (cards) in the row stretch to the height of the tallest item */
}

/* For season cards (inside Swiper) */
.floward-seasons-slider .swiper-wrapper {
    display: flex; /* Swiper's internal wrapper is already flex, but confirm align-items */
    align-items: stretch; /* Makes all slides (which contain the cards) in the view stretch to the tallest */
}

/* Ensure the card itself fills its flex container */
.product-card-wrapper,
.swiper-slide > .floward-card { /* Target the direct wrapper or the actual floward card inside a slide */
    height: 100%; /* Make the card/wrapper fill the height of its parent flex item */
    display: flex; /* Make the card content itself flex to push footer elements down */
    flex-direction: column;
}

/* Ensure shimmer placeholder also fills the height */
.product-card-wrapper .shimmer-product-card-placeholder,
.swiper-slide > .floward-card.shimmer-card-placeholder {
    height: 100%;
}

/* The card-body needs to be flexible to push content down and allow consistent height for prices */
.product-card .card-body,
.floward-card .floward-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows the body to take up available space */
    justify-content: space-between; /* Helps distribute content vertically */
}

/* Push the price and add-to-cart/shop buttons to the bottom consistently */
.product-card .product-price,
.floward-card .floward-card-price,
.product-card .card-corner-action-icon,
.floward-card .card-corner-action-icon {
    margin-top: auto; /* Pushes these elements to the bottom within their flex container */
}

/* Keep previous shimmer CSS and product/season specific CSS untouched */


/* تصميم بطاقة المنتج */
.product-card {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* صورة المنتج */
.product-card .card-img-top {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #f5f5f5;
    transition: opacity 0.3s ease;
}

.product-card:hover .card-img-top {
    opacity: 0.9;
}

/* جسم البطاقة */
.product-card .card-body {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* عنوان المنتج */
.product-card .card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* وصف المنتج */
.product-card .card-text.text-muted {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
    flex-grow: 1;
}

/* سعر المنتج */
.product-card .product-price {
    font-size: 18px;
    color: #2a5a78;
    font-weight: 700;
    margin-top: auto;
}

/* زر الإضافة للسلة */
.card-corner-action-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2a5a78;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.card-corner-action-icon:hover {
    background-color: #2a5a78;
    color: white;
    transform: scale(1.1);
}

/* تأثيرات التحميل */
.product-card-wrapper {
    position: relative;
}

.shimmer-product-card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f9f9f9;
    z-index: 10;
    border-radius: 12px;
    overflow: hidden;
}

.product-card-wrapper.loaded .shimmer-product-card-placeholder {
    display: none;
}

/* تأثير الشيمر */
.shimmer-image-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(to right, #f9f9f9 0%, #e8e8e8 50%, #f9f9f9 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.shimmer-text-placeholder {
    height: 16px;
    background: linear-gradient(to right, #f9f9f9 0%, #e8e8e8 50%, #f9f9f9 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.shimmer-text-placeholder.short {
    width: 70%;
}

.shimmer-text-placeholder.medium {
    width: 90%;
}

.shimmer-text-placeholder.price {
    width: 40%;
    height: 24px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


/* تصميم أساسي للمودال */
#productDetailModal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

#productDetailModal .modal-header {
    padding: 1.5rem 1.5rem 0;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    border: none;
}

#productDetailModal .modal-body {
    padding: 2rem;
}

#productDetailModal .btn-close {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    padding: 0.5rem;
    opacity: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#productDetailModal .btn-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: rotate(90deg);
}

/* تصميم صورة المنتج */
#productDetailModal .product-modal-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-top: 30px;
}

#productDetailModal .product-modal-image:hover {
    transform: scale(1.02);
}

/* تصميم تفاصيل المنتج */
#productDetailModal .product-modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2a2a2a;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

#productDetailModal .product-modal-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1.5rem;
}

#productDetailModal .product-modal-price {
    font-size: 1.5rem;
    color: #2a5a78;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* تصميم الأزرار */
#productDetailModal .btn-floward-primary {
    background-color: #2a5a78;
    color: white;
    border: none;
    padding: 0.8rem;
    font-size: 1.1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

#productDetailModal .btn-floward-primary:hover {
    background-color: #1e465e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(42, 90, 120, 0.2);
}

#productDetailModal .btn-outline-secondary {
    border: 1px solid #ddd;
    color: #555;
    padding: 0.8rem;
    font-size: 1.1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

#productDetailModal .btn-outline-secondary:hover {
    border-color: #2a5a78;
    color: #2a5a78;
    background-color: rgba(42, 90, 120, 0.05);
}

/* معلومات إضافية */
#productDetailModal .product-modal-additional-info {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

#productDetailModal .product-modal-additional-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

#productDetailModal .product-modal-additional-info i {
    color: #2a5a78;
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

/* تأثيرات للروابط */
#productDetailModal .product-modal-link {
    transition: all 0.3s ease;
    text-decoration: none;
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    #productDetailModal .modal-dialog {
        margin: 1rem;
    }
    
    #productDetailModal .modal-body {
        padding: 1.5rem;
    }
    
    #productDetailModal .product-modal-image {
        height: 300px;
        margin-bottom: 1.5rem;
    }
    
    #productDetailModal .product-modal-title {
        font-size: 1.5rem;
    }
    
    #productDetailModal .product-modal-price {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    #productDetailModal .product-modal-image {
        height: 250px;
    }
    
    #productDetailModal .product-modal-title {
        font-size: 1.3rem;
    }
    
    #productDetailModal .btn-floward-primary,
    #productDetailModal .btn-outline-secondary {
        font-size: 1rem;
        padding: 0.7rem;
    }
}
.card-title{

    font-size: 0.8rem;
}

/* تحسينات عامة للهواتف */
@media (max-width: 767.98px) {
  /* تحسينات بطاقات المنتجات */
  .product-card-wrapper {
    margin-bottom: 15px;
  }
  
  .product-card {
    border-radius: 10px;
  }
  
  .product-card .card-img-top {
    height: 150px;
  }
  
  .product-card .card-body {
    padding: 12px;
  }
  
  .product-card .card-title {
    font-size: 14px;
    margin-bottom: 6px;
  }
  
  .product-card .card-text.text-muted {
    font-size: 12px;
    margin-bottom: 8px;
  }
  
  .product-card .product-price {
    font-size: 16px;
  }
  
  .card-corner-action-icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  
  /* تحسينات السلايدر */
  .floward-seasons-slider {
    padding-bottom: 30px;
  }
  
  .floward-card {
    padding: 12px;
  }
  
  .floward-card-image {
    height: 120px;
  }
  
  .floward-card-title {
    font-size: 14px;
  }
  
  .floward-card-price {
    font-size: 14px;
  }
  
  /* تحسينات العداد */
  #cart-item-count {
    font-size: 12px;
    width: 18px;
    height: 18px;
    line-height: 18px;
  }
}

/* تحسينات للهواتف الصغيرة جدًا */
@media (max-width: 575.98px) {
  .product-card .card-img-top {
    height: 120px;
  }
  
  .floward-card-image {
    height: 100px;
  }
  
  .product-card .card-body {
    padding: 10px;
  }
  
  .product-card .card-title {
    font-size: 13px;
  }
  
  .product-card .card-text.text-muted {
    font-size: 11px;
  }
  
  .product-card .product-price {
    font-size: 15px;
  }
}
@media (max-width: 767.98px) {
    #productDetailModal .modal-dialog {
        margin: 0.5rem;
    }
    
    #productDetailModal .modal-content {
        border-radius: 12px;
    }
    
    #productDetailModal .modal-body {
        padding: 1rem;
    }
    
    #productDetailModal .product-modal-image {
        height: 250px;
        margin-bottom: 1rem;
    }
    
    #productDetailModal .product-modal-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    #productDetailModal .product-modal-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    #productDetailModal .product-modal-price {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    #productDetailModal .btn {
        padding: 0.7rem;
        font-size: 1rem;
    }
    
    #productDetailModal .product-modal-additional-info {
        padding-top: 1rem;
        margin-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    #productDetailModal .product-modal-image {
        height: 200px;
    }
    
    #productDetailModal .product-modal-title {
        font-size: 1.2rem;
    }
    
    #productDetailModal .product-modal-price {
        font-size: 1.1rem;
    }
}

/* تصميم جديد لبطاقات المنتجات */
.product-card-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.product-card {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* صورة المنتج */
.product-card .card-img-top {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.03);
}

/* جسم البطاقة */
.product-card .card-body {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* عنوان المنتج */
.product-card .card-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* سعر المنتج */
.product-card .product-price {
    font-size: 16px;
    color: #e02b2b;
    font-weight: 700;
    margin-top: auto;
    text-align: left;
    padding-right: 30px; /* مساحة لزر الإضافة */
}

/* زر الإضافة للسلة */
.card-corner-action-icon {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e02b2b;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 2;
    border: 1px solid #f0f0f0;
}

.card-corner-action-icon:hover {
    background-color: #e02b2b;
    color: white;
}

/* تأثيرات التحميل */
.shimmer-product-card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f9f9f9;
    z-index: 10;
    border-radius: 8px;
    overflow: hidden;
}

.product-card-wrapper.loaded .shimmer-product-card-placeholder {
    display: none;
}

/* تأثير الشيمر */
.shimmer-image-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(to right, #f9f9f9 0%, #e8e8e8 50%, #f9f9f9 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.shimmer-text-placeholder {
    height: 14px;
    background: linear-gradient(to right, #f9f9f9 0%, #e8e8e8 50%, #f9f9f9 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.shimmer-text-placeholder.short {
    width: 70%;
    height: 16px;
}

.shimmer-text-placeholder.medium {
    width: 90%;
}

.shimmer-text-placeholder.price {
    width: 40%;
    height: 18px;
    margin-top: auto;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* تحسينات للهواتف */
@media (max-width: 767.98px) {
    .product-card .card-img-top {
        height: 150px;
    }
    
    .product-card .card-title {
        font-size: 13px;
        height: 32px;
    }
    
    .product-card .product-price {
        font-size: 15px;
    }
    
    .card-corner-action-icon {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
}
/* تصميم أساسي للبطاقة */
.product-card-wrapper {
    position: relative;
    transition: all 0.3s ease;
    perspective: 1000px;
}

.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* تصميم صورة المنتج */
.product-image-container {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* نسبة 1:1 للصورة */
}

.product-image-container img {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    opacity: 0;
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

/* زر الإغلاق */
.product-close-btn {
    position: absolute;
    top: 10px;
    left: 10px; /* وضع الزر في الجانب الأيسر لـ RTL */
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
    border: none;
    color: #333;
}

.product-card:hover .product-close-btn {
    opacity: 1;
}

.product-close-btn:hover {
    background: #fff;
    color: #e74c3c;
}

/* جسم البطاقة */
.card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
    line-height: 1.4;
    flex-grow: 1;
}

/* زر المفضلة */
.btn-favorite {
    background: none;
    border: none;
    color: #ddd;
    font-size: 18px;
    padding: 0;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.btn-favorite:hover, .btn-favorite.active {
    color: #e74c3c;
}

/* التقييم */
.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.stars {
    color: #f39c12;
    font-size: 14px;
    margin-left: 5px;
}

.rating-count {
    color: #95a5a6;
    font-size: 12px;
}

/* السعر */
.product-price {
    display: flex;
    flex-direction: column;
}

.current-price {
    font-weight: 700;
    color: #e74c3c;
    font-size: 16px;
}

.old-price {
    text-decoration: line-through;
    color: #95a5a6;
    font-size: 13px;
}

/* زر الإضافة للسلة */
.btn-add-to-cart {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e74c3c;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-add-to-cart:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* علامة التخفيض */
.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px; /* وضعها في الجانب الأيمن لـ RTL */
    background: #e74c3c;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

/* تأثيرات الحركة */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card-wrapper {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

/* تصميم متجاوب */
@media (max-width: 767.98px) {
    .card-title {
        font-size: 14px;
    }
    
    .current-price {
        font-size: 15px;
    }
    
    .btn-add-to-cart {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

@media (max-width: 575.98px) {
    .card-title {
        font-size: 13px;
    }
    
    .product-rating {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rating-count {
        margin-top: 2px;
        margin-right: 0;
    }
}


/* ===== hero-search styling ===== */
.hero-search-wrapper {
  position: absolute;
  bottom: 40px;
  width: 100%;
  display: flex;
  justify-content: center;
  pointer-events: none; /* حتى لا يعيق الشرائح */
}

.hero-search {
  display: flex;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  overflow: hidden;
  max-width: 600px;
  width: 90%;
  pointer-events: auto; /* لتفعيل الأزرار */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  color: #fff;
  outline: none;
}

.hero-search input::placeholder {
  color: #eee;
}

.hero-search button {
  background: var(--floward-primary);
  border: none;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
}

.hero-search button:hover {
  background: var(--elegant-gold);
}

.hero-search i {
  font-size: 1.25rem;
  color: #fff;
}

/* تجاوب */
@media (max-width: 768px) {
  .hero-search-wrapper { bottom: 20px; }
  .hero-search input { padding: 0.5rem 1rem; font-size: 0.9rem; }
  .hero-search button { padding: 0 1rem; }
}


/* ===== Hero & Search & Modal Styles (components.css) ===== */

/* Hero Section */
.hero-section {
  position: relative; width: 100%; height: 100vh; overflow: hidden;
}
.hero-slideshow { position: absolute; inset: 0; }
.hero-slideshow .slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease;
}
.hero-slideshow .slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: var(--hero-overlay);
}

/* Titles & Buttons */
.hero-title {
  font-family: var(--font-heading); font-size: 3rem; line-height: 1.2; color: #fff;
}
.title-word { display: inline-block; }
.hero-subtitle { font-size: 1.25rem; color: #fff; }
.hero-buttons .hero-btn {
  border-radius: 50px; transition: transform 0.3s;
}
.hero-buttons .hero-btn:hover { transform: translateY(-3px); }

/* Indicators */
.slide-indicators {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 0.5rem;
}
.indicator {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,0.5); cursor: pointer;
  transition: background 0.3s;
}
.indicator.active { background: var(--floward-primary); }

/* Glassmorphic Search Bar */
.hero-search-wrapper {
  position: absolute; bottom: 40px; width: 100%;
  display: flex; justify-content: center; pointer-events: none;
  transition: transform 0.5s ease;
  z-index: 5;
}
.hero-search-wrapper.move-up {
  transform: translateY(-50vh);
}
.hero-search {
  display: flex; width: 90%; max-width: 600px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  border-radius: 50px; overflow: hidden; pointer-events: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.hero-search input {
  flex: 1; border: none; background: transparent;
  padding: 0.75rem 1.5rem; font-size: 1rem; color: #fff;
  outline: none;
}
.hero-search input::placeholder { color: #eee; }
.hero-search button {
  background: var(--floward-primary); border: none;
  padding: 0 1.5rem; display: flex; align-items: center;
  justify-content: center; cursor: pointer;
  transition: background 0.3s;
}
.hero-search button:hover { background: var(--elegant-gold); }
.hero-search i { font-size: 1.25rem; color: #fff; }

/* Search Modal */
.search-modal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 1000;
}
.search-modal.show { display: block; }
.search-modal-content {
  background: #fff; width: 90%; max-width: 600px;
  margin: 5% auto; border-radius: 8px;
  transform: translateY(-100%); transition: transform 0.5s ease;
}
.search-modal.show .search-modal-content {
  transform: translateY(0);
}
.modal-header {
  display: flex; align-items: center; padding: 1rem;
}
.modal-header input {
  flex: 1; padding: 0.5rem; font-size: 1rem;
  border: 1px solid #ccc; border-radius: 4px; outline: none;
}
.modal-header button {
  margin-left: 0.5rem; font-size: 1.5rem;
  line-height: 1; border: none; background: transparent;
  cursor: pointer;
}
.search-results {
  list-style: none; margin: 0; padding: 0 1rem 1rem;
  max-height: 60vh; overflow-y: auto;
}
.search-results li {
  display: flex; align-items: center;
  padding: 0.75rem 0; border-bottom: 1px solid #eee;
}
.search-results li img {
  width: 40px; height: 40px; object-fit: cover;
  margin-left: 0.75rem; border-radius: 4px;
}
.search-results li .product-name { flex: 1; color: #333; }
.search-results li .product-price {
  margin-left: 0.5rem; color: var(--floward-primary);
  font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero-title { font-size: 2.5rem; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-search-wrapper { bottom: 20px; }
  .hero-search input { padding: 0.5rem 1rem; font-size: 0.9rem; }
  .hero-search button { padding: 0 1rem; }
  .search-modal-content { margin: 10% auto; }
  .modal-header input { font-size: 0.9rem; }
}
/* ===== Search Modal & Results – جديد ===== */

/* الخلفية المظلمة */
.search-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
}
.search-modal.show {
  display: block;
}

/* صندوق المحتوى */
.search-modal-content {
  position: relative;
  background: #ffffff;
  width: 90%;
  max-width: 700px;
  margin: 5% auto;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transform: translateY(-50px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.search-modal.show .search-modal-content {
  transform: translateY(0);
  opacity: 1;
}

/* رأس المودال */
.modal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.modal-header input {
  flex: 1;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s;
}
.modal-header input:focus {
  border-color: var(--floward-primary);
  box-shadow: 0 0 0 2px rgba(23, 138, 123, 0.2);
}
.modal-header button {
  font-size: 1.5rem;
  line-height: 1;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #888;
  transition: color 0.2s;
}
.modal-header button:hover {
  color: #000;
}

/* قائمة النتائج */
.search-results {
  max-height: 60vh;
  overflow-y: auto;
  padding: 0;
  margin: 0;
  list-style: none;
}
/* تحسين السّكرول بار */
.search-results::-webkit-scrollbar {
  width: 6px;
}
.search-results::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}

/* كل عنصر نتائج */
.search-results li {
  display: grid;
  grid-template-columns: 50px 1fr 40px;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s, transform 0.2s;
}
.search-results li:hover {
  background: #fafafa;
  transform: translateX(4px);
}

/* صورة المنتج */
.search-results li img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  background: #eee;
}

/* معلومات المنتج */
.search-results .search-result-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.search-results .product-name {
  font-weight: 500;
  color: #333;
  font-size: 0.95rem;
}
.search-results .product-price {
  color: var(--floward-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* زر الإضافة */
.search-results .add-to-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--floward-primary);
  background: transparent;
  border-radius: 50%;
  font-size: 1rem;
  color: var(--floward-primary);
  transition: background 0.2s, color 0.2s;
}
.search-results .add-to-cart-btn:hover {
  background: var(--floward-primary);
  color: #fff;
}

/* تجاوب */
@media (max-width: 576px) {
  .search-modal-content { padding: 0.75rem 1rem; }
  .modal-header input { font-size: 0.9rem; }
  .search-results li { grid-template-columns: 40px 1fr 36px; gap: 0.5rem; }
  .search-results li img { width: 40px; height: 40px; }
}


/* شعار المتجر في بطاقة المنتج */
.store-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem; /* في RTL قد تضع right بدلاً من left */
  z-index: 5;
}
.store-logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #ddd;
}


