

body {
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #EAECEF;
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    overflow-x: hidden;
}




/* مرحله اول: محتوا حتی بدون JavaScript دیده می‌شود؛ افکت فقط هنگام ورود اضافه می‌شود. */
main,
section,
section > :is(div,section[data-container]) > article {
    opacity: 1;
}

#trend-line-svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}


#trend-line-svg use:first-of-type {
    fill: none;
    stroke: url(#line-gradient);
    stroke-width: 2px;
    filter: url(#glow-effect);
}


#trend-line-svg use:last-of-type {
    fill: none;
    stroke: #fac814;
    stroke-width: 3px;
    filter: url(#light-glow);


    stroke-dasharray: 25 1000;


    animation: moveLightLine 25s linear infinite;
}


@keyframes moveLightLine {
    0% {

        stroke-dashoffset: 100;
    }

    100% {

        stroke-dashoffset: -1000;
    }
}



#sticky-top-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;

    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

#live-ticker {
    background-color: #0A0A0A;
    color: #D4AF37;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 500;
    gap: 24px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

#live-ticker>i {
    width: 1px;
    height: 14px;
    background-color: rgba(212, 175, 55, 0.3);
}

#live-ticker>:is(div,section[data-container])>strong {
    font-size: 15px;
    font-family: monospace;
    letter-spacing: 1px;
    transition: color 0.3s, text-shadow 0.3s;
}

#live-ticker>p {
    margin: 0 0 0 auto;
    color: #848E9C;
    font-size: 12px;
}

#live-ticker>p>span {
    color: #EAECEF;
    font-weight: bold;
}


strong[data-status="up"] {
    color: #0ECB81;
    text-shadow: 0 0 8px rgba(14, 203, 129, 0.5);
}

strong[data-status="down"] {
    color: #F6465D;
    text-shadow: 0 0 8px rgba(246, 70, 93, 0.5);
}


#site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 60px;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

#site-header>nav>ul {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

#site-header>nav>ul>li>a {
    color: #EAECEF;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
}

#site-header>nav>ul>li>a:hover {
    color: #D4AF37;
}

#site-header>:is(div,section[data-container]):nth-child(3) {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    direction: ltr;
    margin-left: 100px;
}


#site-header>:is(div,section[data-container]):nth-child(3)>img {
    height: 55px;
    width: auto;
}


#site-header>:is(div,section[data-container]):nth-child(3)>:is(div,section[data-container]) {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}


#site-header>:is(div,section[data-container]):nth-child(3)>:is(div,section[data-container])>h1 {
    color: #D4AF37;
    margin: 0;
    font-size: 26px;
    letter-spacing: 3px;
    font-family: serif;
}


#site-header>:is(div,section[data-container]):nth-child(3)>:is(div,section[data-container])>span {
    color: #848E9C;
    font-size: 12px;
    letter-spacing: 5px;
}

#site-header>:is(div,section[data-container]):last-child {
    display: flex;
    gap: 20px;
}

#site-header>:is(div,section[data-container]):last-child>button {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

#site-header>:is(div,section[data-container]):last-child>button>svg {
    width: 24px;
    height: 24px;
    fill: #EAECEF;
    transition: fill 0.3s, transform 0.3s;
}

#site-header>:is(div,section[data-container]):last-child>button:hover>svg {
    fill: #f9c518;
    transform: translateY(-2px);
}

/* =========================================================
   منوی کشویی حساب کاربری (کاملاً تو در تو و بدون کلاس)
========================================================= */

/* تنظیمات باکس نگه‌دارنده دکمه و منو */
#site-header > :is(div,section[data-container]):last-child > :is(div,section[data-container])#auth-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* هماهنگ کردن دکمه حساب با بقیه دکمه‌های هدر */
#site-header > :is(div,section[data-container]):last-child > :is(div,section[data-container])#auth-wrapper > button {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

#site-header > :is(div,section[data-container]):last-child > :is(div,section[data-container])#auth-wrapper > button > svg {
    width: 24px;
    height: 24px;
    fill: #EAECEF;
    transition: fill 0.3s, transform 0.3s;
}

#site-header > :is(div,section[data-container]):last-child > :is(div,section[data-container])#auth-wrapper > button:hover > svg {
    fill: #f9c518;
    transform: translateY(-2px);
}

/* دایره وضعیت (قرمزِ پیش‌فرض) */
#site-header > :is(div,section[data-container]):last-child > :is(div,section[data-container])#auth-wrapper > button > span#auth-status-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 6px;
    height: 6px;
    background-color: #dc3545;
    border-radius: 50%;
    border: 2px solid #121212;
    box-shadow: 0 0 5px #dc3545;
    z-index: 10;
    transition: all 0.3s ease;
}

/* کادر اصلی منوی کشویی */
#site-header > :is(div,section[data-container]):last-child > :is(div,section[data-container])#auth-wrapper > :is(div,section[data-container])#user-dropdown {
    position: absolute;
    top: 150%; 
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.05);
    min-width: 150px;
    display: flex;
    flex-direction: column;
    padding: 5px 0;
    z-index: 1000;
    
    /* مخفی بودن اولیه */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

/* پل نامرئی بین دکمه و منو */
#site-header > :is(div,section[data-container]):last-child > :is(div,section[data-container])#auth-wrapper > :is(div,section[data-container])#user-dropdown::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 30px;
    background: transparent;
}

/* 🔴 جادوی باز شدن منو: وقتی دکمه لاگین بود و موس روی آن رفت */
#site-header > :is(div,section[data-container]):last-child > :is(div,section[data-container])#auth-wrapper[data-logged-in="true"]:hover > :is(div,section[data-container])#user-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* بخش نام کاربر (بالای کشو) */
#site-header > :is(div,section[data-container]):last-child > :is(div,section[data-container])#auth-wrapper > :is(div,section[data-container])#user-dropdown > :is(div,section[data-container]):first-child {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    white-space: nowrap;
}

#site-header > :is(div,section[data-container]):last-child > :is(div,section[data-container])#auth-wrapper > :is(div,section[data-container])#user-dropdown > :is(div,section[data-container]):first-child > span {
    color: #D4AF37;
    font-weight: bold;
    font-size: 13px;
}

/* لینک‌ها و دکمه‌های داخل منو */
#site-header > :is(div,section[data-container]):last-child > :is(div,section[data-container])#auth-wrapper > :is(div,section[data-container])#user-dropdown > a, 
#site-header > :is(div,section[data-container]):last-child > :is(div,section[data-container])#auth-wrapper > :is(div,section[data-container])#user-dropdown > button {
    background: transparent;
    border: none;
    color: #EAECEF;
    padding: 12px 15px;
    font-size: 13.5px;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

#site-header > :is(div,section[data-container]):last-child > :is(div,section[data-container])#auth-wrapper > :is(div,section[data-container])#user-dropdown > a:hover {
    background: rgba(212, 175, 55, 0.05);
    color: #D4AF37;
}

/* دکمه خروج */
#site-header > :is(div,section[data-container]):last-child > :is(div,section[data-container])#auth-wrapper > :is(div,section[data-container])#user-dropdown > button#logout-btn {
    color: #F6465D;
    font-weight: 500;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

#site-header > :is(div,section[data-container]):last-child > :is(div,section[data-container])#auth-wrapper > :is(div,section[data-container])#user-dropdown > button#logout-btn:hover {
    background: rgba(246, 70, 93, 0.1);
}

#site-header > :is(div,section[data-container]):last-child > :is(div,section[data-container])#auth-wrapper[data-logged-in="true"] > button > span#auth-status-dot {
    background-color: #28a745 ;
    box-shadow: 0 0 5px #28a745 ;
    border-color: #121212 ;
}

/* =========================================================
   Quick Calculator Button (ظاهر شدن ماشین‌حساب در هدر)
========================================================= */

/* مخفی بودن کامل دکمه در حالت عادی */
#site-header>:is(div,section[data-container]):last-child>button[data-role="quick-calc"] {
    width: 0;
    opacity: 0;
    visibility: hidden;
    margin-right: 0;
    /* برای اینکه فضا اشغال نکند */
    transform: scale(0.5) translateX(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* رنگ طلایی ملایم برای خود آیکون ماشین حساب */
#site-header>:is(div,section[data-container]):last-child>button[data-role="quick-calc"]>svg {
    stroke: #D4AF37;
}

/* وقتی جاوااسکریپت دستور نمایش را به هدر می‌دهد */
#site-header[data-show-calc="true"]>:is(div,section[data-container]):last-child>button[data-role="quick-calc"] {
    width: 24px;
    /* سایز اصلی آیکون */
    opacity: 1;
    visibility: visible;
    margin-right: 15px;
    /* فاصله گرفتن از بقیه آیکون‌ها */
    transform: scale(1) translateX(0);
}

#site-header>:is(div,section[data-container]):last-child>button[data-role="quick-calc"]>svg {
    stroke: #000000;
}



/* /////////////////////////////////////mega menu//////////////////// */



/* =========================================================
   Mega Menu (منوی کشویی پیشرفته برای طلای زینتی)
========================================================= */

/* والد اصلی باید نسبی باشد تا کادر زیرِ همان کلمه باز شود */
#site-header>nav>ul>li {
    position: relative;
    padding-bottom: 25px;
    /* فضای مخفی تا وقتی موس پایین می‌رود منو بسته نشود */
    margin-bottom: -25px;
}

/* کادر شیشه‌ای اصلی مگامنو */
#site-header>nav>ul>li>:is(div,section[data-container])[data-role="mega-menu"] {
    position: absolute;
    top: 100%;
    right: 0;
    width: 480px;
    min-height: 260px;
    background: #0f0f0f;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.5);

    opacity: 0;
    visibility: hidden;
    /* 👈 این خط مشکل رو کاملاً ریشه‌کن می‌کنه: منوی بسته، لمس نمیشه */
    pointer-events: none;
    transform: translateY(15px);

    /* زمان انیمیشن رو کمی سریع‌تر کردم تا پرش نداشته باشه */
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;

    display: flex;
    overflow: hidden;
    z-index: 1000;
}

#site-header>nav>ul>li>:is(div,section[data-container])[data-role="mega-menu"]::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

/* باز شدن کادر هنگام رفتن موس روی طلای زینتی */
#site-header>nav>ul>li:hover>:is(div,section[data-container])[data-role="mega-menu"] {
    opacity: 1;
    visibility: visible;
    /* 👈 وقتی منو باز شد، دوباره قابل لمس میشه */
    pointer-events: auto;
    transform: translateY(0);
}

/* ----------------------------------
   سمت راست: دسته‌بندی‌های اصلی
---------------------------------- */
:is(div,section[data-container])[data-role="mega-menu"]>ul[data-role="mega-nav"] {
    width: 150px;
    /* عرض ستون راست */
    list-style: none;
    margin: 0;
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.02);
    border-left: 1px solid rgba(212, 175, 55, 0.1);
    /* خط جداکننده ظریف */
}

:is(div,section[data-container])[data-role="mega-menu"]>ul[data-role="mega-nav"]>li>a {
    display: block;
    padding: 12px 20px;
    color: #EAECEF;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s, color 0.3s;
    position: relative;
}

/* افکت هاور روی دسته‌های اصلی */
:is(div,section[data-container])[data-role="mega-menu"]>ul[data-role="mega-nav"]>li:hover>a {
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
    font-weight: 500;
}

/* ----------------------------------
   سمت چپ: محتوای زیرمجموعه‌ها
---------------------------------- */
:is(div,section[data-container])[data-role="mega-content"] {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 150px;
    /* شروع از لبه‌ی ستون راست */
    left: 0;
    padding: 25px 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

/* تیتر و لیست‌های سمت چپ */
:is(div,section[data-container])[data-role="mega-content"]>h3 {
    color: #D4AF37;
    font-size: 16px;
    margin: 0 0 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

:is(div,section[data-container])[data-role="mega-content"]>ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* دو ستونه شدن زیرمجموعه‌ها */
    gap: 15px;
}

:is(div,section[data-container])[data-role="mega-content"]>ul>li>a {
    color: #848E9C;
    text-decoration: none;
    font-size: 13.5px;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

:is(div,section[data-container])[data-role="mega-content"]>ul>li>a:hover {
    color: #FFF;
    transform: translateX(-4px);
    /* یک حرکت شیک به سمت چپ */
}

/* ----------------------------------
   جادوی تب‌منو با CSS (بخش طلایی کار)
---------------------------------- */
/* ۱. نمایش گزینه اول (انگشتر) به صورت پیش‌فرض تا کادر خالی نماند */
ul[data-role="mega-nav"]>li:first-child>:is(div,section[data-container])[data-role="mega-content"] {
    opacity: 1;
    visibility: visible;
}

/* ۲. وقتی کاربر موس را روی هر گزینه‌ی دیگری می‌برد، گزینه اول مخفی شود */
ul[data-role="mega-nav"]:hover>li:first-child>:is(div,section[data-container])[data-role="mega-content"] {
    opacity: 0;
    visibility: hidden;
}

/* ۳. مگر اینکه کاربر مستقیماً روی خود گزینه اول برود */
ul[data-role="mega-nav"]>li:first-child:hover>:is(div,section[data-container])[data-role="mega-content"] {
    opacity: 1;
    visibility: visible;
}

/* ۴. نمایش محتوای هر گزینه‌ای که کاربر موس را روی آن می‌برد */
ul[data-role="mega-nav"]>li:hover>:is(div,section[data-container])[data-role="mega-content"] {
    opacity: 1;
    visibility: visible;
}


#hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 10%;
    min-height: calc(100vh - 120px);
}

#hero-section>:is(div,section[data-container]):first-child {
    flex: 1.2;
}

#hero-section>:is(div,section[data-container]):first-child>h2 {
    font-size: 48px;
    line-height: 1.4;
    margin: 0 0 24px 0;
}

#hero-section>:is(div,section[data-container]):first-child>h2>span {
    color: #D4AF37;
}

#hero-section>:is(div,section[data-container]):first-child>p {
    color: #848E9C;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 48px;
    max-width: 85%;
}


#hero-section>:is(div,section[data-container]):first-child>article {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    max-width: 500px;
}

#hero-section>:is(div,section[data-container]):first-child>article>h3 {
    color: #D4AF37;
    margin: 0 0 16px 0;
    font-size: 20px;
}

#hero-section>:is(div,section[data-container]):first-child>article>label {
    display: block;
    color: #848E9C;
    font-size: 14px;
    margin-bottom: 12px;
}

#hero-section>:is(div,section[data-container]):first-child>article>:is(div,section[data-container]) {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

#hero-section>:is(div,section[data-container]):first-child>article>:is(div,section[data-container])>input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid #333B47;
    color: #EAECEF;
    font-size: 24px;
    font-family: monospace;
    outline: none;
    transition: border-color 0.3s;
}

#hero-section>:is(div,section[data-container]):first-child>article>:is(div,section[data-container])>input:focus {
    border-bottom-color: #D4AF37;
}

#hero-section>:is(div,section[data-container]):first-child>article>:is(div,section[data-container])>button {
    background: linear-gradient(135deg, #F0B90B, #D4AF37);
    color: #121212;
    border: none;
    border-radius: 8px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#hero-section>:is(div,section[data-container]):first-child>article>:is(div,section[data-container])>button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

#hero-section>:is(div,section[data-container]):first-child>article>ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#hero-section>:is(div,section[data-container]):first-child>article>ul>li {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #EAECEF;
    border-right: 3px solid #D4AF37;
}

#hero-section>:is(div,section[data-container]):first-child>article>ul>li>strong {
    color: #D4AF37;
    font-size: 18px;
}




#adv-calc-drawer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    transition: max-height 0.5s ease, opacity 0.5s ease, margin 0.5s ease, padding 0.5s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px;
    margin-top: 0;
}


#adv-calc-drawer[data-expanded="true"] {
    max-height: 400px;
    opacity: 1;
    margin-top: 20px;
    padding: 16px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}


#adv-calc-drawer label {
    display: block;
    color: #848E9C;
    font-size: 12px;
    margin-bottom: 6px;
}


#adv-calc-drawer input[type="number"],
#adv-calc-drawer select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px;
    color: #EAECEF;
    font-family: monospace;
    font-size: 14px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

#adv-calc-drawer input[type="number"]:focus,
#adv-calc-drawer select:focus {
    border-color: #D4AF37;
}


#adv-calc-drawer>:is(div,section[data-container]):first-child>:is(div,section[data-container]) {
    display: flex;
    gap: 8px;
}

#adv-calc-drawer>:is(div,section[data-container]):first-child>:is(div,section[data-container])>input {
    flex: 2;
}

#adv-calc-drawer>:is(div,section[data-container]):first-child>:is(div,section[data-container])>select {
    flex: 1;
    color: #D4AF37;
    cursor: pointer;
}


#adv-calc-drawer input::-webkit-outer-spin-button,
#adv-calc-drawer input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


#hero-section>:is(div,section[data-container]):first-child>article>button#adv-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: transparent;
    border: none;
    color: #848E9C;
    font-size: 13px;
    font-family: inherit;


    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);

    cursor: pointer;
    transition: color 0.3s;
}

#hero-section>:is(div,section[data-container]):first-child>article>button#adv-toggle-btn:hover {
    color: #D4AF37;
}

#hero-section>:is(div,section[data-container]):first-child>article>button#adv-toggle-btn>span {
    font-size: 10px;
    transition: transform 0.4s ease;
}


#hero-section>:is(div,section[data-container]):first-child>article>button#adv-toggle-btn[data-active="true"]>span {
    transform: rotate(180deg);
}


#hero-section>:is(div,section[data-container]):last-child {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#interactive-graphic {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}


#interactive-graphic>canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}


#hero-section {
    position: relative;
    overflow: hidden;
}


#hero-section>:is(div,section[data-container]) {
    position: relative;
    z-index: 2;
}


#hero-section>svg#trend-line-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
    transition: opacity 0.5s, filter 0.5s;
}

#hero-section>svg#trend-line-svg[data-pulse="true"] {
    opacity: 1;
    filter: drop-shadow(0 0 15px #D4AF37) brightness(1.5);
}


#interactive-graphic>article {
    position: relative;
    z-index: 3;
    width: 150px;
    height: 260px;

    background: linear-gradient(135deg, #FFDF73 0%, #D4AF37 40%, #997A15 80%, #5A4300 100%);
    border-radius: 12px;
    box-shadow: inset -4px -4px 10px rgba(0, 0, 0, 0.4),
        inset 4px 4px 10px rgba(255, 255, 255, 0.6),
        15px 25px 35px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(212, 175, 55, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    border: 1px solid #FFEBAA;

    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}


#interactive-graphic>article>:is(div,section[data-container]) {
    border: 2px solid rgba(139, 101, 8, 0.3);
    width: 80%;
    height: 90%;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
    box-sizing: border-box;

    transform: translateZ(30px);
}

#interactive-graphic>article>:is(div,section[data-container])>strong {
    font-size: 34px;
    color: #8B6508;
    font-family: serif;
    letter-spacing: 2px;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.3), -1px -1px 0px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

#interactive-graphic>article>:is(div,section[data-container])>span {
    font-size: 10px;
    color: #8B6508;
    font-family: monospace;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 6px;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.2);
}

#interactive-graphic>article>:is(div,section[data-container])>i {
    margin-top: auto;
    margin-bottom: 20px;
    font-style: normal;
    font-family: monospace;
    font-size: 14px;
    font-weight: bold;
    color: #8B6508;
    background: rgba(139, 101, 8, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}



#categories {
    padding: 20px 10% 60px 10%;
    position: relative;
    z-index: 2;
}


#categories>header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

#categories>header>h2 {
    margin: 0;
    color: #EAECEF;
    font-size: 28px;
    font-weight: 600;
}

#categories>header>h2>span {
    color: #D4AF37;
}


#categories>nav {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 24px;
    justify-items: center;
}


#categories>nav>a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s;
}

#categories>nav>a:hover {
    transform: translateY(-8px);
}


#categories>nav>a>figure {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 16px 0;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}


#categories>nav>a:hover>figure {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(212, 175, 55, 0.15);
}


#categories>nav>a>figure>svg {
    width: 36px;
    height: 36px;
    transition: transform 0.3s;
}

#categories>nav>a:hover>figure>svg {
    transform: scale(1.15);
}


#categories>nav>a>span {
    color: #EAECEF;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
}

#categories>nav>a:hover>span {
    color: #D4AF37;
}




#special-offers {
    padding: 60px 10%;
    position: relative;
    z-index: 2;
}

#special-offers>header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 16px;
    margin-bottom: 32px;
}

#special-offers>header>h2 {
    margin: 0;
    color: #EAECEF;
    font-size: 28px;
    font-weight: 600;
}

#special-offers>header>h2>span {
    color: #D4AF37;
}

#special-offers>header>a {
    color: #848E9C;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

#special-offers>header>a:hover {
    color: #D4AF37;
}

#special-offers [data-role="home-offer-track"] {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding: 20px 0px;
    scroll-behavior: smooth;
    cursor: grab;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#special-offers [data-role="home-offer-track"]::-webkit-scrollbar {
    display: none;
}

#special-offers [data-role="home-offer-track"]:active {
    cursor: grabbing;
}

#special-offers [data-role="home-offer-track"]>article {
    flex: 0 0 auto;
    width: 280px;
    background: rgba(255, 255, 255, 0.027);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 16px;
    padding: 16px;
    backdrop-filter: blur(10px);
    transition: scale 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

#special-offers [data-role="home-offer-track"]>article:hover {
    scale: 1.03;
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 1px 15px rgba(221, 208, 89, 0.6);
}

#special-offers [data-role="home-offer-track"]>article>figure {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    height: 220px;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#special-offers [data-role="home-offer-track"]>article>figure>svg {
    width: 64px;
    height: 64px;
    opacity: 0.5;
}

#special-offers [data-role="home-offer-track"]>article>figure>span {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: #FFF;
    background: #F6465D;
}

#special-offers [data-role="home-offer-track"]>article>:is(div,section[data-container])>h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #EAECEF;
}

#special-offers [data-role="home-offer-track"]>article>:is(div,section[data-container])>p {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: #848E9C;
}

#special-offers [data-role="home-offer-track"]>article>:is(div,section[data-container])>del {
    display: block;
    color: #848E9C;
    font-size: 13px;
    margin-bottom: 4px;
}

#special-offers [data-role="home-offer-track"]>article>:is(div,section[data-container])>strong {
    display: block;
    color: #D4AF37;
    font-size: 20px;
    font-family: monospace;
    margin-bottom: 20px;
}

#special-offers [data-role="home-offer-track"]>article>:is(div,section[data-container])>button {
    width: 100%;
    background: transparent;
    border: 1px solid #D4AF37;
    color: #D4AF37;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

#special-offers [data-role="home-offer-track"]>article>:is(div,section[data-container])>button:hover {
    background: #D4AF37;
    color: #121212;
}



#new-arrivals {
    padding: 60px 10%;
    position: relative;
    z-index: 2;
}

#new-arrivals>header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 16px;
    margin-bottom: 40px;
}

#new-arrivals>header>h2 {
    margin: 0;
    color: #EAECEF;
    font-size: 28px;
    font-weight: 600;
}

#new-arrivals>header>h2>span {
    color: #D4AF37;
}

#new-arrivals>header>a {
    color: #848E9C;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

#new-arrivals>header>a:hover {
    color: #D4AF37;
}


#new-arrivals>:is(div,section[data-container])[data-layout="row"] {
    display: flex;
    gap: 24px;
    margin-bottom: 50px;
    align-items: stretch;
}


#new-arrivals>:is(div,section[data-container])[data-layout="row"]>article[data-role="intro"] {
    flex: 0 0 280px;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.15), rgba(0, 0, 0, 0.6));
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 24px;
    z-index: 10;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
}

#new-arrivals>:is(div,section[data-container])[data-layout="row"]>article[data-role="intro"]>:is(div,section[data-container])>h3 {
    color: #D4AF37;
    font-size: 28px;
    margin: 0 0 16px 0;
}

#new-arrivals>:is(div,section[data-container])[data-layout="row"]>article[data-role="intro"]>:is(div,section[data-container])>p {
    color: #EAECEF;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 30px;
}

#new-arrivals>:is(div,section[data-container])[data-layout="row"]>article[data-role="intro"]>:is(div,section[data-container])>button {
    background: #D4AF37;
    color: #121212;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: filter 0.3s;
}

#new-arrivals>:is(div,section[data-container])[data-layout="row"]>article[data-role="intro"]>:is(div,section[data-container])>button:hover {
    filter: brightness(1.2);
}


#new-arrivals [data-role="slider"] {
    flex: 1;
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding: 20px 10px;
    padding-bottom: 30px;
    padding-top: 10px;
    scroll-behavior: smooth;
    cursor: grab;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#new-arrivals [data-role="slider"]::-webkit-scrollbar {
    display: none;
}

#new-arrivals [data-role="slider"]:active {
    cursor: grabbing;
}


#new-arrivals [data-role="slider"]>article {
    flex: 0 0 auto;
    width: 280px;
    background: rgba(255, 255, 255, 0.027);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 16px;
    padding: 16px;
    backdrop-filter: blur(10px);
    transition: scale 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

#new-arrivals [data-role="slider"]>article:hover {
    scale: 1.03;
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 10px 30px rgba(221, 208, 89, 0.6);
}


#new-arrivals [data-role="slider"]>article>figure {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    height: 220px;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#new-arrivals [data-role="slider"]>article>figure>svg {
    width: 64px;
    height: 64px;
    opacity: 0.5;
}

#new-arrivals [data-role="slider"]>article>figure>span {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    background: #D4AF37;
    color: #121212;
}

#new-arrivals [data-role="slider"]>article>:is(div,section[data-container])>h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #EAECEF;
}

#new-arrivals [data-role="slider"]>article>:is(div,section[data-container])>p {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: #848E9C;
}

#new-arrivals [data-role="slider"]>article>:is(div,section[data-container])>strong {
    display: block;
    color: #D4AF37;
    font-size: 20px;
    font-family: monospace;
    margin-bottom: 20px;
}

#new-arrivals [data-role="slider"]>article>:is(div,section[data-container])>button {
    width: 100%;
    background: transparent;
    border: 1px solid #D4AF37;
    color: #D4AF37;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

#new-arrivals [data-role="slider"]>article>:is(div,section[data-container])>button:hover {
    background: #D4AF37;
    color: #121212;
}

/* رنگ ردیف محصولات با ساختار موجود انتخاب می‌شود و به کلاس نیاز ندارد. */
#special-offers [data-role="home-offer-track"],
#new-arrivals > :is(div,section[data-container])[data-layout="row"] {
    background-color: #f0bb0b14;
}


#trust-badges {
    padding: 0 10% 40px 10%;
    position: relative;
    z-index: 2;
}


#trust-badges>:is(div,section[data-container]) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    padding: 40px 24px;
    backdrop-filter: blur(12px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}


#trust-badges>:is(div,section[data-container])>article {
    transition: transform 0.4s ease;
}

#trust-badges>:is(div,section[data-container])>article:hover {
    transform: translateY(-8px);
}


#trust-badges>:is(div,section[data-container])>article>a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}


#trust-badges>:is(div,section[data-container])>article>a>figure {
    width: 64px;
    height: 64px;
    background: rgba(212, 175, 55, 0.03);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 20px 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: background 0.4s, box-shadow 0.4s, border-color 0.4s;
}


#trust-badges>:is(div,section[data-container])>article:hover>a>figure {
    background: rgba(212, 175, 55, 0.1);
    border-color: #D4AF37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

#trust-badges>:is(div,section[data-container])>article>a>figure>svg {
    width: 32px;
    height: 32px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


#trust-badges>:is(div,section[data-container])>article:hover>a>figure>svg {
    transform: scale(1.15);
}


#trust-badges>:is(div,section[data-container])>article>a>h3 {
    color: #EAECEF;
    font-size: 16px;
    margin: 0 0 10px 0;
    font-weight: 600;
    transition: color 0.3s ease;
}


#trust-badges>:is(div,section[data-container])>article:hover>a>h3 {
    color: #D4AF37;
}

#trust-badges>:is(div,section[data-container])>article>a>p {
    color: #848E9C;
    font-size: 13px;
    margin: 0;
    line-height: 1.8;
}



#custom-order {
    padding: 80px 10%;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#custom-order>header {
    text-align: center;
    margin-bottom: 40px;
}

#custom-order>header>h2 {
    margin: 0 0 16px 0;
    color: #EAECEF;
    font-size: 28px;
    font-weight: 600;
}

#custom-order>header>h2>span {
    color: #D4AF37;
}

#custom-order>header>p {
    color: #848E9C;
    font-size: 15px;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.8;
}


#custom-order>form {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 24px;
}


#custom-order>form>fieldset {
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}


@media (max-width: 600px) {
    #custom-order>form>fieldset {
        flex-direction: column;
    }
}

#custom-order>form>fieldset>:is(div,section[data-container]) {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#custom-order>form>fieldset>:is(div,section[data-container])>label {
    color: #EAECEF;
    font-size: 14px;
    margin-bottom: 8px;
}


#custom-order>form input[type="text"],
#custom-order>form input[type="tel"],
#custom-order>form textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px;
    color: #EAECEF;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}


#custom-order>form input:focus,
#custom-order>form textarea:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

#custom-order>form textarea {
    resize: vertical;
}


#custom-order>form>fieldset>:is(div,section[data-container])[data-role="file-upload"]>label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border: 2px dashed rgba(212, 175, 55, 0.4);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
    gap: 12px;
    margin: 0;
}

#custom-order>form>fieldset>:is(div,section[data-container])[data-role="file-upload"]>label:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: #D4AF37;
}

#custom-order>form>fieldset>:is(div,section[data-container])[data-role="file-upload"]>label>svg {
    width: 32px;
    height: 32px;
}

#custom-order>form>fieldset>:is(div,section[data-container])[data-role="file-upload"]>label>span {
    color: #848E9C;
    font-size: 13px;
    transition: color 0.3s;
}


#custom-order>form>button {
    background: linear-gradient(135deg, #F0B90B, #D4AF37);
    color: #121212;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 10px;
}

#custom-order>form>button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}


#store-location {
    padding: 80px 10%;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#store-location>header {
    text-align: center;
    margin-bottom: 40px;
}

#store-location>header>h2 {
    margin: 0 0 16px 0;
    color: #EAECEF;
    font-size: 28px;
    font-weight: 600;
}

#store-location>header>h2>span {
    color: #D4AF37;
}

#store-location>header>p {
    color: #848E9C;
    font-size: 15px;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.8;
}


#store-location>:is(div,section[data-container])[data-layout="map-container"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    overflow: hidden;
}


@media (max-width: 900px) {
    #store-location>:is(div,section[data-container])[data-layout="map-container"] {
        flex-direction: column-reverse;
    }
}


#store-location>:is(div,section[data-container])[data-layout="map-container"]>address {
    flex: 1;
    padding: 40px;
    font-style: normal;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#store-location>:is(div,section[data-container])[data-layout="map-container"]>address>h3 {
    color: #D4AF37;
    font-size: 22px;
    margin: 0 0 24px 0;
}

#store-location>:is(div,section[data-container])[data-layout="map-container"]>address>ul {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#store-location>:is(div,section[data-container])[data-layout="map-container"]>address>ul>li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: #EAECEF;
    font-size: 15px;
    line-height: 1.6;
}

#store-location>:is(div,section[data-container])[data-layout="map-container"]>address>ul>li>svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

#store-location>:is(div,section[data-container])[data-layout="map-container"]>address>a {
    display: inline-block;
    text-align: center;
    background: linear-gradient(135deg, #F0B90B, #D4AF37);
    color: #121212;
    text-decoration: none;
    font-weight: bold;
    padding: 14px 24px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

#store-location>:is(div,section[data-container])[data-layout="map-container"]>address>a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}


#store-location>:is(div,section[data-container])[data-layout="map-container"]>figure {
    flex: 1.2;
    margin: 0;
    position: relative;
    min-height: 350px;
}

#store-location>:is(div,section[data-container])[data-layout="map-container"]>figure>iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    filter: invert(90%) hue-rotate(180deg) grayscale(40%) contrast(1.1);
}




#why-pourreza {
    padding: 80px 10%;
    position: relative;
    z-index: 2;
}

#why-pourreza>:is(div,section[data-container]) {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}


#why-pourreza>:is(div,section[data-container])>article {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 16px;
    padding: 35px 30px;
    backdrop-filter: blur(12px);
    text-align: center;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}


#why-pourreza>:is(div,section[data-container])>article:hover {
    transform: translateY(-8px);
    background: rgba(212, 175, 55, 0.04);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.15);
}

#why-pourreza>:is(div,section[data-container])>article>h3 {
    color: #D4AF37;
    font-size: 20px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

#why-pourreza>:is(div,section[data-container])>article>p {
    color: #EAECEF;
    font-size: 14.5px;
    margin: 0;
    line-height: 1.9;
}


#faq {
    padding: 80px 20%;
    position: relative;
    z-index: 2;
}

@media (max-width: 900px) {
    #faq {
        padding: 80px 10%;
    }
}

#faq>:is(div,section[data-container]) {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


#faq details {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s;
}

#faq details:hover {
    border-color: rgba(212, 175, 55, 0.2);
}

#faq details[open] {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(0, 0, 0, 0.2);
}


#faq details summary {
    color: #EAECEF;
    font-size: 15px;
    font-weight: 500;
    padding: 18px 25px;
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: color 0.3s;
}

#faq details summary::-webkit-details-marker {
    display: none;
}

#faq details summary:hover {
    color: #D4AF37;
}


#faq details summary::after {
    content: '+';
    color: #848E9C;
    font-size: 18px;
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s, color 0.3s;
}

#faq details[open] summary::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
    color: #D4AF37;
}


#faq details>p {
    color: #848E9C;
    font-size: 14px;
    line-height: 1.9;
    margin: 0;
    padding: 0 25px 25px 25px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}


/* =========================================================
   Footer Styles (فوتر تاریک و لوکس)
========================================================= */
#site-footer {
    background: #080808;
    /* رنگی کمی تیره‌تر از بدنه سایت برای ایجاد عمق */
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding: 70px 10% 30px;
    /* فضای تنفس مناسب */
    position: relative;
    z-index: 2;
}

/* ساختار گرید برای بخش بالایی فوتر */
#site-footer>:is(div,section[data-container])[data-layout="footer-top"] {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    /* تنظیم عرض ستون‌ها */
    gap: 50px;
    margin-bottom: 50px;
}

/* واکنش‌گرایی: در موبایل همه زیر هم قرار می‌گیرند */
@media (max-width: 900px) {
    #site-footer>:is(div,section[data-container])[data-layout="footer-top"] {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* -----------------------------------
   ستون اول: لوگو و نمادها
----------------------------------- */
#site-footer a[data-role="footer-logo"] {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 20px;
}

#site-footer a[data-role="footer-logo"]>img {
    height: 45px;
    width: auto;
}

#site-footer a[data-role="footer-logo"]>:is(div,section[data-container])>h2 {
    color: #D4AF37;
    font-size: 18px;
    margin: 0;
    letter-spacing: 2px;
}

#site-footer a[data-role="footer-logo"]>:is(div,section[data-container])>span {
    color: #848E9C;
    font-size: 11px;
    letter-spacing: 3px;
}

#site-footer section>p {
    color: #848E9C;
    font-size: 14px;
    line-height: 1.9;
    margin: 0 0 25px 0;
}

/* جایگاه نمادهای اعتماد */
#site-footer :is(div,section[data-container])[data-role="trust-seals"] {
    display: flex;
    gap: 15px;
}

#site-footer :is(div,section[data-container])[data-role="trust-seals"]>:is(div,section[data-container]) {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 12px;
    color: #555;
    transition: border-color 0.3s;
}

#site-footer :is(div,section[data-container])[data-role="trust-seals"]>:is(div,section[data-container]):hover {
    border-color: rgba(212, 175, 55, 0.2);
}

/* -----------------------------------
   ستون دوم: دسترسی سریع
----------------------------------- */
#site-footer section>h3 {
    color: #EAECEF;
    font-size: 16px;
    margin: 0 0 25px 0;
    font-weight: 500;
}

#site-footer section>ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

#site-footer section>ul>li>a {
    color: #848E9C;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

#site-footer section>ul>li>a:hover {
    color: #D4AF37;
    transform: translateX(-5px);
    /* حرکت نرم به سمت چپ برای متون فارسی */
}

/* -----------------------------------
   ستون سوم: فرم خبرنامه
----------------------------------- */
#site-footer form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#site-footer form>input {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    color: #EAECEF;
    font-family: inherit;
    direction: rtl;
    transition: border-color 0.3s, background 0.3s;
}

#site-footer form>input:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.6);
    background: rgba(255, 255, 255, 0.04);
}

#site-footer form>button {
    background: #D4AF37;
    color: #121212;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

#site-footer form>button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25);
}

/* -----------------------------------
   نوار پایین فوتر (کپی‌رایت و امضا)
----------------------------------- */
#site-footer>:is(div,section[data-container])[data-layout="footer-bottom"] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
}

#site-footer>:is(div,section[data-container])[data-layout="footer-bottom"]>:is(div,section[data-container]) {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#site-footer>:is(div,section[data-container])[data-layout="footer-bottom"] p {
    color: #888787;
    font-size: 12px;
    margin: 0;
}

#site-footer>:is(div,section[data-container])[data-layout="footer-bottom"] p>a {
    text-decoration: none;
}

#site-footer>:is(div,section[data-container])[data-layout="footer-bottom"] p>a>strong {
    color: #D4AF37;
    cursor: pointer;
}

/* استایل امضای توسعه‌دهنده (Aryanprz) */
#site-footer a[data-role="developer"] {
    color: #525151;
    /* رنگ محو و مینیمال */
    font-size: 11px;
    font-family: monospace;
    /* فونت برنامه‌نویسی */
    letter-spacing: 1px;
    text-decoration: none;
    direction: ltr;
    align-self: flex-start;
    transition: color 0.4s ease;
}

#site-footer a[data-role="developer"]:hover {
    color: #D4AF37;
    /* درخشش طلایی هنگام هاور */
}

/* آیکون‌های شبکه‌های اجتماعی */
#site-footer :is(div,section[data-container])[data-role="social-links"] {
    display: flex;
    gap: 18px;
}

#site-footer :is(div,section[data-container])[data-role="social-links"]>a {
    color: #848E9C;
    transition: color 0.3s, transform 0.3s;
    display: flex;
}

#site-footer :is(div,section[data-container])[data-role="social-links"]>a>svg {
    width: 22px;
    height: 22px;
}

#site-footer :is(div,section[data-container])[data-role="social-links"]>a:hover {
    color: #D4AF37;
    transform: scale(1.15) translateY(-3px);
}

/* واکنش‌گرایی نوار پایین برای موبایل */
@media (max-width: 600px) {
    #site-footer>:is(div,section[data-container])[data-layout="footer-bottom"] {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    #site-footer>:is(div,section[data-container])[data-layout="footer-bottom"]>:is(div,section[data-container]) {
        align-items: center;
        /* وسط‌چین کردن کپی‌رایت و امضا در موبایل */
    }

    #site-footer a[data-role="developer"] {
        align-self: center;
    }
}

/* =========================================================
   Responsive Design (تنظیمات تبلت و موبایل ارتقایافته)
========================================================= */

/* مخفی کردن دکمه همبرگری در دسکتاپ */
#site-header>button[data-role="hamburger-btn"] {
    display: none;
    background: transparent;
    border: none;
    color: #EAECEF;
    cursor: pointer;
    padding: 5px;
    position: relative;
    /* اضافه شود */
    z-index: 2100;
}

#site-header>button[data-role="hamburger-btn"]>svg {
    width: 28px;
    height: 28px;
    stroke: #D4AF37;
    /* رنگ طلایی */
    transition: transform 0.3s ease;
}

#site-header>button[data-role="hamburger-btn"]:active>svg {
    transform: scale(0.9);
}

#site-header>button[data-role="hamburger-btn"],
#site-header>nav>button[data-role="close-menu"],
#site-header>nav>:is(div,section[data-container])[data-role="mobile-icons"] {
    display: none;
}

li[data-mobile-only="true"] {
    display: none;
}


#auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

#auth-overlay[data-visible="true"] {
    opacity: 1;
    visibility: visible;
}

/* ایجاد عمق میدان (Perspective) */
#auth-overlay>:is(div,section[data-container])[data-role="auth-box"] {
    perspective: 1500px;
    width: 100%;
    max-width: 440px;
    height: 650px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.5s ease;
}

#auth-overlay[data-visible="true"]>:is(div,section[data-container])[data-role="auth-box"] {
    transform: translateY(0) scale(1);
}

/* دکمه ضربدر */
#auth-overlay button[data-role="close-auth"] {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #848E9C;
    font-size: 22px;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 100;
}

#auth-overlay button[data-role="close-auth"]:hover {
    color: #F6465D;
}

/* کانتینر چرخنده */
:is(div,section[data-container])[data-role="flip-container"] {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.68, -0.15, 0.265, 1.15);
    /* چرخش فنری */
}

:is(div,section[data-container])[data-role="flip-container"][data-flipped="true"] {
    transform: rotateY(180deg);
}

/* ================== استایل پشت و روی کارت (کاملاً گرد) ================== */
:is(div,section[data-container])[data-role="login-face"],
:is(div,section[data-container])[data-role="signup-face"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0A0A0A;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 45px;
    /* 👈 کادر اصلی کاملاً کپسولی و گرد شد */
    padding: 50px 40px;
    box-sizing: border-box;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

:is(div,section[data-container])[data-role="signup-face"] {
    transform: rotateY(180deg);
}

/* ========================================================================= */

/* هدر و لوگو */
:is(div,section[data-container])[data-role="flip-container"] header {
    text-align: center;
    margin-bottom: 25px;
}

:is(div,section[data-container])[data-role="flip-container"] header img {
    height: 45px;
    margin-bottom: 10px;
}

:is(div,section[data-container])[data-role="flip-container"] header h2 {
    margin: 0;
    color: #D4AF37;
    font-size: 20px;
    letter-spacing: 2px;
}

:is(div,section[data-container])[data-role="flip-container"] header p {
    margin: 5px 0 0 0;
    color: #848E9C;
    font-size: 13px;
}

/* اینپوت‌ها و فیلدها */
#auth-overlay form fieldset {
    border: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* 👈 رفع مشکل بیرون زدن فرم (نام و نام خانوادگی) */
#auth-overlay form :is(div,section[data-container])[data-layout="row"] {
    display: flex;
    gap: 15px;
    width: 100%;
}

#auth-overlay form :is(div,section[data-container])[data-layout="row"]>fieldset {
    flex: 1;
    min-width: 0;
    /* جادوی فلکس‌باکس: اجازه میده اینپوت کوچیک بشه و بیرون نزنه */
}

#auth-overlay form fieldset>label {
    color: #EAECEF;
    font-size: 12px;
    margin-bottom: 6px;
    padding-right: 15px;
}

#auth-overlay form fieldset>input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    /* 👈 اینپوت‌ها هم مثل ویدیو کاملاً گرد شدند */
    padding: 14px 20px;
    color: #FFF;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    width: 100%;
    box-sizing: border-box;
    /* 👈 تضمین ۱۰۰ درصد ماندن درون کادر */
}

#auth-overlay form fieldset>input:focus {
    border-color: #D4AF37;
}

/* لینک و دکمه‌ها */
#auth-overlay form>a {
    display: block;
    color: #D4AF37;
    font-size: 12px;
    text-decoration: none;
    margin-bottom: 25px;
    text-align: center;
}

#auth-overlay form>button[type="submit"] {
    width: 100%;
    background: linear-gradient(135deg, #F0B90B, #D4AF37);
    color: #121212;
    border: none;
    border-radius: 25px;
    /* 👈 دکمه کاملاً گرد شد */
    padding: 14px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: 10px;
}

#auth-overlay form>button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

/* بخش سوییچ (ورود/ثبت‌نام) در پایین فرم */
:is(div,section[data-container])[data-layout="switch-prompt"] {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    font-size: 13px;
    color: #848E9C;
}

:is(div,section[data-container])[data-layout="switch-prompt"] button {
    background: transparent;
    border: none;
    color: #D4AF37;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s;
}

:is(div,section[data-container])[data-layout="switch-prompt"] button:hover {
    color: #FFF;
    text-decoration: underline;
}

/* رسپانسیو موبایل */
@media (max-width: 600px) {
    #auth-overlay>:is(div,section[data-container])[data-role="auth-box"] {
        height: 100vh;
        max-width: 100%;
        transform: translateY(0);
        display: flex;
        align-items: center;
    }

    :is(div,section[data-container])[data-role="login-face"],
    :is(div,section[data-container])[data-role="signup-face"] {
        border-radius: 0;
        border: none;
        padding: 20px;
    }

    #auth-overlay button[data-role="close-auth"] {
        top: 15px;
        right: 15px;
        z-index: 2000;
    }
}

/* -----------------------------------
   تبلت‌ها و موبایل‌ها (کمتر از ۹۹۲ پیکسل)
----------------------------------- */
@media (max-width: 1032px) {

    /* ۱. تنظیمات کلی هدر */
    #site-header {
        position: relative;
        padding: 15px 5%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* ۲. نمایش دکمه همبرگر (نفر اول در هدر، بنابراین سمت راست می‌افتد) */
    #site-header>button[data-role="hamburger-btn"] {
        display: block;
    }

    #site-header:has(nav[data-open="true"])>button[data-role="hamburger-btn"] {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: scale(0.8);
        /* یک افکت نرمِ جمع شدن */
        transition: all 0.3s ease;
    }

    /* اضافه کردن ترنزیشن به حالت عادی دکمه برای برگشتِ نرم */
    #site-header>button[data-role="hamburger-btn"] {
        transition: all 0.3s ease;
    }

    /* ۳. وسط‌چین کردن لوگو (نفر سوم هدر) */
    #site-header>:is(div,section[data-container]):nth-of-type(1) {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0;
    }

    #site-header>:is(div,section[data-container]):nth-of-type(1)>img {
        height: 40px;
    }

    #site-header>:is(div,section[data-container]):nth-of-type(1)>:is(div,section[data-container])>h1 {
        font-size: 18px;
        letter-spacing: 2px;
    }

    #site-header>:is(div,section[data-container]):nth-of-type(1)>:is(div,section[data-container])>span {
        font-size: 10px;
        letter-spacing: 3px;
    }



    /* ۵. تبدیل Nav به کشوی سمت راست */
    #site-header>nav {
        position: fixed;
        top: 0;
        right: -320px;
        /* مخفی شده در بیرون صفحه */
        width: 280px;
        height: 100vh;
        background: rgba(15, 15, 15, 0.95);
        backdrop-filter: blur(20px);
        border-left: 1px solid rgba(212, 175, 55, 0.15);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
        z-index: 2000;
        display: flex;
        flex-direction: column;
        padding: 80px 20px 20px 20px;
        /* فاصله از بالا برای دکمه بستن */
        transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        overflow-y: auto;
    }

    /* وقتی منو باز است */
    #site-header>nav[data-open="true"] {
        right: 0;
    }

    /* دکمه ضربدر برای بستن منو */
    #site-header>nav>button[data-role="close-menu"] {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #EAECEF;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        font-size: 16px;
        cursor: pointer;
        transition: background 0.3s, color 0.3s;
    }

    #site-header>nav>button[data-role="close-menu"]:hover {
        background: #F6465D;
        color: #FFF;
    }

    /* لیست‌های منو به صورت عمودی */
    #site-header>nav>ul {
        flex-direction: column;
        gap: 0;
    }

    #site-header>nav>ul>li {
        padding: 0;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    #site-header>nav>ul>li>a {
        display: block;
        padding: 18px 10px;
        font-size: 16px;
    }

    /* رفتار مگامنو در موبایل (آکاردئونی) */
    #site-header>nav>ul>li>:is(div,section[data-container])[data-role="mega-menu"] {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        min-height: auto;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: transparent;
        display: none;
        padding: 0;
        margin-bottom: 15px;
    }

    #site-header>nav>ul>li:hover>:is(div,section[data-container])[data-role="mega-menu"] {
        display: flex;
        flex-direction: column;
    }

    :is(div,section[data-container])[data-role="mega-menu"]>ul[data-role="mega-nav"] {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px;
        background: transparent;
        border: none;
    }

    :is(div,section[data-container])[data-role="mega-menu"]>ul[data-role="mega-nav"]>li>a {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 6px;
        padding: 8px 15px;
        font-size: 13px;
    }

    /* مخفی کردن محتوای اضافی مگامنو در موبایل */
    :is(div,section[data-container])[data-role="mega-content"] {
        display: none;
    }

    li[data-mobile-only="true"] {
        display: block ;
    }

    #site-header > :is(div,section[data-container]):last-child {
        display: flex;
        gap: 12px;
    }

    /* "فقط" مخفی کردن آیکون تلفن از هدر موبایل */
    #site-header > :is(div,section[data-container]):last-child > button[data-role="contact-btn"] {
        display: none ;
    }

    /* بقیه آیکون‌ها (ماشین‌حساب، حساب کاربری و سبد خرید) باقی بمانند */
    #site-header > :is(div,section[data-container]):last-child svg {
        width: 20px;
        height: 20px;
    }


    #site-header>nav>:is(div,section[data-container])[data-role="mobile-icons"]>button {
        background: transparent;
        border: none;
        color: #EAECEF;
        padding: 10px;
    }

    #site-header>nav>:is(div,section[data-container])[data-role="mobile-icons"]>button>svg {
        width: 24px;
        height: 24px;
        stroke: currentColor;
        fill: none;
    }

    /* سایر تنظیمات قالب برای تبلت */
    #hero-section {
        flex-direction: column;
        padding: 40px 5%;
        text-align: center;
        min-height: auto;
    }

    #hero-section>:is(div,section[data-container]):first-child {
        margin-bottom: 40px;
    }

    #hero-section>:is(div,section[data-container]):first-child>p {
        margin: 0 auto 40px auto;
    }

    #hero-section>:is(div,section[data-container]):first-child>article {
        margin: 0 auto;
        text-align: right;
    }

    #hero-section>#interactive-graphic {
        display: none;
    }

    #new-arrivals>:is(div,section[data-container])[data-layout="row"] {
        flex-direction: column;
    }

    #new-arrivals>:is(div,section[data-container])[data-layout="row"]>article[data-role="intro"] {
        flex: auto;
        width: 100%;
        padding: 30px;
        box-sizing: border-box;
    }
}

/* -----------------------------------
   فقط موبایل‌ها (حداکثر عرض ۷۶۸ پیکسل)
----------------------------------- */
@media (max-width: 768px) {
    
    /* رفع اسکرول افقی نوار قیمت */
    #live-ticker {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 20px;
        padding: 12px 5%;
        overflow: hidden;
    }

    #live-ticker>i {
        display: none;
    }

    #live-ticker>p {
        width: 100%;
        text-align: center;
        margin: 5px 0 0 0;
        padding-top: 10px;
        border-top: 1px dashed rgba(212, 175, 55, 0.2);
    }

    /* تیترها و پدینگ ها */
    #hero-section>:is(div,section[data-container]):first-child>h2 {
        font-size: 32px;
    }

    #categories>header>h2,
    #special-offers>header>h2,
    #new-arrivals>header>h2,
    #custom-order>header>h2,
    #store-location>header>h2,
    #why-pourreza>header>h2,
    #faq>header>h2 {
        font-size: 22px;
    }

    #categories,
    #special-offers,
    #new-arrivals,
    #trust-badges,
    #custom-order,
    #store-location,
    #why-pourreza,
    #faq {
        padding-left: 5%;
        padding-right: 5%;
    }

    #custom-order>form {
        padding: 24px;
    }

    #custom-order>form>fieldset {
        flex-direction: column;
    }

    #special-offers [data-role="home-offer-track"],
    #new-arrivals [data-role="slider"] {
        gap: 12px;
    }

    /* ۲. کاهش عرض خود کارت‌ها از 280 به 160 پیکسل */
    #special-offers [data-role="home-offer-track"]>article,
    #new-arrivals [data-role="slider"]>article {
        width: 180px;
        padding: 12px;
        border-radius: 12px;
    }

    /* ۳. کوچک کردن باکس عکس (Figure) */
    #special-offers [data-role="home-offer-track"]>article>figure,
    #new-arrivals [data-role="slider"]>article>figure {
        height: 130px;
        margin-bottom: 12px;
        border-radius: 8px;
    }

    /* ۴. کوچک کردن آیکون/عکس داخل باکس */
    #special-offers [data-role="home-offer-track"]>article>figure>svg,
    #new-arrivals [data-role="slider"]>article>figure>svg {
        width: 40px;
        height: 40px;
    }

    /* ۵. تنظیم بج‌های روی عکس (مثل -50% یا جدید) */
    #special-offers [data-role="home-offer-track"]>article>figure>span,
    #new-arrivals [data-role="slider"]>article>figure>span {
        font-size: 10px;
        padding: 3px 6px;
        top: 8px;
        right: 8px;
    }

    /* ۶. کوچک کردن فونت تیتر 
       (نکته حرفه‌ای: با text-overflow کاری کردیم که اگر اسم محصول طولانی بود، از کادر بیرون نزند و ... بگیرد) */
    #special-offers [data-role="home-offer-track"]>article>:is(div,section[data-container])>h3,
    #new-arrivals [data-role="slider"]>article>:is(div,section[data-container])>h3 {
        font-size: 13px;
        margin-bottom: 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* ۷. کوچک کردن فونت توضیحات و قیمت خط‌خورده */
    #special-offers [data-role="home-offer-track"]>article>:is(div,section[data-container])>p,
    #special-offers [data-role="home-offer-track"]>article>:is(div,section[data-container])>del,
    #new-arrivals [data-role="slider"]>article>:is(div,section[data-container])>p {
        font-size: 11px;
        margin-bottom: 6px;
    }

    /* ۸. تنظیم سایز قیمت اصلی */
    #special-offers [data-role="home-offer-track"]>article>:is(div,section[data-container])>strong,
    #new-arrivals [data-role="slider"]>article>:is(div,section[data-container])>strong {
        font-size: 14px;
        margin-bottom: 12px;
    }

    /* ۹. کوچک کردن دکمه خرید */
    #special-offers [data-role="home-offer-track"]>article>:is(div,section[data-container])>button,
    #new-arrivals [data-role="slider"]>article>:is(div,section[data-container])>button {
        font-size: 12px;
        padding: 8px;
        border-radius: 6px;
    }
}
/* مرحله اول: استایل پیام‌های حساب کاربری از JavaScript به CSS منتقل شده است. */
#auth-overlay form > [data-role="auth-message"] {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
}
#auth-overlay form > [data-role="auth-message"][data-status="success"] {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
#auth-overlay form > [data-role="auth-message"][data-status="error"] {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Bounded pointer tilt: rotation never changes the surrounding layout. */
#gold-bar-3d {
    transform: rotateX(var(--ingot-x, 0deg)) rotateY(var(--ingot-y, 0deg));
    transition: transform 160ms ease-out;
}
#gold-bar-3d[data-tilt-x="-10"] { --ingot-x: -15deg; }
#gold-bar-3d[data-tilt-x="-9"] { --ingot-x: -13.5deg; }
#gold-bar-3d[data-tilt-x="-8"] { --ingot-x: -12deg; }
#gold-bar-3d[data-tilt-x="-7"] { --ingot-x: -10.5deg; }
#gold-bar-3d[data-tilt-x="-6"] { --ingot-x: -9deg; }
#gold-bar-3d[data-tilt-x="-5"] { --ingot-x: -7.5deg; }
#gold-bar-3d[data-tilt-x="-4"] { --ingot-x: -6deg; }
#gold-bar-3d[data-tilt-x="-3"] { --ingot-x: -4.5deg; }
#gold-bar-3d[data-tilt-x="-2"] { --ingot-x: -3deg; }
#gold-bar-3d[data-tilt-x="-1"] { --ingot-x: -1.5deg; }
#gold-bar-3d[data-tilt-x="0"] { --ingot-x: 0deg; }
#gold-bar-3d[data-tilt-x="1"] { --ingot-x: 1.5deg; }
#gold-bar-3d[data-tilt-x="2"] { --ingot-x: 3deg; }
#gold-bar-3d[data-tilt-x="3"] { --ingot-x: 4.5deg; }
#gold-bar-3d[data-tilt-x="4"] { --ingot-x: 6deg; }
#gold-bar-3d[data-tilt-x="5"] { --ingot-x: 7.5deg; }
#gold-bar-3d[data-tilt-x="6"] { --ingot-x: 9deg; }
#gold-bar-3d[data-tilt-x="7"] { --ingot-x: 10.5deg; }
#gold-bar-3d[data-tilt-x="8"] { --ingot-x: 12deg; }
#gold-bar-3d[data-tilt-x="9"] { --ingot-x: 13.5deg; }
#gold-bar-3d[data-tilt-x="10"] { --ingot-x: 15deg; }
#gold-bar-3d[data-tilt-y="-10"] { --ingot-y: -15deg; }
#gold-bar-3d[data-tilt-y="-9"] { --ingot-y: -13.5deg; }
#gold-bar-3d[data-tilt-y="-8"] { --ingot-y: -12deg; }
#gold-bar-3d[data-tilt-y="-7"] { --ingot-y: -10.5deg; }
#gold-bar-3d[data-tilt-y="-6"] { --ingot-y: -9deg; }
#gold-bar-3d[data-tilt-y="-5"] { --ingot-y: -7.5deg; }
#gold-bar-3d[data-tilt-y="-4"] { --ingot-y: -6deg; }
#gold-bar-3d[data-tilt-y="-3"] { --ingot-y: -4.5deg; }
#gold-bar-3d[data-tilt-y="-2"] { --ingot-y: -3deg; }
#gold-bar-3d[data-tilt-y="-1"] { --ingot-y: -1.5deg; }
#gold-bar-3d[data-tilt-y="0"] { --ingot-y: 0deg; }
#gold-bar-3d[data-tilt-y="1"] { --ingot-y: 1.5deg; }
#gold-bar-3d[data-tilt-y="2"] { --ingot-y: 3deg; }
#gold-bar-3d[data-tilt-y="3"] { --ingot-y: 4.5deg; }
#gold-bar-3d[data-tilt-y="4"] { --ingot-y: 6deg; }
#gold-bar-3d[data-tilt-y="5"] { --ingot-y: 7.5deg; }
#gold-bar-3d[data-tilt-y="6"] { --ingot-y: 9deg; }
#gold-bar-3d[data-tilt-y="7"] { --ingot-y: 10.5deg; }
#gold-bar-3d[data-tilt-y="8"] { --ingot-y: 12deg; }
#gold-bar-3d[data-tilt-y="9"] { --ingot-y: 13.5deg; }
#gold-bar-3d[data-tilt-y="10"] { --ingot-y: 15deg; }
@media (prefers-reduced-motion: reduce), (any-hover: none) {
    #gold-bar-3d { transform: none; transition: none; }
}
