@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #081b29;
    --second-bg-color: #001031;
    --text-color: #ffffff;
    --main-color: #00abf0;
    --ibb-f: #cd9452;
    --ibb-f2: #af1342;
    --light-black: #666;
    --light-white: #f5f5f5;
    --dark-bg: rgba(0, 0, 0, .7);
    --border: .1rem solid #aaa;
    --black: #1B1722;
    --white : #F0F0F0;
    --box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

*{
    font-family: 'Cairo', sans-serif;
    margin: 0; padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    text-transform: capitalize;
    transition: .2s linear;
}
html{
    font-size: 62.5%;   
    overflow-x: hidden;
    scroll-padding-top: 7rem;
    scroll-behavior: smooth;
}
html::-webkit-scrollbar{
    width: .8rem;
}
html::-webkit-scrollbar-track{
    background: transparent;
}
html::-webkit-scrollbar-thumb{
    background-color: var(--white);
    border-radius: 5rem;
}

/* --- التنسيقات الأساسية التي قمت بتعديلها وضبطها --- */
.header {
    top: 0; right: 0; left: 0;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    padding: 1.4rem 7%;
    z-index: 999;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.05); /* اختياري: لإعطاء مظهر جمالي للهيدر المثبت */
}

.header .logoContent {
    display: flex;
    align-items: center;
}

/* تصحيح المسار ليتوافق مع الـ HTML لديك */
.header .logoContent .logoName img {
    height: 3.5rem; /* ضبط الارتفاع ليتناسب مع الهواتف أيضاً */
    margin-right: 0.5rem;
    vertical-align: middle;
}

.header .logoContent .logoName {
    color: var(--black);
    font-size: 2rem;
    font-weight: bolder;
    text-decoration: none;
}

.header .navbar a {
    font-size: 1.8rem; /* تصغير الكلمات قليلاً لتناسب الشاشات المتوسطة */
    margin-right: 2.5rem;
    color: var(--black);
    font-weight: bold;
    text-decoration: none;
}

.header .navbar a:hover {
    border-bottom: .1rem solid var(--black);
    padding-bottom: .4rem;
}

/* حل مشكلة تراكب الأيقونات */
.header .icon {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* توزيع المسافات بين الأيقونات بشكل متساوي ومنع التراكب */
}

.header .icon i, 
.header .icon .cart-icon {
    font-size: 2rem;
    color: var(--black);
    cursor: pointer;
}

/* ضبط تنسيق أيقونة السلة مع العداد */
.header .icon .cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.header .icon .cart-icon .cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: red; /* أو أي لون تفضله لمتجرك */
    color: white;
    font-size: 1.2rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50%;
    font-weight: bold;
}

#menu-bar {
    display: none;
}

.header .search {
    display: none;
    position: absolute;
    top: 100%; right: 7%; left: 7%; /* جعل شريط البحث متناسق العرض */
    height: 5rem;
    background-color: transparent;
}

.header .search input {
    width: 100%;
    height: 100%;
    font-size: 1.5rem;
    background-color: var(--white);
    color: var(--black);
    border-radius: 1rem;
    padding: 0.5rem 1.5rem;
    box-shadow: var(--box-shadow);
    border: 1px solid #ddd;
}

.header .search.active {
    display: block;
}

/* --- شاشة الهواتف والأجهزة اللوحية (Media Queries) --- */
@media (max-width: 768px) {
    .header {
        padding: 1.5rem 4%; /* تقليل الحشو الجانبي لكسب مساحة */
    }

    #menu-bar {
        display: inline-block; /* إظهار زر القائمة على الهواتف */
    }

    /* تحويل القائمة العادية إلى قائمة منسدلة عمودية */
    .header .navbar {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--white);
        border-top: .1rem solid rgba(0,0,0,.1);
        display: none; /* مخفية افتراضياً وتظهر بجافاسكريبت */
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.1);
    }

    /* فئة الـ active لإظهار القائمة عند الضغط على زر الهامبرغر */
    .header .navbar.active {
        display: flex;
    }

    .header .navbar a {
        display: block;
        margin: 1.5rem 2rem;
        font-size: 2rem;
    }

    .header .search {
        width: auto;
        right: 4%; left: 4%;
    }
}
#menu-bar{
    display: none;
}


.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('images/back.png') no-repeat;
    background-size: cover;
    background-position: center center;
    position: relative;
    animation: backgroundShift 10s ease-in-out infinite, glowBackground 8s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% {
        background-position: center center;
        filter: brightness(1) saturate(1);
    }
    25% {
        background-position: 55% 45%;
        filter: brightness(1.05) saturate(1.1);
    }
    50% {
        background-position: center center;
        filter: brightness(1.1) saturate(1.15);
    }
    75% {
        background-position: 45% 55%;
        filter: brightness(1.05) saturate(1.1);
    }
}

@keyframes glowBackground {
    0%, 100% {
        box-shadow: inset 0 0 100px rgba(255, 107, 107, 0.1);
    }
    50% {
        box-shadow: inset 0 0 200px rgba(255, 107, 107, 0.25), inset 0 0 300px rgba(78, 205, 196, 0.15);
    }
}

.home:hover {
    animation-duration: 12s, 5s;
}

.home::before {
    content: '';
    position: absolute;
    top: 0;
    right: 35%;
    width: 30%;
    height: 100%;
    background: url('images/cake1.png') no-repeat center center;
    background-size: contain;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(2deg) scale(1.02);
    }
    50% {
        transform: translateY(-30px) translateX(0) rotate(0deg) scale(1.05);
    }
    75% {
        transform: translateY(-20px) translateX(-10px) rotate(-2deg) scale(1.02);
    }
}

.home:hover::before {
    animation-duration: 3s;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.3));
}
.home .homeContent{
    width: 50%;
    float: left;
    text-align: center;
    padding: 4rem;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.home .homeContent h2{
    font-size: 2rem;
    font-weight: bolder;
    margin-bottom: 2rem;
    line-height: 7rem;
    color: var(--black);
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), -1px -1px 2px rgba(0, 0, 0, 0.3);
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.home .homeContent p{
    font-size: 1.8rem;
    line-height: 2;
    margin-bottom: 2rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    color: var(--black);
    text-shadow: 1px 1px 2px rgba(83, 11, 11, 0.6);
    font-weight: 700;
}
.home .homeContent .home-btn{
    height: 3rem;
}
.home .homeContent .home-btn button{
    font-size: 1.8rem;
    background-color: var(--black);
    color: var(--white);
    border-radius: .7rem;
    padding: .7rem 2.4rem;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-weight: 600;
}
.home .homeContent .home-btn button:hover{
    font-size: 2rem;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: #333;
}
section{
    padding: 2rem 7%;
}
.heading{
    text-align: center;
    font-size: 2.6rem;
    margin-bottom: 3rem;
    color: var(--black);
    direction: rtl;
}

.product {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 8rem 7% 4rem;
}

.product .product-row{
    margin-bottom: 5rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.product .product-row .swiper-wrapper {
    align-items: center;
    display: flex;
}

.product .product-row .swiper-slide {
    width: auto !important;
    height: auto !important;
    display: flex !important;
    justify-content: center;
}

/* إخفاء المنتجات المحمولة على الشاشات الكبيرة */
.product .mobile-products {
    display: none;
}
.product .product-row .box{
    display: flex;
    flex-direction: column;
    width: 45rem;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    gap: 2rem;
    border-radius: 25px;
    margin: 2rem 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 3px solid transparent;
    background-clip: padding-box;
}

.product .product-row .box::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product .product-row .box:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.product .product-row .box:hover::before {
    opacity: 1;
}
.product .product-row .img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    border: 4px solid #fff;
    position: relative;
}

.product .product-row .img::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product .product-row .img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.product .product-row .img:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.product .product-row .img:hover::before {
    opacity: 1;
}

.product .product-row .img img:hover{
    transform: scale(1.1);
}
.product .product-row .content {
    margin-bottom: 4rem;
}
.product .product-row .product-content h3{
    font-size: 3.5rem;
    color: var(--black);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.product .product-row .product-content p{
    font-size: 1.4rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
    font-weight: 400;
}
.product .product-row .product-content .orderNow{
    height: 3rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}
.product .product-row .product-content .orderNow button{
    font-size: 1.6rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border-radius: 50px;
    padding: 1rem 3rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    transition: all 0.4s ease;
    border: none;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 1px;
}

.product .product-row .product-content .orderNow button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.product .product-row .product-content .orderNow button:hover{
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
    background: linear-gradient(45deg, #ff5252, #26c6da);
}

.product .product-row .product-content .orderNow button:hover::before {
    left: 100%;
}

.blogs{
    background: url('../images/backGround.png') no-repeat;
    background-size: cover;
    background-position: center center;
}
.blogs  .blogs-row .box {
    display: flex;
    align-items: center;
    background-color: var(--white);
    flex-wrap: wrap;
}
.blogs .blogs-row .box .img{
    flex: 1 1 45rem;
}
.blogs .blogs-row .box .img img{
    width: 100%;
    padding: 5rem;
}
.blogs .blogs-row .box .content{
    flex: 1 1 45rem;
    padding: 2rem;
}
.blogs .blogs-row .box .content h3{
    font-size: 3.5rem;
    color: var(--black);
    text-shadow: var(--box-shadow);

}
.blogs .blogs-row .box .content p{
    font-size: 1.6rem;
    color: var(--black);
    padding: 1rem 0;
    line-height: 1.8;
    
}
.blogs .blogs-row .box .content a{
    font-size: 2rem;
    cursor: pointer;
}
.blogs .blogs-row .box .content a:hover{
    color: var(--black);
    text-shadow: var(--box-shadow);
}
 
.newsletter{
    background: url('../images/new.jpg') no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}
.newsletter form{
    max-width: 45rem;
    text-align: center;
    padding: 5rem 0;
}
.newsletter form h3{
    font-size: 3rem;
    color: var(--white);
    padding-bottom: .7rem;
}
.newsletter form .box{
    width: 100%;
    margin: .7rem 0;
    padding: 1rem 1.2rem;
    color: var(--black);
    border-radius: .5rem;
}
.newsletter form .box2{
    width: 30%;
    font-size: 1.5rem;
    margin-top: 1rem;
    padding: .5rem .5rem;
    color: var(--black);
    background: var(--white);
    border-radius: 3rem;
    cursor:pointer;
}
.newsletter form .box2:hover{
    color: var(--white);
    background-color: var(--black);
    outline: .1rem solid var(--white);
}

.review .review-row{
    display: flex;
    flex-direction: column ;
    align-items: center;
    
}
.review .review-row .box{
    width: 50%; 
    margin-bottom: 3rem;
    padding: 3rem;
    border-radius: 3rem;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
}

.review .review-row .box .client-review{
    margin-bottom: 3rem;
}
.review .review-row .box .client-review p{
    text-align: center;
    font-size: 2.5rem;
    line-height: 1.5;
}
.review .review-row .box .client-info{
    display: flex;
    align-items: center;
}
.review .review-row .box .client-info .img{
    padding-right: 3rem;
}
.review .review-row .box .client-info .img img{
    width: 7rem;
    height: 7rem;
    clip-path: circle(50% at 50% 50%);
}

.review .review-row .box .client-info .clientDetailed h3{
    font-size: 2.5rem;

}
.review .review-row .box .client-info .clientDetailed p{
    font-size: 1.5rem;
}

.footer {
    background: url('../images/backGround.png') no-repeat;
    background-size: cover;
    background-position: center center;
}
.footer .box-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 1.5rem;
    padding: 2rem 1rem;
}
.footer .box-container .mainBox .content{
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}
.footer .box-container .mainBox .content h1{
    font-size: 2rem;
    color: var(--black);
}
.footer .box-container .mainBox p{
    font-size: 1.7rem;
    line-height: 1.3;
    margin-bottom: 2rem;
}
.footer .box-container .box h3{
    font-size: 2.2rem;
    color: var(--black);
    padding: 1rem 0;
}
.footer .box-container .box a{
    display: block;
    font-size: 1.6rem;
    color: var(--black);
    padding: 1rem 0;
}
.footer .box-container .box a i{
    padding-right: .5rem;
    color: var(--black);
}
.footer .box-container .box a:hover i{
    padding-right: 2rem;
}

.footer .share{
    padding: 1rem 0;
    text-align: center;
}
.footer .share a{
    height: 4rem;
    width: 4rem;
    line-height: 4rem;
    font-size: 2rem;
    color: var(--white);
    background: var(--black);
    margin: 0 .3rem;
    border-radius: 50%;

}
.footer .share a:hover{
    background: var(--white);
    color: var(--black);
}
.footer .credit{
    font-size: 2rem;
    margin-top: 2rem;
    padding-bottom: 2rem;
    color: var(--black);
    text-align: center;
    
}

/* thanks for watching my video  */

.swiper-pagination-bullet{
    background-color: var(--black);
}
.swiper-button-next{
    color: var(--black);
}
.swiper-button-prev{
    color: var(--black);
}


/* RTL Support and New Elements Styles */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] .header {
    flex-direction: row-reverse;
}

html[dir="rtl"] .header .navbar {
    margin-left: 3rem;
    margin-right: 0;
}

html[dir="rtl"] .header .icon {
    flex-direction: row-reverse;
}

html[dir="rtl"] .header .icon i {
    margin-left: 2rem;
    margin-right: 0;
}

/* Cart Icon Styles */
.cart-icon {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--ibb-f2);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Hero Animation */
.hero-title {
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: both;

}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Section Styles */
.contact {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 8rem 7% 4rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--black);
    background: #f0f0f0;
    padding: 1rem;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h3 {
    font-size: 1.8rem;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.contact-item p {
    font-size: 1.4rem;
    color: #666;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1.4rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--black);
}

.submit-btn {
    width: 100%;
    padding: 1.5rem;
    background: var(--black);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Cart Page Styles */
.cart-section {
    min-height: 80vh;
    background: #f8f9fa;
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 2rem;
    align-items: center;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.item-details h3 {
    font-size: 1.8rem;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.item-price {
    font-size: 1.4rem;
    color: #666;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: var(--black);
    color: white;
}

.quantity {
    font-size: 1.6rem;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.item-total {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--black);
}

.remove-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #ff3742;
    transform: scale(1.1);
}

.cart-summary {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.cart-summary h3 {
    font-size: 2.4rem;
    color: var(--black);
    margin-bottom: 2rem;
    text-align: center;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-item.total {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--black);
    border-bottom: none;
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 2px solid var(--black);
}

.checkout-btn {
    width: 100%;
    padding: 1.5rem;
    background: var(--black);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.6rem;
    cursor: pointer;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-cart i {
    font-size: 8rem;
    color: #ddd;
    margin-bottom: 2rem;
}

.empty-cart h3 {
    font-size: 2.4rem;
    color: var(--black);
    margin-bottom: 1rem;
}

.empty-cart p {
    font-size: 1.6rem;
    color: #666;
    margin-bottom: 2rem;
}

.empty-cart .btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--black);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.empty-cart .btn:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Notification Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive Design for RTL */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cart-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .cart-summary {
        position: static;
    }
    
    html[dir="rtl"] .header .navbar {
        margin-left: 0;
    }
    
    html[dir="rtl"] .header .icon {
        flex-direction: row;
    }
    
    html[dir="rtl"] .header .icon i {
        margin-left: 0;
        margin-right: 2rem;
    }
}

/* media queries for web responsive */

/* Large screens optimization */
@media (min-width: 1200px) {
    .home .homeContent {
        width: 45%;
        max-width: 600px;
        padding: 4rem 2rem;
        float: left;
        margin: 3rem;
        backdrop-filter: blur(15px);
    }
    
    .home .homeContent h2 {
        font-size: 2rem;
        line-height: 6.5rem;
        margin-bottom: 2rem;
    }
    
    .home .homeContent p {
        font-size: 1.6rem;
        max-width: 90%;
        margin: 0 auto 2rem;
    }
    
    /* تحسين المنتجات للشاشات الكبيرة */
    .product .product-row {
        gap: 3rem;
    }
    
    .product .product-row .box {
        width: 40rem;
        margin: 1.5rem;
    }
}

@media (min-width: 1400px) {
    .home .homeContent {
        width: 40%;
        max-width: 550px;
        float: left;
        margin: 4rem;
        backdrop-filter: blur(20px);
    }
    
    .home .homeContent h2 {
        font-size: 3rem;
        line-height: 6rem;
    }
}

@media (max-width:991px){
    html{
        font-size: 55%;
    }
    .header{
        padding: 1.3rem 3rem;
    }
    .home .homeContent{
        margin-left: 0;
        margin-right: 0;
        width: 80%;
        float: none;
        margin: 0 auto;
    }
    
    /* تحسين المنتجات للشاشات المتوسطة */
    .product {
        padding: 6rem 5% 4rem;
    }
    
    .product .product-row {
        margin-bottom: 4rem;
    }
    
    .product .product-row .swiper-wrapper {
        gap: 4rem;
    }
    
    .product .product-row .box {
        width: 42rem;
        margin: 1rem;
        padding: 2.5rem;
    }
    
    .product .product-row .img {
        width: 190px;
        height: 190px;
    }
    
    .product .product-row .product-content h3 {
        font-size: 3rem;
    }
    
    .product .product-row .product-content p {
        font-size: 1.3rem;
    }
    
    /* إظهار الصورة المتحركة على الشاشات المتوسطة */
    .home::before {
        display: block;
        right: 20%;
        width: 35%;
        opacity: 0.8;
    }
}

@media (max-width:768px) {
    #menu-bar{
        display: inline-block;
    }
    .header .navbar{
        position: absolute;
        top: 100%;
        right: -100%;
        width: 25rem;
        background-color: var(--white);
        height: 80vh;
    }
    .header .navbar.active{
        right: 0;
    }
    .header .navbar a{
        display: block;
        font-size: 2rem;
        color: black;
        margin: 1.5rem;
    }

    .home .homeContent{
        margin-left: 0;
        width: 90%;
    }
    
    /* إظهار الصورة المتحركة على الهواتف بموقع مختلف */
    .home::before {
        display: block;
        position: absolute;
        top: 50%;
        right: 50%;
        transform: translate(50%, -50%);
        width: 40%;
        height: auto;
        max-height: 60%;
        opacity: 0.6;
        z-index: 0;
        pointer-events: none;
    }
    
    .home {
        position: relative;
        overflow: hidden;
    }
    
    /* حل جذري للهواتف - إزالة Swiper وإنشاء تخطيط عمودي */
    .product {
        padding: 4rem 3% 2rem;
    }
    
    /* إخفاء Swiper على الهواتف */
    .product .product-row {
        display: none !important;
    }
    
    /* إنشاء تخطيط عمودي جديد للهواتف */
    .product::after {
        content: '';
        display: block;
        clear: both;
    }
    
    .product .mobile-products {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        align-items: center;
        margin-bottom: 3rem;
    }
    
    .product .mobile-product-card {
        width: 95%;
        max-width: 32rem;
        background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
        border-radius: 20px;
        padding: 2.5rem 2rem;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        border: 3px solid transparent;
        transition: all 0.4s ease;
        position: relative;
        overflow: hidden;
    }
    
    .product .mobile-product-card::before {
        content: '';
        position: absolute;
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
        background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
        border-radius: 20px;
        z-index: -1;
        opacity: 0;
        transition: opacity 0.4s ease;
    }
    
    .product .mobile-product-card:hover::before {
        opacity: 1;
    }
    
    .product .mobile-product-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    }
    
    .product .mobile-product-image {
        width: 180px;
        height: 180px;
        border-radius: 50%;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        margin: 0 auto 2rem;
        border: 4px solid #fff;
        position: relative;
    }
    
    .product .mobile-product-image::before {
        content: '';
        position: absolute;
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
        background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
        border-radius: 50%;
        z-index: -1;
        opacity: 0;
        transition: opacity 0.4s ease;
    }
    
    .product .mobile-product-image:hover::before {
        opacity: 1;
    }
    
    .product .mobile-product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .product .mobile-product-title {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        text-align: center;
        background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .product .mobile-product-description {
        font-size: 1.2rem;
        line-height: 1.6;
        color: #666;
        margin-bottom: 2rem;
        text-align: center;
        font-weight: 400;
    }
    
    .product .mobile-product-button {
        font-size: 1.3rem;
        background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
        color: white;
        border-radius: 50px;
        padding: 1rem 2rem;
        border: none;
        cursor: pointer;
        box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
        transition: all 0.4s ease;
        font-weight: 600;
        letter-spacing: 1px;
        width: 100%;
        max-width: 25rem;
        margin: 0 auto;
        display: block;
        position: relative;
        overflow: hidden;
    }
    
    .product .mobile-product-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.6s ease;
    }
    
    .product .mobile-product-button:hover::before {
        left: 100%;
    }
    
    .product .mobile-product-button:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
        background: linear-gradient(45deg, #ff5252, #26c6da);
    }
}

@media (max-width:600px){
    html{
        font-size: 50%;
    }
    
    /* تحسينات إضافية للشاشات الصغيرة جداً */
    .product {
        padding: 3rem 2% 2rem;
    }
    
    .product .product-row .box {
        width: 98%;
        max-width: 28rem;
        padding: 2rem 1.5rem;
    }
    
    .product .product-row .img {
        width: 150px;
        height: 150px;
    }
    
    .product .product-row .product-content h3 {
        font-size: 2.2rem;
    }
    
    .product .product-row .product-content p {
        font-size: 1.1rem;
    }
    
    .product .product-row .product-content .orderNow button {
        font-size: 1.2rem;
        padding: 0.7rem 1.5rem;
    }
}