.home-section {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    color: var(--text-color);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: background 0.3s ease-in-out;
}



@media (max-width: 768px) {
    .home-section {
        height: 600px;
    }
}

.home-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.home-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.home-subtitle {
    font-size: 2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    color: #ffffff;
}

.home-button {
    background: var(--primary-color);
    color: white;
    padding: 5px 30px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    transition: all 0.3s ease;
    margin: 10px;
    background: var(--primary) !important;
    text-decoration: none;
}

.home-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(219, 68, 55, 0.3);
    color: #000000 !important;
    background: #000000;
}

.cart-button {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .home-title {
        font-size: 2rem;
    }
}
.categories-carousel .categorie {
    height: 200px;
    position: relative; /* لجعل الاسم داخل الحاوية */
    display: flex;
    justify-content: center; /* التوسيط أفقيًا */
    align-items: center; /* التوسيط عموديًا */
    text-align: center; /* محاذاة النص في المنتصف */
}

.gradient-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    pointer-events: none; /* للسماح بالنقر عبر الغباش */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.home-category-name {
    position: relative; /* لإبقاء الاسم فوق التراكب */
    top: 300%;
    z-index: 2;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    max-width: 200px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 6px 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white; /* لون النص */
    border-radius: 2rem;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    overflow: hidden; /* إخفاء النص الزائد */
    text-overflow: ellipsis; /* إضافة ثلاث نقاط */
    white-space: nowrap; /* منع التفاف النص */
    max-width: 16ch; /* تحديد العرض بناءً على عدد الأحرف */
    display: inline-block; /* لضمان تأثير max-width */
}

.home-category-name:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.why-us {
    height: 200px;
    margin: 10px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-us:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary), transparent 100%);
}


.why-us .card-item {
    /* background: color-mix(in srgb, var(--primary), transparent 97%); */
    padding: 30px 30px;
    transition: all ease-in-out 0.3s;
    height: 100%;
    position: relative;
}

.why-us .card-item h4 {
    color: var(--primary);
    text-decoration: none;
    transition: 0.3s;
}

.why-us .card-item span {
    color: color-mix(in srgb, var(--primary), transparent 50%);
    display: block;
    font-size: 28px;
    font-weight: 700;
}



.whatsapp-button {
    position: fixed;
    bottom: 50px; /* المسافة من أسفل الشاشة */
    right: 50px; /* المسافة من يمين الشاشة */
    z-index: 9999; /* للتأكد من ظهوره فوق العناصر الأخرى */
}

.whatsapp-button a {
    background: #25D366; /* خلفية خضراء */
}

.whatsapp-button a:hover {
    background: var(--primary);
}

/* دعم الاتجاه RTL */
html[dir="ltr"] .whatsapp-button {
    right: auto;
    left: 20px;
}

/* دعم الاتجاه LTR */
html[dir="rtl"] .whatsapp-button {
    left: auto;
    right: 20px;
}
