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;
}

/* 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::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;
}


@media (min-width: 1201px) {
    .categories {
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    }
}





.category-card {
    width: 230px;
    height: 420px;
    background-color: #f0f0f0;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}








.category-card.show {
    opacity: 1;
    transform: translateY(0);
}





.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: 250px;
    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: 30px 0 5px;
    font-size: 1.6rem;
    font-weight: bold;
    color: #131313;
}
.category-card h2 {
    margin: 30px 0 10px;
    font-size: 2.4rem;
    font-weight: bold;
    color: #000000;
    flex-direction: column; /* عمودي */
    align-items: center;
    gap: 4px; /* مسافة بين السعرين */
}


.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;
}
#messageBox {
    display: none;
    position: fixed;
    top: 94px; /* تحت الهيدر */
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: white;
    padding: 20px 30px; /* أكبر */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    font-size: 18px; /* تكبير الخط */
    z-index: 1001;
    max-width: 90%;
    text-align: center;
    font-family: 'Cairo', sans-serif;
    border: 2px solid black;
}
.search-results {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    width: 300px; /* عرض مناسب */
    max-height: 300px;
    overflow-y: auto;
    margin-top: 5px;
    list-style: none;
    padding: 0;
    z-index: 1000;
    display: none; /* تظهر فقط عند وجود نتائج */
}

.search-results li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.search-results li:hover {
    background-color: #9265A6;
    color: white;
}
.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; /* اللون اللي بدك يظهر لما تعمّل hover على الزر المعطّل */
    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.show {
    opacity: 1;
    transform: translateY(0);
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.price-container {
    text-align: center;
    font-weight: normal;
    margin: 10px 0;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    display: block;
    font-size: 22px;
}

.discount-price {
    color: #e60000;
    font-size: 25px;
    font-weight: bold;
    display: block;
}

.single-price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    padding: 10px 0;
    margin-bottom: 30px;
}

.category-card {
    width: 250px;
    height: 450px;
    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: 230px;
    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: 10px 0 0px;
    font-size: 1.7rem;
    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;
}

.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: 427px) {
    .category-card {
        width: 165px !important;
        margin: 2px auto !important;

        font-size: 30px !important;
    }
    .category-card img {
        width: 115% !important;
        height: auto !important;
    }

    .categories {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .category-card:hover .card-bg img {
        transform: scale(1.1);
    }


    .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%;
    }
}

@media (max-width: 768px) {
    .category-card {
        width: 200px;
        margin: 2px auto;

        font-size: 30px;
    }

    .category-card img {
        width: 120%;
        height: auto;
    }

    .categories {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .category-card:hover .card-bg img {
        transform: scale(1.1);
    }


    .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: all 0.3s ease;
    animation: pulse 1.5s infinite;
}
.whatsapp-float:hover {
    background-color: #1ebc59;
    transform: scale(1.1);
}

/* تأثير نبض */
@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);
    }
}


.category-card:hover {
    transform: translateY(-5px) scale(1.1);

}