/* ============================================================
   01 — طيب المستكة | BRAND COLORS
   ============================================================ */

:root {
    --tm-rose: #e8b5a6;
    --tm-rose-dark: #c98276;
    --tm-rose-deep: #b86f66;

    --tm-blush: #f4d8d0;
    --tm-blush-2: #fae9e4;
    --tm-blush-3: #fdf4f1;

    --tm-cream: #fffaf7;
    --tm-cream-2: #fff6f1;

    --tm-brown: #765b52;
    --tm-brown-dark: #624940;
    --tm-muted: #9b8179;

    --tm-border: #eedbd4;
--tm-white: #ffffff;
}

/* خلفية المتجر فقط */
body {
    background: var(--tm-cream) !important;
 color: var(--tm-brown);
}

/* ============================================================
   02 — طيب المستكة | TOP BAR
   ============================================================ */

.top-navbar {
    background: linear-gradient(
        90deg,
        #dfa296 0%,
        var(--tm-rose) 48%,
        #e6ad9f 100%
    ) !important;

    color: #fff !important;

    border: none !important;
}

.top-navbar::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    height: 1px;

    background: rgba(255, 255, 255, 0.28);

    pointer-events: none;
}

.s-menu-topnav-list a {
    color: #fff !important;
}

.s-contacts-header {
    color: #fff !important;
}

/* ============================================================
   03 — طيب المستكة | LOGO + HEADER BUTTONS
   ============================================================ */

.navbar-brand {
    position: relative;
    z-index: 2;
}

.navbar-brand img {
    width: auto;
    max-width: 145px;
    max-height: 68px;
    object-fit: contain;

    transition: transform 0.35s ease;
}

.navbar-brand img:hover {
    transform: translateY(-2px) scale(1.025);
}


/* أزرار البحث والحساب والسلة */

.header-btn__icon {
    display: flex;

    width: 43px;
    height: 43px;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    border: 1px solid var(--tm-border) !important;

    background: var(--tm-blush-3) !important;

    color: var(--tm-brown) !important;

    box-shadow: 0 2px 10px rgba(118, 91, 82, 0.05);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

.header-btn__icon:hover {
    transform: translateY(-3px);

    background: var(--tm-rose) !important;

    color: #fff !important;
}

.s-cart-summary-total {
    color: var(--tm-brown-dark) !important;
    font-weight: 700;
}

/* ============================================================
   04 — طيب المستكة | SECTION TITLES
   ============================================================ */

.s-block__title,
.s-slider-block__title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
    text-align: center;
}

.s-slider-block__title h2,
.s-block__title .right-side {
    position: relative;
    display: inline-block;

    margin: 0;
    padding: 0 20px 12px;

    color: var(--tm-brown-dark);

    font-size: 21px;
    line-height: 1.5;
    font-weight: 700;

    letter-spacing: -0.2px;
}

.s-slider-block__title h2::after,
.s-block__title .right-side::after {
    content: "";

    position: absolute;
    left: 50%;
    bottom: 0;

    width: 55px;
    height: 3px;

    border-radius: 50px;

    background: linear-gradient(
        90deg,
        var(--tm-rose),
        var(--tm-rose-dark)
    );

    transform: translateX(-50%);

    pointer-events: none;
}

.s-slider-block__title h2::before,
.s-block__title .right-side::before {
    content: "✦";

    position: absolute;
    left: 50%;
    bottom: -6px;

    color: var(--tm-rose-dark);

    font-size: 9px;
    line-height: 1;

    transform: translateX(-50%);

    pointer-events: none;
}

/* ============================================================
   05 — طيب المستكة | BANNER
   ============================================================ */

.banner--fixed {
    position: relative;
    overflow: hidden;

    border-radius: 32px;

    background: var(--tm-blush);

    box-shadow:
        0 7px 25px rgba(118, 91, 82, 0.08);
}

.banner--fixed::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0) 55%,
            rgba(100, 70, 60, 0.06) 100%
        );
}

.banner--fixed img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: cover;

    border-radius: 32px;

    transition:
        transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.banner--fixed:hover img {
    transform: scale(1.025);
}


/* الجوال */
@media (max-width: 767px) {
    .banner--fixed,
    .banner--fixed img {
        border-radius: 20px;
    }
}

/* ============================================================
   06 — طيب المستكة | PRODUCT CARDS
   ============================================================ */

.s-product-card-entry {
    position: relative;

    background: rgba(255, 255, 255, 0.94) !important;

    border: 1px solid var(--tm-border);

    border-radius: 24px !important;

    box-shadow:
        0 2px 10px rgba(118, 91, 82, 0.05);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.3s ease;
}


/* لمعة بسيطة أعلى البطاقة */

.s-product-card-entry::before {
    content: "";

    position: absolute;

    top: 0;
    left: 12%;
    right: 12%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.95),
            transparent
        );

    pointer-events: none;

    z-index: 2;
}


/* حركة البطاقة */

.s-product-card-entry:hover {
    transform: translateY(-5px);

    border-color:
        var(--tm-blush);

    box-shadow:
        0 20px 48px rgba(118, 91, 82, 0.12);
}


/* صورة المنتج */

.s-product-card-entry .s-product-card-image {
    position: relative;

    overflow: hidden;

    background:
        var(--tm-cream-2);
}

.s-product-card-entry img {
    transition:
        transform 0.5s ease;
}

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


/* اسم المنتج */

.s-product-card-entry h3,
.s-product-card-entry h4 {
    color:
        var(--tm-brown-dark);

    font-weight:
        700;

    line-height:
        1.65;
}

.s-product-card-entry h3 {
    transition:
        color 0.25s ease;
}

.s-product-card-entry:hover h3 {
    color:
        var(--tm-rose-dark);
}


/* السعر */

.s-product-card-price,
.s-product-card-sale-price h4 {
    color:
        var(--tm-rose-deep) !important;

    font-size:
        18px;

    font-weight:
        700;
}


/* الجوال */

@media (max-width: 767px) {
    .s-product-card-entry {
        border-radius: 17px !important;
    }

    .s-product-card-price,
    .s-product-card-sale-price h4 {
        font-size: 16px;
    }
}

/* ============================================================
   07 — طيب المستكة | PRODUCT BUTTON
   ============================================================ */

.s-product-card-entry .s-button-btn {
    min-height: 40px;

    padding: 7px 17px;

    border: 1px solid var(--tm-rose) !important;

    border-radius: 20px !important;

    background: var(--tm-rose) !important;

    color: #fff !important;

    font-size: 13px;

    box-shadow: none;
}

.s-product-card-entry .s-button-btn:hover {
    background: var(--tm-rose-dark) !important;

    border-color: var(--tm-rose-dark) !important;

    transform: translateY(-2px);

    box-shadow:
        0 7px 16px rgba(201, 130, 118, 0.18);
}


/* حماية الجوال */
@media (max-width: 767px) {
    .s-product-card-entry .s-button-btn {
        min-height: 40px;
        padding: 7px 14px;
        font-size: 13px;
    }
}

/* ============================================================
   08 — طيب المستكة | CATEGORIES
   ============================================================ */

.slide--cat-entry {
    display: flex;

    min-height: 170px;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 12px;

    text-align: center;

    background: transparent !important;

    border: none !important;
}


/* صورة التصنيف */

.slide--cat-entry img {
    width: 112px;
    height: 112px;

    object-fit: cover;

    border-radius: 50%;

    border: 5px solid var(--tm-blush-2);

    box-shadow:
        0 5px 20px rgba(118, 91, 82, 0.08);

    transition:
        transform 0.35s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* عند المرور */

.slide--cat-entry:hover img {
    transform:
        translateY(-5px) rotate(1deg);

    border-color:
        var(--tm-blush);

    box-shadow:
        0 12px 25px rgba(118, 91, 82, 0.12);
}


/* اسم التصنيف */

.slide--cat-entry h2 {
    margin-top: 13px;

    color:
        var(--tm-brown);

    font-size: 14px;

    line-height: 1.5;

    font-weight: 700;

    transition:
        color 0.25s ease;
}

.slide--cat-entry:hover h2 {
    color:
        var(--tm-rose-dark);
}


/* حماية الجوال */

@media (max-width: 767px) {
    .slide--cat-entry {
        min-height: 140px;
    }

    .slide--cat-entry img {
        width: 90px;
        height: 90px;
    }
}

/* ============================================================
   09 — طيب المستكة | FEATURES
   ============================================================ */

.s-block--features__item {
    position: relative;

    overflow: hidden;

    padding: 25px 18px;
    margin: 0 6px;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            var(--tm-blush-3) 100%
        );

    border: 1px solid var(--tm-border);

    border-radius: 24px;

    color: var(--tm-brown);

    box-shadow:
        0 2px 10px rgba(118, 91, 82, 0.05);

    animation: none;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


/* زخرفة خفيفة */

.s-block--features__item::before {
    content: "";

    position: absolute;

    width: 90px;
    height: 90px;

    right: -35px;
    top: -35px;

    border-radius: 50%;

    background:
        var(--tm-blush);

    opacity: 0.35;

    pointer-events: none;
}


/* حركة المميزات */

.s-block--features__item:hover {
    transform: translateY(-5px);

    box-shadow:
        0 14px 40px rgba(118, 91, 82, 0.12);
}


/* الأيقونة */

.s-block--features__item .feature-icon {
    position: relative;

    z-index: 2;

    display: flex;

    width: 58px;
    height: 58px;

    margin: 0 auto 15px;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--tm-white);

    border: 1px solid var(--tm-blush);

    box-shadow:
        0 5px 16px rgba(118, 91, 82, 0.07);
}

.s-block--features__item .feature-icon i {
    color:
        var(--tm-rose-dark);

    font-size: 24px;
}


/* العنوان */

.s-block--features__item h2 {
    position: relative;

    z-index: 2;

    color:
        var(--tm-brown-dark);

    font-size: 15px;

    font-weight: 700;
}


/* الوصف */

.s-block--features__item p {
    position: relative;

    z-index: 2;

    margin-top: 6px;

    color:
        var(--tm-muted);

    font-size: 13px;

    line-height: 1.8;
}


/* الجوال */

@media (max-width: 767px) {
    .s-block--features__item {
        padding: 20px 12px;
        border-radius: 17px;
    }
}

/* ============================================================
   10 — طيب المستكة | GENERAL BUTTONS
   ============================================================ */

.s-button-btn {
    min-height: 44px;

    padding: 9px 23px;

    border: 1px solid var(--tm-rose) !important;

    border-radius: 24px !important;

    background: var(--tm-rose) !important;

    color: #fff !important;

    font-size: 14px;

    font-weight: 700;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.s-button-btn:hover {
    background: var(--tm-rose-dark) !important;

    border-color: var(--tm-rose-dark) !important;

    color: #fff !important;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(201, 130, 118, 0.18);
}


/* حماية الجوال */

@media (max-width: 767px) {
    .s-button-btn {
        min-height: 42px;
        padding: 8px 18px;
        font-size: 13px;
    }
}

/* ============================================================
   11 — طيب المستكة | WIDE BUTTON
   ============================================================ */

.s-button-wide {
    width: 100%;

    min-height: 46px;

    border: 1px solid var(--tm-rose) !important;

    border-radius: 25px !important;

    background: transparent !important;

    color: var(--tm-rose-dark) !important;

    box-shadow: none !important;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.s-button-wide:hover {
    background: var(--tm-rose) !important;

    color: #fff !important;

    border-color: var(--tm-rose) !important;
}


/* حماية الجوال */

@media (max-width: 767px) {
    .s-button-wide {
        min-height: 44px;
    }
}

/* ============================================================
   12 — طيب المستكة | FEATURES TITLE
   ============================================================ */

.s-block--features .s-block__title {
    text-align: center;
}

.s-block--features .s-block__title h2 {
    color: var(--tm-brown-dark);
    font-weight: 700;
}

.s-block--features .s-block__title h2::after {
    content: "";
    display: block;

    width: 55px;
    height: 3px;

    margin: 8px auto 0;

    border-radius: 50px;

    background: linear-gradient(
        90deg,
        var(--tm-rose),
        var(--tm-rose-dark)
    );
}

/* ============================================================
   13 — طيب المستكة | FOOTER
   ============================================================ */

.footer-is-light .store-footer {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #f8dfd8 0%,
            #f5d8d0 100%
        ) !important;

    color: var(--tm-brown);

    border: none !important;

    border-radius: 30px 30px 0 0;
}


/* زخرفة خلفية */

.footer-is-light .store-footer::before {
    content: "";

    position: absolute;

    width: 230px;
    height: 230px;

    left: -120px;
    bottom: -120px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.23);

    pointer-events: none;
}

.footer-is-light .store-footer::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: -90px;
    top: -100px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.18);

    pointer-events: none;
}


/* محتوى الفوتر */

.store-footer__inner {
    position: relative;

    z-index: 2;

    background: transparent !important;

    border: none !important;

    padding: 45px 25px 25px;
}


/* عناوين الفوتر */

.store-footer__inner h3 {
    display: inline-block;

    margin: 0 auto 14px;

    padding: 7px 18px;

    color: var(--tm-brown-dark) !important;

    background: rgba(255, 255, 255, 0.55) !important;

    border: 1px solid rgba(255, 255, 255, 0.65) !important;

    border-radius: 20px;

    font-size: 16px;

    line-height: 1.5;

    font-weight: 700;
}


/* نص الفوتر */

.store-footer p {
    width: 100%;

    margin: 0 auto 8px;

    color: var(--tm-brown) !important;

    text-align: center;

    font-size: 13px;

    line-height: 1.9;
}


/* روابط الفوتر */

.store-footer a {
    color: var(--tm-brown-dark) !important;

    transition: color 0.25s ease;
}

.store-footer a:hover {
    color: var(--tm-rose-dark) !important;
}


/* الجوال */

@media (max-width: 767px) {
    .store-footer__inner {
        padding: 35px 15px 20px;
    }

    .footer-is-light .store-footer {
        border-radius: 20px 20px 0 0;
    }
}

/* ============================================================
   15 — طيب المستكة | SOCIAL ICONS
   ============================================================ */

.s-social-list,
.s-contacts-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.s-contacts-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(118, 91, 82, 0.18) !important;

    background: rgba(255, 255, 255, 0.55);

    color: var(--tm-brown) !important;

    border-radius: 50%;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.s-contacts-icon:hover {
    background: var(--tm-white);

    color: var(--tm-rose-dark) !important;

    transform: translateY(-3px);
}

/* ============================================================
   16 — طيب المستكة | COPYRIGHT
   ============================================================ */

.copyright-text {
    margin-top: 20px;
    margin-bottom: 15px;

    color: var(--tm-muted) !important;

    font-size: 12px;
}

.copyright-text a {
    color: var(--tm-rose-dark) !important;
}

/* ============================================================
   17 — طيب المستكة | DESKTOP SPACING
   ============================================================ */

@media (min-width: 1024px) {
    .s-block {
        margin-bottom: 30px;
    }
}


/* ============================================================
   19 — طيب المستكة | SOFT SCROLLBAR
   ============================================================ */

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: var(--tm-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--tm-blush);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--tm-rose);
}

/* ============================================================
   20 — طيب المستكة | MOBILE PROTECTION — SAFE
   ============================================================ */

html,
body {
    max-width: 100%;
}

body {
    overflow-x: clip;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   21 — طيب المستكة | MOBILE HEADER
   ============================================================ */

@media (max-width: 767px) {

    .navbar-brand img {
        max-width: 108px;
        max-height: 55px;
    }

    .header-btn__icon {
        width: 39px;
        height: 39px;
    }

}

/* ============================================================
   22 — طيب المستكة | MOBILE SECTION TITLES
   ============================================================ */

@media (max-width: 767px) {

    .s-slider-block__title h2,
    .s-block__title .right-side {
        font-size: 18px;
        padding: 0 15px 10px;
    }

}

/* ============================================================
   23 — طيب المستكة | MOBILE PRODUCT CARDS
   ============================================================ */

@media (max-width: 767px) {

    .s-product-card-entry {
        border-radius: 17px !important;
    }

    .s-product-card-price,
    .s-product-card-sale-price h4 {
        font-size: 16px;
    }

}

/* ============================================================
   24 — طيب المستكة | MOBILE BUTTONS
   ============================================================ */

@media (max-width: 767px) {

    .s-button-btn {
        min-height: 42px;
        padding: 8px 18px;
        font-size: 13px;
    }

}

/* ============================================================
   25 — طيب المستكة | MOBILE CATEGORIES
   ============================================================ */

@media (max-width: 767px) {

    .slide--cat-entry {
        min-height: 140px;
    }

    .slide--cat-entry img {
        width: 90px;
        height: 90px;
    }

}

/* ============================================================
   26 — طيب المستكة | MOBILE FEATURES
   ============================================================ */

@media (max-width: 767px) {

    .s-block--features__item {
        padding: 20px 12px;
        border-radius: 17px;
    }

}

/* ============================================================
   27 — طيب المستكة | MOBILE BANNER
   ============================================================ */

@media (max-width: 767px) {

    .banner--fixed,
    .banner--fixed img {
        border-radius: 20px;
    }

}

/* ============================================================
   28 — طيب المستكة | MOBILE FOOTER
   ============================================================ */

@media (max-width: 767px) {

    .store-footer__inner {
        padding: 35px 15px 20px;
    }

    .footer-is-light .store-footer {
        border-radius: 20px 20px 0 0;
    }

}

/* ============================================================
   29 — طيب المستكة | VERY SMALL MOBILE
   ============================================================ */

@media (max-width: 420px) {

    .s-product-card-entry {
        border-radius: 15px !important;
    }

    .s-button-btn {
        padding: 8px 17px;
        font-size: 13px;
    }

}

/* ============================================================
   30 — طيب المستكة | DESKTOP TOP BAR
   ============================================================ */

@media (min-width: 1024px) {

    .top-navbar {
        padding-top: 7px;
        padding-bottom: 7px;
    }

}

/* ============================================================
   31 — طيب المستكة | DESKTOP FEATURES
   ============================================================ */

@media (min-width: 1280px) {

    .s-block--features {
        padding-left: 12px;
        padding-right: 12px;
    }

}

/* ============================================================
   32 — طيب المستكة | SOFT IMAGE MOTION
   ============================================================ */

.s-product-card-entry img {
    transition: transform 0.5s ease;
}

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

.banner--fixed img {
    transition: transform 0.8s ease;
}

.banner--fixed:hover img {
    transform: scale(1.025);
}

/* ============================================================
   33 — طيب المستكة | REMOVE OLD FEATURE ANIMATION
   ============================================================ */

.s-block--features__item {
    animation: none !important;
}

/* ============================================================
   34 — طيب المستكة | PRODUCT CARD STABILITY
   ============================================================ */

.s-product-card-entry:hover {
    border-radius: 24px !important;
}

/* ============================================================
   35 — طيب المستكة | REDUCED MOTION — SAFE
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .s-product-card-entry,
    .banner--fixed img,
    .s-block--features__item,
    .header-btn__icon,
    .s-button-btn {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}

/* ============================================================
   37 — طيب المستكة | SALLA PRODUCT SLIDER PROTECTION
   ============================================================ */

/* السماح لمكون منتجات سلة بالظهور طبيعيًا */
salla-products-slider,
salla-slider,
custom-salla-product-card,
salla-product-card {
    visibility: visible !important;
    opacity: 1 !important;
}

/* مكون المنتجات نفسه */
salla-products-slider {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

/* بطاقات المنتجات */
custom-salla-product-card,
salla-product-card {
    display: block;
    min-width: 0;
}

/*
   مهم:
   لا نضع هنا display / transform / width
   على swiper-wrapper أو swiper-slide.
   سلة هي التي تتحكم بها.
*/