﻿html,body {
    overflow-x: hidden;
}
.btn-whatsapp {
    position: fixed;
    visibility: visible;
    opacity: 1;
    right: 15px;
    bottom: 15px;
    z-index: 99999;
    background-color: #008327;
    width: 50px;
    height: 50px;
    border-radius: 100%;
    transition: all 0.4s;
}

    .btn-whatsapp i {
        color: var(--contrast-color);
    }
.btn-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #fff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.6rem;
    z-index: 9999;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .btn-whatsapp:hover {
        width: 230px;
        border-radius: 40px;
        justify-content: start;
        padding-right: 18px;
    }

    .btn-whatsapp .whatsapp-text {
        opacity: 0;
        width: 0;
        overflow: hidden;
        white-space: nowrap;
        transition: all 0.3s ease;
        font-size: 0.95rem;
    }

    /* لما نعمل hover يظهر النص */
    .btn-whatsapp:hover .whatsapp-text {
        opacity: 1;
        width: auto;
    }

/* Desktop Nav Visible Only lg+ */
/*#navbarLinks {
    transition: all 0.4s ease;
}*/

.logo-text {
    font-family: 'Changa', 'Cairo', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    color: #111;
}

.logo-sub {
    font-family: 'Tajawal', sans-serif;
    font-weight: 500;
    color: #a00;
}


/* Hide mobile items on lg+ */
@media (min-width: 992px) {
    .offcanvas {
        display: none !important;
    }
}

/* Hide desktop links under lg */
@media (max-width: 991px) {
    #navbarLinks {
        display: none !important;
    }

    .anaqa-hotline {
        display: none !important;
    }
}

/* ===================== HEADER ===================== */
.anaqa-header {
    width: 100%;
    position: relative;
    z-index: 1030;
    direction: rtl;
}

.anaqa-topbar {
    /*    background-color: #0e3b35;*/
    background-color: #800406;
    height: 60px;
    font-size: 15px;
}

/* --- Navbar --- */
.anaqa-navbar {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    transition: all 0.5s ease;
    position: relative;
}

    .anaqa-navbar .nav-link {
        color: #222 !important;
        padding: 8px 14px;
        transition: color 0.3s ease;
    }

        .anaqa-navbar .nav-link:hover {
            color: #ffb200 !important;
        }

/* العنصر نفسه */
.nav-item.dropdown {
    position: static !important;
}

    /* نضيف منطقة آمنة */
    .nav-item.dropdown > a.nav-link {
        position: relative;
        z-index: 10001;
    }

        /* إنشاء منطقة شفافة تمنع انقطاع الـ hover */
        .nav-item.dropdown > a.nav-link::after {
            content: "";
            position: absolute;
            bottom: -10px; /* المسافة بين الزر والقائمة */
            left: 0;
            width: 100%;
            height: 15px; /* حجم المنطقة الآمنة */
            background: #fff;
        }

/* صندوق القائمة */
.mega-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background: #fff;
    border: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(15px);
    transition: opacity .35s ease, transform .35s ease, visibility .35s ease;
    z-index: 9999;
}

    .nav-item.dropdown:hover > .mega-menu,
    .mega-menu:hover {
/*        padding:20px 0px;*/
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
    .mega-menu .dropdown-item:active {
        background-color: #800406;
        color:#fff !important;
    }

    .mega-menu .dropdown-item {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
    }
    /* --- Logo --- */
    .anaqa-logo-center {
        /*    transition: all 0.5s ease;*/
        z-index: 5;
    }

/* --- Hotline --- */
/*.anaqa-hotline {
    transition: all 0.5s ease;
}*/

/* --- Sticky --- */
.sticky-nav {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: fadeDown 0.5s ease forwards;
}

    .sticky-nav .anaqa-logo-center {
        position: static !important;
        transform: none !important;
        order: 3 !important;
    }

    .sticky-nav #navbarLinks {
        order: 2 !important;
        justify-content: center !important;
    }

    .sticky-nav .anaqa-hotline {
        order: 1 !important;
    }

/* --- Animations --- */
@keyframes fadeDown {
    from {
        transform: translateY(-40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- Offcanvas (Mobile) --- */
.offcanvas {
    width: 100%;
    max-width: 320px;
    background-color: #0a1034 !important;
    transition: transform 0.5s ease-in-out;
}


@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.offcanvas-backdrop.show {
    opacity: 0.85;
    background-color: rgba(0, 0, 0, 0.75);
}

/* --- Responsive --- */
@media (max-width: 991px) {
/*    .anaqa-topbar {
        display: none !important;
    }*/

    .anaqa-navbar {
        padding: 0.8rem 1rem;
    }

    .anaqa-logo-center {
        position: static !important;
        transform: none !important;
    }

    .anaqa-hotline {
        display: none !important;
    }
}

/*  Smooth fade-down animation when sticky */
.sticky-nav {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: navbarFadeDown 0.5s ease forwards;
    z-index: 1000;
}

@keyframes navbarFadeDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/*  Transition when entering sticky mode */
.anaqa-navbar {
    transition: all 0.4s ease, opacity 0.4s ease;
}

/*  Stagger animation for mobile nav items */
.offcanvas .navbar-nav .nav-item {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease;
}

.offcanvas.show .navbar-nav .nav-item {
    opacity: 1;
    transform: translateY(0);
}

    /* delay each item */
    .offcanvas.show .navbar-nav .nav-item:nth-child(1) {
        transition-delay: 0.1s;
    }

    .offcanvas.show .navbar-nav .nav-item:nth-child(2) {
        transition-delay: 0.2s;
    }

    .offcanvas.show .navbar-nav .nav-item:nth-child(3) {
        transition-delay: 0.3s;
    }

    .offcanvas.show .navbar-nav .nav-item:nth-child(4) {
        transition-delay: 0.4s;
    }

    .offcanvas.show .navbar-nav .nav-item:nth-child(5) {
        transition-delay: 0.5s;
    }
/* --- Hero section --- */
.hero-section {
    overflow: hidden;
}

.carousel-item {
    transition: opacity 1s ease-in-out;
}
.carousel-indicators [data-bs-target] {
    border-radius: 50%;
    height: 8px;
    width: 8px;
    transition: all 0.4s ease;
}
    
.carousel-indicators [data-bs-target].active {
    width: 40px;    
    border-radius:revert;    
}

.ad-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .ad-box:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }

@media (max-width: 768px) {
    .ad-box {
        min-height: 140px;
    }

    .col-lg-4 {
        flex-direction: row !important;
    }

        .col-lg-4 .ad-box {
            flex: 1;
        }
}

.slider-img {
    width: 100%;
    height: 400px; 
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

    .slider-img:hover {
        transform: scale(1.03);
    }
@media (max-width: 992px) {
    .slider-img {
/*        height: 300px;*/
    }
}

@media (max-width: 576px) {
    .slider-img {
        height: auto; 
        object-fit: contain; 
        background-color: #0e3b35; 
    }
}

.ad-box img {
    width: 100%;
    height: 195px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ad-box:hover img {
    transform: scale(1.04);
}

@media (max-width: 768px) {
    .slider-img {
        height: 300px;
    }

    .ad-box img {
        height: 150px;
    }

    .col-lg-4 {
        flex-direction: row !important;
    }

        .col-lg-4 .ad-box {
            flex: 1;
        }
}

/*  Category cards base */
/*  القسم الأساسي */
.categories-section {
    overflow: visible !important;
}

/*  البطاقات */
.category-card {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #f8f8f8;
    will-change: transform;
}

    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
    }

/*  صورة الكاتيجوري */
.category-image {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

    .category-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.8s ease;
    }

.category-card:hover .category-image img {
    transform: scale(1.08);
}

/*  الطبقة العلوية */
.category-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: linear-gradient(0deg, rgba(14,59,53,0.7) 0%, rgba(0,0,0,0) 80%);
    padding-bottom: 25px;
    transition: background 0.4s ease;
}

.category-card:hover .category-overlay {
    background: linear-gradient(0deg, rgba(14,59,53,0.5) 0%, rgba(0,0,0,0) 90%);
}

.category-overlay h3 {
    color: #fff;
    font-weight: 700;
    font-size: 1.6rem;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transform: translateY(10px);
    opacity: 0.9;
    transition: all 0.4s ease;
}

.category-card:hover .category-overlay h3 {
    transform: translateY(0);
    opacity: 1;
}

/*  Responsive adjustments */
@media (max-width: 992px) {
    .category-card {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .category-card {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .category-card {
        height: 180px;
    }

    .category-overlay h3 {
        font-size: 1.2rem;
    }
}

/* ==========================
   🔹 Featured Products
   ========================== */
/* ==========================
   🔹 Featured Products Section
   ========================== */
.featured-products {
    overflow: visible;
}

.product-card {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    will-change: transform, opacity;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

.product-img-wrapper {
    position: relative;
    overflow: hidden;
}

.product-img {
    height: 260px;
    object-fit: cover;
    width: 100%;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.product-card .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.product-card:hover .hover-img {
    opacity: 1;
    transform: scale(1.03);
}

.product-card:hover .main-img {
    opacity: 0;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #d62828;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.product-overlay-whatsapp {
    position: absolute;
    right: -80px;
    left:0;
    top: 0;
    padding: 10px;
    opacity: 0;
    transition: all 0.4s ease;
}
.product-overlay-whatsapp .btn {
    width: 70px !important;
}
.product-overlay-btns {
    position: absolute;
    bottom: -80px;
    left: 0;
    right: 0;
    opacity: 0;
    transition: all 0.4s ease;
}

.product-card:hover .product-overlay-btns {
    bottom: 0px;
    opacity: 1;
}
.product-card:hover .product-overlay-whatsapp{
    right:10px;
    opacity:1;
}
/*  المعلومات */
.product-info {
    background: #fff;
    transition: all 0.3s ease;
}

    .product-info h5 {
        font-size: 1rem;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }

.product-overlay-btns .btn, .product-overlay-whatsapp .btn {
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.product-overlay-btns .btn-dark:hover {
    background: #0e3b35;
    border-color: #0e3b35;
}

/*  Responsive */
@media (max-width: 992px) {
    .product-img {
        height: 220px;
    }
    .product-overlay-whatsapp .btn {
        width: 70px !important;
    }
}

@media (max-width: 576px) {
    .product-img {
        height: 180px;
    }

    .product-overlay-btns {
        bottom: 0;
        opacity: 1;
    }

    .product-overlay-whatsapp {
        right: 0;
        opacity: 1;
        padding:0;
    }

}

/*product detials*/
.productSwiper {
    width: 100%;
    aspect-ratio: 1 / 1;
}
.swiper-button-prev, .swiper-rtl .swiper-button-next, .swiper-button-next, .swiper-rtl .swiper-button-prev {
    color: #ffc107;
}
.zoom-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 16px;
}

.zoom-target {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease-in-out;
    transform-origin: center center;
}


    .zoom-target.zoomed {
        cursor: zoom-out;
    }

.thumbsSwiper {
    height: 100px;
}

    .thumbsSwiper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        cursor: pointer;
        border-radius: 8px;
    }

.swiper-slide-thumb-active img {
    border: 2px solid #000;
}
.swiper {
    overflow: hidden;
}

@media (max-width: 768px) {
    .productSwiper {
        height: 320px;
    }

    .zoom-frame {
        height: 320px;
    }

    .thumbsSwiper {
        height: 80px;
    }
}

.related-products {
    background-color: #f8f9fa;
}

.related-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
}

    .related-scroll::-webkit-scrollbar {
        height: 8px;
    }

    .related-scroll::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }


@media (max-width: 768px) {
    .related-card {
        flex: 0 0 180px;
    }

        .related-card .img-wrap {
            height: 160px;
        }
}

/* 🩶 Skeleton Placeholder */
.img-skeleton {
    width: 100%;
    height: 220px;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 12px 12px 0 0;
}

@keyframes shimmer {
    100% {
        background-position: -200% 0;
    }
}

/*  Fade-in Transition */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}

    .fade-in.loaded {
        opacity: 1;
    }
.lazy-img {
    filter: blur(10px);
    transform: scale(1.05);
}

    .lazy-img.loaded {
        filter: blur(0);
        transform: scale(1);
        transition: all 0.6s ease;
    }

    /*Tabs*/
.nav-tabs {
    border-bottom: 2px solid #e9ecef;
}

    .nav-tabs .nav-link {
        color: #555;
        font-weight: 500;
        border: none;
        border-bottom: 3px solid transparent;
        transition: all 0.3s;
    }

        .nav-tabs .nav-link.active {
            color: #000;
            border-color: #111;
        }

.tab-content {
    background: #fff;
    border-radius: 0 0 12px 12px;
}

.nav-tabs {
    border: none;
    justify-content: center;
    gap: 1.5rem;
}

    .nav-tabs .nav-link {
        border: none;
        background: transparent;
        font-weight: 600;
        font-size: 1.05rem;
        color: #6c757d;
        position: relative;
        transition: all 0.3s ease;
    }

        .nav-tabs .nav-link.active {
            color: #000;
        }

        .nav-tabs .nav-link::after {
            content: "";
            position: absolute;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 3px;
            background-color: #111;
            border-radius: 2px;
            transition: width 0.3s ease;
        }

        .nav-tabs .nav-link.active::after {
            width: 100%;
        }

.animate-tab {
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane.active.animate-tab {
    animation-name: fadeSlideIn;
}

.spec-box {
    display: grid;
    gap: 8px;
}

    .spec-box p {
        margin-bottom: 0.4rem;
        border-bottom: 1px dashed #ddd;
        padding-bottom: 5px;
    }

@media (max-width: 768px) {
    .nav-tabs {
        gap: 0.5rem;
    }

        .nav-tabs .nav-link {
            font-size: 0.95rem;
        }
}

/*features section*/
.features-section .icon {
    font-size: 2.2rem;
    color: #c5a059; /* اللون الذهبي الأنيق */
    transition: transform 0.3s ease, color 0.3s ease;
}

.features-section .feature-item:hover .icon {
    transform: translateY(-5px);
    color: #b18b3d;
}

.features-section .feature-item {
    padding: 1rem 0;
}

.features-section .border-md-start {
    border-left: 1px solid #e5e5e5;
}

.features-section .border-md-end {
    border-right: 1px solid #e5e5e5;
}

@media (max-width: 767px) {
    .features-section .border-md-start,
    .features-section .border-md-end {
        border: none;
    }
}


/*Footer*/

.footer {
    background-color: #0a1034;
}

.footer-logo {
    max-width: 320px;
    filter: brightness(1.2);
}

.social-box img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.social-box:hover img {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.footer h6 {
    color: #e4c590;
}

.footer a:hover {
    color: #e4c590 !important;
}

@media (max-width: 768px) {
    .footer {
        text-align: center;
    }

        .footer .social-box img {
            width: 40px;
            height: 40px;
        }
}
