/* ===============================
   الخلفية العامة
================================ */
body {
    background-color: #f6f6f6 !important;
}

/* ===============================
   شريط البحث
================================ */
.header-search,
.search-bar,
.site-header .search,
.site-header form {
    background-color: #ffffff !important;
    border-radius: 999px;
    box-shadow: 0 3px 15px rgba(80, 160, 126, 0.5);
}

/* ===============================
   Product Card – Desktop (Default)
================================ */
.s-product-card-entry {
    background-color: #ffffff !important;
    border-radius: 10px;

    /* Padding للكمبيوتر */
    padding: 15px 5px 15px 5px; /* Top Right Bottom Left */

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.s-product-card-entry:hover {
    transform: translateY(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ===============================
   Product Card – Mobile
================================ */
@media (max-width: 768px) {
    .s-product-card-entry {
        /* Padding للموبايل */
        padding: 0px 0px 0px 0px; /* Top Right Bottom Left */
    }
}

/* ===============================
   محتوى كرت المنتج
================================ */
.s-product-card-content {
    color: #333;
    font-size: 0.9rem;
}

/* اسم المنتج – سطر واحد + نقاط */
.s-product-card-content-title a {
    color: #000;
    text-decoration: none;

    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.s-product-card-content-title a:hover {
    text-decoration: underline;
}

/* ===============================
   قسم المميزات
================================ */
.s-block--features__item h2 {
    color: #000;
    font-size: 1rem;
}

/* ===============================
   قائمة الموبايل
================================ */
@media (max-width: 1024px) {
    :is([dir=rtl] .mm-spn.mm-spn--navbar.mm-spn--main):after {
        color: #0b6f2d;
    }
}

.mm-spn,
.mm-spn a,
.mm-spn li,
.mm-spn span,
.mm-spn ul {
    color: #0b6f2d;
}

/* ===============================
   شاشة الانترو (تم إصلاح مشكلة الماوس)
================================ */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-color: #ffffff;
    z-index: 9998;
    opacity: 0;
    animation: intro 2s ease-in-out;
    pointer-events: none; /* مهم جدًا */
}

body::after {
    content: "";
    position: fixed;
    top: 50%;
    right: 50%;
    width: 140px;
    height: 80px;
    background-image: url('https://sayedabdelmaqsoud.com/wp-content/uploads/2026/01/لوجو22.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translate(50%, -50%) scale(1.6);
    opacity: 0;
    z-index: 9999;
    animation: intro_logo 2.5s ease-in-out;
    pointer-events: none; /* مهم جدًا */
}

/* أنيميشن الانترو */
@keyframes intro {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes intro_logo {
    0% { opacity: 0; transform: translate(50%, -50%) scale(2); }
    40% { opacity: 1; transform: translate(50%, -50%) scale(1.6); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translate(50%, -50%) scale(0.8); }
}

/* ===============================
   اللوجو والهيدر
================================ */
img.logo-normal {
    width: 40px;
    height: 48px;
    aspect-ratio: 2 / 1;
}

.navbar-brand {
    animation: logoMove 4s infinite;
}

@keyframes logoMove {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(-8deg); }
    30% { transform: rotate(6deg); }
}

/* ===============================
   إزالة البوردر
================================ */
.index section .border-2 {
    border-width: 0;
}

/* ===============================
   الفوتر
================================ */
.store-footer__inner,
.store-footer__newsletter,
.store-footer__contacts-row {
    border-bottom: 0;
}

.store-footer h3 {
    color: #7ED321;
}

.store-footer .rounded_contacts a {
    border-radius: 4px;
}

.footer-is-custom .store-footer .store-footer__curve {
    display: none;
}

/* ===============================
   سلايدر المنتجات
================================ */
.products-index .container.mt-6 .swiper-slide {
    margin-left: 20px;
}

.products-index .container.mt-6 .swiper-slide img {
    border-radius: 12px !important;
}

.products-index .container.mt-6 .swiper-wrapper {
    margin: auto;
}

.advanced-slider__slide img {
    width: 100% !important;
    height: 100% !important;
}