/* فونت Inter از گوگل (باید اولین خط فایل باشد) */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* ========== ۱. متغیرها ========== */
:root {
    --bg: #060913;                                  /* رنگ پایه‌ی صفحه */
    --text: #eef2ff;                                /* رنگ متن اصلی */
    --muted: #9aa4c2;                               /* رنگ متن کم‌اهمیت */
    --primary: #5b8cff;                             /* آبی برند */
    --secondary: #a855f7;                           /* بنفش برند */
    --accent: #22d3ee;                              /* فیروزه‌ای تأکیدی */
    --danger: #ff4d6d;                              /* قرمز تخفیف */
    --success: #2dd4a0;                             /* سبز برچسب جدید */
    --gold: #fbbf24;                                /* طلایی ستاره‌ها */
    --gradient: linear-gradient(135deg, #5b8cff, #a855f7); /* گرادیان اصلی */
    --glass: rgba(255, 255, 255, .055);             /* شیشه‌ی معمولی */
    --glass-2: rgba(255, 255, 255, .1);             /* شیشه‌ی پررنگ‌تر */
    --border: rgba(255, 255, 255, .12);             /* قاب نازک شیشه */
    --blur: blur(14px) saturate(160%);              /* افکت شیشه‌ای */
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);       /* سایه */
    --radius: 16px;                                 /* گردی گوشه‌ها */
    --container: 1100px;                            /* عرض محتوا (کوچک و جمع‌وجور) */
    --ease: .3s cubic-bezier(.4, 0, .2, 1);         /* منحنی انیمیشن */
}

/* ========== ۲. ریست و پایه ========== */
*,
*::before,
*::after {
    box-sizing: border-box;                         /* پدینگ داخل عرض حساب شود */
    margin: 0;                                      /* حذف مارجین پیش‌فرض */
    padding: 0;                                     /* حذف پدینگ پیش‌فرض */
}

html {
    font-size: 15px;                                /* پایه‌ی کوچک‌تر از ۱۶ (همه‌ی rem ها کوچک می‌شوند) */
    scroll-behavior: smooth;                        /* اسکرول نرم */
}

body {
    font-family: "Inter", system-ui, sans-serif;    /* فونت */
    background: var(--bg);                          /* پس‌زمینه */
    color: var(--text);                             /* رنگ متن */
    line-height: 1.6;                               /* فاصله‌ی خطوط */
    min-height: 100vh;                              /* حداقل ارتفاع */
    overflow-x: hidden;                             /* بدون اسکرول افقی */
}

a {
    color: inherit;                                 /* رنگ از والد */
    text-decoration: none;                          /* حذف زیرخط */
    transition: var(--ease);                        /* انیمیشن */
}

img {
    display: block;                                 /* حذف فاصله‌ی زیر عکس */
    max-width: 100%;                                /* بزرگ‌تر از والد نشود */
}

ul {
    list-style: none;                               /* حذف نقطه‌ی لیست */
}

button,
input {
    font: inherit;                                  /* فونت صفحه */
    color: inherit;                                 /* رنگ متن */
}

button {
    cursor: pointer;                                /* نشانگر دست */
    border: 0;                                      /* بدون قاب */
    background: none;                               /* بدون پس‌زمینه */
}

:focus-visible {
    outline: 2px solid var(--accent);               /* قاب فوکوس کیبورد */
    outline-offset: 3px;                            /* فاصله‌ی قاب */
}

::selection {
    background: var(--primary);                     /* رنگ انتخاب متن */
    color: #fff;                                    /* متن سفید */
}

/* ========== ۳. پس‌زمینه‌ی متحرک ========== */
body::before {
    content: "";                                    /* لازم برای نمایش */
    position: fixed;                                /* ثابت */
    inset: -10%;                                    /* کمی بزرگ‌تر از صفحه برای حرکت */
    z-index: -2;                                    /* پشت همه چیز */
    background:
        radial-gradient(500px circle at 15% 15%, rgba(91, 140, 255, .35), transparent 60%),  /* لکه‌ی آبی */
        radial-gradient(550px circle at 85% 25%, rgba(168, 85, 247, .3), transparent 60%),   /* لکه‌ی بنفش */
        radial-gradient(500px circle at 50% 90%, rgba(34, 211, 238, .2), transparent 60%);   /* لکه‌ی فیروزه‌ای */
    animation: drift 20s ease-in-out infinite alternate; /* حرکت آرام */
}

body::after {
    content: "";                                    /* لازم برای نمایش */
    position: fixed;                                /* ثابت */
    inset: 0;                                       /* کل صفحه */
    z-index: -1;                                    /* پشت محتوا، بالای لکه‌ها */
    background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); /* الگوی نقطه‌ای */
    background-size: 26px 26px;                     /* فاصله‌ی نقطه‌ها */
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); /* محو شدن لبه‌ها (سافاری) */
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);         /* محو شدن لبه‌ها */
}

/* ========== ۴. انیمیشن‌ها ========== */
@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }        /* شروع */
    to   { transform: translate3d(-3%, 4%, 0) scale(1.15); }  /* پایان */
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(26px); }         /* نامرئی و پایین‌تر */
    to   { opacity: 1; transform: translateY(0); }            /* دیده‌شده در جای خود */
}

@keyframes float {
    0%, 100% { transform: translateY(0); }                    /* جای اصلی */
    50%      { transform: translateY(-12px); }                /* کمی بالاتر */
}

@keyframes shimmer {
    from { background-position: 0% 50%; }                     /* شروع گرادیان */
    to   { background-position: 300% 50%; }                   /* حرکت گرادیان */
}

@keyframes gradientMove {
    0%   { background-position: 0% 50%; }                     /* شروع */
    50%  { background-position: 100% 50%; }                   /* وسط */
    100% { background-position: 0% 50%; }                     /* برگشت */
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(91, 140, 255, .5); }  /* بدون هاله */
    50%      { box-shadow: 0 0 0 10px rgba(91, 140, 255, 0); }/* هاله‌ی در حال محو */
}

@keyframes bump {
    0%   { transform: scale(1); }                             /* اندازه‌ی عادی */
    40%  { transform: scale(1.5); }                           /* بزرگ شدن */
    100% { transform: scale(1); }                             /* برگشت */
}

@keyframes pop {
    from { opacity: 0; transform: translateY(10px) scale(.98); } /* شروع */
    to   { opacity: 1; transform: none; }                        /* پایان */
}

/* ========== ۵. ظاهر شیشه‌ای مشترک ========== */
.search,
.mega-menu,
.hero,
.category-card,
.product-card,
.feature-card,
.review-card,
.newsletter,
/* ========== ۶. دکمه‌ها ========== */
.button {
    position: relative;                             /* مرجع افکت درخشش */
    display: inline-flex;                           /* دکمه‌ی منعطف */
    align-items: center;                            /* وسط‌چین عمودی */
    justify-content: center;                        /* وسط‌چین افقی */
    padding: 10px 24px;                             /* اندازه‌ی کوچک */
    border-radius: 999px;                           /* قرصی */
    font-weight: 700;                               /* پررنگ */
    font-size: .9rem;                               /* فونت کوچک */
    overflow: hidden;                               /* درخشش بیرون نزند */
    transition: var(--ease);                        /* انیمیشن */
}

.button::after {
    content: "";                                    /* لایه‌ی درخشش */
    position: absolute;                             /* روی دکمه */
    top: 0;                                         /* از بالا */
    left: -120%;                                    /* بیرون از دکمه (چپ) */
    width: 60%;                                     /* عرض درخشش */
    height: 100%;                                   /* تمام ارتفاع */
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); /* نوار نور */
    transform: skewX(-20deg);                       /* کج شدن نوار */
    transition: left .6s ease;                      /* حرکت نوار */
}

.button:hover::after {
    left: 140%;                                     /* نوار از دکمه عبور کند */
}

.button--primary {
    background: var(--gradient);                    /* گرادیان */
    color: #fff;                                    /* متن سفید */
    box-shadow: 0 8px 24px rgba(91, 140, 255, .45); /* درخشش */
}

.button--primary:hover {
    transform: translateY(-3px);                    /* بالا می‌آید */
    box-shadow: 0 12px 30px rgba(168, 85, 247, .55);/* درخشش قوی‌تر */
}

.button--light {
    background: rgba(255, 255, 255, .92);           /* سفید */
    color: #1b1f3a;                                 /* متن تیره */
}

.button--light:hover {
    transform: translateY(-3px);                    /* بالا می‌آید */
    box-shadow: 0 12px 30px rgba(0, 0, 0, .3);      /* سایه */
}

/* ========== ۷. هدر ========== */
.header {
    position: sticky;                               /* هنگام اسکرول بچسبد */
    top: 0;                                         /* به بالای صفحه */
    z-index: 100;                                   /* روی بقیه */
    background: rgba(8, 11, 24, .6);                /* پس‌زمینه‌ی نیمه‌شفاف */
    -webkit-backdrop-filter: var(--blur);           /* شیشه (سافاری) */
    backdrop-filter: var(--blur);                   /* شیشه */
    border-bottom: 1px solid var(--border);         /* خط پایین */
    transition: var(--ease);                        /* انیمیشن */
}

.header.is-scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);     /* سایه هنگام اسکرول */
}

/* کانتینر مشترک بخش‌های هدر، محتوا و فوتر */
.top-bar,
.main-header,
.navbar__list,
.footer__container,
.footer__bottom,
.main {
    width: 100%;                                    /* تمام عرض */
    max-width: var(--container);                    /* حداکثر عرض */
    margin-inline: auto;                            /* وسط‌چین */
    padding-inline: 20px;                           /* فاصله‌ی کناری */
}

.top-bar {
    display: flex;                                  /* کنار هم */
    justify-content: space-between;                 /* دو سر */
    align-items: center;                            /* وسط‌چین */
    max-height: 40px;                               /* ارتفاع برای انیمیشن جمع شدن */
    padding-block: 6px;                             /* فاصله‌ی بالا و پایین */
    font-size: .75rem;                              /* فونت ریز */
    color: var(--muted);                            /* کم‌رنگ */
    border-bottom: 1px solid rgba(255, 255, 255, .06); /* خط کم‌رنگ */
    overflow: hidden;                               /* هنگام جمع شدن مخفی شود */
    transition: var(--ease);                        /* انیمیشن */
}

.header.is-scrolled .top-bar {
    max-height: 0;                                  /* نوار بالایی جمع شود */
    padding-block: 0;                               /* بدون فاصله */
    opacity: 0;                                     /* محو شود */
    border: 0;                                      /* بدون خط */
}

.top-bar__links {
    display: flex;                                  /* کنار هم */
    gap: 16px;                                      /* فاصله */
}

.top-bar__links a:hover {
    color: var(--accent);                           /* فیروزه‌ای با هاور */
}

.main-header {
    display: grid;                                  /* گرید */
    grid-template-columns: auto 1fr auto;           /* لوگو | جستجو | دکمه‌ها */
    align-items: center;                            /* وسط‌چین */
    gap: 20px;                                      /* فاصله */
    padding-block: 10px;                            /* فاصله‌ی بالا و پایین */
}

.logo {
    display: inline-block;                          /* اندازه‌ی متناسب */
    font-size: 1.3rem;                              /* اندازه‌ی لوگو */
    font-weight: 800;                               /* خیلی پررنگ */
    letter-spacing: 1px;                            /* فاصله‌ی حروف */
}

.logo span {
    background: var(--gradient);                    /* گرادیان */
    -webkit-background-clip: text;                  /* داخل حروف */
    background-clip: text;                          /* استاندارد */
    color: transparent;                             /* شفاف */
}

.search {
    display: flex;                                  /* ورودی و دکمه */
    align-items: center;                            /* وسط‌چین */
    width: 100%;                                    /* تمام عرض ستون */
    max-width: 440px;                               /* حداکثر عرض */
    justify-self: center;                           /* وسط ستون */
    padding: 3px;                                   /* فضای داخلی */
    border-radius: 999px;                           /* قرصی */
    box-shadow: none;                               /* بدون سایه */
    transition: var(--ease);                        /* انیمیشن */
}

.search:focus-within {
    max-width: 500px;                               /* هنگام تایپ کمی بازتر شود */
    border-color: var(--primary);                   /* قاب آبی */
    box-shadow: 0 0 0 4px rgba(91, 140, 255, .2);   /* هاله */
}

.search__input {
    flex: 1;                                        /* بقیه‌ی عرض */
    min-width: 0;                                   /* اجازه‌ی کوچک شدن */
    padding: 7px 16px;                              /* فضای داخلی */
    background: transparent;                        /* بدون پس‌زمینه */
    border: 0;                                      /* بدون قاب */
    outline: none;                                  /* حذف قاب (قاب را والد دارد) */
    font-size: .88rem;                              /* فونت */
}

.search__input::placeholder {
    color: var(--muted);                            /* رنگ متن راهنما */
}

.search__button {
    width: 32px;                                    /* عرض */
    height: 32px;                                   /* ارتفاع */
    border-radius: 50%;                             /* دایره */
    background: var(--gradient);                    /* گرادیان */
    font-size: .8rem;                               /* اندازه‌ی آیکون */
    transition: var(--ease);                        /* انیمیشن */
}

.search__button:hover {
    transform: rotate(15deg) scale(1.1);            /* چرخش و بزرگ شدن */
}

.user-actions {
    display: flex;                                  /* کنار هم */
    gap: 6px;                                       /* فاصله */
}

.user-actions__item {
    position: relative;                             /* مرجع نشان عددی */
    display: flex;                                  /* آیکون و متن */
    align-items: center;                            /* وسط‌چین */
    gap: 6px;                                       /* فاصله */
    padding: 6px 12px;                              /* اندازه */
    border-radius: 12px;                            /* گوشه‌ی گرد */
    background: var(--glass);                       /* شیشه */
    border: 1px solid var(--border);                /* قاب */
    font-size: .8rem;                               /* فونت */
}

.user-actions__item:hover {
    background: var(--glass-2);                     /* پررنگ‌تر */
    transform: translateY(-2px);                    /* بالا می‌آید */
}

.badge {
    position: absolute;                             /* گوشه‌ی دکمه */
    top: -6px;                                      /* بالا */
    right: -6px;                                    /* راست */
    display: grid;                                  /* برای وسط‌چین عدد */
    place-items: center;                            /* وسط‌چین */
    min-width: 18px;                                /* حداقل عرض */
    height: 18px;                                   /* ارتفاع */
    padding-inline: 4px;                            /* فضای عدد بزرگ */
    border-radius: 999px;                           /* گرد */
    background: var(--danger);                      /* قرمز */
    color: #fff;                                    /* سفید */
    font-size: .65rem;                              /* ریز */
    font-weight: 700;                               /* پررنگ */
}

.badge[hidden] {
    display: none;                                  /* وقتی صفر است مخفی */
}

.badge.bump {
    animation: bump .4s ease;                       /* جهش هنگام تغییر */
}

/* --- نوار منو --- */
.navbar {
    border-top: 1px solid rgba(255, 255, 255, .05); /* خط بالا */
}

.navbar__list {
    display: flex;                                  /* کنار هم */
    gap: 2px;                                       /* فاصله */
}

.navbar__link {
    position: relative;                             /* مرجع زیرخط */
    display: inline-flex;                           /* برای فلش منو */
    align-items: center;                            /* وسط‌چین */
    gap: 4px;                                       /* فاصله‌ی فلش */
    padding: 9px 14px;                              /* فضای کلیک */
    font-size: .85rem;                              /* فونت */
    font-weight: 500;                               /* متوسط */
    color: var(--muted);                            /* کم‌رنگ */
    white-space: nowrap;                            /* نشکند */
}

.navbar__link::after {
    content: "";                                    /* زیرخط متحرک */
    position: absolute;                             /* پایین لینک */
    left: 14px;                                     /* فاصله‌ی چپ */
    right: 14px;                                    /* فاصله‌ی راست */
    bottom: 3px;                                    /* فاصله از پایین */
    height: 2px;                                    /* ضخامت */
    border-radius: 2px;                             /* گرد */
    background: var(--gradient);                    /* گرادیان */
    transform: scaleX(0);                           /* در ابتدا جمع */
    transform-origin: left;                         /* رشد از چپ */
    transition: transform var(--ease);              /* انیمیشن */
}

.navbar__link:hover,
.navbar__link--active {
    color: #fff;                                    /* سفید */
}

.navbar__link:hover::after,
.navbar__link--active::after {
    transform: scaleX(1);                           /* زیرخط باز شود */
}

.navbar__link--sale {
    color: var(--danger);                           /* قرمز */
    font-weight: 700;                               /* پررنگ */
}

.navbar__item--mega {
    position: relative;                             /* مرجع مگامنو */
}

.navbar__item--mega > .navbar__link::before {
    content: "▾";                                   /* فلش */
    order: 2;                                       /* بعد از متن */
    font-size: .7em;                                /* کوچک */
    transition: transform var(--ease);              /* چرخش */
}

.navbar__item--mega:hover > .navbar__link::before {
    transform: rotate(180deg);                      /* فلش برعکس شود */
}

.mega-menu {
    position: absolute;                             /* شناور */
    top: 100%;                                      /* زیر لینک */
    left: 0;                                        /* از چپ لینک */
    z-index: 60;                                    /* روی محتوا */
    display: grid;                                  /* گرید */
    grid-template-columns: repeat(4, 1fr);          /* چهار ستون */
    gap: 18px;                                      /* فاصله */
    width: min(640px, 90vw);                        /* عرض */
    padding: 20px;                                  /* فضای داخلی */
    border-radius: var(--radius);                   /* گوشه‌ی گرد */
    background: rgba(12, 16, 32, .85);              /* شیشه‌ی تیره‌تر */
    opacity: 0;                                     /* نامرئی */
    visibility: hidden;                             /* غیرقابل کلیک */
    transform: translateY(10px);                    /* کمی پایین */
    transition: var(--ease);                        /* انیمیشن */
}

.navbar__item--mega:hover .mega-menu,
.navbar__item--mega:focus-within .mega-menu {
    opacity: 1;                                     /* دیده شود */
    visibility: visible;                            /* قابل کلیک */
    transform: none;                                /* به جای اصلی */
}

.mega-menu__column {
    display: flex;                                  /* زیر هم */
    flex-direction: column;                         /* عمودی */
    gap: 2px;                                       /* فاصله */
}

.mega-menu__title {
    margin-bottom: 6px;                             /* فاصله */
    font-size: .8rem;                               /* کوچک */
    text-transform: uppercase;                      /* حروف بزرگ */
    letter-spacing: 1px;                            /* فاصله‌ی حروف */
    color: var(--accent);                           /* فیروزه‌ای */
}

.mega-menu__column a {
    padding: 4px 8px;                               /* فضای کلیک */
    border-radius: 8px;                             /* گرد */
    font-size: .82rem;                              /* فونت */
    color: var(--muted);                            /* کم‌رنگ */
}

.mega-menu__column a:hover {
    color: #fff;                                    /* سفید */
    background: var(--glass-2);                     /* شیشه */
    transform: translateX(4px);                     /* کمی حرکت */
}

/* ========== ۸. بدنه و سربرگ بخش‌ها ========== */
.main {
    padding-block: 22px 0;                          /* فاصله‌ی بالا */
}

.section {
    margin-top: 56px;                               /* فاصله‌ی بین بخش‌ها */
}

.section-header {
    display: flex;                                  /* کنار هم */
    justify-content: space-between;                 /* دو سر */
    align-items: flex-end;                          /* هم‌تراز پایین */
    gap: 12px;                                      /* فاصله */
    margin-bottom: 20px;                            /* فاصله تا محتوا */
}

.section-header__subtitle {
    display: block;                                 /* خط جدا */
    font-size: .7rem;                               /* ریز */
    font-weight: 700;                               /* پررنگ */
    letter-spacing: 2px;                            /* فاصله‌ی حروف */
    color: var(--accent);                           /* فیروزه‌ای */
}

.section-header__title {
    font-size: 1.5rem;                              /* اندازه‌ی عنوان */
    font-weight: 800;                               /* خیلی پررنگ */
    line-height: 1.3;                               /* فاصله‌ی خطوط */
}

.section-header__link {
    padding: 6px 14px;                              /* اندازه */
    border-radius: 999px;                           /* قرصی */
    border: 1px solid var(--border);                /* قاب */
    font-size: .8rem;                               /* فونت */
    color: var(--muted);                            /* کم‌رنگ */
    white-space: nowrap;                            /* نشکند */
}

.section-header__link:hover {
    color: #fff;                                    /* سفید */
    background: var(--gradient);                    /* گرادیان */
    border-color: transparent;                      /* حذف قاب */
}

/* ========== ۹. هیرو ========== */
.hero {
    display: grid;                                  /* دو ستون */
    grid-template-columns: 1.1fr 1fr;               /* متن کمی عریض‌تر */
    align-items: center;                            /* وسط‌چین */
    gap: 28px;                                      /* فاصله */
    padding: 36px 40px;                             /* فضای داخلی جمع‌وجور */
    border-radius: 24px;                            /* گوشه‌ی گرد */
    overflow: hidden;                               /* بیرون‌زدگی مخفی */
}

.hero__content {
    display: flex;                                  /* ستونی */
    flex-direction: column;                         /* عمودی */
    align-items: flex-start;                        /* راست‌چین، دکمه کشیده نشود */
    gap: 12px;                                      /* فاصله */
}

.hero__content > * {
    animation: fadeUp .8s var(--d, 0s) both;        /* ورود پله‌ای هنگام لود */
}

.hero__content > :nth-child(1) { --d: .1s; }        /* تأخیر عنصر اول */
.hero__content > :nth-child(2) { --d: .25s; }       /* تأخیر عنصر دوم */
.hero__content > :nth-child(3) { --d: .4s; }        /* تأخیر عنصر سوم */
.hero__content > :nth-child(4) { --d: .55s; }       /* تأخیر عنصر چهارم */

.hero__subtitle {
    padding: 4px 14px;                              /* اندازه */
    border-radius: 999px;                           /* قرصی */
    background: rgba(34, 211, 238, .12);            /* فیروزه‌ای کم‌رنگ */
    border: 1px solid rgba(34, 211, 238, .4);       /* قاب فیروزه‌ای */
    color: var(--accent);                           /* متن فیروزه‌ای */
    font-size: .7rem;                               /* ریز */
    font-weight: 700;                               /* پررنگ */
    letter-spacing: 2px;                            /* فاصله‌ی حروف */
}

.hero__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);         /* اندازه‌ی ریسپانسیو */
    font-weight: 800;                               /* خیلی پررنگ */
    line-height: 1.2;                               /* فاصله‌ی خطوط */
    background: linear-gradient(90deg, #fff, #8fb0ff, #c084fc, #fff); /* گرادیان رنگی */
    background-size: 300% 100%;                     /* بزرگ‌تر برای حرکت */
    -webkit-background-clip: text;                  /* داخل حروف */
    background-clip: text;                          /* استاندارد */
    color: transparent;                             /* شفاف */
    animation: fadeUp .8s var(--d, 0s) both, shimmer 8s linear infinite; /* ورود + حرکت رنگ */
}

.hero__description {
    max-width: 380px;                               /* عرض خط */
    font-size: .95rem;                              /* فونت */
    color: var(--muted);                            /* کم‌رنگ */
}

.hero__image {
    position: relative;                             /* مرجع هاله */
    translate: var(--px, 0px) var(--py, 0px);       /* پارالاکس با ماوس (متغیر از JS) */
    transition: translate .3s ease-out;             /* نرم شدن حرکت */
}

.hero__image::before {
    content: "";                                    /* هاله‌ی نور */
    position: absolute;                             /* پشت عکس */
    inset: 12%;                                     /* کمی کوچک‌تر از عکس */
    background: var(--gradient);                    /* رنگ */
    filter: blur(50px);                             /* محو شدید */
    opacity: .55;                                   /* نیمه‌شفاف */
}

.hero__image img {
    position: relative;                             /* روی هاله */
    width: 100%;                                    /* تمام عرض */
    aspect-ratio: 4 / 3;                            /* نسبت ثابت */
    object-fit: cover;                              /* بدون کشیدگی */
    border-radius: 18px;                            /* گوشه‌ی گرد */
    border: 1px solid var(--border);                /* قاب */
    animation: float 6s ease-in-out infinite;       /* شناور بودن */
}

/* ========== ۱۰. اثر نور دنبال‌کننده‌ی ماوس روی کارت‌ها ========== */
.category-card,
.product-card,
.feature-card,
.review-card {
    position: relative;                             /* مرجع لایه‌ی نور */
    overflow: hidden;                               /* نور بیرون نزند */
    transition: transform .2s ease-out, border-color var(--ease), box-shadow var(--ease); /* انیمیشن */
}

.category-card::before,
.product-card::before,
.feature-card::before,
.review-card::before {
    content: "";                                    /* لایه‌ی نور */
    position: absolute;                             /* روی کارت */
    inset: 0;                                       /* کل کارت */
    z-index: 2;                                     /* روی محتوا */
    pointer-events: none;                           /* مانع کلیک نشود */
    opacity: 0;                                     /* در ابتدا نامرئی */
    background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .16), transparent 60%); /* نور دور ماوس */
    transition: opacity var(--ease);                /* انیمیشن */
}

.category-card:hover::before,
.product-card:hover::before,
.feature-card:hover::before,
.review-card:hover::before {
    opacity: 1;                                     /* با هاور دیده شود */
}

.category-card:hover,
.product-card:hover,
.feature-card:hover,
.review-card:hover {
    border-color: rgba(120, 150, 255, .5);          /* قاب آبی */
    box-shadow: 0 16px 40px rgba(91, 140, 255, .22);/* سایه‌ی رنگی */
}

/* ========== ۱۱. دسته‌بندی‌ها ========== */
.categories {
    display: grid;                                  /* گرید */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* ستون خودکار */
    gap: 16px;                                      /* فاصله */
}

.category-card {
    display: block;                                 /* کل کارت لینک */
    padding: 10px;                                  /* فضای داخلی */
    border-radius: var(--radius);                   /* گرد */
    text-align: center;                             /* وسط‌چین */
}

.category-card__image {
    overflow: hidden;                               /* زوم بیرون نزند */
    border-radius: 11px;                            /* گرد */
}

.category-card__image img {
    width: 100%;                                    /* تمام عرض */
    aspect-ratio: 16 / 10;                          /* نسبت */
    object-fit: cover;                              /* بدون کشیدگی */
    transition: transform .6s ease;                 /* زوم */
}

.category-card:hover .category-card__image img {
    transform: scale(1.12);                         /* زوم با هاور */
}

.category-card__title {
    margin-top: 10px;                               /* فاصله */
    font-size: .95rem;                              /* فونت */
}

.category-card__count {
    font-size: .75rem;                              /* ریز */
    color: var(--muted);                            /* کم‌رنگ */
}

/* ========== ۱۲. محصولات ========== */
.products {
    display: grid;                                  /* گرید */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* ستون خودکار */
    gap: 16px;                                      /* فاصله */
}

.product-card {
    display: flex;                                  /* ستونی */
    flex-direction: column;                         /* عمودی */
    border-radius: var(--radius);                   /* گرد */
}

.product-card.is-hidden {
    display: none;                                  /* محصول فیلترشده مخفی */
}

.product-card__image {
    position: relative;                             /* مرجع برچسب و قلب */
    overflow: hidden;                               /* زوم بیرون نزند */
}

.product-card__image img {
    width: 100%;                                    /* تمام عرض */
    aspect-ratio: 4 / 3;                            /* نسبت (کوتاه و جمع‌وجور) */
    object-fit: cover;                              /* بدون کشیدگی */
    transition: transform .6s ease;                 /* زوم */
}

.product-card:hover .product-card__image img {
    transform: scale(1.1);                          /* زوم با هاور */
}

.product-card__badge {
    position: absolute;                             /* روی عکس */
    top: 10px;                                      /* بالا */
    left: 10px;                                     /* چپ */
    z-index: 3;                                     /* روی عکس */
    padding: 2px 10px;                              /* اندازه */
    border-radius: 999px;                           /* قرصی */
    background: var(--success);                     /* سبز (NEW) */
    color: #04221a;                                 /* متن تیره روی سبز */
    font-size: .68rem;                              /* ریز */
    font-weight: 800;                               /* خیلی پررنگ */
}

.product-card__badge--sale {
    background: var(--danger);                      /* قرمز (SALE) */
    color: #fff;                                    /* متن سفید */
}

.product-card__wishlist {
    position: absolute;                             /* روی عکس */
    top: 8px;                                       /* بالا */
    right: 8px;                                     /* راست */
    z-index: 3;                                     /* روی عکس */
    width: 30px;                                    /* عرض */
    height: 30px;                                   /* ارتفاع */
    border-radius: 50%;                             /* دایره */
    background: rgba(0, 0, 0, .4);                  /* تیره‌ی نیمه‌شفاف */
    -webkit-backdrop-filter: blur(6px);             /* شیشه (سافاری) */
    backdrop-filter: blur(6px);                     /* شیشه */
    font-size: 1rem;                                /* اندازه‌ی قلب */
    line-height: 1;                                 /* بدون فاصله */
    transition: var(--ease);                        /* انیمیشن */
}

.product-card__wishlist:hover {
    transform: scale(1.15);                         /* بزرگ‌تر */
}

.product-card__wishlist.is-active {
    background: var(--danger);                      /* قرمز */
    animation: bump .4s ease;                       /* جهش */
}

.product-card__content {
    display: flex;                                  /* ستونی */
    flex: 1;                                        /* بقیه‌ی ارتفاع */
    flex-direction: column;                         /* عمودی */
    gap: 4px;                                       /* فاصله */
    padding: 12px 14px 14px;                        /* فضای داخلی */
}

.product-card__category {
    font-size: .68rem;                              /* ریز */
    font-weight: 700;                               /* پررنگ */
    letter-spacing: 1.5px;                          /* فاصله‌ی حروف */
    text-transform: uppercase;                      /* حروف بزرگ */
    color: var(--accent);                           /* فیروزه‌ای */
}

.product-card__title {
    min-height: 2.7em;                              /* ارتفاع دو خط (کارت‌ها هم‌قد) */
    font-size: .92rem;                              /* فونت */
    line-height: 1.35;                              /* فاصله‌ی خطوط */
    display: -webkit-box;                           /* برای محدودیت خط */
    -webkit-line-clamp: 2;                          /* حداکثر دو خط */
    -webkit-box-orient: vertical;                   /* جهت عمودی */
    overflow: hidden;                               /* بقیه مخفی */
}

.product-card__rating {
    font-size: .78rem;                              /* فونت */
    letter-spacing: 1px;                            /* فاصله‌ی ستاره‌ها */
    color: var(--gold);                             /* طلایی */
}

.product-card__rating span {
    margin-left: 4px;                               /* فاصله */
    letter-spacing: 0;                              /* بدون فاصله‌ی حروف */
    color: var(--muted);                            /* کم‌رنگ */
}

.product-card__price {
    display: flex;                                  /* کنار هم */
    align-items: baseline;                          /* هم‌تراز متن */
    gap: 8px;                                       /* فاصله */
    margin-top: 2px;                                /* فاصله */
}

.product-card__price-current {
    font-size: 1.15rem;                             /* بزرگ‌تر */
    font-weight: 800;                               /* خیلی پررنگ */
}

.product-card__price-old {
    font-size: .8rem;                               /* کوچک */
    color: var(--muted);                            /* کم‌رنگ */
    text-decoration: line-through;                  /* خط‌خورده */
}

.product-card__cart {
    margin-top: auto;                               /* بچسبد به ته کارت */
    padding: 9px;                                   /* اندازه */
    border-radius: 12px;                            /* گرد */
    background: var(--glass-2);                     /* شیشه */
    border: 1px solid var(--border);                /* قاب */
    font-size: .85rem;                              /* فونت */
    font-weight: 700;                               /* پررنگ */
    transition: var(--ease);                        /* انیمیشن */
}

.product-card__cart:hover {
    background: var(--gradient);                    /* گرادیان */
    border-color: transparent;                      /* حذف قاب */
    box-shadow: 0 8px 22px rgba(91, 140, 255, .45); /* درخشش */
}

.product-card__cart.is-done {
    background: var(--success);                     /* سبز پس از افزودن */
    border-color: transparent;                      /* حذف قاب */
    color: #04221a;                                 /* متن تیره */
}

/* ========== ۱۳. بنر تخفیف ========== */
.promotion {
    position: relative;                             /* مرجع دایره‌های شناور */
    margin-top: 56px;                               /* فاصله */
    padding: 40px 20px;                             /* فضای داخلی */
    border-radius: 24px;                            /* گرد */
    text-align: center;                             /* وسط‌چین */
    overflow: hidden;                               /* بیرون‌زدگی مخفی */
    background: linear-gradient(120deg, #4f46e5, #a855f7, #ec4899, #4f46e5); /* گرادیان رنگی */
    background-size: 300% 100%;                     /* بزرگ‌تر برای حرکت */
    animation: gradientMove 12s ease infinite;      /* حرکت گرادیان */
    box-shadow: 0 16px 50px rgba(168, 85, 247, .35);/* درخشش */
}

.promotion::before,
.promotion::after {
    content: "";                                    /* دایره‌های تزئینی */
    position: absolute;                             /* شناور */
    border-radius: 50%;                             /* دایره */
    background: rgba(255, 255, 255, .14);           /* سفید شفاف */
    animation: float 7s ease-in-out infinite;       /* شناور */
}

.promotion::before {
    top: -50px;                                     /* بالا */
    left: -40px;                                    /* چپ */
    width: 170px;                                   /* اندازه */
    height: 170px;                                  /* اندازه */
}

.promotion::after {
    right: -30px;                                   /* راست */
    bottom: -60px;                                  /* پایین */
    width: 210px;                                   /* اندازه */
    height: 210px;                                  /* اندازه */
    animation-delay: -3s;                           /* هماهنگ نبودن با دایره‌ی اول */
}

.promotion__content {
    position: relative;                             /* روی دایره‌ها */
    z-index: 1;                                     /* بالاتر از تزئینات */
    display: flex;                                  /* ستونی */
    flex-direction: column;                         /* عمودی */
    align-items: center;                            /* وسط‌چین */
    gap: 8px;                                       /* فاصله */
}

.promotion__subtitle {
    font-size: .7rem;                               /* ریز */
    font-weight: 700;                               /* پررنگ */
    letter-spacing: 3px;                            /* فاصله‌ی حروف */
    opacity: .85;                                   /* کمی کم‌رنگ */
}

.promotion__title {
    font-size: clamp(1.6rem, 4vw, 2.3rem);         /* اندازه‌ی ریسپانسیو */
    font-weight: 800;                               /* خیلی پررنگ */
}

.promotion__description {
    margin-bottom: 10px;                            /* فاصله تا دکمه */
    opacity: .9;                                    /* کمی کم‌رنگ */
}

/* ========== ۱۴. ویژگی‌ها ========== */
.features {
    display: grid;                                  /* گرید */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* ستون خودکار */
    gap: 14px;                                      /* فاصله */
}

.feature-card {
    display: flex;                                  /* آیکون و متن کنار هم */
    align-items: center;                            /* وسط‌چین */
    gap: 12px;                                      /* فاصله */
    padding: 14px 16px;                             /* فضای داخلی */
    border-radius: var(--radius);                   /* گرد */
}

.feature-card__icon {
    display: grid;                                  /* برای وسط‌چین */
    place-items: center;                            /* وسط‌چین */
    flex-shrink: 0;                                 /* کوچک نشود */
    width: 44px;                                    /* عرض */
    height: 44px;                                   /* ارتفاع */
    border-radius: 12px;                            /* گرد */
    background: var(--gradient);                    /* گرادیان */
    font-size: 1.2rem;                              /* اندازه‌ی آیکون */
    animation: pulse 2.5s infinite;                 /* هاله‌ی ضربان‌دار */
}

.feature-card__title {
    font-size: .9rem;                               /* فونت */
}

.feature-card__description {
    font-size: .78rem;                              /* کوچک */
    color: var(--muted);                            /* کم‌رنگ */
}

/* ========== ۱۵. نظرات ========== */
.reviews {
    display: grid;                                  /* گرید */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* ستون خودکار */
    gap: 16px;                                      /* فاصله */
}

.review-card {
    padding: 18px 20px;                             /* فضای داخلی */
    border-radius: var(--radius);                   /* گرد */
}

.review-card__rating {
    font-size: .85rem;                              /* فونت */
    letter-spacing: 2px;                            /* فاصله‌ی ستاره‌ها */
    color: var(--gold);                             /* طلایی */
}

.review-card__text {
    margin: 8px 0 14px;                             /* فاصله */
    font-size: .88rem;                              /* فونت */
    color: var(--muted);                            /* کم‌رنگ */
}

.review-card__author {
    display: flex;                                  /* آواتار و متن */
    align-items: center;                            /* وسط‌چین */
    gap: 10px;                                      /* فاصله */
}

.review-card__avatar {
    display: grid;                                  /* برای وسط‌چین */
    place-items: center;                            /* وسط‌چین */
    width: 36px;                                    /* عرض */
    height: 36px;                                   /* ارتفاع */
    border-radius: 50%;                             /* دایره */
    background: var(--gradient);                    /* گرادیان */
    font-weight: 800;                               /* پررنگ */
}

.review-card__name {
    font-size: .85rem;                              /* فونت */
    line-height: 1.3;                               /* فاصله‌ی خطوط */
}

.review-card__role {
    font-size: .72rem;                              /* ریز */
    color: var(--success);                          /* سبز تأیید */
}

/* ========== ۱۶. خبرنامه ========== */
.newsletter {
    margin-top: 56px;                               /* فاصله */
    padding: 40px 20px;                             /* فضای داخلی */
    border-radius: 24px;                            /* گرد */
    text-align: center;                             /* وسط‌چین */
}

.newsletter__content {
    display: flex;                                  /* ستونی */
    flex-direction: column;                         /* عمودی */
    align-items: center;                            /* وسط‌چین */
    gap: 6px;                                       /* فاصله */
}

.newsletter__subtitle {
    font-size: .7rem;                               /* ریز */
    font-weight: 700;                               /* پررنگ */
    letter-spacing: 3px;                            /* فاصله‌ی حروف */
    color: var(--accent);                           /* فیروزه‌ای */
}

.newsletter__title {
    font-size: 1.6rem;                              /* اندازه */
    font-weight: 800;                               /* خیلی پررنگ */
}

.newsletter__description {
    max-width: 380px;                               /* عرض خط */
    font-size: .9rem;                               /* فونت */
    color: var(--muted);                            /* کم‌رنگ */
}

.newsletter__form {
    display: flex;                                  /* ورودی و دکمه */
    width: 100%;                                    /* تمام عرض */
    max-width: 420px;                               /* حداکثر عرض */
    margin-top: 12px;                               /* فاصله */
    padding: 4px;                                   /* فضای داخلی */
    border-radius: 999px;                           /* قرصی */
    background: rgba(0, 0, 0, .3);                  /* تیره */
    border: 1px solid var(--border);                /* قاب */
    transition: var(--ease);                        /* انیمیشن */
}

.newsletter__form:focus-within {
    border-color: var(--primary);                   /* قاب آبی */
    box-shadow: 0 0 0 4px rgba(91, 140, 255, .2);   /* هاله */
}

.newsletter__input {
    flex: 1;                                        /* بقیه‌ی عرض */
    min-width: 0;                                   /* اجازه‌ی کوچک شدن */
    padding: 8px 16px;                              /* فضای داخلی */
    background: transparent;                        /* بدون پس‌زمینه */
    border: 0;                                      /* بدون قاب */
    outline: none;                                  /* حذف قاب (قاب را فرم دارد) */
    font-size: .88rem;                              /* فونت */
}

.newsletter__input::placeholder {
    color: var(--muted);                            /* متن راهنما */
}

.newsletter__button {
    padding: 8px 22px;                              /* اندازه */
    border-radius: 999px;                           /* قرصی */
    background: var(--gradient);                    /* گرادیان */
    color: #fff;                                    /* سفید */
    font-size: .85rem;                              /* فونت */
    font-weight: 700;                               /* پررنگ */
    transition: var(--ease);                        /* انیمیشن */
}

.newsletter__button:hover {
    transform: scale(1.05);                         /* بزرگ‌تر */
    box-shadow: 0 8px 22px rgba(91, 140, 255, .5);  /* درخشش */
}

/* ========== ۱۷. فوتر ========== */
.footer {
    margin-top: 64px;                               /* فاصله */
    background: rgba(8, 11, 24, .6);                /* تیره‌ی شیشه‌ای */
    -webkit-backdrop-filter: var(--blur);           /* شیشه (سافاری) */
    backdrop-filter: var(--blur);                   /* شیشه */
    border-top: 1px solid var(--border);            /* خط بالا */
}

.footer__container {
    display: grid;                                  /* گرید */
    grid-template-columns: 1.5fr repeat(3, 1fr);    /* ستون اول عریض‌تر */
    gap: 28px;                                      /* فاصله */
    padding-block: 40px 28px;                       /* فاصله‌ی بالا و پایین */
}

.footer__column {
    display: flex;                                  /* زیر هم */
    flex-direction: column;                         /* عمودی */
    align-items: flex-start;                        /* راست‌چین */
    gap: 6px;                                       /* فاصله */
}

.footer__description {
    max-width: 280px;                               /* عرض خط */
    margin-block: 4px 6px;                          /* فاصله */
    font-size: .82rem;                              /* فونت */
    color: var(--muted);                            /* کم‌رنگ */
}

.footer__title {
    margin-bottom: 4px;                             /* فاصله */
    font-size: .9rem;                               /* فونت */
}

.footer__column > a:not(.logo) {
    font-size: .82rem;                              /* فونت */
    color: var(--muted);                            /* کم‌رنگ */
}

.footer__column > a:not(.logo):hover {
    color: var(--accent);                           /* فیروزه‌ای */
    transform: translateX(4px);                     /* کمی حرکت */
}

.footer__social {
    display: flex;                                  /* کنار هم */
    flex-wrap: wrap;                                /* بشکند */
    gap: 6px;                                       /* فاصله */
}

.footer__social-link {
    padding: 3px 12px;                              /* اندازه */
    border-radius: 999px;                           /* قرصی */
    border: 1px solid var(--border);                /* قاب */
    font-size: .75rem;                              /* فونت */
}

.footer__social-link:hover {
    background: var(--gradient);                    /* گرادیان */
    border-color: transparent;                      /* حذف قاب */
}

.footer__bottom {
    display: flex;                                  /* کنار هم */
    justify-content: space-between;                 /* دو سر */
    align-items: center;                            /* وسط‌چین */
    flex-wrap: wrap;                                /* بشکند */
    gap: 10px;                                      /* فاصله */
    padding-block: 16px;                            /* فاصله‌ی بالا و پایین */
    border-top: 1px solid rgba(255, 255, 255, .08); /* خط جداکننده */
    font-size: .78rem;                              /* فونت */
    color: var(--muted);                            /* کم‌رنگ */
}

.footer__payments {
    display: flex;                                  /* کنار هم */
    gap: 6px;                                       /* فاصله */
}

.footer__payments span {
    padding: 2px 10px;                              /* اندازه */
    border-radius: 6px;                             /* گرد */
    border: 1px solid var(--border);                /* قاب */
    font-size: .68rem;                              /* ریز */
    font-weight: 700;                               /* پررنگ */
}

/* ========== ۱۸. عناصر ساخته‌شده با جاوااسکریپت ========== */
.progress {
    position: fixed;                                /* ثابت بالای صفحه */
    top: 0;                                         /* بالا */
    left: 0;                                        /* چپ */
    z-index: 300;                                   /* روی همه چیز */
    width: 100%;                                    /* تمام عرض */
    height: 3px;                                    /* ضخامت */
    background: var(--gradient);                    /* گرادیان */
    transform: scaleX(0);                           /* در ابتدا خالی */
    transform-origin: left;                         /* رشد از چپ */
}

.toast {
    position: fixed;                                /* ثابت */
    bottom: 20px;                                   /* پایین */
    left: 20px;                                     /* چپ */
    z-index: 200;                                   /* روی محتوا */
    max-width: 300px;                               /* حداکثر عرض */
    padding: 10px 18px;                             /* اندازه */
    border-radius: 12px;                            /* گرد */
    background: rgba(12, 16, 32, .88);              /* تیره */
    font-size: .85rem;                              /* فونت */
    opacity: 0;                                     /* نامرئی */
    transform: translateY(16px);                    /* پایین‌تر */
    pointer-events: none;                           /* مانع کلیک نشود */
    transition: var(--ease);                        /* انیمیشن */
}

.toast.is-visible {
    opacity: 1;                                     /* دیده شود */
    transform: none;                                /* به جای اصلی */
}

.fly-dot {
    position: fixed;                                /* آزاد روی صفحه */
    top: 0;                                         /* مبدأ مختصات */
    left: 0;                                        /* مبدأ مختصات */
    z-index: 300;                                   /* روی همه چیز */
    width: 14px;                                    /* اندازه */
    height: 14px;                                   /* اندازه */
    border-radius: 50%;                             /* دایره */
    background: var(--gradient);                    /* گرادیان */
    box-shadow: 0 0 14px var(--primary);            /* درخشش */
    pointer-events: none;                           /* مانع کلیک نشود */
}

.back-to-top {
    position: fixed;                                /* ثابت */
    bottom: 20px;                                   /* پایین */
    right: 20px;                                    /* راست */
    z-index: 150;                                   /* روی محتوا */
    width: 42px;                                    /* عرض */
    height: 42px;                                   /* ارتفاع */
    border-radius: 50%;                             /* دایره */
    background: var(--gradient);                    /* گرادیان */
    color: #fff;                                    /* سفید */
    box-shadow: 0 8px 24px rgba(91, 140, 255, .5);  /* درخشش */
    opacity: 0;                                     /* نامرئی */
    visibility: hidden;                             /* غیرقابل کلیک */
    transition: var(--ease);                        /* انیمیشن */
}

.back-to-top.is-visible {
    opacity: 1;                                     /* دیده شود */
    visibility: visible;                            /* قابل کلیک */
}

.back-to-top:hover {
    transform: translateY(-4px);                    /* بالا می‌آید */
}

/* ظاهر شدن بخش‌ها هنگام اسکرول (کلاس‌ها را JS اضافه می‌کند) */
.reveal {
    opacity: 0;                                     /* قبل از دیده شدن نامرئی */
}

.reveal.is-visible {
    opacity: 1;                                     /* دیده شود */
    animation: fadeUp .7s cubic-bezier(.2, .7, .2, 1) backwards; /* ورود از پایین */
    animation-delay: calc(var(--i, 0) * 80ms);      /* تأخیر پله‌ای بر اساس شماره‌ی کارت */
}

/* ========== ۱۹. ریسپانسیو ========== */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;                 /* تک‌ستونه */
        padding: 28px 22px;                         /* فضای کمتر */
    }

    .footer__container {
        grid-template-columns: repeat(2, 1fr);      /* دو ستونه */
    }
}

@media (max-width: 700px) {
    .header {
        position: static;                           /* در موبایل چسبان نباشد */
    }

    .top-bar__links {
        display: none;                              /* لینک‌های بالایی مخفی */
    }

    .top-bar {
        justify-content: center;                    /* پیام وسط */
    }

    .main-header {
        grid-template-columns: 1fr auto;            /* لوگو | دکمه‌ها */
    }

    .search {
        grid-column: 1 / -1;                        /* جستجو تمام عرض */
        order: 3;                                   /* زیر لوگو */
        max-width: none;                            /* بدون محدودیت */
    }

    .user-actions__item span:not(.badge) {
        display: none;                              /* فقط آیکون */
    }

    .navbar__list {
        overflow-x: auto;                           /* منو افقی اسکرول شود */
        scrollbar-width: none;                      /* مخفی کردن اسکرول‌بار */
    }

    .mega-menu {
        display: none;                              /* مگامنو در موبایل غیرفعال */
    }

    .navbar__item--mega > .navbar__link::before {
        display: none;                              /* فلش مگامنو هم مخفی */
    }

    .section {
        margin-top: 40px;                           /* فاصله‌ی کمتر */
    }

    .section-header {
        align-items: flex-start;                    /* بالا‌چین */
    }
}

@media (max-width: 480px) {
    .footer__container {
        grid-template-columns: 1fr;                 /* تک‌ستونه */
    }
}

/* احترام به کاربرانی که انیمیشن را خاموش کرده‌اند */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;                 /* حذف انیمیشن‌ها */
        transition: none !important;                /* حذف ترنزیشن‌ها */
    }

    .reveal {
        opacity: 1;                                 /* همه‌چیز بدون انیمیشن دیده شود */
    }
}


/* =========================================================
   ۱۰. کلاس‌های صفحات که قبلاً استایل نداشتند
   ========================================================= */
.page-header,
.sale-header {
    text-align: center;
    padding: 56px 20px 28px;
}

.page-header span,
.sale-header span {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .2em;
    color: var(--accent);
}

.page-header h1,
.sale-header h1 {
    margin: 10px 0;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-header p,
.sale-header p { color: var(--muted); }

.price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
}

.rating {
    color: var(--gold);
    letter-spacing: 2px;
    font-size: .9rem;
}

.cart-button {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--gradient);
    color: #fff;
    font-weight: 600;
    text-align: center;
    transition: var(--ease);
}

.cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(91, 140, 255, .35);
}

.product-card del {
    margin-right: 8px;
    color: var(--muted);
}

.feature-icon { font-size: 2rem; }

.faq {
    display: grid;
    gap: 14px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 20px;
}

.faq article {
    padding: 22px;
    border-radius: var(--radius);
    background: var(--glass);
    border: 1px solid var(--border);
    backdrop-filter: var(--blur);
}

.faq h2 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.faq p { color: var(--muted); }

.faq a {
    display: inline-block;
    margin-top: 8px;
    color: var(--accent);
}

.contact-section {
    max-width: 560px;
    margin: 0 auto;
    padding: 20px;
}

.contact-form {
    display: grid;
    gap: 14px;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--glass);
    border: 1px solid var(--border);
    backdrop-filter: var(--blur);
}

.contact-form input,
.contact-form textarea {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .06);
    color: var(--text);
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form button {
    padding: 12px;
    border-radius: 10px;
    background: var(--gradient);
    color: #fff;
    font-weight: 700;
}

/* =========================================================
   ۱۱. افکت‌ها، سبد خرید، حساب کاربری (از extras قبلی)
   ========================================================= */

[hidden] { display: none !important; }

/* نوار پیشرفت بالای صفحه */
.progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 400;
    transform-origin: left;
}

/* ---------- کارت محصول: نور موس و فیلتر جستجو ---------- */
.product-card { position: relative; }

.product-card.is-hidden { display: none; }

.product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(91, 140, 255, .2), transparent 70%);
    transition: opacity .3s ease;
}

.product-card:hover::after { opacity: 1; }

/* ---------- افکت موج دکمه ---------- */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    transform: scale(0);
    animation: ripple .65s ease-out forwards;
    pointer-events: none;
}

@keyframes ripple {
    to { transform: scale(1); opacity: 0; }
}

/* ---------- پرنده‌ی کاغذی و دنباله ---------- */
.fly-bird {
    position: fixed;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    z-index: 350;
    pointer-events: none;
    transform-origin: 50% 50%;
    filter: drop-shadow(0 0 10px rgba(91, 140, 255, .9));
    will-change: transform;
}

.fly-bird svg {
    width: 100%;
    height: 100%;
    display: block;
}

.fly-dot { transition: opacity .55s ease; }

/* لرزش آیکون سبد وقتی محصول اضافه می‌شود */
.user-actions__item.is-hit { animation: shake .5s ease; }

@keyframes shake {
    0%, 100% { transform: none; }
    20%      { transform: rotate(-14deg); }
    40%      { transform: rotate(12deg); }
    60%      { transform: rotate(-7deg); }
    80%      { transform: rotate(3deg); }
}

/* ---------- کشوی سبد خرید ---------- */
.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(3, 5, 12, .6);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}

.cart-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 501;
    width: min(380px, 100%);
    display: flex;
    flex-direction: column;
    background: rgba(12, 16, 32, .96);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateX(105%);
    transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

.cart-drawer.is-open { transform: none; }

.cart-drawer__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.cart-drawer__head h2 { font-size: 1.1rem; }

.cart-drawer__close {
    padding: 6px;
    color: var(--muted);
    transition: var(--ease);
}

.cart-drawer__close:hover { color: var(--text); }

.cart-drawer__list {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.cart-drawer__empty {
    margin-top: 40px;
    text-align: center;
    color: var(--muted);
}

.cart-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: var(--glass);
    border: 1px solid var(--border);
    animation: fadeUp .4s cubic-bezier(.2, .7, .2, 1) backwards;
}

.cart-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
}

.cart-item strong {
    display: block;
    font-size: .9rem;
}

.cart-item__price {
    font-size: .85rem;
    color: var(--muted);
}

.cart-item__qty {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.cart-item__qty button {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--glass-2);
}

.cart-item__remove {
    padding: 4px;
    color: var(--muted);
    transition: var(--ease);
}

.cart-item__remove:hover { color: var(--danger); }

.cart-drawer__foot {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.cart-drawer__total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--muted);
}

.cart-drawer__total strong {
    font-size: 1.15rem;
    color: var(--text);
}

.cart-drawer__checkout {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: var(--gradient);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(91, 140, 255, .35);
    transition: var(--ease);
}

.cart-drawer__checkout:hover { transform: translateY(-2px); }

/* ---------- سؤالات متداول ---------- */
.faq h2 { cursor: pointer; }

.faq article.is-closed > :not(h2) { display: none; }

/* ---------- صفحه‌ی حساب کاربری ---------- */
.account {
    max-width: var(--container);
    margin: 0 auto;
    padding: 20px 20px 60px;
}

.account__box {
    margin-bottom: 24px;
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--glass);
    backdrop-filter: var(--blur);
    animation: fadeUp .6s cubic-bezier(.2, .7, .2, 1) backwards;
}

.tabs { display: flex; gap: 8px; }

.tabs button {
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--glass);
    color: var(--muted);
    transition: var(--ease);
}

.tabs button.is-active {
    background: var(--gradient);
    color: #fff;
}

.account__form {
    display: grid;
    gap: 12px;
    max-width: 420px;
    margin-top: 18px;
}

.account__form input {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .06);
    transition: var(--ease);
}

.account__form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 140, 255, .25);
}

.account__form button,
.account__head button {
    padding: 12px;
    border-radius: 10px;
    background: var(--gradient);
    color: #fff;
    font-weight: 700;
}

.account__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.account__head p { color: var(--muted); }

.account__box h3 { margin: 10px 0 8px; }

.orders li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.orders small {
    display: block;
    color: var(--muted);
}

.orders .empty {
    color: var(--muted);
    border: 0;
}

/* کاربرانی که حرکت را دوست ندارند */
@media (prefers-reduced-motion: reduce) {
    .fly-bird, .ripple { display: none; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================================
   ۱۲. صفحه‌ی پرداخت و صفحات متنی
   ========================================================= */
.checkout {
    max-width: var(--container);
    margin: 0 auto;
    padding: 20px 20px 60px;
}

.checkout__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: start;
}

.checkout__form {
    display: grid;
    gap: 12px;
}

.checkout__form h2,
.checkout__summary h2 {
    font-size: 1.1rem;
    margin-top: 6px;
}

.checkout__form input {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    transition: var(--ease);
}

.checkout__form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 140, 255, .25);
}

.checkout__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.checkout__form button {
    margin-top: 6px;
    padding: 14px;
    border-radius: 12px;
    background: var(--gradient);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(91, 140, 255, .35);
    transition: var(--ease);
}

.checkout__form button:hover { transform: translateY(-2px); }

.checkout__note {
    font-size: .8rem;
    color: var(--muted);
}

.checkout__summary .cart-item { grid-template-columns: 56px 1fr auto; }

.checkout__summary .cart-item img {
    width: 56px;
    height: 56px;
}

.checkout__summary .cart-drawer__total {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.checkout__summary .cart-drawer__total strong {
    font-size: 1.15rem;
    color: var(--text);
}

.checkout .account__box a.button {
    margin-right: 8px;
    margin-top: 8px;
}

.legal p {
    color: var(--muted);
    margin-bottom: 14px;
}

.legal a { color: var(--accent); }

@media (max-width: 800px) {
    .checkout__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .checkout__row { grid-template-columns: 1fr; }
}

/* =========================================================
   ۱۳. کلاس‌های باقی‌مانده
   ========================================================= */
.footer-bottom {
    padding: 18px 20px;
    text-align: center;
    font-size: .85rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

.products-section {
    padding: 20px;
}
