@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhaijaan+2:wght@500;600;700&family=Tajawal:wght@400;500;700&display=swap');

:root {
    --pm-primary: #476463;
    --pm-primary-dark: #294846;
    --pm-cream: #fff8ee;
    --pm-paper: #ffffff;
    --pm-coral: #ee876f;
    --pm-sky: #acd9df;
    --pm-yellow: #f3c763;
    --pm-text: #263735;
    --pm-muted: #70807d;
    --pm-border: #e6ddd1;
    --pm-radius-lg: 24px;
    --pm-radius-md: 17px;
    --pm-shadow: 0 10px 30px rgba(41, 72, 70, 0.10);
    --pm-shadow-hover: 0 16px 38px rgba(41, 72, 70, 0.17);
}

/* خلفية المتجر والخط الأساسي */
body {
    background:
        radial-gradient(
            circle at 8% 8%,
            rgba(172, 217, 223, 0.22),
            transparent 24rem
        ),
        radial-gradient(
            circle at 92% 24%,
            rgba(243, 199, 99, 0.15),
            transparent 22rem
        ),
        #f7f5f1 !important;

    color: var(--pm-text);
    font-family: "Tajawal", "PingARLT", Arial, sans-serif !important;
}

/* الخط الكرتوني للعناوين */
h1,
h2,
h3,
h4,
.s-block__title,
.s-block__title h2,
.s-block__title h3,
.s-product-card-content-title,
.slide--cat-entry h2,
.slide--cat-entry h3 {
    color: var(--pm-primary-dark) !important;
    font-family: "Baloo Bhaijaan 2", "Tajawal", sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

p,
li,
input,
textarea,
select,
button,
.s-button-btn {
    font-family: "Tajawal", "PingARLT", Arial, sans-serif !important;
}

::selection {
    background: var(--pm-sky);
    color: var(--pm-primary-dark);
}

/* رأس المتجر والقائمة */
header,
.store-header,
.main-nav-container {
    background: rgba(255, 255, 255, 0.97) !important;
}

.main-nav-container {
    border-bottom: 1px solid rgba(71, 100, 99, 0.10);
    box-shadow: 0 5px 20px rgba(41, 72, 70, 0.06);
}

.main-menu li > a {
    color: var(--pm-text) !important;
    font-family: "Baloo Bhaijaan 2", "Tajawal", sans-serif !important;
    font-size: 1.03rem;
    font-weight: 600;
    transition: color 180ms ease;
}

.main-menu li > a:hover,
header a:hover {
    color: var(--pm-coral) !important;
}

/* البحث والحقول */
input,
textarea,
select,
.s-search-input,
.form-input {
    background-color: #ffffff !important;
    border: 1px solid var(--pm-border) !important;
    border-radius: 15px !important;
    color: var(--pm-text) !important;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

input:focus,
textarea:focus,
select:focus,
.s-search-input:focus,
.form-input:focus {
    border-color: var(--pm-primary) !important;
    box-shadow: 0 0 0 4px rgba(71, 100, 99, 0.12) !important;
    outline: none !important;
}

/* الأزرار */
.s-button-btn,
.btn,
button {
    border-radius: 999px !important;
    font-weight: 700 !important;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease !important;
}

.s-button-primary,
.btn--primary,
button[type="submit"] {
    background-color: var(--pm-primary) !important;
    border-color: var(--pm-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 7px 18px rgba(71, 100, 99, 0.22);
}

.s-button-primary:hover,
.btn--primary:hover,
button[type="submit"]:hover {
    background-color: var(--pm-primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 11px 24px rgba(41, 72, 70, 0.27);
}

.s-button-light,
.btn--light,
.s-button-outline {
    background-color: var(--pm-cream) !important;
    border-color: rgba(71, 100, 99, 0.22) !important;
    color: var(--pm-primary-dark) !important;
}

/* عناوين الأقسام */
.s-block__title h2,
.s-block__title h3 {
    position: relative;
    display: inline-block;
    font-size: clamp(1.45rem, 2.5vw, 2rem) !important;
}

.s-block__title h2::after,
.s-block__title h3::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -7px;
    width: 58%;
    height: 5px;
    background: linear-gradient(
        90deg,
        var(--pm-coral),
        var(--pm-yellow)
    );
    border-radius: 999px;
}

/* البانر الرئيسي */
section.s-block--fixed-banner.wide-placeholder {
    margin-top: 0;
}

section.s-block--fixed-banner.wide-placeholder .container {
    width: 100%;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.banner--fixed img {
    width: 100%;
    background-color: transparent !important;
    border-radius: 0 !important;
}

/* البانرات الصغيرة */
.banner-entry {
    height: 230px;
    background-color: transparent !important;
    background-size: contain !important;
    border-radius: var(--pm-radius-lg) !important;
    box-shadow: var(--pm-shadow);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.banner-entry:hover {
    transform: translateY(-4px);
    box-shadow: var(--pm-shadow-hover);
}

.two-row .banner-entry:first-child {
    height: 100%;
    background-size: cover !important;
}

/* التصنيفات */
section.s-block--categories.merge-with-top-component.merged-has-no-title {
    position: relative;
    z-index: 3;
    margin-top: -4.5rem;
}

section.s-block--categories.merge-with-top-component.merged-has-no-title .container {
    width: 86%;
    max-width: 1280px;
}

salla-slider .slide--one-sixth {
    width: 220px !important;
}

.slide--cat-entry {
    height: 200px !important;
    padding: 1.1rem !important;
    background: rgba(255, 255, 255, 0.97) !important;
    border: 1px solid rgba(71, 100, 99, 0.10) !important;
    border-radius: var(--pm-radius-lg) !important;
    box-shadow: var(--pm-shadow);
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.slide--cat-entry:hover {
    border-color: rgba(238, 135, 111, 0.50) !important;
    transform: translateY(-6px) rotate(-0.5deg);
    box-shadow: var(--pm-shadow-hover);
}

.slide--cat-entry img,
img.w-16.h-16.object-cover.rounded-full.mb-2\.5 {
    width: 6rem !important;
    height: 6rem !important;
    background: var(--pm-cream);
    border: 4px solid #ffffff;
    box-shadow: 0 6px 18px rgba(41, 72, 70, 0.14);
}

/* بطاقات المنتجات */
.s-product-card-entry {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(71, 100, 99, 0.10) !important;
    border-radius: var(--pm-radius-lg) !important;
    box-shadow: var(--pm-shadow);
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.s-product-card-entry:hover {
    border-color: rgba(172, 217, 223, 0.95) !important;
    transform: translateY(-6px);
    box-shadow: var(--pm-shadow-hover);
}

.s-product-card-image {
    overflow: hidden;
    background: linear-gradient(
        145deg,
        #ffffff,
        var(--pm-cream)
    ) !important;
}

.s-product-card-image img {
    transition: transform 350ms ease !important;
}

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

.s-product-card-content {
    padding: 1rem !important;
}

.s-product-card-content-title a,
.s-product-card-content-title {
    color: var(--pm-text) !important;
    font-family: "Baloo Bhaijaan 2", "Tajawal", sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    line-height: 1.55 !important;
}

.s-product-card-price,
.s-product-card-sale-price,
.s-product-card-sale-price h4 {
    color: var(--pm-primary-dark) !important;
    font-weight: 800 !important;
}

.s-product-card-promotion-title,
.s-product-card-promotion-title h4 {
    color: var(--pm-coral) !important;
}

.s-product-card-wishlist-btn button,
.s-product-card-quick-view-btn button {
    background-color: rgba(255, 255, 255, 0.92) !important;
    color: var(--pm-primary) !important;
    box-shadow: 0 5px 14px rgba(41, 72, 70, 0.12);
}

/* شارات الخصم والعروض */
.s-product-card-promotion,
.s-product-card-out-of-stock,
.badge,
.s-badge {
    border-radius: 999px !important;
    font-weight: 700 !important;
}

/* مميزات المتجر */
.s-block--features__item {
    background: #ffffff !important;
    border: 1px solid rgba(71, 100, 99, 0.10);
    border-radius: var(--pm-radius-lg) !important;
    box-shadow: var(--pm-shadow);
}

.feature-icon {
    background: linear-gradient(
        145deg,
        var(--pm-primary),
        var(--pm-primary-dark)
    ) !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 18px rgba(71, 100, 99, 0.22);
}

.s-block--features__item .feature-icon i {
    color: #ffffff !important;
}

/* صفحة المنتج */
.product-entry,
.product-tabs,
.s-comments-product,
.s-reviews-container,
.content-entry,
.accordion-item {
    background-color: #ffffff !important;
    border: 1px solid rgba(71, 100, 99, 0.10) !important;
    border-radius: var(--pm-radius-md) !important;
    box-shadow: 0 7px 22px rgba(41, 72, 70, 0.07);
}

.breadcrumb a {
    color: var(--pm-muted) !important;
}

.breadcrumb a:hover {
    color: var(--pm-coral) !important;
}

/* أسهم السلايدر */
.s-slider-nav-arrow {
    background-color: var(--pm-primary) !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: 0 6px 16px rgba(41, 72, 70, 0.20);
}

.s-slider-nav-arrow svg {
    width: 28px !important;
    fill: #ffffff !important;
    opacity: 1 !important;
}

/* تذييل المتجر */
footer.store-footer {
    margin-top: 3rem;
    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(172, 217, 223, 0.12),
            transparent 20rem
        ),
        var(--pm-primary-dark) !important;

    color: rgba(255, 255, 255, 0.88) !important;
    border-radius: 28px 28px 0 0;
}

footer.store-footer h3,
footer.store-footer h4 {
    color: #ffffff !important;
}

footer.store-footer a {
    color: rgba(255, 255, 255, 0.84) !important;
    transition: color 180ms ease;
}

footer.store-footer a:hover {
    color: var(--pm-yellow) !important;
}

/* تصميم الجوال */
@media (max-width: 768px) {
    :root {
        --pm-radius-lg: 18px;
        --pm-radius-md: 14px;
    }

    section.s-block--categories.merge-with-top-component.merged-has-no-title {
        margin-top: -1rem;
    }

    section.s-block--categories.merge-with-top-component.merged-has-no-title .container {
        width: 94%;
    }

    salla-slider .slide--one-sixth {
        width: 154px !important;
    }

    .slide--cat-entry {
        height: 178px !important;
        padding: 0.9rem !important;
    }

    .slide--cat-entry img,
    img.w-16.h-16.object-cover.rounded-full.mb-2\.5 {
        width: 5rem !important;
        height: 5rem !important;
    }

    .grid.md\:grid-cols-3.two-row.grid-flow-row.gap-3.sm\:gap-8 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .banner-entry {
        height: 85px;
        border-radius: 14px !important;
    }

    .swiper-slide {
        width: 56%;
    }

    .s-product-card-content {
        padding: 0.8rem !important;
    }

    .s-product-card-content-title a,
    .s-product-card-content-title {
        font-size: 0.98rem !important;
    }

    footer.store-footer {
        text-align: center;
        border-radius: 20px 20px 0 0;
    }

    .store-footer a,
    .s-social-list {
        justify-content: center;
    }
}

/* تقليل الحركة لمن يفضل ذلك */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}/* إصلاح وضوح ألوان الفوتر */
footer.store-footer,
.store-footer__inner,
footer.store-footer .store-footer__inner {
    background: #294846 !important;
    color: #ffffff !important;
}

/* عناوين الفوتر */
footer.store-footer h3,
footer.store-footer h