/* colors */
:root {
    --color-primary: #51B264 !important;
    --color-primary-dark: #307f40 !important;
    --color-primary-light: #51B264 !important;
    --color-primary-reverse: #1A1A1A !important;
}
/* top-navbar */
.top-navbar {
    background: #51B264;
    background: linear-gradient(91deg, #51B264 13%, #419CB5 77%);
}
.topnav-link-item, .s-contacts-topnav-link {
    color:#1A1A1A;
    font-weight:600;
}
.topnav-link-item:hover, .s-contacts-topnav-link:hover {
    color: white;
    opacity:1;
}
.btn--rounded-gray:hover, .top-navbar .s-search-input:hover, .top-navbar .s-search-input:focus {
    background-color: white;
}
/* end top-navbar */
/* navbar */
.navbar-brand img {
    max-height: 3rem;
    animation: logoAnimation 3s infinite;
}

@keyframes logoAnimation {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.9;
    }
    50% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    75% {
        transform: scale(1.1) rotate(-5deg);
        opacity: 0.9;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}
@media only screen and (min-width: 1024px) {
    .main-menu li.root-level>a {
        padding-bottom: 0.5rem;
    }
}
@media only screen and (min-width: 1024px) {
    .main-menu {
        padding-top: 1rem;
    }
}
@media only screen and (min-width: 1024px) {
    .main-menu .sub-menu {
        width: max-content;
    }
}
@media only screen and (min-width: 1024px) {
    .fixed-pinned .main-menu {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}
.main-nav-container.fixed-pinned .main-menu>li>a {
    padding-top: 0;
    padding-bottom: 7px;
}
.header-btn:hover .header-btn__icon,
.s-cart-summary-wrapper:hover .header-btn__icon.icon,
.s-cart-summary-wrapper:hover {
    color: #51B264;
    border-color: #51B264;
}
.header-btn__icon,
.header-btn__icon.icon {
    transition: all 0.3s ease;
}
.s-cart-summary-wrapper {
    width: max-content;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
  padding-inline-end: 8px; /* يتحول تلقائيًا بين اليمين واليسار حسب اللغة */
}

@media (min-width: 1024px) {
    .main-nav-container {
        min-height: 84px;
        max-height: fit-content;
    }
}
@media only screen and (max-width: 1024px) {
    .mm-spn.mm-spn--navbar.mm-spn--main:where([dir="rtl"], [dir="rtl"] *):after, 
    .mm-spn.mm-spn--navbar:where([dir="rtl"], [dir="rtl"] *):after{
        color: #51B264;
    }
}

.btn--close-sm:where([dir="rtl"], [dir="rtl"] *) {
    left: 51.5px;
}
/* end navbar */
/* banners */
.banner--fixed img {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out forwards, wave 5s ease-in-out infinite;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}
/* end banners */
/* sections */
.s-block__title h2,
.s-slider-block__title h2,
.s-reviews-header,
#page-main-title {
    color: #51B264;
    text-shadow: 0 0 5px #51B264;
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    0% {
        text-shadow: 0 0 5px #51B264;
    }
    100% {
        text-shadow: 0 0 20px #419CB5;
    }
}
salla-slider .s-slider-block__title-nav .s-slider-nav-arrow {
    border-color: #51B264;
}
.s-slider-nav-arrow svg {
    fill: #51B264;
}
/* end sections */
/* product */
.sicon-heart:before {
    color: #f35944;
}
.s-button-icon .s-button-text {
    padding: 4px;
}
.s-product-card-image {
    overflow: hidden;
    position: relative;
}

.s-product-card-image img {
    object-fit: cover;
    transition: transform 0.5s ease;
}

.s-product-card-entry:hover .s-product-card-image img {
    transform: scale(1.1);
}

.s-product-card-entry .s-product-card-image::before {
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    display: block;
    content: '';
    width: 50%;
    height: 100%;
    background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
    -webkit-transform: skewX(-25deg);
    transform: skewX(-25deg);
}

.s-product-card-entry:hover .s-product-card-image::before {
    -webkit-animation: shine 0.75s;
    animation: shine 0.75s;
}

@-webkit-keyframes shine {
    100% {
        left: 125%;
    }
}

@keyframes shine {
    100% {
        left: 125%;
    }
}

.s-product-card-content-title {
    margin-bottom: 0.625rem;
    max-width: 100%;
    line-height: 1.5rem;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* end product */
/* all product page */
.s-breadcrumb-item {
    color: #307f40;
}
/* end product page */
/* profile */
@media (min-width: 1024px) {
    .profile-header {
        height: 5rem;
    }
}
nav[aria-label="Sidebar"] {
    margin-top: 2rem;
}
.s-user-menu-dropdown-item a:hover {
    background-color: #51b26478;
}
[dir=rtl] .gradient-bg {
    background-image: none;
    background: #51B264;
    background: linear-gradient(91deg, #51B264 13%, #419CB5 77%);
}
.s-breadcrumb-primary-reverse li {
    color: white;
    opacity: 1;
}
/* end profile */
/* feedback */

.s-slider-container {
    box-shadow: none;
}
.s-reviews-container .swiper-slide-active {
    margin: 0 10px;
}
/* السلايد */
.s-reviews-swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 2rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.s-reviews-swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 5rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.s-reviews-swiper-slide:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px #0000001a;
}

/* الصورة الرمزية */
.s-reviews-testimonial__avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #51B264; 
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* النص */
.s-reviews-testimonial__text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-top: 1rem;
    font-weight: 500;
}
.s-reviews-testimonial__name_wrapper {
    margin-top: 1rem;
}
/* الاسم */
.s-reviews-testimonial__info h2 {
    font-size: 1.2rem;
    color: #51B264; 
    margin-left:1rem;
    margin-bottom: 0.5rem;
}

/* النجوم */
.s-rating-stars-btn-star svg {
    fill: #fbbf24 !important;
    width: 22px;
    height: 22px;
}

/* الأيقونة الزخرفية */
.s-reviews-testimonial__icon svg {
    fill: #51B264;
    opacity: 0.8;
}
.s-block--testimonials .s-slider-block__title-nav {
    top: 50% !important;
}
.s-block--testimonials .s-slider-block__title-nav button {
    background-color:#51B264;
}
.s-block--testimonials .s-slider-block__title-nav button:hover {
    background-color:#307f40;
    top:49% !important;
}
.s-block--testimonials .s-slider-block__title-nav .s-slider-nav-arrow svg {
    width: 22px;
    fill: white;
}
.s-slider-container {
    box-shadow: none;
}
.s-reviews-container .swiper-slide-active {
    margin: 0 10px;
}
/* end feedback */
/* footer */
.footer-is-light .store-footer .store-footer__inner {
    background: #51B264;
    background: linear-gradient(91deg, #51B264 13%, #419CB5 77%);
    color: black;
}

.footer-is-light .store-footer {
    background: linear-gradient(91deg, #51B264 13%, #419CB5 77%);
    color: black;
}

.copyright-text p {
    color: black;
}
.s-social-list {
    margin-top:1rem;
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
    justify-content: start;
}

/* كل رابط */
.s-social-link a {
    display: inline-flex;
    align-items: star;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f5f5f5; /* خلفية خفيفة */
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px #0000000d;
}

/* الأيقونة نفسها */
.s-social-icon svg {
    width: 24px;
    height: 24px;
    fill: #51B264; 
    transition: fill 0.3s ease;
}

/* عند المرور hover */
.s-social-link a:hover {
    background-color: #51B264;
    transform: translateY(-4px);
}

.s-social-link a:hover .s-social-icon svg {
    fill: #fff;
}
.store-footer .s-contacts-item:hover {
    opacity: 1;
    color: white;
}
.store-footer .s-menu-footer-list a:hover {
    opacity: 1;
    color: white;
}
.store-footer a {
    transition: all 0.3s ease;
}
.store-footer h3 {
    color: #1A1A1A;
    text-transform: capitalize;
    position:relative;
    padding-bottom:5px;
}
.store-footer h3::before {
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 60px;
    height: 2px;
    content: "";
    background-color: #307f40;
}
.s-contacts-icon {
    background-color: white;
        transition: background-color 0.3s ease, transform 0.3s ease;
}

/* عند المرور hover */
.s-contacts-list a:hover .s-contacts-icon {
    background-color: #51B264;
    transform: translateY(-4px);
}

.s-contacts-list a:hover .s-contacts-icon svg{
    fill: #fff;
}
.footer-is-light .store-footer .contact-social {
    border-style: dashed;
}
/* end footer */
/* media quiery */
/* containers */
@media (min-width: 640px) {
    .container {
        max-width: 640px !important;
    }
}
@media (min-width: 768px) {
    .container {
        max-width: 768px !important;
    }
}
@media (min-width: 1024px) {
    .container {
        max-width: 1024px !important;
    }
}
@media (min-width: 1280px) {
    .container {
        max-width: 1280px !important;
    }
}

/* end media */
.dark .s-product-card-entry {
    border-color: #66bb6a9e !important;
}
.dark #tabbyPromoWrapper #tabbyPromo * {
    color: black;
}
.mm-ocd__content {
    max-width: 330px;
}