/* Add custom CSS styles below */
/* ========================================
   ⚡ Weqaity Responsive Styles v6.0 (Premium Menus)
   ======================================== */

/* 1️⃣ Global & Background */
body {

    background-size: 400% 400% !important;
    animation: gradientMove 15s ease infinite !important;
    min-height: 100vh;
    font-family: 'PingARLT', 'Cairo', sans-serif !important;
    padding-bottom: 0 !important;
    overflow-x: hidden !important;
}


@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 2️⃣ Strict Cleanup */
.top-header,
.mobile-bottom-nav,
.bottom-nav,
.salla-bottom-nav,
.site-header__menu-toggle,
.sub-nav__menu,
.side-panel-trigger,
.header-side-panel-trigger,
.side-panel,
.mobile-side-panel,
.filters-show {
    display: none !important;
}

/* 3️⃣ Main Header Layout */
.site-header {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.site-header__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 15px;
    flex-wrap: wrap;
}

/* 4️⃣ Desktop View (Premium Navigation) */
@media (min-width: 992px) {
    .mobile-burger {
        display: none !important;
    }

    .site-header__wrapper {
        flex-wrap: nowrap;
    }

    .header-block--nav-wrapper {
        display: block !important;
        order: 4;
        width: 100%;
        margin-top: 15px;
        border-top: 1px solid rgba(0, 0, 0, 0.03);
        padding-top: 10px;
    }

    /* Nav List Layout */
    .header-block--nav-wrapper>ul {
        display: flex;
        justify-content: center;
        gap: 30px;
        list-style: none;
        padding: 0;
        margin: 0;
        position: relative;
    }

    /* Level 1 Links (Main Menu) - Target both A and SPAN */
    .header-block--nav-wrapper>ul>li>a,
    .header-block--nav-wrapper>ul>li>span {
        font-weight: 700;
        color: #444;
        font-size: 15px;
        padding: 10px 10px;
        position: relative;
        transition: all 0.3s;
        display: inline-flex;
        align-items: center;
        text-decoration: none;
        cursor: pointer;
    }

    /* Premium Hover Effect (Underline Slide) */
    .header-block--nav-wrapper>ul>li>a::after,
    .header-block--nav-wrapper>ul>li>span::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0%;
        height: 2px;
        background: #20c1dd;
        transition: width 0.3s ease;
    }

    .header-block--nav-wrapper>ul>li:hover>a,
    .header-block--nav-wrapper>ul>li:hover>span {
        color: #20c1dd;
        background: transparent;
    }

    .header-block--nav-wrapper>ul>li:hover>a::after,
    .header-block--nav-wrapper>ul>li:hover>span::after {
        width: 100%;
    }

    /* 💎 Premium Desktop Dropdown Container (Corrected Structure) */
    .header-block--nav-wrapper ul li {
        position: relative;
    }

    /* Target the wrapper DIV, not just the UL directly */
    .header-block--nav-wrapper ul li .sub-menu,
    .header-block--nav-wrapper ul li ul {
        display: block !important;
        visibility: hidden;
        opacity: 0;

        position: absolute;
        top: 100%;
        right: 0;

        min-width: 220px;
        width: max-content;
        max-width: 300px;

        background: #ffffff !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;

        padding: 0 !important;
        margin-top: 0 !important;

        /* Smooth appearance */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;

        z-index: 99999 !important;
    }

    /* Bridge to prevent menu from closing */
    .header-block--nav-wrapper ul li:hover>.sub-menu::before,
    .header-block--nav-wrapper ul li:hover>ul::before {
        content: "" !important;
        position: absolute !important;
        top: -10px !important;
        left: 0 !important;
        right: 0 !important;
        height: 15px !important;
        background: transparent !important;
        display: block !important;
    }

    /* Reveal on Hover with smooth transition */
    .header-block--nav-wrapper ul li:hover>.sub-menu,
    .header-block--nav-wrapper ul li:hover>ul {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        margin-top: 5px !important;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0s;
    }

    /* Keep menu open when hovering over it */
    .header-block--nav-wrapper .sub-menu:hover,
    .header-block--nav-wrapper ul li ul:hover {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Force Inner Content Visible */
    .header-block--nav-wrapper .sub-menu_inner,
    .header-block--nav-wrapper .sub-menu ul,
    .header-block--nav-wrapper .sub-menu-item {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        position: static !important;
    }

    /* Style the actual Links inside - ENSURE CLICKABILITY */
    .header-block--nav-wrapper .sub-menu li a,
    .header-block--nav-wrapper .sub-menu li span,
    .header-block--nav-wrapper ul li ul li a {
        display: block !important;
        width: 100% !important;
        padding: 10px 15px !important;
        font-size: 14px !important;
        color: #555 !important;
        text-align: right !important;
        float: none !important;
        line-height: 1.5 !important;
    }

    .header-block--nav-wrapper .sub-menu li a:hover,
    .header-block--nav-wrapper ul li ul li a:hover {
        color: #20c1dd !important;
        background: #f0fbff !important;
        padding-right: 20px !important;
    }

    .header-block--nav-wrapper ul li ul li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.03) !important;
        padding: 0 !important;
    }

    .header-block--nav-wrapper ul li ul li:last-child {
        border-bottom: none !important;
    }

    .header-block--nav-wrapper ul li ul li a {
        padding: 10px 15px !important;
        border-radius: 8px !important;
        background: transparent !important;
        text-align: right !important;
        white-space: nowrap !important;
        /* Don't wrap text */
        transition: all 0.2s;
    }

    .header-block--nav-wrapper ul li ul li a:hover {
        background: #f0fbff !important;
        color: #20c1dd !important;
        transform: translateX(-5px);
        /* Slide effect */
        padding-right: 20px !important;
    }

    /* Add Arrow for Dropdown Parents */
    .header-block--nav-wrapper>ul>li.has-children>a::after {
        display: none;
        /* Hide underline for drop parents to avoid clash */
    }

    /* Custom Arrow */
    .header-block--nav-wrapper>ul>li:has(ul)>a {
        padding-left: 20px;
    }

    .header-block--nav-wrapper>ul>li:has(ul)>a::before {
        content: '';
        /* FontAwesome arrow specific fallback or simple char */
        content: '⌄';
        font-family: sans-serif;
        font-size: 14px;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s;
    }

    .header-block--nav-wrapper>ul>li:hover>a::before {
        transform: translateY(-50%) rotate(180deg);
    }
}

/* 5️⃣ Mobile View Setup */
@media (max-width: 991px) {
    .header-block--nav-wrapper {
        display: none !important;
    }

    .site-header__wrapper {
        row-gap: 25px !important;
    }

    .mobile-burger {
        display: flex !important;
        order: 1;
        margin-left: 10px;
    }

    .site-header__logo {
        order: 2;
        margin-right: 0;
        margin-left: auto;
        max-width: 90px;
    }

    .site-header__logo img {
        max-height: 35px;
    }

    .site-header__cart {
        order: 3;
        margin-right: 10px;
        display: flex;
        align-items: center;
    }

    /* Search Bar Row */
    #search_form {
        order: 10 !important;
        width: calc(100% + 30px) !important;
        margin-left: -15px !important;
        margin-right: -15px !important;
        margin-top: 15px !important;
        margin-bottom: 10px !important;
        max-width: none !important;
        flex: 0 0 auto !important;
        display: block !important;
        padding: 0 15px !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 1000 !important;
        pointer-events: auto !important;
        box-sizing: border-box !important;
    }
}

/* 6️⃣ Mobile Sidebar Styles (Accordions + Premium Look) */
.mobile-side-menu {
    border-top-left-radius: 25px !important;
    border-bottom-left-radius: 25px !important;
    background: #fff !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1) !important;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #f9f9f9;
    position: relative;
    padding: 0;
}

.mobile-nav-link {
    display: block;
    padding: 15px 10px;
    font-size: 15px;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-nav-link:hover {
    color: #20c1dd;
}

/* The Toggle Arrow Button */
.submenu-toggle {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    border-left: 1px solid #f9f9f9;
    transition: all 0.3s;
}

.submenu-toggle.active {
    background: #f4fbfd;
    color: #20c1dd;
    transform: rotate(180deg);
}

/* Submenu (Hidden by Default) */
.mobile-submenu {
    display: none;
    /* JS toggles this */
    background: #fcfcfc;
    padding: 10px 20px 20px 0;
    border-top: 1px solid #eee;
}

.mobile-submenu li a {
    font-size: 14px;
    color: #666;
    padding: 8px 0;
    display: block;
}

.mobile-submenu li a:hover {
    color: #20c1dd;
    padding-right: 5px;
}


/* 7️⃣ Search Bar Visuals */
#search_form input,
#search_form .s-search-input {
    border-radius: 50px !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    padding: 10px 20px 10px 50px !important;
    /* Space for Right Icon */
    padding-right: 60px !important;
    padding-left: 20px !important;
    height: 40px;
    width: 100%;
    font-size: 13px;
    text-align: right !important;
}

#search_form input:focus {
    border-color: #20c1dd !important;
    box-shadow: 0 4px 10px rgba(32, 193, 221, 0.1) !important;
}

#search_form button[type="submit"],
#search_form .search-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 15px !important;
    left: auto !important;
    background: transparent !important;
    border: none !important;
    color: #999 !important;
    width: 30px !important;
    height: 30px !important;
    z-index: 5;
}

/* 8️⃣ Misc Polish */
.site-header__cart-icon {
    font-size: 20px;
    color: #333;
}

.user-icon-custom {
    color: #444;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    margin-left: 8px;
}

.home-block--fixed-banner img,
.main-slider img,
.swiper-slide img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 8px;
}

.product-block {
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.02) !important;
}

/* 🛠️ Dropdown Layout Fixes (Deep Reset) */
.header-block--nav-wrapper ul li .sub-menu,
.header-block--nav-wrapper ul li ul {
    padding: 0 !important;
    /* Killer of top space */
    height: auto !important;
    max-height: none !important;
    /* Allow full growth */
    overflow: hidden !important;
    display: flex !important;
    /* Fix structure */
    flex-direction: column !important;
}

/* Reset ALL internal layers */
.header-block--nav-wrapper .sub-menu .sub-menu_inner,
.header-block--nav-wrapper .sub-menu ul,
.header-block--nav-wrapper .sub-menu li {
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    display: block !important;
    line-height: normal !important;
}

/* Fix the Top Gap specifically */
.header-block--nav-wrapper .sub-menu ul {
    margin-top: 5px !important;
    /* Small space from top edge */
    margin-bottom: 5px !important;
    /* Small space from bottom edge */
}

/* Ensure Links are comfortable */
.header-block--nav-wrapper .sub-menu li a {
    padding: 8px 15px !important;
    /* Consistent padding */
    display: block !important;
}

/* Fix Last Item Clipping */
.header-block--nav-wrapper .sub-menu li:last-child {
    padding-bottom: 5px !important;
    /* Safety padding at the very end */
}

/* 🤍 Premium Light Footer */
.footer {
    background: #ffffff !important;
    /* Clean White */
    color: #555555 !important;
    padding-top: 50px !important;
    padding-bottom: 20px !important;
    border-top: 1px solid #e1e1e1;
    /* Subtle divider */
}

/* Titles */
.footer .title {
    color: #333333 !important;
    /* Dark Heading */
    font-size: 18px !important;
    font-weight: 800 !important;
    margin-bottom: 25px !important;
    position: relative;
    padding-bottom: 10px;
}

.footer .title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: #20c1dd;
    /* Cyan Accent */
    border-radius: 2px;
}

/* Links */
.footer a {
    color: #666666 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block;
}

.footer a:hover {
    color: #20c1dd !important;
    /* Brand Color Hover */
    transform: translateX(-5px);
}

/* Store About Text & Paragraphs */
.store-about p,
.footer p {
    color: #666666 !important;
    line-height: 1.8;
}

/* Social Icons */
.footer-list--social-links li a {
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    /* Light Gray Bg */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.footer-list--social-links li a:hover {
    background: #000000 !important;
    /* Black on Hover */
    border-color: #000000 !important;
    transform: translateY(-3px);
}

.footer-list--social-links li a i {
    color: #555 !important;
}

.footer-list--social-links li a:hover i {
    color: #ffffff !important;
    /* White Icon on Black BG */
}

/* Contact Icons */
.store-contact-info i {
    color: #20c1dd !important;
    margin-left: 10px;
}

/* App Links */
.app-links img {
    border-radius: 8px;
    border: 1px solid #eee;
    transition: transform 0.3s;
}

.app-links img:hover {
    transform: scale(1.05);
}

/* Payment Methods background fix */
.store-certificate {
    background: #f9f9f9;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-flex;
    margin-bottom: 15px;
    color: #555;
    border: 1px solid #eee;
}

/* 🌟 Premium Product Card Design */
.product-block {
    background: #fff !important;
    border-radius: 20px !important;
    /* Large curve */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    overflow: hidden !important;
    padding-bottom: 20px !important;
    display: flex !important;
    flex-direction: column !important;
}

.product-block:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08) !important;
    border-color: #20c1dd !important;
}

/* Center Content inside Card */
.product-block__info {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 15px !important;
    flex-grow: 1 !important;
}

.product-block .price-wrapper {
    justify-content: center !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
}

/* Ensure consistent card height */
.product-block .donating-wrap {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    justify-content: space-between !important;
}

/* Bigger Add to Cart Button */
/* 🏷️ Section Titles Redesign (Universal Fix) */
.home-block .title--has-dash,
.home-block .title--primary {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    margin-bottom: 40px !important;
    color: #333 !important;
    width: 100% !important;
    /* Ensure full width for centering */
}

/* Remove old side dash */
.home-block .title--has-dash::before {
    display: none !important;
}

/* New Cyan Bottom Line (Closer to text) */
.home-block .title--has-dash::after,
.home-block .title--primary::after {
    content: '' !important;
    display: block !important;
    width: 60px !important;
    height: 4px !important;
    background-color: #20c1dd !important;
    /* Brand Cyan */
    border-radius: 10px !important;
    margin: 8px auto 0 auto !important;
    /* Closer to text (8px) */
    position: static !important;
}

/* 🎯 Center Products in Fixed Sections */
.home-block--fixed-products .row {
    justify-content: center !important;
}

/* 📦 Product Title Specific Fix & Spacing */
.product-block__info {
    padding-top: 20px !important;
    /* Space between image and text */
}

.product-block__info .product-title p {
    font-size: var(--font-sm);
    color: #999;
    color: var(--color-text-lighter);
    margin: 5px 0 0;
    max-width: 80%;
    display: none !important;
}

.product-block .product-title,
.product-block h2,
.product-block .title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #20c1dd !important;
    margin-bottom: 4px !important;
    line-height: 1.1 !important;
    min-height: auto !important;
}

/* Remove underline from product titles if inherited */
.product-block .title::after {
    display: none !important;
}

/* 🛒 Premium Add to Cart Button - Universal for All Product Pages */
body:not(.cart-page):not(.checkout-page) .product-block .btn--add-to-cart,
body:not(.cart-page):not(.checkout-page) .custom-salla-product-card .btn--add-to-cart {
    width: calc(100% - 30px) !important;
    height: 45px !important;
    border-radius: 15px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, #20c1dd 0%, #17a2b8 100%) !important;
    color: #fff !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    transition: background 0.3s ease, box-shadow 0.3s ease !important;
    box-shadow: 0 5px 15px rgba(32, 193, 221, 0.3) !important;
    margin: 15px 15px 0 15px !important;
    position: relative !important;
    float: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    animation: none !important;
    -webkit-animation: none !important;
    -moz-animation: none !important;
    -o-animation: none !important;
    cursor: pointer !important;
    overflow: visible !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

/* Remove the problematic overlay - we don't need it */
/* body:not(.cart-page):not(.checkout-page) .product-block .btn--add-to-cart::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1 !important;
    cursor: pointer !important;
} */

/* Add text to the button using CSS - Universal */
body:not(.cart-page):not(.checkout-page) .product-block .btn--add-to-cart::before,
body:not(.cart-page):not(.checkout-page) .custom-salla-product-card .btn--add-to-cart::before {
    content: "أضف للسلة" !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #fff !important;
    margin-left: 6px !important;
    margin-right: 0 !important;
    z-index: 0 !important;
    position: relative !important;
    white-space: nowrap !important;
    display: inline-block !important;
}

/* Make sure icon comes after text - Universal */
body:not(.cart-page):not(.checkout-page) .product-block .btn--add-to-cart i,
body:not(.cart-page):not(.checkout-page) .custom-salla-product-card .btn--add-to-cart i {
    color: #fff !important;
    font-size: 16px !important;
    z-index: 0 !important;
    position: relative !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    display: inline-block !important;
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
    body:not(.cart-page):not(.checkout-page) .product-block .btn--add-to-cart {
        height: 50px !important;
        font-size: 13px !important;
        gap: 6px !important;
        padding: 0 25px !important;
        margin: 20px 8px 0 8px !important;
        width: calc(100% - 16px) !important;
        justify-content: center !important;
    }

    body:not(.cart-page):not(.checkout-page) .product-block .btn--add-to-cart::before {
        font-size: 13px !important;
        margin-left: 8px !important;
        margin-right: 0 !important;
    }

    body:not(.cart-page):not(.checkout-page) .product-block .btn--add-to-cart i {
        font-size: 18px !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}

/* Extra Small Mobile Screens */
@media (max-width: 480px) {
    body:not(.cart-page):not(.checkout-page) .product-block .btn--add-to-cart {
        height: 48px !important;
        font-size: 12px !important;
        gap: 4px !important;
        border-radius: 12px !important;
        margin: 15px 6px 0 6px !important;
        width: calc(100% - 12px) !important;
        padding: 0 20px !important;
    }

    body:not(.cart-page):not(.checkout-page) .product-block .btn--add-to-cart::before {
        font-size: 12px !important;
        margin-left: 6px !important;
        margin-right: 0 !important;
    }

    body:not(.cart-page):not(.checkout-page) .product-block .btn--add-to-cart i {
        font-size: 16px !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}

/* Hover effects - Universal */
body:not(.cart-page):not(.checkout-page) .product-block:hover .btn--add-to-cart {
    transform: none !important;
    animation: none !important;
    box-shadow: 0 8px 25px rgba(32, 193, 221, 0.4) !important;
    background: linear-gradient(135deg, #17a2b8 0%, #20c1dd 100%) !important;
}

/* Ensure the button container takes full width - Universal */
body:not(.cart-page):not(.checkout-page) .product-block .donating-wrap {
    padding: 0 !important;
}

/* Force disable all animations and transforms - Universal */
body:not(.cart-page):not(.checkout-page) .product-block .btn--floated {
    position: static !important;
    float: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    animation: none !important;
    -webkit-animation: none !important;
    -moz-animation: none !important;
    -o-animation: none !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -o-transform: none !important;
}

.product-block .btn--floated {
    position: static !important;
    float: none !important;
    margin: 15px auto 0 auto !important;
}

/* 🏹 Slider Arrows - Strict Positioning Fix */
.s-slider-block__control,
.splide__arrow {
    background: #fff !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    opacity: 0 !important;
    transition: all 0.3s !important;
    z-index: 999 !important;
    /* Top of everything */

    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
}

/* ✨ PREMIUM REDESIGN: Store Features & Testimonials */

/* 1. 💎 Store Features Section */
.home-block--store-features {
    background: #fdfdfd;
    /* Very subtle background */
    padding: 60px 0 !important;
}

.home-block--store-features .store-feature {
    background: #fff !important;
    border-radius: 20px !important;
    padding: 30px 20px !important;
    text-align: center !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    height: 100% !important;
    position: relative;
    overflow: hidden;
}

.home-block--store-features .store-feature:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(32, 193, 221, 0.15) !important;
    border-color: rgba(32, 193, 221, 0.3) !important;
}

/* Icon Wrapper */
.home-block--store-features .store-feature__icon {
    width: 80px !important;
    height: 80px !important;
    background: linear-gradient(135deg, rgba(32, 193, 221, 0.1) 0%, rgba(32, 193, 221, 0.05) 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 20px auto !important;
    transition: all 0.4s ease !important;
}

.home-block--store-features .store-feature:hover .store-feature__icon {
    background: linear-gradient(135deg, #20c1dd 0%, #17a2b8 100%) !important;
    transform: rotateY(180deg);
}

/* Icons within wrapper */
.home-block--store-features .store-feature__icon i {
    font-size: 32px !important;
    color: #20c1dd !important;
    transition: color 0.3s !important;
}

.home-block--store-features .store-feature:hover .store-feature__icon i {
    color: #fff !important;
}

/* Title & Text */
.home-block--store-features .title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #333 !important;
    margin-bottom: 10px !important;
}

.home-block--store-features p {
    color: #777 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}


/* 2. 💬 Testimonials Section (Modern Quote Style) */
.home-block--testimonials {
    background-color: #f4f8fa !important;
    /* Soft blueish tint */
    padding: 60px 0 !important;
}

.testimonial-entry {
    background: #fff !important;
    border-radius: 20px !important;
    padding: 0px 10px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid #eee !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    /* margin: 15px 5px !important; */
    /* Spacing for shadow */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    /* Group contents in center */
    min-height: 0 !important;
    /* Allow it to be as short as possible */
    /* gap: 10px !important; */
    /* Controlled spacing between avatar, text, and stars */
}

.testimonial-entry:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
    border-color: #20c1dd !important;
}

/* Decorative Quote Icon Top Right */
.testimonial-entry::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 80px;
    line-height: 1;
    color: rgba(32, 193, 221, 0.1);
    font-family: serif;
    pointer-events: none;
}

/* User Avatar */
.testimonial-entry .avatar-wrapper {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    margin: 0 auto 15px auto !important;
    border: 3px solid #20c1dd !important;
    /* Brand border */
    padding: 2px !important;
    /* Gap */
    background: #fff;
    overflow: hidden;
}

.testimonial-entry .avatar-wrapper img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.testimonial-entry__info {
    flex: initial;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    margin-bottom: 5px !important;
}


/* Quote/Text */
.testimonial-entry__excerpt p {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #444 !important;
    font-style: italic !important;
    margin: 0 !important;
    /* Remove individual p margin */
}

.testimonial-entry__excerpt {
    margin-bottom: 0 !important;
    height: fit-content;
    /* Controlled by flex gap now */
}

/* User Name */
.testimonial-entry .title--small {
    font-weight: bold !important;
    color: #333 !important;
    font-size: 16px !important;
    margin-bottom: 5px !important;
}

/* Stars */
.testimonial-entry__rate salla-rating-stars {
    display: inline-block !important;
    color: #ffc107 !important;
    /* Gold */
    transform: scale(0.9);
}

/* Force Left Arrow to Left Edge (Outward) */
.splide__arrow--next,
.s-slider-block__control--next {
    left: 5px !important;
    /* Close to edge */
    right: auto !important;
    /* Crucial to prevent overlap */
}

/* Force Right Arrow to Right Edge (Outward) */
.splide__arrow--prev,
.s-slider-block__control--prev {
    right: 5px !important;
    /* Close to edge */
    left: auto !important;
    /* Crucial to prevent overlap */
}

/* Show on Hover */
.home-block:hover .s-slider-block__control,
.home-block:hover .splide__arrow {
    opacity: 1 !important;
}

.s-slider-block__control:hover,
.splide__arrow:hover {
    background: #20c1dd !important;
    color: #fff !important;
    transform: translateY(-50%) scale(1.1) !important;
}

/* 👇 "Show All" Button - New Bottom Style */
.show-all-btn-custom {
    display: block;
    width: max-content;
    margin: 30px auto 0 auto;
    padding: 12px 40px !important;
    border-radius: 30px !important;
    border: 1px solid #ddd !important;
    color: #555 !important;
    font-weight: bold;
    background: transparent;
    transition: all 0.3s;
}

.show-all-btn-custom:hover {
    background: #20c1dd !important;
    color: #fff !important;
    border-color: #20c1dd !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(32, 193, 221, 0.2);
}

/* Center Copyright Text */
.footer__bottom {
    text-align: center !important;
    width: 100% !important;
    padding: 15px 0 !important;
    background: #f9f9f9 !important;
    /* Slightly distinct background */
    border-top: 1px solid #eee;
}

.footer__bottom p {
    text-align: center !important;
    width: 100% !important;
    margin: 0 !important;
    display: block !important;
    font-size: 14px !important;
}

/* 🚀 PREMIUM HERO BANNER DESIGN - FULL WIDTH */
.home-block--fixed-banner {
    padding-top: 0 !important;
    padding-bottom: 25px !important;
    /* Fixed: Added space to avoid 'eating' the bottom */
}

.home-block--fixed-banner .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

.home-block--fixed-banner .row,
.home-block--fixed-banner .col-sm-12 {
    padding: 0 !important;
    margin: 0 !important;
}

.banner--fixed {
    display: block !important;
    position: relative !important;
    border-radius: 0 !important;
    /* Sharp for full bleed */
    overflow: visible !important;
    /* Fixed: Allow bottom content to show */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    animation: none !important;
    /* Removed floating */
}


.banner--fixed::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    z-index: 2;
    animation: shineEffect 2.5s infinite linear !important;
    /* Continuous & Frequent shine */
}

/* Shine trigger removed (now infinite) */

.banner--fixed:hover {
    transform: none !important;
    /* Fixed: No scaling */
    box-shadow: 0 15px 40px rgba(32, 193, 221, 0.2) !important;
}

.banner--fixed img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    transition: transform 0.8s ease !important;
}

.banner--fixed:hover img {
    transform: none !important;
    /* Fixed: No scaling */
}



@keyframes shineEffect {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}

/* Responsive adjustment for Banner */
@media (max-width: 768px) {
    .banner--fixed {
        border-radius: 15px !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    }

    /* Hide specific navigation class */
    .main-nav.mm-spn--open.mm-spn--parent {
        display: none !important;
    }

    /* Reduce spacing between header rows on mobile */
    .site-header {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    .site-header__wrapper {
        gap: 8px !important;
        margin-bottom: 8px !important;
    }

    #search_form {
        margin-top: 0 !important;
    }
}


/* 🔒 Force Page Width Lock */
html,
body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
}

/* 🔧 Fix Slider Overflow */
.splide,
.s-slider-block,
.home-block,
.banner--fixed {
    max-width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
}

/* 🏹 Fix RTL Arrows اتجاهها الصح */
html[dir="rtl"] .splide__arrow--next,
html[dir="rtl"] .s-slider-block__control--next {
    right: 5px !important;
    left: auto !important;
}

html[dir="rtl"] .splide__arrow--prev,
html[dir="rtl"] .s-slider-block__control--prev {
    left: 5px !important;
    right: auto !important;
}

/* ✨ Fix Banner Shine Overflow */
.banner--fixed::before {
    max-width: 100vw !important;
    overflow: hidden !important;
}

/* 📱 Fix Sidebar Push */
.mobile-side-menu {
    max-width: 85vw !important;
}

@media only screen and (max-width: 992px) {
    .nav-mobile {
        display: block;
        display: none;
    }