html {
    font-size: 75%;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    overflow-x: hidden;
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    outline: none;
    border: none;
    text-decoration: none;
    text-transform: capitalize;
    transition: .2s linear;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;

}


.main-content {
    flex: 1;
}



.header-glass {
    position: fixed;
    width: 100%;
    top: 0; left: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid #ddd;
    z-index: 9999;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
}

.header-glass .container {
    display: flex;
    justify-content: space-between; /* توزيع المساحة بين الأقسام */
    align-items: center;
    max-width: 1400px; /* زيادة العرض لتوفير مساحة أكبر */
    width: 100%;
    margin: 0 auto;
    padding: 15px 30px;
    position: relative; /* مهم للعناصر المطلقة */
}

.left-section {
    margin-right: auto; /* يدفع كل شيء بعيداً عنه لليمين */
}

.center-section {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 25px;
}

.right-section {
    margin-left: auto; /* يدفع كل شيء بعيداً عنه لليسار */
    display: flex;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 2rem;
    color: #9265A6;
    text-decoration: none;
}

.logo:hover {
    color: #b589d6; /* تدرج فاتح للون الأساسي */
}

.logo img {
    width: 60px;
    height: auto;
}

.nav-links {
    display: flex;
    gap: 20px;
    font-weight: 500;
}

/* Dropdown wrapper */
.nav-links .dropdown {
    position: relative;
    cursor: pointer;
}

/* Dropdown main link */
.nav-links .dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #444;
    text-decoration: none;
    font-size: 1.8rem;
    padding: 6px 12px;
    border-radius: 6px;
    position: relative;
    transition: background 0.3s, color 0.3s;
}

/* Normal links */
.nav-links > a:not(.dropdown > a) {
    color: #444;
    text-decoration: none;
    font-size: 1.8rem;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.3s, color 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #9265A6;
}

/* Dropdown arrow icon */
.nav-links .dropdown > a i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

/* Rotate arrow on hover */
.nav-links .dropdown:hover > a i {
    transform: rotate(180deg);
}

/* Dropdown menu */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10000;
}
/* ======================== */
/* Sub-dropdown (داخل Mouse) */
/* ======================== */
.sub-dropdown {
    position: relative;
}

.sub-dropdown-content {
    position: absolute;
    top: 0;
    left: 100%;
    background: white;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10001;
}

/* Show submenu on hover */
.sub-dropdown:hover .sub-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Submenu links */
.sub-dropdown-content a {
    display: block;
    padding: 10px 18px;
    color: #444;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    border-radius: 6px;
}

.sub-dropdown-content a:hover {
    background: #ddc6e4;
    color: #9265a6;
}

/* Show dropdown on hover */
.nav-links .dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown links */
.dropdown-content a {
    display: block;
    padding: 10px 18px;
    color: #444;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    border-radius: 6px;
}

.dropdown-content a:hover {
    background: #ddc6e4;
    color: #9265a6;
}
.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;

}

/* الزر */
.search-bar button {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 10px;
    border-radius: 50%;
    color: #9265a6;
    font-size: 1.55rem;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 2;
    position: relative;
}

/* الحاوية حول input */
.search-input-wrapper {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    width: 500px; /* ✅ العرض الكبير */
    max-width: 80vw; /* يستجيب لو الشاشة أصغر */

}

/* حقل البحث */
#search-input {
    width: 100%;
    padding: 10px 15px;
    border-radius: 25px;
    border: 1.5px solid #ddd;
    font-size: 1.55rem;
    background: #fff;
    color: #333;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* عند التفعيل */
.search-bar.active .search-input-wrapper {
    transform: translateY(-50%) scaleX(1);
    opacity: 1;
    visibility: visible;
}

.nav-links a {
    position: relative;
    padding-bottom: 6px;
    text-decoration: none;
    color: #444;
    font-size: 1.9rem;
    transition: color 0.3s ease;
}
.nav-links a:hover{
    color: #9265A6;
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #9265A6; /* لون الخط */
    transition: width 0.3s ease;
}

/* عند تمرير الماوس */
.nav-links a:hover::after {
    width: 100%;
}

/* عند الضغط أو التحديد */
.nav-links a.active::after {
    width: 100%;
}


.icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icons a,
.icons button {
    color: #555;
    font-size: 2.5rem;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s;
}

.icons a:hover,
.icons button:hover {
    color: #9265A6;
}

.cart {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #9265A6;
    width: 20px;
    height: 20px;
    font-size: 1.6rem;
    border-radius: 50%;
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 5px #9265A6;
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: #9265A6;
    cursor: pointer;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    background: rgba(255,255,255,0.9);
    backdrop-filter: saturate(180%) blur(20px);
    flex-direction: column;
    gap: 12px;
    padding: 15px 30px;
    border-top: 1px solid #ddd;
}

/* Mobile dropdown button */
.mobile-dropdown-btn {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 10px 0;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #444;
    border-radius: 8px;
    transition: background 0.3s;
}

.mobile-dropdown-btn:hover {
    background: #9265A655;
    color: #9265A6;
}

/* Mobile dropdown content */
.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 15px;
}

.mobile-dropdown-content a {
    color: #444;
    font-size: 1.3rem;
    text-decoration: none;
    padding: 6px 0;
    border-radius: 6px;
    transition: background 0.3s;
}

.mobile-dropdown-content a:hover {
    background: #9265A655;
    color: #9265A6;
}


.side-menu {
    left: -100%;
    transition: 0.3s;
    position: fixed;
    top: 70px;
    width: 100%;
    height: calc(100% - 70px);
    background: #f1f1f1;
    overflow-y: auto;
    z-index: 1000;
}
.side-menu.active {
    left: 0;
}
.side-menu-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    justify-content: center;
}
.side-menu-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
    width: 120px;
    height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    text-align: center;
    text-decoration: none;
}

.side-menu-item:hover {
    box-shadow: 0 0 12px rgba(0,0,0,0.2);
    transform: translateY(-3px);
}

.side-menu-item i {
    font-size: 30px;
    color: #333;
    margin-bottom: 8px;
}

.side-menu-item p {
    font-size: 14px;
    color: #333;
    margin: 0;
}

@media (max-width: 600px) {
    .side-menu-item {
        width: 45%;
    }
}

@media (max-width: 400px) {
    .side-menu-item {
        width: 100%;
    }
}
.back-container {
    padding: 15px 20px 5px 20px;
}

.back-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
}
.back-container span{
    font-size: 25px;
}
.side-menu .outlined-text{
    background: transparent;
    border: none;
    color: #9265A6;
    font-weight: 600;
    font-size: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    transition: color 0.3s ease;
}
.back-button {
    background: transparent;
    border: none;
    color: #9265A6;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.back-button i {
    font-size: 18px;
}

.back-button:hover {
    color: #6f497a;
    text-decoration: underline;
}

.menu-label {
    color: #555;
    font-weight: 600;
    font-size: 16px;
    user-select: none;
}


/* الرسالة ترحب بالزوار وتكون مخفية بشكل افتراضي */
.welcome-message {
    display: none; /* مخفية افتراضياً */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: bold;
    color: #9265A6;
    text-align: center;
    white-space: nowrap; /* لمنع التفاف النص */
    animation: wiggle 7s ease infinite;
    opacity: 0; /* يبدأ مخفي */
    z-index: 10000;
}

@keyframes wiggle {
    0%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) translateX(0);
    }
    20%, 60% {
        opacity: 1;
        transform: translate(-50%, -50%) translateX(-10px);
    }
    40%, 80% {
        opacity: 1;
        transform: translate(-50%, -50%) translateX(10px);
    }
}

@media (max-width: 1285px) {
    .center-section {
        display: none;
    }
    .welcome-message {
        display: block;
    }
}
@media (max-width: 935px) {
    .logo {
        display: none;
    }
}
@media (max-width: 770px) {
    .social-link {
        display: none;
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
    gap: 5px;
    color: #9265A6;

}
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}
@media (max-width: 1285px) {



    /* عرض زر الهامبرغر */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        margin-left: 10px;
        color: #9265A6;
    }
    .hamburger span {
        width: 25px;
        height: 3px;
        background-color: #9265A6; /* غير اللون إذا بدك */
        border-radius: 2px;
        transition: 0.3s;
    }
    /* ترتيب اللوغو والهمبرغر */
    .left-section {
        display: flex;
        align-items: center;
        gap: 10px; /* مسافة بين اللوغو والهمبرغر */
    }
}

footer {
    background-color: #9265A6;
    padding: 10px;
    text-align: center;
    color: white;
}






.dot.active {
    background-color: #9265A6;
}

.slideshow-container {
    position: relative;
    max-width: 100%;
    display: block;
    margin: auto;
    height: calc(100vh - 70px);}
.static-mobile-image{
    display: none;
    width: 100%;
    height: 650px;
    margin: 0 auto;
}
.static-mobile-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}


.mySlides {
    display: none;
    position: relative;
}

.mySlides img {
    width: 100%;
    object-fit: cover;
    height: calc(100vh - 70px);}

.numbertext {
    position: absolute;
    bottom: 15px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    color: #fff;
    padding: 5px 10px;
    font-size: 1.4rem;
    border-radius: 8px;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    font-size: 2.5rem;
    padding: 8px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10%;
    z-index: 10;
    transition: 0.3s;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.dot.active {
    background-color: #9265A6;
}
.dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    z-index: 10;
}
.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.fade {
    animation-name: fade;
    animation-duration: 1.2s;
}

@keyframes fade {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}
.feature {
    background: linear-gradient(145deg, #ffffff, #ffffff);
    padding: 50px 20px;
    direction: rtl;
    font-family: 'Segoe UI', sans-serif;
}

.container1 {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
}

.benefit-col {
    background: #ffffff;
    border: 1px solid #9265a6;
    border-radius: 20px;
    padding: 30px 25px;
    width: 300px;
    box-shadow: 0 12px 35px rgba(146, 101, 166, 0.25);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-col:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 35px rgba(146, 101, 166, 0.25);
    border-color: #7c4c9f;
    transition: all 0.3s ease-in-out;
}


.benefit-col .ico {
    font-size: 3rem;
    background-color: #9265a6;
    color: #fff;
    border-radius: 50%;
    padding: 10px;
    margin-bottom: 20px;
    display: inline-block;
}

.benefit-col p {
    font-size: 1.4rem;
    color: #555;
    margin: 0;
    line-height: 1.8;
}

.benefit-col p strong {
    display: block;
    color: #000;
    font-size: 1.6rem;
    margin-bottom: 8px;
}
@media (max-width: 1000px) {
    .container1 {
        justify-content: center;
        gap: 20px;
    }

    .benefit-col {
        width: 48%;       /* الكرتين الأول والثاني يصفوا جنب بعض */
        min-width: 150px;
        margin-bottom: 20px;
        flex-grow: 1;
    }

    /* الكرت الثالث تحت بالنص */
    .benefit-col:nth-child(3) {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .benefit-container {
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .benefit-container .benefit-col {
        width: 47%;
        min-width: 150px;
        margin-bottom: 20px;
        flex-grow: 1;
    }

    .benefit-container .benefit-col:nth-child(3) {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
}


.categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    padding: 40px 0;
}

.category-card {
    width: 230px;
    height: 370px;
    background-color: #f0f0f0;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
}



.card-bg {
    position: relative;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #9265A6;
    clip-path: polygon(0 0, 100% 0, 100% 75%, 0 100%);
    z-index: 1;
}

.category-card:hover .bg-shape {
    background-color: #81C3C2;
}

.card-bg img {
    width: 210px;
    height: auto;
    position: relative;
    top: 5px;
    z-index: 2;
    transition: transform 0.3s ease;
    margin-top: 10px;
}

.category-card:hover .card-bg img {
    transform: scale(1.1);
}

.category-card:hover button {
    opacity: 1;
    transform: translateY(0);
}

.category-card h3 {
    margin: 13px 0 28px;
    font-size: 1.9rem;
    color: #000;
}

.category-card button {
    background-color: #9265A6;
    color: white;
    padding: 12px 20px;
    margin-bottom: 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.category-card button:hover {
    background-color: #7c4c91;
    font-size: 15px;
}
.small-carousel-wrapper {
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin: 20px auto;

    border-radius: 8px;
    position: relative;
}

.small-carousel {
    display: flex;
    width: max-content;
    animation: scroll-left 50s linear infinite;
}

.small-carousel img {
    width: 360px;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;

    flex-shrink: 0;
    margin-right: 10px;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
.grayscale {
    filter: grayscale(100%);
    opacity: 0.6;
}

.buy-now-btn:disabled {
    background-color: #aaa;
    color: #fff;
    cursor: not-allowed;
    border: none;
}
.buy-now-btn:disabled:hover {
    background-color: #999;
    color: #333;
}

.category-card.out-of-stock {
    background-color: #d3d3d3 !important;
}


.category-card.out-of-stock {
    background-color: #d3d3d3 !important;
}
.bg-shape.gray-bg {
    background-color: #ccc !important;
}
.category-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.category-card.show {
    opacity: 1;
    transform: translateY(0);
}
@media (max-width: 768px) {
    .category-card {
        width: 170px !important;
        margin: 10px auto !important;

        font-size: 30px !important;
    }

    .category-card img {
        width: 90% !important;
        height: auto !important;
    }

    .categories {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }



    .menu-toggle {
        display: block;
    }
    .slideshow-container {
        display: none;
    }

    .static-mobile-image {
        display: block;
    }
    header {
        flex-direction: column;
        align-items: flex-start;
    }








    .mySlides img,
    .static-mobile-image {
        height: auto;
        width: 100%;
    }

}







.main-content {
    padding-top: 69px;
}
@media (max-width: 768px) {
    .main-content {
        padding-top: 26px;
    }
}



.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 8px;
    width: 55px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 37px;
    line-height: 60px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: opacity 0.4s ease, transform 0.3s ease;
    opacity: 0;
    visibility: hidden;
    animation: pulse 1.5s infinite;
}

.whatsapp-float:hover {
    background-color: #1ebc59;
    transform: scale(1.1);
}

.whatsapp-visible {
    opacity: 1;
    visibility: visible;
}

/* تأثير نبض */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}





.search-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    width: 480px;
    max-width: 90vw;
    z-index: 99999;
    overflow: hidden;
    display: none;
    animation: fadeIn 0.3s ease;
    max-height: 410px; /* تقريبًا 5 عناصر × 70px */
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #9265A6 #f1f1f1;
}
.search-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.search-dropdown::-webkit-scrollbar-thumb {
    background-color: #9265A6;
    border-radius: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-dropdown .result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    text-decoration: none;
    color: #333;
    transition: background 0.25s ease;
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
}

.search-dropdown .result-item:last-child {
    border-bottom: none;
}

.search-dropdown .result-item:hover {
    background: #d0afdf;
}

.search-dropdown .result-item img {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
}

.search-dropdown .info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.search-dropdown .info h4 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: bold;
    color: #222;
}

.search-dropdown .info span {
    font-size: 1.2rem;
    color: #666;
    margin-top: 4px;
}

.search-dropdown .no-results {
    padding: 16px;
    text-align: center;
    color: #777;
    font-size: 1.4rem;
}



.offer-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #9265A6;
    color: white;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.featured-carousel-section {
    margin: 80px 0;
    padding: 0 30px;
    background: #D6F0EF;
    border-radius: 24px;
    padding-top: 40px;
}

.section-title {
    font-size: 32px;
    color: #9265A6;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #9265A6;
    margin: 10px auto 0;
    border-radius: 2px;
}

.featured-carousel {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    scroll-snap-type: x mandatory;
    padding: 10px 10px 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.featured-carousel::-webkit-scrollbar {
    display: none;
}

.featured-card {
    min-width: 250px;
    max-width: 260px;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 20px 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.featured-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.featured-card:hover img {
    transform: scale(1.05);
}

.featured-card h3 {
    font-size: 17px;
    color: #333;
    margin-bottom: 8px;
    min-height: 42px;
    font-weight: 600;
}

.featured-card .price {
    color: #43a047;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
}

.browse-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #9265A6, #cba0ff);
    color: #fff;
    font-weight: 500;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
}

.browse-btn:hover {
    background: linear-gradient(135deg, #7b4f95, #ab7cd8);
}
/* الشاشات المتوسطة - أقل من 1024px */
@media (max-width: 1023px) {
    .featured-carousel {
        gap: 20px;
    }

    .featured-card {
        min-width: 220px;
        max-width: 240px;
    }

    .featured-card img {
        height: 170px;
    }
}

/* الشاشات الصغيرة - أقل من 768px */
@media (max-width: 767px) {
    .featured-carousel {
        gap: 16px;
        padding: 10px 10px 20px;
        justify-content: flex-start;
    }

    .featured-card {
        min-width: 200px;
        max-width: 200px;
        padding: 18px 12px;
    }

    .featured-card img {
        height: 160px;
    }

    .section-title {
        font-size: 28px;
    }
}

/* الشاشات الصغيرة جداً - أقل من 480px */
@media (max-width: 479px) {
    .featured-carousel {
        gap: 12px;
        padding: 10px 5px 20px;
    }

    .featured-card {
        min-width: 175px;
        max-width: 175px;
        padding: 15px 10px;
    }

    .featured-card img {
        height: 140px;
    }

    .section-title {
        font-size: 24px;
    }
}
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    /* عشان نستخدم hover على كامل المنطقة */
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(146, 101, 166, 0.2); /* شفافية فاتحة */
    color: #9265A6;
    border: none;
    font-size: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0; /* مخفية افتراضياً */
    pointer-events: none; /* غير قابلة للنقر افتراضياً */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(146, 101, 166, 0.3);
    z-index: 2;
}

.carousel-wrapper:hover .carousel-btn {
    opacity: 1;
    pointer-events: auto; /* تفعيل النقر */
}

.carousel-btn:hover {
    background-color: rgba(146, 101, 166, 0.5);
    color: #fff;
}

.carousel-btn.left {
    left: -20px;
}

.carousel-btn.right {
    right: -20px;
}



















.category-card:hover {
    transform: translateY(-5px) scale(1.1);

}