:root {
    --background: 240 4.8% 95.9%;
    --text: 240 10% 3.9%;
    --warning: 0 72% 51%;
    --success: 142 71% 45%;
    --success-secondary: 160 84% 39%;
    --muted: 0 0% 100%;
    --border: 240 5.9% 90%;
    --primary: 199 89% 50%;
    --primary-btn: 198 93% 45%;
    --secondary: 240 6% 90%;
    --ring: 240 10% 3.9%;
    --radius: 0.5rem;
}

.dark {
    --background: 240 10% 3.9%;
    --text: 0 0% 98%;
    --warning: 0 84% 60%;
    --success: 142 69% 58%;
    --success-secondary: 161 94% 30%;
    --muted: 270 4% 10%;
    --border: 240 3.7% 15.9%;
    --primary: 198 93% 57%;
    --primary-btn: 198 93% 38%;
    --secondary: 240 4% 16%;
    --ring: 240 4.9% 83.9%;
}

input {

    &
    :-webkit-autofill,
    &
    :-webkit-autofill:hover {
        -webkit-text-fill-color: hsl(var(--text));
        -webkit-box-shadow: 0 0 0 40rem hsl(var(--muted)) inset,
        0 0 0 1px hsl(var(--muted)) inset;
    }

    &
    :-webkit-autofill:focus {
        -webkit-text-fill-color: hsl(var(--text));
        -webkit-box-shadow: 0 0 0 40rem hsl(var(--muted)) inset,
        0 0 0 1px hsl(var(--muted)) inset;
    }

}

::selection {
    background: #8884;
}

::-webkit-scrollbar {
    width: .34rem;
    height: .5rem
}

::-webkit-scrollbar-track {
    background-color: hsl(var(--muted)) !important
}

::-webkit-scrollbar-thumb {
    border-radius: calc(var(--radius) - 4px);
    background-color: hsl(var(--secondary)) !important
}


html {
    scrollbar-color: hsl(215.4 16.3% 46.9% / .3)
}

html.dark {
    scrollbar-color: hsl(215.4 16.3% 56.9% / .3)
}


::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-old(root) {
    z-index: 1;
}

::view-transition-new(root) {
    z-index: 2147483646;
}

.dark::view-transition-old(root) {
    z-index: 2147483646;
}

.dark::view-transition-new(root) {
    z-index: 1;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button,
input[type="number"] {
    -webkit-appearance: none;
    margin: 0;
    -moz-appearance: textfield !important;
}


.scroll-lock {
    overflow-y: scroll;
    position: fixed;
    width: 100%;
    top: var(--window-scroll-top);
}

:root {
    overflow-y: scroll;
}

* {
    border-color: hsl(var(--border));
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--text));
}

@media only screen and (min-width: 1024px) {

    .border-gradient::before {
        background: radial-gradient(
                300px circle at var(--x) var(--y),
                hsl(var(--primary)) 0,
                transparent 100%
        );
    }

}


.swiper-button-prev,
.swiper-button-next {
    background-color: #09090b;
    color: #ffffff;
}


.swiper-button-prev,
.swiper-button-next {
    width: 40px;
    height: 40px;

}

.swiper .swiper-pagination-bullet,
.swiper .swiper-pagination-bullet-active {
    background-color: black; /* bg-black */
    transition: all 0.3s; /* transition-all duration-300 */
    height: 0.375rem; /* h-1.5 (1.5 * 0.25rem) */
    width: 0.375rem; /* w-1.5 (1.5 * 0.25rem) */
}

.swiper .swiper-pagination-bullet-active {
    width: 1.25rem; /* w-5 (5 * 0.25rem) */
    border-radius: 0.5rem; /* rounded-lg */
    background-color: hsl(var(--primary)); /* bg-primary (replace #primary with the actual color value) */
}

/* برای صفحه سبد خرید */
body.cart-page .ad-banner {
    display: none;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #3b82f6;
    color: white;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    padding: 3px 6px;
    min-width: 18px;
    text-align: center;
    line-height: 1;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}


.image-box {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 1rem !important;
    margin-bottom: 15px;
    width: 100% !important;
}

.image-wrapper {
    border: 1px solid #ddd !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
    background-color: #fff !important;
    padding: 0.5rem !important;
    box-sizing: border-box !important;
}

.image-frame {
    width: 100% !important;
    height: 120px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #fff !important;
}

.image-element {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    border-radius: 0.25rem !important;
}

.image-caption {
    font-size: 0.875rem !important;
    text-align: center !important;
    color: #4B5563 !important;
    margin-top: 0.5rem !important;
}

/* ریسپانسیو موبایل */
@media (max-width: 640px) {
    .image-box {
        grid-template-columns: repeat(3, 1fr) !important; /* سه ستون در موبایل */
    }

    .image-frame {
        height: 65px !important;
    }

    .image-caption {
        font-size: 0.75rem !important;
    }
}


.instagram-icon {
    background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
}

.telegram-icon {
    color: #0088cc !important; /* رنگ آبی تلگرام */
}


/*//////////////////////////////////*/
/* استایل برای کانتینر نوار زیرنویس */
.news-ticker-container {
    width: 100%;
    background: linear-gradient(to right, #f2f1fb, #f4f3fd);
    color: black;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 30px;
    padding-right: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-top: 3px solid #6a5acd; /* خط بالا فیروزه‌ای ارغوانی */
}

/* استایل برای عنوان ثابت سمت راست */
.ticker-title-container {
    position: absolute;
    right: 0;
    padding: 12px 18px;
    background-color: #6a5acd; /* پس‌زمینه فیروزه‌ای ارغوانی */
    color: white;
    font-size: 18px;
    font-weight: 200;
    border-radius: 5px;
    z-index: 10;
}

/* تغییرات هنگام hover */
.ticker-title-container:hover {
    background-color: #483d8b; /* رنگ تیره‌تر برای عنوان در هنگام hover */
    transform: scale(1.05);
}

/* استایل برای حرکت متن */
.news-ticker {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: scroll-right 40s linear infinite;
    padding-left: 30px;
    gap: 20px;
    font-weight: 200;
}

/* استایل برای متن لینک‌ها */
.news-ticker a {
    text-decoration: none;
    color: black;
    font-weight: 200;
    padding: 12px 20px;
    font-size: 16px;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* تغییر رنگ لینک‌ها هنگام hover */
.news-ticker a:hover {
    color: #483d8b; /* رنگ لینک‌ها هنگام hover */
    transform: translateY(-2px);
}

/* انیمیشن حرکت متن از چپ به راست */
@keyframes scroll-right {
    0% {
        transform: translateX(-80%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* استایل برای صفحات موبایل */
@media (max-width: 768px) {
    .news-ticker-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .ticker-title-container {
        font-size: 14px;
        padding: 12px 10px;
    }

    .news-ticker a {
        font-size: 14px;
        padding: 10px 15px;
    }

    @keyframes scroll-right {
        0% {
            transform: translateX(-25%);
        }
        100% {
            transform: translateX(100%);
        }
    }
}


/*///////////////////////////////////*/
@media (max-width: 768px) {
    .amazing-banner-mobile {
        display: block !important;
    }

    .swiper-slide.amazing-banner {
        display: none !important;
    }
}


#sidebar {
    overflow-y: auto; /* فعال کردن اسکرول داخل سایدبار */
    max-height: 100vh; /* جلوگیری از خارج شدن از صفحه */
}


/*///////////////////////////////*/

#toggle-description {
    cursor: pointer;
    color: #2563eb;
    font-weight: 600;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

#toggle-description:hover {
    background-color: #2563eb;
    color: white;
}

#toggle-description::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.4s ease;
    margin-left: 4px;
    margin-top: 2px;
}

#toggle-description.expanded::after {
    transform: rotate(135deg);
}

#store-description {
    max-height: 150px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;
}

/* گرادیان فید در پایین متن */
#store-description::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px; /* ارتفاع منطقه سایه */
    pointer-events: none; /* تا کلیک دکمه رو نپوشونه */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    transition: opacity 0.5s ease;
}

/* وقتی بازه، گرادیان حذف میشه */
#store-description.expanded::after {
    opacity: 0;
}

/*/////////////////////////////////*/

.mobile-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* همه دکمه‌ها سمت راست */
    gap: 8px; /* فاصله بین دکمه‌ها */
}

.size-finder-btn {
    background-color: #1d4ed8;
    color: #fff;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap; /* متن در یک خط */
}

.size-finder-btn:hover {
    background-color: #1e40af;
}


/*/////////////////////////////////////*/
/* استایل کلی مدال */
#size-modal .bg-white {
    background: linear-gradient(to bottom, #ffffff, #f9fafb);
    border: 1px solid #e5e7eb;
    border-radius: 1rem; /* گوشه گردتر */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all .3s ease;
}

/* هدر */
#size-modal .border-b {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

#size-modal h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
}

/* لیبل‌ها */
#size-modal label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
    display: block;
}

/* ورودی‌ها */
#size-modal input,
#size-modal select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    background-color: #ffffff;
    transition: all .2s ease-in-out;
}

#size-modal input:focus,
#size-modal select:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* متن راهنما */
#size-modal p {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

#size-modal p a {
    color: #2563eb;
    text-decoration: none;
}

#size-modal p a:hover {
    text-decoration: underline;
}

/* دکمه ثبت */
#size-modal button[type="submit"] {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all .3s ease;
}

#size-modal button[type="submit"]:hover {
    background: linear-gradient(to right, #1d4ed8, #1e40af);
    box-shadow: 0 6px 16px rgba(29, 78, 216, 0.4);
    transform: translateY(-1px);
}

/* دکمه بستن */
#size-modal [data-modal-hide="size-modal"] {
    transition: transform .2s ease, color .2s ease;
}

#size-modal [data-modal-hide="size-modal"]:hover {
    color: #ef4444;
    transform: rotate(90deg);
}


.blog-title {
    color: #014f86; /* آبی نفتی */
    transition: color 0.3s ease;
}

.blog-title:hover {
    color: #01689b; /* کمی روشن‌تر هنگام هاور */
}

/*////////////////////////*/

/* قلب معمولی */
#story-like-button .i-lucide-heart {
    color: white;
    transition: color 0.3s ease, fill 0.3s ease;
    fill: none;
}

/* قلب پر (وقتی liked بشه) */
#story-like-button .i-lucide-heart.liked {
    color: red;
    fill: red; /* پر شدن داخل قلب */
}

[data-bar] {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 100%);
    transition: width 0.1s linear;
}

.w-full.h-1.bg-white\/30 {
    background-color: rgba(255, 255, 255, 0.3);
}

/*////////////////////////////////////*/

.shadow-3d {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05),
    0 2px 4px rgba(0, 0, 0, 0.05),
    0 3px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shadow-3d:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08),
    0 4px 6px rgba(0, 0, 0, 0.08),
    0 6px 8px rgba(0, 0, 0, 0.08);
}

.feature-slider .swiper-slide span {
    display: block;
    text-align: center; /* وسط چین کردن متن */
    line-height: 1.2; /* فاصله خطوط */
    word-break: break-word; /* شکستن متن اگر طولانی بود */
}

/*/////////////////////////////////*/
@media (max-width: 640px) {
    .mobile-padding {
        padding-left: 1.1rem; /* یا هر مقدار دلخواه */
        padding-right: 1.1rem;
    }
}

@media (min-width: 641px) {
    .mobile-padding {
        padding-left: 0;
        padding-right: 0;
    }
}

.parent-btn {
    background: #e0e0e0; /* خاکستری روشن */
    border-bottom: 1px solid #c0c0c0; /* خط زیر دکمه */
}


/*///////////////////////////////////////*/
@media (max-width: 640px) {
    /* هر محصول در یک ردیف */
    #product-list {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
        background-color: #ffffff; /* پس‌زمینه روشن پیشفرض */
    }

    /* حذف کارت‌بندی */
    #product-list > div {
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 10px !important;
        padding: 0 !important;
        background-color: #ffffff !important;
    }

    /* ساختار هر محصول افقی */
    #product-list > div > a {
        display: flex !important;
        flex-direction: row; /* تصویر سمت راست، متن سمت چپ (RTL) */
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 8px 0;
        background: none !important;
    }

    /* تصویر کمی کوچک‌تر */
    #product-list > div > a > div.bg-secondary {
        width: 40%;
        margin: 0 !important;
        padding: 0 !important;
        background-color: white;
    }

    #product-list > div > a > div.bg-secondary img {
        border-radius: 12px;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        width: 100%;
        height: auto;
    }

    /* بخش توضیحات */
    #product-list > div > a > div.mb-1 {
        width: 68%;
        padding: 0 !important;
    }

    #product-list > div > a > div.mb-1 p {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 4px;
        text-align: right;
    }

    /* قیمت */
    #product-list .text-primary {
        font-size: 14px !important;
    }

    /* نوار پیشرفت حذف شود */
    #product-list > div > a > div.h-8 {
        display: none;
    }

    /* درصد تخفیف کارت محصول سمت چپ بالای کارت */
    #product-list .bg-warning {
        font-size: 11px !important;
        left: 4px !important;
        right: auto !important;
        top: 4px !important;
    }

    /* خط نازک بین محصولات */
    #product-list > div:not(:last-child) {
        border-bottom: 1px solid #e5e7eb;
    }

    /* نام محصول مستقل */
    #product-list > div > a > div.mb-1 p:first-child {
        display: inline-block;
        position: relative;
        top: 27px;
        margin: 0 0 4px 0;
    }

    .special-sale-label {
        display: block;
        margin-bottom: 4px;
        color: red;
        font-weight: bold;
        font-size: 12px;
    }

    /* حالت تاریک */
    html.dark #product-list {
        background-color: black;
    }

    html.dark #product-list > div {
        background-color: black !important;
    }

    html.dark #product-list > div > a > div.mb-1 {
        color: #f3f4f6;
    }

    html.dark #product-list > div > a > p {
        color: red;
    }

    html.dark #product-list .text-primary {
        color: #f59e0b !important; /* رنگ قیمت */
    }

    html.dark .special-sale-label {
        color: #f87171; /* فروش ویژه */
    }

    html.dark #product-list > div:not(:last-child) {
        border-bottom: 1px solid #374151;
    }

    html.dark #product-list > div > a > div.mb-1 p.bg-red-500 {
        background-color: #b91c1c; /* موجودی تمام شده */
    }

    html.dark #product-list > div > a > div.bg-secondary {
        background-color: black !important; /* تصویر تیره شود */
    }


}

/* درصد تخفیف کارت محصول سمت چپ بالای کارت */
#product-list .bg-warning {
    font-size: 15px !important;
    left: 4px !important; /* انتقال به سمت چپ */
    right: auto !important;
    top: 4px !important;
}

/* حالت تاریک کارت امتیاز و دیدگاه کاربران */
html.dark .hidden.md\:block.col-span-12.md\:col-span-4.lg\:col-span-3 > div {
    background-color: #1f2937 !important; /* پس‌زمینه تیره */
    color: #f3f4f6 !important; /* متن روشن */
    border-color: #374151 !important; /* مرزها کمی تیره‌تر */
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.05); /* سایه مناسب تاریک */
}

/* عنوان کارت */
html.dark .hidden.md\:block.col-span-12.md\:col-span-4.lg\:col-span-3 h3 {
    border-color: #f87171 !important; /* رنگ مرز قرمز مناسب تاریک */
    color: #f3f4f6 !important;
}

/* متن توضیحات */
html.dark .hidden.md\:block.col-span-12.md\:col-span-4.lg\:col-span-3 p,
html.dark .hidden.md\:block.col-span-12.md\:col-span-4.lg\:col-span-3 span {
    color: #d1d5db !important; /* خاکستری روشن */
}

/* ستاره‌های خالی و پر */
html.dark .hidden.md\:block.col-span-12.md\:col-span-4.lg\:col-span-3 .star-rating {
    color: #9ca3af !important; /* ستاره‌های خالی روشن */
}

html.dark .hidden.md\:block.col-span-12.md\:col-span-4.lg\:col-span-3 .stars-inner {
    color: #fbbf24 !important; /* ستاره‌های پر طلایی */
}

/* دکمه ثبت دیدگاه */
html.dark .hidden.md\:block.col-span-12.md\:col-span-4.lg\:col-span-3 a.border-red-500 {
    border-color: #f87171 !important;
    color: #f87171 !important;
}

html.dark .hidden.md\:block.col-span-12.md\:col-span-4.lg\:col-span-3 a.hover\:bg-red-100:hover {
    background-color: rgba(248, 113, 113, 0.1) !important; /* نسخه ملایم برای hover */
}

/* نسخه موبایل کارت امتیاز و دیدگاه کاربران - حالت تاریک */
html.dark .block.md\:hidden.col-span-12.mb-6 > div {
    background-color: #1f2937 !important; /* پس‌زمینه تیره */
    color: #f3f4f6 !important; /* متن روشن */
    border-color: #374151 !important; /* مرزها کمی تیره‌تر */
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.05); /* سایه مناسب تاریک */
}

/* عنوان کارت */
html.dark .block.md\:hidden.col-span-12.mb-6 h3 {
    border-color: #f87171 !important; /* مرز قرمز مناسب تاریک */
    color: #f3f4f6 !important;
}

/* متن توضیحات و امتیاز */
html.dark .block.md\:hidden.col-span-12.mb-6 p,
html.dark .block.md\:hidden.col-span-12.mb-6 span {
    color: #d1d5db !important; /* خاکستری روشن */
}

/* ستاره‌ها */
html.dark .block.md\:hidden.col-span-12.mb-6 .star-rating {
    color: #9ca3af !important; /* ستاره‌های خالی روشن */
}

html.dark .block.md\:hidden.col-span-12.mb-6 .stars-inner {
    color: #fbbf24 !important; /* ستاره‌های پر طلایی */
}

/* فقط حالت دسکتاپ */
@media (min-width: 1024px) {
    /* کارت‌های محصول یک ارتفاع ثابت بگیرند */
    #product-list > div > a {
        display: flex;
        flex-direction: column;
        height: 100%; /* کارت خودش را پر می‌کند */
    }

    /* تصویر و بخش توضیحات */
    #product-list > div > a > div.bg-secondary {
        flex-shrink: 0; /* جلوگیری از کوچک شدن تصویر */
    }

    #product-list > div > a > div.mb-1 {
        flex-grow: 1; /* بخش توضیحات فضای کارت را پر کند */
    }

    /* بخش قیمت ارتفاع ثابت */
    #product-list > div > a > div.mb-1 > .relative.h-8 {
        min-height: 20px; /* ارتفاع ثابت برای قیمت و تخفیف */
        display: flex;
        align-items: flex-end;
    }
}

/*///////////////////////////////////*/


.blog-comments-section {
    background-color: white;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.blog-comments-title {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-comments-cards-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 1rem;
    gap: 0.75rem;
}

.blog-comment-card {
    flex: 0 0 300px;
    height: 330px;
    background-color: #f9f9f9;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.blog-comment-message {
    flex: 1 1 auto;
    overflow-y: auto;
    max-height: 170px;
    white-space: normal;
    padding: 5px;
    background-color: #f2f1fb;
    border-radius: 3px;
}

.blog-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.blog-comment-user {
    font-weight: 630;
    color: #333;
    font-size: 0.875rem;
}

.blog-comment-date {
    font-size: 0.75rem;
    font-weight: normal;
    color: #000000;
}

.blog-comment-text {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.5;
}

.blog-comment-replies {
    flex: 0 0 auto;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-top: 1px solid #ddd;
    border-radius: 0.5rem;
}

.blog-comment-reply-header {
    display: flex;
    justify-content: space-between; /* نام و تاریخ کنار هم */
    align-items: center;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    color: #1e40af;
}

.blog-comment-reply-date {
    font-weight: normal;
    color: black;
}

.blog-comment-reply-text {
    font-size: 0.75rem;
    color: black;
    line-height: 1.4;
}


.blog-comment-form-section {
    border-top: 1px solid #ddd;
    padding-top: 2rem;
    margin-top: 2rem;
}

.blog-comment-form-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.blog-comment-form .blog-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .blog-comment-form .blog-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.blog-comment-form input,
.blog-comment-form textarea {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid #ccc;
    background-color: #fff;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    margin-top: 10px;
    outline: none;
}

.blog-comment-form input:focus,
.blog-comment-form textarea:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 1px #1e40af;
}

.blog-comment-form textarea {
    resize: none;
}

.blog-comment-form button {
    width: 100%;
    background-color: #1e40af;
    color: #fff;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    margin-top: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.blog-comment-form button:hover {
    background-color: #1a3a9a;
}

.text-primary-time {
    color: #3A2FA2; /* کنتراست بالا */
}

@media (max-width: 640px) {
    .m-swiper-slide {
        width: 155px !important; /* کوچکتر از 100% */
    }
}

/*//////////////////////////////////*/
@media (max-width: 768px) {
    .top-banners img {
        aspect-ratio: 8/0.8; /* نسبت جدید موبایل */
        object-fit: cover; /* تصویر داخل قاب کشیده نشه */
    }
}

/*////////////////////////////*/

/* فقط موبایل نمایش داده شود */
.mobile-article-banner {
    display: none;
}

@media (max-width: 768px) {
    .mobile-article-banner {
        display: flex;
        position: fixed;
        bottom: 1px; /* از پایین صفحه شروع شود */
        left: 0;
        width: 100%;
        background: #fff;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        overflow: hidden;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        align-items: center;
        justify-content: center;
        animation: slideUp 0.5s ease-out;
    }

    .mobile-article-banner img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
    }

    #close-mobile-banner {
        position: absolute;
        top: 8px;
        right: 8px;
        background: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        padding: 4px 8px;
        font-size: 14px;
        z-index: 1010;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}


.special-offer-bg {
    background: linear-gradient(135deg, #A855F7 0%, #7C3AED 45%, #EC4899 100%);
    box-shadow: 0 20px 50px rgba(168, 85, 247, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.amazing-bg {
    background: linear-gradient(135deg, #F43F5E 0%, #EF4444 45%, #F97316 100%);
    box-shadow: 0 20px 45px rgba(239, 68, 68, 0.35);
}

.discount-badge {
    background: linear-gradient(180deg, #FBBF24 0%, #F59E0B 100%);
    color: #7C2D12;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
    border-radius: 0 0 999px 999px;
    padding: 6px 10px;
    font-weight: 700;
}

/*///////////////////////////////////*/

#story-title {
    max-width: 75%; /* حداکثر عرض کپشن کنار لایک */
    margin-top: 0.5rem; /* فاصله کمی از پایین */
    font-size: 11px; /* فونت کوچک */
    line-height: 1.2; /* فاصله خطوط کم و خوانا */
    font-weight: 300; /* font-light */
    color: rgba(255, 255, 255, 0.9); /* سفید شفاف */
    overflow: hidden; /* مخفی کردن متن اضافی */
    white-space: nowrap; /* یک خط */
    text-overflow: ellipsis; /* سه نقطه (...) */
    cursor: pointer; /* نشانگر کلیک */
    transition: all 0.3s ease; /* برای باز شدن نرم */
}

/* وقتی کپشن باز شد (میخوای بعداً toggle کنیم) */
#story-title.open {
    white-space: normal; /* چند خطی شدن */
    text-overflow: clip; /* حذف سه نقطه */
}

/* Wrapper */
.story-like-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Button */
.story-like-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px; /* فاصله کم بین آیکن و عدد */
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px; /* هماهنگ با کپشن */
    font-weight: 300;
}

/* Heart Icon */
.story-like-btn .i-lucide-heart {
    font-size: 20px; /* اندازه آیکن */
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

/* Hover Effect */
.story-like-btn:hover .i-lucide-heart {
    transform: scale(1.1);
}

/* وقتی لایک شد (بعداً با JS کلاس active میدیم) */
.story-like-btn.active .i-lucide-heart {
    color: #ff3040; /* قرمز اینستاگرامی */
}

/* Wrapper کلی */
.story-progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px; /* فاصله بین نوارها اگر چندتا باشه */
    margin-top: 0.5rem;
}

/* نوار پس‌زمینه */
.story-progress-bg {
    width: 100%;
    height: 4px; /* نوار باریک */
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px; /* گوشه گرد */
    overflow: hidden;
    position: relative;
}

/* نوار پیشرفت */
.story-progress-bar {
    height: 100%;
    width: 0%; /* با JS افزایش می‌یابد */
    background-color: #fff; /* سفید کامل */
    border-radius: 2px; /* گوشه گرد */
    position: absolute;
    top: 0;
    left: 0;
    transition: width 0.2s linear; /* انیمیشن نرم */
}

@media (max-width: 640px) {

    .category-scroll {
        max-height: calc(3 * 100px);
        overflow-x: auto;
        overflow-y: hidden;

        flex-direction: column;
        flex-wrap: wrap;
        align-content: flex-start;

        /* مخفی کردن اسکرول‌بار */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

    .category-scroll::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

    .category-scroll .w-28 {
        width: 90px;
        margin-bottom: 0 !important;
    }

    .category-scroll .h-28 {
        height: 90px;
        width: 90px;
    }

    .category-scroll img {
        width: 72px;
        height: 72px;
    }

    .category-scroll .h-10 {
        height: 25px;
    }

    .category-scroll p {
        font-size: 12px;
    }
}

.story-slider .swiper-slide {
    width: auto !important;
    margin-right: 12px !important; /* فاصله کم مثل اینستاگرام */
}

.border-t-2 {
    border-top: 8px solid;
}

.full-bleed-divider {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;

    border-top: 8px solid #f3f4f6; /* gray-100 */
    margin-bottom: 16px;
}

/* ===== Discount / Invoice Highlight ===== */
.invoice-discount-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 14px;

    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(16, 185, 129, 0.06));
    border: 1px solid rgba(34, 197, 94, 0.18);

    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.06);
    transition: all 0.25s ease;
}

.invoice-discount-box:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.10);
}

.invoice-discount-title {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

.invoice-discount-icon {
    font-size: 16px;
}

.invoice-discount-value {
    display: flex;
    align-items: baseline;
    gap: 4px;

    color: #059669;
    font-weight: 700;
    font-size: 14px;
}

.invoice-discount-unit {
    font-size: 11px;
    color: #10b981;
}

/*////////////////////////////////*/
.starpay-banner {
    position: relative;
    /* full width break */
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 9px;
    padding-right: 9px;
}

@media (min-width: 640px) {
    .starpay-banner {
        margin-left: -24px;
        margin-right: -24px;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Glow effect */
.starpay-banner__glow {
    position: absolute;
    inset: 0;
    width: 70%;
    margin: 0 auto;
    z-index: 0;
}

/* container */
.starpay-banner__inner {
    position: relative;
    overflow: hidden;
}

/* image */
.starpay-banner__img {
    width: 100%;
    height: auto; /* مهم: حذف کراپ */
    object-fit: contain;
    display: block;
}

/* tablet */
@media (min-width: 640px) {
    .starpay-banner__img {
        aspect-ratio: 4 / 1;
    }
}

@media (min-width: 1024px) {
    .starpay-banner {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-height: 500px;
    }

    .starpay-banner__img {
        aspect-ratio: 5 / 1;
        border-radius: 16px;

        /* 👇 اضافه کن فقط همین دو خط */
        transform: scale(1.06);
        transform-origin: center;
    }
}

/*////////////////////////////////login////////////////*/


/*/////////////////////////////////////////////////////////////////!**!*/
.warning-payment-page {
    min-height: 100vh;
    padding: 40px 14px;
    background: linear-gradient(180deg, #fffdf7 0%, #fff8eb 100%);
}

.warning-payment-page__container {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

/* card */

.warning-receipt-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    border: 1px solid #ffe7bf;
    box-shadow: 0 18px 40px rgba(161, 98, 7, .08),
    0 4px 12px rgba(161, 98, 7, .04);
}

/* hero */

.warning-receipt-card__hero {
    position: relative;
    padding: 15px;
    background: linear-gradient(135deg,
    #f59e0b 0%,
    #d97706 45%,
    #92400e 100%);
}

.warning-receipt-card__pattern {
    position: absolute;
    inset: 0;
    opacity: .06;
    background-image: linear-gradient(45deg,
    #fff 25%,
    transparent 25%,
    transparent 50%,
    #fff 50%,
    #fff 75%,
    transparent 75%);
    background-size: 20px 20px;
}

/* hero content */

.warning-receipt-card__hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 18px;
}

.warning-receipt-card__icon-box {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 22px;
    background: linear-gradient(180deg,
    rgba(255, 255, 255, .24),
    rgba(255, 255, 255, .08));
    border: 1px solid rgba(255, 255, 255, .16);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16),
    0 10px 24px rgba(0, 0, 0, .15);
}

.warning-receipt-card__badge {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .94);
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 10px;
}

.warning-receipt-card__title {
    color: white;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 6px;
}

.warning-receipt-card__description {
    color: rgba(255, 255, 255, .76);
    font-size: 11px;
    line-height: 1.9;
    max-width: 380px;
}

/* body */

.warning-receipt-card__body {
    padding: 20px;
}

/* receipt */

.warning-receipt-card__receipt {
    position: relative;
    border-radius: 22px;
    background: white;
    border: 1px solid #ffedd5;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(161, 98, 7, .05);
}

.warning-receipt-card__receipt::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .35;
    background-image: radial-gradient(#fde7c3 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
}

/* head */

.warning-receipt-card__receipt-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.warning-receipt-card__receipt-label {
    display: block;
    color: #92400e;
    font-size: 12px;
    margin-bottom: 6px;
    font-weight: 700;
}

.warning-receipt-card__receipt-id {
    color: #d97706;
    font-size: 18px;
    letter-spacing: 2px;
    font-weight: 800;
}

/* status */

.warning-receipt-card__status {
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fffbeb, #fef3c7);
    border: 1px solid #fde68a;
    color: #b45309;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
}

/* divider */

.warning-receipt-card__divider {
    position: relative;
    z-index: 2;
    margin: 18px 0;
    height: 1px;
    background: #fde7c3;
}

.warning-receipt-card__divider--dashed {
    background: repeating-linear-gradient(
            to right,
            #fcd34d 0 10px,
            transparent 10px 18px
    );
}

/* rows */

.warning-receipt-card__row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
}

.warning-receipt-card__key {
    color: #92400e;
    font-size: 13px;
    font-weight: 700;
}

.warning-receipt-card__value {
    color: #1f2937;
    font-size: 14px;
    font-weight: 900;
}

.warning-receipt-card__price {
    font-size: 19px;
}

/* alert */

.warning-receipt-card__alert {
    position: relative;
    z-index: 2;
    margin-top: 18px;
    padding: 16px;
    border-radius: 18px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.warning-receipt-card__alert-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
    background: #fef3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d97706;
    font-size: 18px;
}

.warning-receipt-card__alert-title {
    display: block;
    color: #92400e;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 6px;
}

.warning-receipt-card__alert-text {
    color: #78350f;
    font-size: 12px;
    line-height: 2;
}

.warning-receipt-card__timer {
    color: #dc2626;
    font-weight: 900;
}

/* footer */

.warning-receipt-card__footer {
    position: relative;
    z-index: 2;
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.warning-receipt-card__secure {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b45309;
    font-size: 12px;
    font-weight: 800;
}

.warning-receipt-card__gateway {
    color: #f59e0b;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 900;
}

/* actions */

.warning-receipt-card__actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.warning-receipt-card__button {
    height: 50px;
    border-radius: 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    transition: .25s ease;
}

.warning-receipt-card__button--primary {
    background: linear-gradient(135deg,
    #f59e0b,
    #d97706);
    color: white;
    box-shadow: 0 14px 24px rgba(245, 158, 11, .2);
}

.warning-receipt-card__button--secondary {
    background: white;
    color: #111827;
    border: 1px solid #fde7c3;
}

/* cuts */

.warning-receipt-card__cut {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #fff8eb;
    bottom: 112px;
}

.warning-receipt-card__cut--left {
    left: -15px;
}

.warning-receipt-card__cut--right {
    right: -15px;
}

/* mobile */

@media (max-width: 640px) {

    .warning-payment-page {
        padding-inline: 8px;
        padding-top: 40px;
        padding-bottom: 20px;
    }

    .warning-payment-page__container {
        max-width: 100%;
    }

    .warning-receipt-card {
        border-radius: 22px;
    }

    .warning-receipt-card__hero {
        padding: 18px 14px;
    }

    .warning-receipt-card__hero-content {
        gap: 14px;
    }

    .warning-receipt-card__icon-box {
        width: 58px;
        height: 58px;
        min-width: 58px;
        border-radius: 18px;
        font-size: 24px;
    }

    .warning-receipt-card__badge {
        height: 26px;
        padding-inline: 10px;
        font-size: 10px;
        margin-bottom: 8px;
    }

    .warning-receipt-card__title {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .warning-receipt-card__description {
        font-size: 9px;
        line-height: 1.8;
    }

    .warning-receipt-card__body {
        padding: 10px;
    }

    .warning-receipt-card__receipt {
        padding: 14px;
        border-radius: 18px;
    }

    .warning-receipt-card__receipt-head {
        gap: 10px;
    }

    .warning-receipt-card__receipt-label {
        font-size: 11px;
    }

    .warning-receipt-card__receipt-id {
        font-size: 17px;
        letter-spacing: 1px;
    }

    .warning-receipt-card__status {
        height: 30px;
        padding-inline: 12px;
        font-size: 11px;
    }

    .warning-receipt-card__row {
        gap: 12px;
        padding: 10px 0;
    }

    .warning-receipt-card__key {
        font-size: 12px;
    }

    .warning-receipt-card__value {
        font-size: 13px;
    }

    .warning-receipt-card__price {
        font-size: 18px;
    }

    .warning-receipt-card__alert {
        padding: 12px;
        border-radius: 14px;
        gap: 10px;
    }

    .warning-receipt-card__alert-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: 12px;
        font-size: 16px;
    }

    .warning-receipt-card__alert-title {
        font-size: 12px;
    }

    .warning-receipt-card__alert-text {
        font-size: 11px;
    }

    .warning-receipt-card__footer {
        gap: 10px;
    }

    .warning-receipt-card__secure {
        font-size: 11px;
    }

    .warning-receipt-card__gateway {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .warning-receipt-card__actions {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 14px;
    }

    .warning-receipt-card__button {
        height: 46px;
        border-radius: 14px;
        font-size: 13px;
    }

    .warning-receipt-card__cut {
        display: none;
    }
}

/*//////////////////////////////////////////////////////*/
.receipt-success-page {
    min-height: 100vh;
    padding: 40px 14px 40px;
    background: linear-gradient(180deg, #f7fbff 0%, #edf5ff 100%);
}

.receipt-success-page__container {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

/* card */

.receipt-success-box {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #fff;
    border: 1px solid #dcecff;
    box-shadow: 0 18px 40px rgba(37, 99, 235, .08),
    0 4px 14px rgba(15, 23, 42, .04);
}

/* hero */

.receipt-success-box__hero {
    position: relative;
    padding: 15px;
    background: linear-gradient(135deg,
    #2563eb 0%,
    #1d4ed8 45%,
    #0f172a 100%);
}

.receipt-success-box__pattern {
    position: absolute;
    inset: 0;
    opacity: .06;
    background-image: linear-gradient(
            45deg,
            #fff 25%,
            transparent 25%,
            transparent 50%,
            #fff 50%,
            #fff 75%,
            transparent 75%
    );
    background-size: 22px 22px;
}

/* hero content */

.receipt-success-box__hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 18px;
}

.receipt-success-box__icon-wrap {
    width: 65px;
    height: 65px;
    border-radius: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg,
    rgba(255, 255, 255, .22),
    rgba(255, 255, 255, .08));
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14),
    0 12px 24px rgba(0, 0, 0, .16);
    color: white;
}

.receipt-success-box__icon {

    font-size: 30px;
}

.receipt-success-box__badge {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .95);
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 10px;
}

.receipt-success-box__title {
    color: white;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.45;
    margin-bottom: 6px;
}

.receipt-success-box__subtitle {
    color: rgba(255, 255, 255, .74);
    font-size: 11px;
    line-height: 1.9;
    max-width: 360px;
}

/* body */

.receipt-success-box__body {
    padding: 20px;
}

/* receipt */

.receipt-success-box__receipt {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: white;
    border: 1px solid #e2ecf8;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}

.receipt-success-box__receipt::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .35;
    background-image: radial-gradient(#d7e5f5 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
}

/* top */

.receipt-success-box__top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.receipt-success-box__label {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-bottom: 6px;
    font-weight: 700;
}

.receipt-success-box__order-id {
    color: #2563eb;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
}

/* status */

.receipt-success-box__status {
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ecfdf3, #dcfce7);
    border: 1px solid #bbf7d0;
    color: #15803d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
}

/* divider */

.receipt-success-box__divider {
    position: relative;
    z-index: 2;
    margin: 18px 0;
    height: 1px;
    background: #e2e8f0;
}

.receipt-success-box__divider--dashed {
    background: repeating-linear-gradient(
            to right,
            #cbd5e1 0 10px,
            transparent 10px 18px
    );
}

/* rows */

.receipt-success-box__row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
}

.receipt-success-box__key {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.receipt-success-box__value {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.receipt-success-box__price {
    font-size: 18px;
}

.receipt-success-box__success-text {
    color: #16a34a;
}

/* footer */

.receipt-success-box__footer {
    position: relative;
    z-index: 2;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.receipt-success-box__secure {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #16a34a;
    font-size: 12px;
    font-weight: 800;
}

.receipt-success-box__gateway {
    color: #94a3b8;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 900;
}

/* actions */

.receipt-success-box__actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.receipt-success-box__button {
    height: 52px;
    border-radius: 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    transition: .25s ease;
}

.receipt-success-box__button--primary {
    background: linear-gradient(135deg,
    #2563eb,
    #1d4ed8);
    color: white;
    box-shadow: 0 14px 24px rgba(37, 99, 235, .2);
}

.receipt-success-box__button--primary:hover {
    transform: translateY(-2px);
}

.receipt-success-box__button--secondary {
    background: white;
    color: #111827;
    border: 1px solid #dbe4f0;
}

.receipt-success-box__button--secondary:hover {
    background: #f8fafc;
}

/* cuts */

.receipt-success-box__cut {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #edf5ff;
    bottom: 114px;
}

.receipt-success-box__cut--left {
    left: -15px;
}

.receipt-success-box__cut--right {
    right: -15px;
}

/* mobile */

@media (max-width: 640px) {

    .receipt-success-box__hero-content {
        align-items: flex-start;
    }

    .receipt-success-box__title {
        font-size: 19px;
    }

    .receipt-success-box__subtitle {
        font-size: 10px;
    }

    .receipt-success-box__actions {
        grid-template-columns: 1fr;
    }

    .receipt-success-box__cut {
        display: none;
    }
}

/*////////////////////////////////////////////////////////////////////*/

/* New Selected Products Showcase - Clean Compact Version */

.new-products-showcase-section {
    width: 100%;
    margin: 1rem 0;
}

.new-products-showcase-container {
    width: 100%;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
}

.new-products-showcase-card {
    position: relative;
    overflow: hidden;
    padding: 1rem;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

/* حذف شلوغی‌های تزئینی */
.new-products-showcase-card::before,
.new-products-showcase-card::after {
    display: none;
}

.new-products-showcase-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: right;
}

.new-products-showcase-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.75rem;
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    box-shadow: none;
}

.new-products-showcase-fire-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #dc2626;
    stroke-width: 2;
}

.new-products-showcase-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
}

.new-products-showcase-eyebrow {
    display: none;
}

.new-products-showcase-title {
    position: relative;
    margin: 0;
    color: #111827;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.6;
    letter-spacing: -0.02em;
}

.new-products-showcase-title::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -0.28rem;
    width: 42px;
    height: 2px;
    border-radius: 999px;
    background: #dc2626;
}

.new-products-showcase-slider {
    position: relative;
    z-index: 2;
    padding: 0 0 2.25rem;
}

.new-products-showcase-slide {
    height: auto;
}

.new-products-showcase-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 5.7rem;
    padding: 0.55rem;
    border: 1px solid rgba(229, 231, 235, 0.85);
    border-radius: 0.85rem;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    box-shadow: none;
    transition: transform 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease;
}

.new-products-showcase-link::before {
    display: none;
}

.new-products-showcase-link::after {
    content: "";
    position: absolute;
    right: 0.75rem;
    bottom: -1px;
    width: 36%;
    height: 2px;
    border-radius: 999px;
    background: #dc2626;
    opacity: 0;
    transform: scaleX(0.75);
    transform-origin: right;
    transition: opacity 0.22s ease,
    transform 0.22s ease;
}

.new-products-showcase-link:hover {
    transform: translateY(-2px);
    border-color: rgba(220, 38, 38, 0.35);
    background-color: #fffafa;
    box-shadow: none;
}

.new-products-showcase-link:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.new-products-showcase-image-wrap {
    position: relative;
    flex: 0 0 auto;
    width: 4.65rem;
    height: 4.65rem;
    overflow: hidden;
    border-radius: 0.75rem;
    background: #f3f4f6;
    box-shadow: none;
}

.new-products-showcase-image-wrap::after {
    display: none;
}

.new-products-showcase-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.new-products-showcase-link:hover .new-products-showcase-image {
    transform: scale(1.04);
    filter: none;
}

.new-products-showcase-info {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.25rem;
}

.new-products-showcase-product-name {
    display: -webkit-box;
    min-height: auto;
    margin: 0;
    overflow: hidden;
    color: #111827;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: -0.01em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.new-products-showcase-view {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #dc2626;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.5;
    opacity: 0.85;
    transition: opacity 0.22s ease,
    transform 0.22s ease;
}

.new-products-showcase-view::after {
    content: "←";
    margin-right: 0.3rem;
    font-size: 0.82rem;
    line-height: 1;
    transition: transform 0.22s ease;
}

.new-products-showcase-link:hover .new-products-showcase-view {
    opacity: 1;
    transform: translateX(-1px);
}

.new-products-showcase-link:hover .new-products-showcase-view::after {
    transform: translateX(-2px);
}

/* Swiper navigation - هماهنگ‌تر و جمع‌وجورتر */

.new-products-showcase-next,
.new-products-showcase-prev {
    top: auto;
    bottom: 0;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease;
}

.new-products-showcase-next:hover,
.new-products-showcase-prev:hover {
    transform: translateY(-1px);
    border-color: rgba(220, 38, 38, 0.35);
    background-color: #dc2626;
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(220, 38, 38, 0.16);
}

.new-products-showcase-next::after,
.new-products-showcase-prev::after {
    font-size: 0.75rem;
    font-weight: 800;
}

.new-products-showcase-next {
    left: calc(50% - 2.45rem);
    right: auto;
}

.new-products-showcase-prev {
    right: calc(50% - 2.45rem);
    left: auto;
}

.new-products-showcase-next.swiper-button-disabled,
.new-products-showcase-prev.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

/* Tablet */

@media (min-width: 640px) {
    .new-products-showcase-section {
        margin: 1.25rem 0;
    }

    .new-products-showcase-card {
        padding: 1rem;
        border-radius: 1rem;
    }

    .new-products-showcase-title {
        font-size: 1.05rem;
    }

    .new-products-showcase-link {
        min-height: 5.9rem;
        padding: 0.6rem;
    }

    .new-products-showcase-image-wrap {
        width: 4.85rem;
        height: 4.85rem;
    }

    .new-products-showcase-product-name {
        font-size: 0.87rem;
    }
}

/* Desktop */

@media (min-width: 1024px) {
    .new-products-showcase-section {
        margin: 1.5rem 0;
    }

    .new-products-showcase-container {
        padding-right: 0;
        padding-left: 0;
    }

    .new-products-showcase-card {
        padding: 1rem 1.1rem;
        border-radius: 1rem;
    }

    .new-products-showcase-header {
        margin-bottom: 1.1rem;
    }

    .new-products-showcase-title {
        font-size: 1.12rem;
    }

    .new-products-showcase-slider {
        padding-bottom: 2.35rem;
    }

    .new-products-showcase-link {
        min-height: 6rem;
    }
}

/* Large Desktop */

@media (min-width: 1280px) {
    .new-products-showcase-title {
        font-size: 1.18rem;
    }

    .new-products-showcase-product-name {
        font-size: 0.92rem;
    }
}

/* Small Mobile */

@media (max-width: 380px) {
    .new-products-showcase-section {
        margin: 0.85rem 0;
    }

    .new-products-showcase-card {
        padding: 0.75rem;
        border-radius: 0.85rem;
    }

    .new-products-showcase-header {
        gap: 0.55rem;
        margin-bottom: 0.85rem;
    }

    .new-products-showcase-icon {
        width: 2rem;
        height: 2rem;
        border-radius: 0.65rem;
    }

    .new-products-showcase-title {
        font-size: 0.95rem;
    }

    .new-products-showcase-link {
        gap: 0.6rem;
        min-height: 5.25rem;
        padding: 0.5rem;
        border-radius: 0.75rem;
    }

    .new-products-showcase-image-wrap {
        width: 4.25rem;
        height: 4.25rem;
        border-radius: 0.65rem;
    }

    .new-products-showcase-product-name {
        font-size: 0.8rem;
        line-height: 1.65;
    }

    .new-products-showcase-view {
        font-size: 0.65rem;
    }
}

/*////////////////////////////////////////  بخش  منتخب محصولات پرفروش ////////////////////////////////////////////*/

/* Featured Brands Section - Clean Compact Version */

.featured-brands-section {
    width: 100%;
    margin: 1rem 0;
    padding: 0;
}

.featured-brands-card {
    position: relative;
    overflow: hidden;
    padding: 1rem;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.featured-brands-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    margin-bottom: 1rem;
    text-align: right;
}

.featured-brands-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    flex: 0 0 auto;
    border-radius: 0.75rem;
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
}

.featured-brands-icon-svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #dc2626;
    stroke-width: 2;
}

.featured-brands-title {
    position: relative;
    margin: 0;
    color: #111827;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.6;
    letter-spacing: -0.02em;
}

.featured-brands-title::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -0.28rem;
    width: 42px;
    height: 2px;
    border-radius: 999px;
    background: #dc2626;
}

.featured-brands-slider {
    position: relative;
    width: 100%;
    padding: 0.1rem 0;
}

.featured-brands-slide {
    width: 7.25rem;
    height: auto;
}

.featured-brands-item {
    position: relative;
    display: flex;
    min-height: 9.25rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.7rem;
    border: 1px solid rgba(229, 231, 235, 0.85);
    border-radius: 0.85rem;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    transition: transform 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease;
}

.featured-brands-item:hover {
    transform: translateY(-2px);
    border-color: rgba(220, 38, 38, 0.35);
    background-color: #fffafa;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
}

.featured-brands-item::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 0;
    width: 38%;
    height: 2px;
    border-radius: 999px;
    background: #dc2626;
    opacity: 0;
    transform: translateX(50%) scaleX(0.75);
    transform-origin: center;
    transition: opacity 0.22s ease,
    transform 0.22s ease;
}

.featured-brands-item:hover::after {
    opacity: 1;
    transform: translateX(50%) scaleX(1);
}

.featured-brands-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 6.1rem;
    overflow: hidden;
    border-radius: 0.75rem;
    background: #f8fafc;
}

.featured-brands-logo {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
    transition: transform 0.28s ease,
    filter 0.28s ease;
}

.featured-brands-item:hover .featured-brands-logo {
    transform: scale(1.04);
    filter: contrast(1.03) saturate(1.03);
}

.featured-brands-name {
    display: -webkit-box;
    width: 100%;
    height: 1.35rem;
    overflow: hidden;
    color: #111827;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.7;
    text-align: center;
    letter-spacing: -0.01em;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

/* Tablet */

@media (min-width: 640px) {
    .featured-brands-section {
        margin: 1.25rem 0;
    }

    .featured-brands-card {
        padding: 1rem;
        border-radius: 1rem;
    }

    .featured-brands-title {
        font-size: 1.05rem;
    }

    .featured-brands-slide {
        width: 7.5rem;
    }

    .featured-brands-item {
        min-height: 9.5rem;
        padding: 0.75rem;
    }

    .featured-brands-name {
        font-size: 0.82rem;
    }
}

/* Desktop */

@media (min-width: 1024px) {
    .featured-brands-section {
        margin: 1.5rem 0;
    }

    .featured-brands-card {
        padding: 1rem 1.1rem;
        border-radius: 1rem;
    }

    .featured-brands-header {
        margin-bottom: 1.1rem;
    }

    .featured-brands-title {
        font-size: 1.12rem;
    }

    .featured-brands-slide {
        width: 7.75rem;
    }

    .featured-brands-item {
        min-height: 9.75rem;
    }
}

/* Large Desktop */

@media (min-width: 1280px) {
    .featured-brands-title {
        font-size: 1.18rem;
    }

    .featured-brands-slide {
        width: 8rem;
    }
}

/* Small Mobile */

@media (max-width: 380px) {
    .featured-brands-section {
        margin: 0.85rem 0;
    }

    .featured-brands-card {
        padding: 0.75rem;
        border-radius: 0.85rem;
    }

    .featured-brands-header {
        gap: 0.55rem;
        margin-bottom: 0.85rem;
    }

    .featured-brands-icon {
        width: 2rem;
        height: 2rem;
        border-radius: 0.65rem;
    }

    .featured-brands-title {
        font-size: 0.95rem;
    }

    .featured-brands-slide {
        width: 6.65rem;
    }

    .featured-brands-item {
        min-height: 8.5rem;
        padding: 0.6rem;
        border-radius: 0.75rem;
    }

    .featured-brands-logo-wrap {
        height: 5.25rem;
        border-radius: 0.65rem;
    }

    .featured-brands-name {
        font-size: 0.72rem;
    }
}

/*////////////////////////////////// بخش اول صفحه اول   ///////////////////////////////*/

/* Minimal Product Slider Section - Modern Clean Version */

.minimal-product-slider-section {
    width: 100%;
    margin: 0.85rem 0 1.25rem;
    padding: 0;
}

.minimal-product-slider-card {
    position: relative;
    overflow: visible;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.minimal-product-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.minimal-product-slider-title-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.22rem;
}

.minimal-product-slider-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.18rem 0.58rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.06);
    color: #6b7280;
    font-size: 0.68rem;
    font-weight: 750;
    line-height: 1.5;
}

.minimal-product-slider-title {
    position: relative;
    margin: 0;
    color: #111827;
    font-size: 1.05rem;
    font-weight: 850;
    line-height: 1.65;
    letter-spacing: -0.025em;
}

.minimal-product-slider-title::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -0.26rem;
    width: 42px;
    height: 2px;
    border-radius: 999px;
    background: #111827;
}

.minimal-product-slider {
    position: relative;
    padding: 0.08rem 0 0.15rem;
}

.minimal-product-slider-wrapper {
    padding-top: 0.1rem;
    padding-bottom: 0.35rem;
}

.minimal-product-slider-slide {
    height: auto;
}

.minimal-product-card-frame {
    position: relative;
    height: 100%;
}

.minimal-product-card {
    position: relative;
    display: flex;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 1rem;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.035);
    transition: transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

.minimal-product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(17, 24, 39, 0.16);
    background-color: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.075);
}

.minimal-product-card::after {
    content: "";
    position: absolute;
    right: 0.75rem;
    bottom: 0;
    width: 38%;
    height: 2px;
    border-radius: 999px;
    background: #111827;
    opacity: 0;
    transform: scaleX(0.7);
    transform-origin: right;
    transition: opacity 0.22s ease,
    transform 0.22s ease;
}

.minimal-product-card:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.minimal-product-image-area {
    position: relative;
    overflow: hidden;
    margin: 0.45rem 0.45rem 0.65rem;
    border-radius: 0.8rem;
    background: #f8fafc;
}

.minimal-product-image-area::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0) 62%,
            rgba(15, 23, 42, 0.035) 100%
    );
    pointer-events: none;
}

.minimal-product-discount-badge {
    position: absolute;
    right: 0.55rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.05rem;
    padding: 0.18rem 0.48rem;
    border-radius: 999px;
    background: #e03e2d;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1.5;
    box-shadow: 0 8px 16px rgba(17, 24, 39, 0.14);
}

.minimal-product-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.32s ease,
    filter 0.32s ease;
}

.minimal-product-card:hover .minimal-product-image {
    transform: scale(1.035);
    filter: contrast(1.02) saturate(1.02);
}

.minimal-product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 0.75rem 0.85rem;
}

.minimal-product-name {
    display: -webkit-box;
    height: 2.65rem;
    margin: 0 0 0.6rem;
    overflow: hidden;
    color: #111827;
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.6;
    letter-spacing: -0.01em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Price row: old price right, final price left */

/* Price stack: original crossed price top, final price below */

.minimal-product-price-stack {
    display: flex;
    min-height: 2.75rem;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.08rem;
    direction: rtl;
    text-align: right;
}

.minimal-product-price-stack-simple {
    justify-content: flex-end;
}

.minimal-product-old-price {
    direction: rtl;
    color: #9ca3af;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.35;
    text-align: right;
    white-space: nowrap;
    text-decoration-thickness: 1px;
}

.minimal-product-final-price {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.25rem;
    direction: rtl;
    color: #111827;
    font-weight: 900;
    line-height: 1.45;
    text-align: right;
    white-space: nowrap;
}

.minimal-product-price-number {
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.minimal-product-currency {
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 400;
}

/* small mobile price polish */

@media (max-width: 420px) {
    .minimal-product-price-stack {
        min-height: 2.55rem;
        gap: 0.06rem;
    }

    .minimal-product-price-number {
        font-size: 0.86rem;
    }

    .minimal-product-currency {
        font-size: 0.66rem;
    }

    .minimal-product-old-price {
        font-size: 0.66rem;
    }
}

.minimal-product-old-price {
    direction: rtl;
    color: #9ca3af;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: right;
    text-decoration-thickness: 1px;
    white-space: nowrap;
}

.minimal-product-final-price {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.25rem;
    direction: rtl;
    color: #111827;
    font-weight: 850;
    line-height: 1.6;
    text-align: left;
    white-space: nowrap;
}

.minimal-product-price-number {
    font-size: 0.92rem;
    font-weight: 850;
    letter-spacing: -0.01em;
}

.minimal-product-currency {
    color: #6b7280;
    font-size: 0.72rem;
    font-weight: 400;
}

/* Tablet */

@media (min-width: 640px) {
    .minimal-product-slider-section {
        margin: 1rem 0 1.35rem;
    }

    .minimal-product-slider-title {
        font-size: 1.12rem;
    }

    .minimal-product-name {
        height: 2.8rem;
        font-size: 0.88rem;
    }

    .minimal-product-price-number {
        font-size: 0.96rem;
    }
}

/* Desktop */

@media (min-width: 1024px) {
    .minimal-product-slider-section {
        margin: 1.25rem 0 1.5rem;
    }

    .minimal-product-slider-header {
        margin-bottom: 1rem;
    }

    .minimal-product-slider-title {
        font-size: 1.18rem;
    }

    .minimal-product-name {
        font-size: 0.92rem;
    }

    .minimal-product-price-number {
        font-size: 1rem;
    }

    .minimal-product-card {
        border-radius: 1.05rem;
    }
}

/* Large Desktop */

@media (min-width: 1280px) {
    .minimal-product-slider-title {
        font-size: 1.24rem;
    }

    .minimal-product-name {
        font-size: 0.95rem;
    }

    .minimal-product-price-number {
        font-size: 1.05rem;
    }
}

/* Small Mobile */

@media (max-width: 420px) {
    .minimal-product-slider-section {
        margin: 0.75rem 0 1.1rem;
    }

    .minimal-product-slider-header {
        margin-bottom: 0.85rem;
    }

    .minimal-product-slider-title {
        font-size: 0.98rem;
    }

    .minimal-product-slider-eyebrow {
        font-size: 0.65rem;
        padding: 0.15rem 0.5rem;
    }

    .minimal-product-image-area {
        margin: 0.38rem 0.38rem 0.55rem;
        border-radius: 0.72rem;
    }

    .minimal-product-content {
        padding: 0 0.6rem 0.72rem;
    }

    .minimal-product-name {
        height: 2.45rem;
        margin-bottom: 0.5rem;
        font-size: 0.78rem;
        line-height: 1.58;
    }

    .minimal-product-bottom-row {
        min-height: 2.25rem;
        gap: 0.35rem;
    }

    .minimal-product-price-number {
        font-size: 0.84rem;
    }

    .minimal-product-currency {
        font-size: 0.66rem;
    }

    .minimal-product-old-price {
        font-size: 0.66rem;
    }

    .minimal-product-discount-badge {
        top: 0.48rem;
        right: 0.48rem;
        min-width: 1.9rem;
        padding: 0.15rem 0.42rem;
        font-size: 0.64rem;
    }
}

/*///////////////////////////  سوالات دسته بندی ///////////////////////*/

/* ===== FAQ SECTION ===== */

.faq-section {
    margin-top: 10px;
    padding: 40px 20px;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    border-radius: 10px;
    color: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.faq-header {
    text-align: center;
    margin-bottom: 30px;
}

.faq-header h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.faq-header p {
    font-size: 14px;
    color: #9ca3af;
    margin-top: 6px;
}

/* container */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

/* item */
.faq-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* question */
.faq-question {
    width: 100%;
    padding: 16px 18px;
    background: none;
    border: none;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}

.faq-question span {
    text-align: right;
}

/* icon */
.faq-icon {
    width: 10px;
    height: 10px;
    border-right: 2px solid #9ca3af;
    border-bottom: 2px solid #9ca3af;
    transform: rotate(45deg);
    transition: 0.3s;
}

/* answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 18px;
}

.faq-answer p {
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.8;
    padding-bottom: 16px;
}

/* active state */
.faq-item.active .faq-answer {
    max-height: 300px;
    padding-top: 10px;
}

.faq-item.active .faq-icon {
    transform: rotate(-135deg);
}

/*///////////////////////////////////////////////////////*/
.back-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 220px;
    padding: 14px 28px;
    border: 1px solid #1f1f1f;
    border-radius: 999px;
    margin-top: 15px;
    background: #000;
    color: #fff;

    font-size: 15px;
    font-weight: 500;
    letter-spacing: .3px;
    text-decoration: none;

    transition: all .35s ease;
}

.back-home-btn:hover {
    background: #fff;
    color: #000;
    border-color: #000;

    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .15);
}

.back-home-btn span:last-child {
    font-size: 18px;
    transition: transform .35s ease;
}

.back-home-btn:hover span:last-child {
    transform: translateX(-6px);
}


/*//////////////////////////////////////////////////////*/

.spx-ios-global-trigger {

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 15px 18px;

    margin-bottom: 16px;

    border-radius: 22px;

    background: rgba(255, 255, 255, .75);

    backdrop-filter: blur(20px);

    border: 1px solid rgba(0, 0, 0, .06);

    cursor: pointer;

    transition: .35s ease;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);

}


.spx-ios-global-trigger:hover {

    transform: translateY(-2px);

}


.spx-ios-global-trigger-icon {

    width: 42px;

    height: 42px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #007AFF;

    color: white;

}


.spx-ios-global-trigger-icon svg {

    width: 23px;

}


.spx-ios-global-trigger strong {

    display: block;

    font-size: 14px;

    margin-bottom: 3px;

}


.spx-ios-global-trigger span {

    font-size: 12px;

    color: #6b7280;

}


.spx-ios-chevron {

    width: 18px;

    margin-right: auto;

    color: #9ca3af;

    transition: .3s;

}


.spx-ios-global-wrapper {

    max-height: 0;

    overflow: hidden;

    opacity: 0;

    transform: translateY(-15px);

    transition: max-height .45s ease,
    opacity .35s ease,
    transform .45s ease;

}


.spx-ios-global-wrapper.active {

    max-height: 900px;

    opacity: 1;

    transform: none;

}


.spx-ios-global-wrapper.active
.spx-ios-global-trigger {

    border-radius: 22px 22px 0 0;

}

/* ===============================
   ENGLISH IOS CONTENT
================================ */

.spx-ios-en {

    direction: ltr;

    text-align: left;

}


.spx-ios-en .spx-ios-global-title {

    justify-content: flex-start;

    flex-direction: row;

}


.spx-ios-en .spx-ios-global-title svg {

    margin-right: 8px;

    margin-left: 0;

}


.spx-ios-en p {

    direction: ltr;

    text-align: left;

    line-height: 1.8;

}


/* language switch remains centered */

.spx-ios-language-switch {

    direction: rtl;

}


/* language switch */

.spx-ios-language-switch {

    display: flex;

    width: 220px;

    margin: 0 auto 24px;

    padding: 4px;

    border-radius: 16px;

    background: #ececec;

}

.dark .spx-ios-language-switch {

    background: #3b3b3d;

}

.spx-ios-language-switch button {

    flex: 1;

    height: 38px;

    border: none;

    background: none;

    border-radius: 12px;

    font-size: .9rem;

    font-weight: 600;

    cursor: pointer;

    transition: .28s;

}

.spx-ios-language-switch button.active {

    background: #fff;

    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);

}

.dark .spx-ios-language-switch button.active {

    background: #5a5a5d;

}


.spx-ios-global-content {

    display: none;

    animation: iosFade .35s ease;

}

.spx-ios-global-content.active {

    display: block;

}

@keyframes iosFade {

    from {

        opacity: 0;

        transform: translateY(8px);

    }

    to {

        opacity: 1;

        transform: none;

    }

}


.spx-ios-global-title {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 18px;

    font-size: 1.08rem;

    font-weight: 700;

}

.spx-ios-global-title svg {

    width: 22px;

    height: 22px;

    color: #0A84FF;

}

.spx-ios-global-content p {

    line-height: 2;

    color: #52525b;

    font-size: .94rem;

    margin-bottom: 10px;

}

.dark .spx-ios-global-content p {

    color: #d1d5db;

}


.spx-ios-socials {

    display: flex;

    gap: 14px;

    margin-top: 24px;

}


.spx-ios-social-btn {

    flex: 1;

    height: 54px;

    border-radius: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    color: white;

    font-weight: 700;

    text-decoration: none;

    font-size: .95rem;

    transition: .25s ease;

}


.spx-ios-social-btn svg {

    width: 25px;

    height: 25px;

}


.spx-ios-social-btn:hover {

    transform: translateY(-3px);

}


.spx-ios-whatsapp {

    background: linear-gradient(135deg, #25D366, #128C7E);

}


.spx-ios-instagram {

    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);

}


.spx-ios-whatsapp {

    background: linear-gradient(135deg, #25D366, #0aa545);

}

.spx-ios-instagram {

    background: linear-gradient(135deg, #fd1d1d, #e1306c, #833ab4);

}

/*/////////////////////////////////////////*/
/* ======================================
   iOS PWA INSTALL BANNER
====================================== */

.spx-ios-banner {

    position: fixed;

    top: 12px;

    left: 50%;

    transform: translateX(-50%) translateY(-120%);

    width: min(420px, calc(100vw - 24px));

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 14px;

    border-radius: 24px;

    background: rgba(250, 250, 252, .88);

    backdrop-filter: blur(24px);

    -webkit-backdrop-filter: blur(24px);

    border: 1px solid rgba(255, 255, 255, .75);

    box-shadow: 0 20px 50px rgba(0, 0, 0, .18),
    inset 0 1px 0 rgba(255, 255, 255, .85);

    z-index: 99999;

    opacity: 0;

    pointer-events: none;

    transition: transform .55s cubic-bezier(.22, 1, .36, 1),
    opacity .45s ease;

}


/* visible */

.spx-ios-banner.show {

    transform: translateX(-50%) translateY(0);

    opacity: 1;

    pointer-events: auto;

}


/* hide */

.spx-ios-banner.hide {

    transform: translateX(-50%) translateY(-120%);

    opacity: 0;

}


/* ======================================
   ICON
====================================== */

.spx-ios-banner-icon {

    flex-shrink: 0;

}

.spx-ios-banner-icon img {

    width: 58px;

    height: 58px;

    display: block;

    border-radius: 16px;

    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);

}


/* ======================================
   TEXT
====================================== */

.spx-ios-banner-body {

    flex: 1;

    min-width: 0;

}

.spx-ios-banner-body strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;

}

.spx-ios-banner-body p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.65;

}


/* ======================================
   INSTALL BUTTON
====================================== */

.spx-ios-banner-install {
    border: none;
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
    height: 38px;
    padding: 0 18px;
    border-radius: 19px;
    background: #111827 !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    transition: .25s;

}

.spx-ios-banner-install:hover {
    transform: scale(.96);

}


/* ======================================
   CLOSE BUTTON
====================================== */

.spx-ios-banner-close {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .9);
    background: rgba(248, 248, 248, .95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50%;
    color: #1f436c;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12),
    inset 0 1px 0 rgba(255, 255, 255, .8);
    transition: .25s;
}

.spx-ios-banner-close:hover {
    transform: scale(.92);
    background: #fff;
    color: #111827;
}

.spx-ios-banner-close:active {
    transform: scale(.85);
}

/* ======================================
   MOBILE
====================================== */

@media (max-width: 480px) {

    .spx-ios-banner {
        gap: 12px;
        padding: 12px;
        border-radius: 22px;
    }

    .spx-ios-banner-icon img {
        width: 52px;
        height: 52px;

    }

}

/*//////////////////////////////////   وبلاگ  ///////////////////////*/

/*====================================
ARTICLE META (iOS Style)
====================================*/

.spx-article-meta{

    margin:24px 0;

    padding:18px;

    border-radius:22px;

    background:rgba(255,255,255,.74);

    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);

    border:1px solid rgba(255,255,255,.9);

    box-shadow:
        0 6px 22px rgba(15,23,42,.05),
        inset 0 1px 0 rgba(255,255,255,.95);

}


/*====================================
AUTHOR
====================================*/

.spx-meta-author{

    display:flex;

    align-items:center;

    gap:12px;

    padding-bottom:14px;

    margin-bottom:14px;

    border-bottom:1px solid rgba(15,23,42,.05);

}

.spx-meta-author img{

    width:42px;

    height:42px;

    border-radius:50%;

    object-fit:cover;

    border:2px solid rgba(255,255,255,.95);

    box-shadow:0 2px 8px rgba(0,0,0,.06);

}

.spx-meta-author div{

    display:flex;

    flex-direction:column;

    gap:1px;

}

.spx-meta-label{

    font-size:11px;

    color:#9ca3af;

}

.spx-meta-author strong{

    font-size:14px;

    font-weight:700;

    color:#111827;

}


/*====================================
GRID
====================================*/

.spx-meta-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:10px;

}

.spx-meta-box{

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:11px 8px;

    border-radius:16px;

    background:rgba(248,250,252,.72);

    border:1px solid rgba(15,23,42,.04);

    transition:
        transform .22s ease,
        background .22s ease,
        box-shadow .22s ease;

}

.spx-meta-box:hover{

    transform:translateY(-1px);

    background:#fff;

    box-shadow:0 6px 14px rgba(0,0,0,.05);

}

.spx-meta-icon{

    width:17px;

    height:17px;

    color:#9ca3af;

    stroke-width:2;

    margin-bottom:6px;

    transition:.22s;

}

.spx-meta-box:hover .spx-meta-icon{

    color:#111827;

    transform:scale(1.05);

}

.spx-meta-box small{

    font-size:10px;

    color:#9ca3af;

    margin-bottom:3px;

    line-height:1;

}

.spx-meta-box strong{

    font-size:13px;

    color:#111827;

    font-weight:700;

    line-height:1.2;

}


/*====================================
UPDATE
====================================*/

.spx-meta-update{

    margin-top:14px;

    padding-top:14px;

    border-top:1px solid rgba(15,23,42,.05);

    display:flex;

    justify-content:center;

    align-items:center;

    gap:6px;

    font-size:12px;

    color:#6b7280;

}

.spx-meta-update .spx-meta-icon{

    width:15px;

    height:15px;

    margin:0;

}

.spx-meta-update strong{

    color:#111827;

    font-weight:600;

}


/*====================================
RESPONSIVE
====================================*/

@media (max-width:640px){

    .spx-article-meta{

        padding:16px;

        border-radius:20px;

    }

    .spx-meta-author{

        gap:10px;

        padding-bottom:12px;

        margin-bottom:12px;

    }

    .spx-meta-author img{

        width:38px;

        height:38px;

    }

    .spx-meta-author strong{

        font-size:13px;

    }

    .spx-meta-grid{

        gap:8px;

    }

    .spx-meta-box{

        padding:10px 6px;

        border-radius:14px;

    }

    .spx-meta-box strong{

        font-size:12px;

    }

    .spx-meta-box small{

        font-size:9px;

    }

}

/*////////////////////////////////////////////////////*/

/*==================================================
FLOATING ARTICLE PROMO (iOS 18 STYLE)
==================================================*/

.spx-floating-banner{

    position:fixed;

    left:50%;

    bottom:18px;

    transform:translate(-50%,130px) scale(.94);

    width:min(430px,calc(100vw - 24px));

    z-index:9999;

    opacity:0;

    visibility:hidden;

    pointer-events:none;

    transition:
            transform .65s cubic-bezier(.22,1,.36,1),
            opacity .45s ease,
            visibility .45s;

}

.spx-floating-banner.show{

    transform:translate(-50%,0) scale(1);

    opacity:1;

    visibility:visible;

    pointer-events:auto;

}

/*==================================================
CARD
==================================================*/

.spx-floating-link{

    position:relative;

    display:block;

    overflow:hidden;

    border-radius:26px;

    text-decoration:none;

    background:rgba(255,255,255,.72);

    backdrop-filter:blur(26px);

    -webkit-backdrop-filter:blur(26px);

    border:1px solid rgba(255,255,255,.82);

    box-shadow:
            0 18px 50px rgba(15,23,42,.16),
            inset 0 1px 0 rgba(255,255,255,.92);

    transition:
            transform .28s ease,
            box-shadow .28s ease;

}

.spx-floating-link:hover{

    transform:translateY(-2px);

    box-shadow:
            0 22px 60px rgba(15,23,42,.20),
            inset 0 1px 0 rgba(255,255,255,.95);

}

.spx-floating-link:active{

    transform:scale(.985);

}

/*==================================================
IMAGE
==================================================*/

.spx-floating-media{

    position:relative;

    overflow:hidden;

}

.spx-floating-media img{

    display:block;

    width:100%;

    height:160px;

    object-fit:cover;

    transition:transform .45s ease;

}

.spx-floating-link:hover .spx-floating-media img{

    transform:scale(1.03);

}

/*==================================================
BADGE
==================================================*/

.spx-floating-badge{

    position:absolute;

    top:12px;

    left:12px;

    padding:6px 12px;

    border-radius:999px;

    background:rgba(255,255,255,.88);

    backdrop-filter:blur(16px);

    -webkit-backdrop-filter:blur(16px);

    border:1px solid rgba(255,255,255,.9);

    color:#111827;

    font-size:11px;

    font-weight:700;

    box-shadow:0 4px 12px rgba(0,0,0,.08);

}

/*==================================================
CONTENT
==================================================*/

.spx-floating-content{

    padding:14px 16px 16px;

}

.spx-floating-top{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:10px;

}

.spx-floating-app{

    display:flex;

    align-items:center;

    gap:8px;

}

.spx-floating-app img{

    width:26px;

    height:26px;

    border-radius:8px;

    box-shadow:0 2px 8px rgba(0,0,0,.12);

}

.spx-floating-app span{

    font-size:13px;

    font-weight:700;

    color:#111827;

}

.spx-floating-sponsored{

    font-size:11px;

    color:#9ca3af;

    letter-spacing:.3px;

}

.spx-floating-content h3{

    margin:0 0 6px;

    color:#111827;

    font-size:15px;

    font-weight:700;

    line-height:1.5;

}

.spx-floating-content p{

    margin:0;

    color:#6b7280;

    font-size:13px;

    line-height:1.7;

}

/*==================================================
CLOSE BUTTON
==================================================*/

.spx-floating-close{

    position:absolute;

    top:14px;

    right:14px;

    width:34px;

    height:34px;

    display:flex;

    align-items:center;

    justify-content:center;

    border:none;

    border-radius:50%;

    cursor:pointer;

    color:#6b7280;

    background:rgba(255,255,255,.82);

    backdrop-filter:blur(18px);

    -webkit-backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,.9);

    box-shadow:
            0 6px 16px rgba(0,0,0,.12);

    transition:.25s;

    z-index:5;

}

.spx-floating-close:hover{

    transform:scale(1.08);

    color:#111827;

}

.spx-floating-close:active{

    transform:scale(.94);

}

.spx-floating-close svg{

    width:16px;

    height:16px;

}

/*==================================================
MOBILE
==================================================*/

@media (max-width:640px){

    .spx-floating-banner{

        width:calc(100vw - 20px);

        bottom:14px;

    }

    .spx-floating-link{

        border-radius:22px;

    }

    .spx-floating-media img{

        height:138px;

    }

    .spx-floating-content{

        padding:12px 14px 14px;

    }

    .spx-floating-content h3{

        font-size:14px;

    }

    .spx-floating-content p{

        font-size:12px;

    }

    .spx-floating-close{

        width:30px;

        height:30px;

        top:10px;

        right:10px;

    }

}


/*====================================
    SIDEBAR
====================================*/

.spx-sidebar{

    position: sticky;

    top: 7.5rem;

    padding: 20px;

    border-radius: 30px;

    background: rgba(255,255,255,.72);

    backdrop-filter: blur(28px);

    -webkit-backdrop-filter: blur(28px);

    border: 1px solid rgba(255,255,255,.9);

    box-shadow:
        0 10px 34px rgba(15,23,42,.06),
        inset 0 1px 0 rgba(255,255,255,.95);

}


/*====================================
    HEADER
====================================*/

.spx-sidebar-header{

    display:flex;

    align-items:center;

    gap:10px;

    margin-bottom:18px;

    padding-bottom:14px;

    border-bottom:1px solid rgba(15,23,42,.06);

}

.spx-sidebar-icon{

    width:20px;

    height:20px;

    color:#f59e0b;

    flex-shrink:0;

}

.spx-sidebar-header h3{

    margin:0;

    font-size:16px;

    font-weight:700;

    color:#111827;

    letter-spacing:-.2px;

}


/*====================================
    LIST
====================================*/

.spx-sidebar-list{

    display:flex;

    flex-direction:column;

    gap:14px;

}


/*====================================
    ITEM
====================================*/

.spx-sidebar-item{

    display:flex;

    align-items:center;

    gap:14px;

    padding:10px;

    border-radius:22px;

    text-decoration:none;

    transition:
        transform .35s cubic-bezier(.22,1,.36,1),
        background .35s,
        box-shadow .35s;

}

.spx-sidebar-item:hover{

    background:rgba(255,255,255,.65);

    transform:translateY(-2px);

    box-shadow:

        0 8px 24px rgba(15,23,42,.06);

}


/*====================================
    IMAGE
====================================*/

.spx-sidebar-image{

    width:94px;

    height:74px;

    flex-shrink:0;

    overflow:hidden;

    border-radius:18px;

    background:#f3f4f6;

}

.spx-sidebar-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:
        transform .55s cubic-bezier(.22,1,.36,1);

}

.spx-sidebar-item:hover img{

    transform:scale(1.08);

}


/*====================================
    CONTENT
====================================*/

.spx-sidebar-content{

    min-width:0;

    display:flex;

    flex-direction:column;

    justify-content:center;

    gap:10px;

    flex:1;

}

.spx-sidebar-content h4{

    margin:0;

    font-size:14px;

    line-height:1.8;

    font-weight:600;

    color:#111827;

    display:-webkit-box;

    -webkit-line-clamp:2;

    -webkit-box-orient:vertical;

    overflow:hidden;

    transition:color .25s;

}

.spx-sidebar-item:hover h4{

    color:#000;

}


/*====================================
    DATE
====================================*/

.spx-sidebar-date{

    display:flex;

    align-items:center;

    gap:6px;

    color:#9ca3af;

    font-size:12px;

}

.spx-sidebar-date svg{

    width:15px;

    height:15px;

    flex-shrink:0;

    color:#9ca3af;

}

.spx-sidebar-date span{

    white-space:nowrap;

}


/*====================================
    SCROLLBAR
====================================*/

.spx-sidebar::-webkit-scrollbar{

    width:4px;

}

.spx-sidebar::-webkit-scrollbar-thumb{

    background:rgba(0,0,0,.08);

    border-radius:999px;

}


/*====================================
    RESPONSIVE
====================================*/

@media(max-width:1280px){

    .spx-sidebar{

        padding:18px;

    }

    .spx-sidebar-image{

        width:82px;

        height:66px;

    }

}

@media(max-width:1024px){

    .spx-sidebar{

        border-radius:24px;

    }

    .spx-sidebar-item{

        gap:12px;

        padding:9px;

    }

    .spx-sidebar-image{

        width:74px;

        height:60px;

        border-radius:16px;

    }

    .spx-sidebar-content h4{

        font-size:13px;

    }

}


/*////////////////////////////////////////////////////////////////////////*/

/*====================================
RELATED ARTICLES
====================================*/

.spx-related{

    margin:35px 0 10px;

}

/*====================================
HEADER
====================================*/

.spx-related-header{
    display:flex;
    align-items:center;
    gap:18px;
    margin-bottom:10px;
}

.spx-related-header h2{
    flex-shrink:0;
    font-size:20px;
    font-weight:700;
    color:#111827;
    letter-spacing:-.02em;

}

.spx-related-line{

    flex:1;
    height:1px;
    background:linear-gradient(
        to left,
        rgba(15,23,42,.12),
        rgba(15,23,42,.02)
    );

}

/*====================================
SLIDER
====================================*/

.spx-related-slider{

    overflow:visible;

    padding:4px 2px 10px;

}

/*====================================
CARD
====================================*/

.spx-related-card{

    display:block;

    overflow:hidden;

    text-decoration:none;

    border-radius:28px;

    background:rgba(255,255,255,.72);

    backdrop-filter:blur(26px);

    -webkit-backdrop-filter:blur(26px);

    border:1px solid rgba(255,255,255,.82);

    box-shadow:
        0 10px 32px rgba(15,23,42,.06),
        inset 0 1px 0 rgba(255,255,255,.92);

    transition:
        transform .35s cubic-bezier(.22,1,.36,1),
        box-shadow .35s ease,
        background .35s ease;

}

.spx-related-card:hover{

    transform:translateY(-4px);

    background:rgba(255,255,255,.82);

    box-shadow:
        0 20px 40px rgba(15,23,42,.09),
        inset 0 1px 0 rgba(255,255,255,.95);

}

/*====================================
IMAGE
====================================*/

.spx-related-image{

    overflow:hidden;

    padding:8px;

}

.spx-related-image img{

    display:block;

    width:100%;

    aspect-ratio:16/10;

    object-fit:cover;

    border-radius:22px;

    transition:transform .6s cubic-bezier(.22,1,.36,1);

}

.spx-related-card:hover .spx-related-image img{

    transform:scale(1.05);

}

/*====================================
CONTENT
====================================*/

.spx-related-content{

    padding:0 18px 18px;

}

.spx-related-content h3{

    margin:0;

    height:58px;

    overflow:hidden;

    display:-webkit-box;

    -webkit-line-clamp:2;

    -webkit-box-orient:vertical;

    font-size:16px;

    font-weight:700;

    line-height:1.8;

    color:#111827;

}

/*====================================
META
====================================*/

.spx-related-meta{

    display:flex;

    align-items:center;

    justify-content:space-between;

    margin-top:18px;

    padding-top:16px;

    border-top:1px solid rgba(15,23,42,.06);

}

.spx-related-author{

    display:flex;

    align-items:center;

    gap:10px;

    min-width:0;

}

.spx-related-author img{

    width:34px;

    height:34px;

    border-radius:50%;

    object-fit:cover;

    border:2px solid rgba(255,255,255,.95);

    box-shadow:0 3px 10px rgba(0,0,0,.08);

}

.spx-related-author span{

    overflow:hidden;

    text-overflow:ellipsis;

    white-space:nowrap;

    font-size:13px;

    font-weight:600;

    color:#374151;

}

.spx-related-meta time{

    flex-shrink:0;

    font-size:12px;

    color:#9ca3af;

    font-variant-numeric:tabular-nums;

}

/*====================================
ACTIVE
====================================*/

.spx-related-card:active{

    transform:scale(.985);

}

/*====================================
RESPONSIVE
====================================*/

@media (max-width:768px){

    .spx-related{
        margin-top: 25px;
        margin-bottom: 5px;
    }

    .spx-related-header{

        gap:14px;
        margin-bottom:16px;

    }

    .spx-related-header h2{

        font-size:19px;
        margin-right: 10px;
    }

    .spx-related-card{

        border-radius:24px;

    }

    .spx-related-image{

        padding:7px;

    }

    .spx-related-image img{

        border-radius:18px;

    }

    .spx-related-content{

        padding:0 15px 15px;

    }

    .spx-related-content h3{

        height:52px;

        font-size:15px;

    }

    .spx-related-meta{

        margin-top:14px;

        padding-top:14px;

    }

    .spx-related-author img{

        width:30px;

        height:30px;

    }

    .spx-related-author span{

        font-size:12px;

    }

    .spx-related-meta time{

        font-size:11px;

    }

}

/*////////////////////////////////////////    استوری ها   /////////////////////////////////////*/

/* =========================================
   SPX STORY - iOS Instagram Reels Style
========================================= */


/* Main modal */


.spx-story-modal {

    background: #000;

    padding: 0;

    display: flex;

    align-items: center;

    justify-content: center;

}


/* Container */

.spx-story-container {

    width: 100%;

    height: 100dvh;

    max-width: 430px;

    margin: auto;

}


/* Content */


.spx-story-content {

    position: relative;

    width: 100%;

    height: 100%;

    background: #000;

    overflow: hidden;

}


/* =========================================
   Story Main
========================================= */


.spx-story-main {

    position: relative;

    width: 100%;

    height: 100%;

    background: #000;

    display: flex;

    align-items: center;

    justify-content: center;

}


/* Video */

.spx-story-video-wrapper {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

}


.spx-story-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;


}


/* =========================================
   Header
========================================= */


.spx-story-header {

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    z-index: 20;

    padding-top: env(safe-area-inset-top);

    height: 80px;

    background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, .65),
            transparent
    );

}


.spx-story-header-inner {


    height: 60px;

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 0 16px;

}


/* Close */

.spx-story-close {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, .35);
    backdrop-filter: blur(12px);
    color: white;

}

.spx-story-close-icon {
    width: 26px;
    height: 26px;
    color: white;
    stroke-width: 2.5;

}


/* Author */

.spx-story-author {


    display: flex;

    align-items: center;

    gap: 10px;

}


.spx-story-avatar {


    width: 40px;

    height: 40px;

    border-radius: 50%;

    object-fit: cover;


    border: 2px solid white;


}


.spx-story-author-name {


    color: white;

    font-size: 14px;

    font-weight: 600;


    max-width: 180px;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;


    text-shadow: 0 2px 8px rgba(0, 0, 0, .7);

}


/* =========================================
   Mute
========================================= */


.spx-story-mute {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;


}


.spx-story-mute-icon {
    width: 42px !important;
    height: 42px !important;
    color: white !important;
    opacity: .85 !important;
    filter: drop-shadow(
            0 3px 10px rgba(0, 0, 0, .7)
    ) !important;
}


/* =========================================
   Bottom Content
========================================= */


.spx-story-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 75px;
    z-index: 45;
    padding: 0 14px calc(15px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    background: linear-gradient(
            to top,
            rgba(0, 0, 0, .45) 0%,
            rgba(0, 0, 0, .20) 35%,
            rgba(0, 0, 0, 0) 100%
    );
}

.spx-story-like-floating {
    position: absolute;
    left: 16px; /* به جای right */
    bottom: 120px;
    z-index: 60;
}

.spx-story-info {

    order: 1;

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 12px;

}

/* Title */

.spx-story-title {
    max-width: 85% !important;
    color: white !important;
    font-size: 13px !important;
    margin-bottom: 7px;
    line-height: 1.65 !important;
    font-weight: 400 !important;
    overflow: hidden !important;;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    align-self: flex-start !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .8) !important;


}


/* Like */

/* =========================================
   Progress Bar
========================================= */


.spx-story-progress-bg {
    width: 100%;
    height: 3px;
    border-radius: 10px;
    overflow: hidden;
    direction: ltr;
    background: rgba(255, 255, 255, .35);
}


.spx-story-progress-bar {
    height: 100%;
    width: 0;
    transform-origin: left center;
    border-radius: 10px;
    background: white;
}


/* =========================================
   Product Bottom Sheet
========================================= */


.spx-story-products {

    position: absolute;

    right: 14px;

    left: 14px;
    overflow: hidden;
    bottom: 10px;
    z-index: 50;

}

.spx-story-slider .swiper-slide {

    width: 72% !important;

}

.spx-story-slider {

    overflow: visible;
    height: 75px;


}


.spx-story-product-card {

    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, .2);


}


.spx-story-product-image {


    width: 58px;

    height: 58px;


    border-radius: 14px;


    object-fit: cover;


}


.spx-story-product-name {


    color: white;


    font-size: 13px;


    line-height: 1.4;


    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;


}


/* =========================================
   iPhone Small Screens
========================================= */


@media (max-width: 430px) {


    .spx-story-container {

        max-width: none;

    }


    .spx-story-avatar {

        width: 36px;

        height: 36px;

    }


}

.spx-comments-sheet{

    position:absolute;

    inset:0;

    z-index:120;

    pointer-events:none;

}

.spx-comments-sheet.open{

    pointer-events:auto;

}

.spx-comments-backdrop{

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.35);

    opacity:0;

    transition:.28s;

    backdrop-filter:blur(8px);

}

.spx-comments-sheet.open .spx-comments-backdrop{

    opacity:1;

}

.spx-comments-panel{

    position:absolute;

    left:0;

    right:0;

    bottom:0;

    height:72%;

    background:#fff;

    border-radius:28px 28px 0 0;

    transform:translateY(100%);

    transition:transform .35s cubic-bezier(.22,1,.36,1);

    display:flex;

    flex-direction:column;

    overflow:hidden;

}

.spx-comments-sheet.open .spx-comments-panel{

    transform:translateY(0);

}

.spx-comments-handle{

    width:42px;

    height:5px;

    background:#d8d8d8;

    border-radius:999px;

    margin:10px auto;

}

.spx-comments-header{

    text-align:center;

    font-weight:600;

    padding:8px 0 14px;

    border-bottom:1px solid #f2f2f2;

}

.spx-comments-list{

    flex:1;

    overflow:auto;

    padding:18px;

}

.spx-comment-item{

    display:flex;

    gap:12px;

    margin-bottom:18px;

}

.spx-comment-avatar{

    width:42px;

    height:42px;

    border-radius:50%;

    object-fit:cover;

}

.spx-comment-user{

    font-weight:700;

    margin-bottom:3px;

}

.spx-comment-text{

    color:#444;

    line-height:1.6;

}

.spx-comment-input{

    display:flex;

    gap:10px;

    padding:14px 18px calc(14px + env(safe-area-inset-bottom));

    border-top:1px solid #ececec;

    background:#fff;

}

.spx-comment-input input{

    flex:1;

    border:none;

    outline:none;

    background:#f5f5f7;

    border-radius:16px;

    padding:12px 16px;

    font-size:14px;

}

.spx-comment-input button{

    border:none;

    background:#007aff;

    color:#fff;

    padding:0 18px;

    border-radius:16px;

    cursor:pointer;

}


/*///////////////////////////////////////////////*/
#story-title {
    max-width: 75%; /* حداکثر عرض کپشن کنار لایک */
    margin-top: 0.5rem; /* فاصله کمی از پایین */
    font-size: 11px; /* فونت کوچک */
    line-height: 1.2; /* فاصله خطوط کم و خوانا */
    font-weight: 300; /* font-light */
    color: rgba(255, 255, 255, 0.9); /* سفید شفاف */
    overflow: hidden; /* مخفی کردن متن اضافی */
    white-space: nowrap; /* یک خط */
    text-overflow: ellipsis; /* سه نقطه (...) */
    cursor: pointer; /* نشانگر کلیک */
    transition: all 0.3s ease; /* برای باز شدن نرم */
}

/* وقتی کپشن باز شد (میخوای بعداً toggle کنیم) */
#story-title.open {
    white-space: normal; /* چند خطی شدن */
    text-overflow: clip; /* حذف سه نقطه */
}

.spx-story-actions {

    position: absolute;
    left: 16px;
    bottom: 120px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;

}

/* Button */
.story-like-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px; /* فاصله کم بین آیکن و عدد */
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px; /* هماهنگ با کپشن */
    font-weight: 300;
}

/* Wrapper کلی */
.story-progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px; /* فاصله بین نوارها اگر چندتا باشه */
    margin-top: 0.5rem;
}

.story-like-wrapper,
.story-comment-wrapper{

    display:flex;

    justify-content:center;

    align-items:center;

}

.spx-story-like-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #fff;
}

/* اندازه آیکون ها */
.spx-story-heart,
.spx-story-comment-icon {
    width: 22px !important;
    height: 22px !important;
    display: block;
    transition: transform .2s ease;

}

.spx-story-like-count {

    color: #fff;

    font-size: 12px;

    font-weight: 500;

    line-height: 1;

    user-select: none;

}

.spx-story-like-btn:hover .spx-story-heart,
.spx-story-like-btn:hover .spx-story-comment-icon {

    transform: scale(1.08);

}

.spx-story-like-btn:active .spx-story-heart,
.spx-story-like-btn:active .spx-story-comment-icon {

    transform: scale(.92);

}

/* حالت لایک */
.spx-story-like-btn.active .spx-story-heart {

    color: #ff3040;

}

.spx-story-like-btn.active .spx-story-heart path {

    fill: currentColor;

}

@media (min-width:1024px){

    .spx-story-heart,
    .spx-story-comment-icon{

        width:30px !important;
        height:30px !important;

    }


    .spx-story-like-count{

        font-size:14px !important;

    }

}

/* نوار پس‌زمینه */
.story-progress-bg {
    width: 100%;
    height: 4px; /* نوار باریک */
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px; /* گوشه گرد */
    overflow: hidden;
    position: relative;
}

.spx-comment-avatar{

    width:40px;

    height:40px;

    flex-shrink:0;

}

.spx-comment-avatar svg{

    width:100%;

    height:100%;

    display:block;

}

body.story-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}


#story-modal {
    touch-action: pan-y !important;
    overscroll-behavior: none !important;
}

.story-product-slider {
    touch-action: pan-x !important;
}

.spx-story-modal {
    touch-action: pan-y !important;
}

/*/////////////////////////////////////////////////*/

/* =========================================
   Story Gesture Transition
========================================= */

.spx-story-main {

    transform: translate3d(0, 0, 0);

    opacity: 1;

    filter: brightness(1);

    will-change: transform,
    opacity,
    filter;

    transition: transform .38s cubic-bezier(.22, 1, .36, 1),
    opacity .32s ease,
    filter .32s ease;

    backface-visibility: hidden;

    transform-style: preserve-3d;

}


/* ===============================
   Live Drag
================================ */

.spx-story-main.dragging {

    transition: none !important;

}


/* ===============================
   Spring Back
================================ */

.spx-story-main.snap-back {

    transition: transform .48s cubic-bezier(.18, .89, .32, 1.28),
    filter .35s ease;

}


/* ===============================
   Current Story Leaving Down
   swipe next (برعکس شده)
================================ */

.spx-story-main.story-out-next {

    transform: translate3d(0, 100%, 0);

    opacity: .65;

    filter: brightness(.88);

}


/* ===============================
   Current Story Leaving Up
   swipe previous (برعکس شده)
================================ */

.spx-story-main.story-out-prev {

    transform: translate3d(0, -100%, 0);

    opacity: .65;

    filter: brightness(.88);

}


/* ===============================
   New Story Coming From Top
   swipe next (برعکس شده)
================================ */

.spx-story-main.story-in-next {

    transform: translate3d(0, -100%, 0);

    opacity: .65;

    filter: brightness(.88);

}


/* ===============================
   Previous Story Coming From Bottom
   swipe previous (برعکس شده)
================================ */

.spx-story-main.story-in-prev {

    transform: translate3d(0, 100%, 0);

    opacity: .65;

    filter: brightness(.88);

}


/* ===============================
   Final Position
================================ */

.spx-story-main.story-active {

    transform: translate3d(0, 0, 0);

    opacity: 1;

    filter: brightness(1);

}


.story-swipe-hint {

    position: fixed;

    left: 50%;

    bottom: 90px;

    transform: translateX(-50%);

    background: rgba(0, 0, 0, .45);

    color: white;

    padding: 12px 20px;

    border-radius: 30px;

    display: flex;

    align-items: center;

    gap: 12px;

    font-size: 14px;

    text-align: center;

    z-index: 9999;

    backdrop-filter: blur(6px);

    animation: hintFadeIn .4s ease,
    hintFloat 1.5s ease infinite;

}


.story-swipe-hint.hide {

    opacity: 0;

    transform: translateX(-50%) translateY(20px);

    transition: .4s ease;

}


.story-swipe-icon {

    width: 24px;

    height: 34px;

    border: 2px solid white;

    border-radius: 15px;

    position: relative;

}


.story-swipe-icon span {

    width: 5px;

    height: 9px;

    background: white;

    border-radius: 5px;

    position: absolute;

    top: 7px;

    left: 50%;

    transform: translateX(-50%);

    animation: swipeMove 1.2s infinite;

}


@keyframes swipeMove {

    0% {

        transform: translate(-50%, 0);

        opacity: 1;

    }


    100% {

        transform: translate(-50%, 10px);

        opacity: 0;

    }

}


@keyframes hintFadeIn {

    from {

        opacity: 0;

        transform: translateX(-50%) translateY(20px);

    }

    to {

        opacity: 1;

        transform: translateX(-50%) translateY(0);

    }

}


@keyframes hintFloat {

    50% {

        margin-bottom: 5px;

    }

}

.spx-ios-toast {

    position: fixed;

    left: 50%;

    bottom: 110px;

    transform: translateX(-50%) translateY(20px) scale(.95);


    min-width: 260px;

    max-width: 90%;

    padding: 14px 18px;


    display: flex;

    align-items: center;

    gap: 12px;


    background: rgba(30, 30, 30, .78);


    backdrop-filter: blur(18px);


    -webkit-backdrop-filter: blur(18px);


    color: white;


    border-radius: 18px;


    box-shadow: 0 10px 35px rgba(0, 0, 0, .25);


    opacity: 0;


    z-index: 99999;


    transition: all .35s cubic-bezier(.22, 1, .36, 1);


    direction: rtl;

}


.spx-ios-toast.show {

    opacity: 1;


    transform: translateX(-50%) translateY(0) scale(1);

}


.spx-ios-toast-icon {

    width: 32px;

    height: 32px;


    display: flex;

    align-items: center;

    justify-content: center;


    border-radius: 50%;


    background: rgba(255, 255, 255, .15);


    color: #ffcc00;

}


.spx-ios-toast-text {

    font-size: 14px;

    line-height: 1.6;

    font-weight: 500;

}


/* =========================================
   Story Comment Date - iOS Style
========================================= */

.spx-comment-content {

    display: flex;
    flex-direction: column;
    gap: 5px;

}


.spx-comment-date {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    font-size: 13px;
    color: black;
    direction: rtl;
    user-select: none;
    transition: color .25s ease;
}


/* آیکون کوچک زمان */

.spx-comment-date::before {

    content: "";
    width: 14px;
    height: 14px;
    color: black !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23999999'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;

    opacity: .7;

}


/* حالت تاریک */

@media (prefers-color-scheme: dark) {

    .spx-comment-date {
        color: black;

    }


}


/* افکت ورود کامنت جدید */

.spx-comment-item {

    animation: commentAppear .35s cubic-bezier(.22,1,.36,1);

}


@keyframes commentAppear {

    from {

        opacity: 0;

        transform: translateY(12px) scale(.98);

    }


    to {

        opacity: 1;

        transform: translateY(0) scale(1);

    }

}

