@font-face{
    font-family: 'tahoma';
    src: url("font/tahoma.ttf") format("truetype");
    font-display: swap;
}

@font-face{
    font-family: 'B Yekan';
    src: url("font/B-Yekan.ttf") format("truetype");
    font-display: swap;
}


@font-face{
    font-family: 'B Koodak Bold';
    src: url("font/B-Koodak-Bold.ttf") format("truetype");
    font-display: swap;
}

/* ===================================================================
   ریست پایه و تنظیمات عمومی برای یکسان دیدن سایت در همه سیستم‌ها
   =================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-color: #e9eef4;
  margin: 0;
  font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

/* ------------------------هدر بالا------------------------------------------------------------------ */


.nav-container {
    width: 100%;
    padding: 0 20px;
    overflow: hidden;
}

.nav-header {
    width: 100%;
    min-height: 72px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    direction: rtl;

    background: #16065f;
    color: #fff;

    padding: 10px 30px;
    box-sizing: border-box;

    border-radius: 16px;
    overflow: hidden;
}


/* =========================================================
   بخش ۱: لوگو + نام سایت
   ========================================================= */

.brand-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 0;
}

.website-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;

    border-radius: 12px;
}

.name-website {
    font-size: 22px;
    font-weight: bold;
    white-space: nowrap;
}


/* =========================================================
   بخش ۲: نماد اعتماد
   ========================================================= */

.javazkasb {
    text-align: center;
    min-width: 0;
    flex-shrink: 1;
}

.javazkasb span {
    font-size: 15px;
    white-space: nowrap;
}


/* =========================================================
   بخش ۳: تلفن
   ========================================================= */

.number-phone {
    text-align: center;
    direction: rtl;
    min-width: 0;
    flex-shrink: 1;
}

.number-phone span {
    font-size: 15px;
    font-weight: bold;
    white-space: nowrap;
}


/* =========================================================
   ریسپانسیو (موبایل)
   ========================================================= */

@media (max-width: 768px) {
    .nav-container {
        padding: 0 12px;
    }

    .nav-header {
        flex-wrap: wrap;
        justify-content: flex-start;   /* لوگو همون‌جا سمت راست بمونه */
        row-gap: 10px;
        padding: 15px 12px;
    }

    .javazkasb {
        margin-right: auto;   /* نماد اعتماد بره سمت چپ */
    }

    .number-phone {
        margin-right: auto;   /* تلفن هم بره سمت چپ (در ردیف خودش) */
    }

    .javazkasb span,
    .number-phone span {
        white-space: normal;
        font-size: 14px;
    }
}




/* -----------------------------منو و زیر منو------------------------------------------------------------- */

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between; /* منو راست، دکمه چپ */
  gap: 10px;
  padding: 15px 20px;   /* فاصله بالا/پایین برای پایین آمدن و مرکز شدن منو */
  margin: 15px 0;       /* فاصله از nav-header و بنر */
  box-sizing: border-box;
  direction: rtl;
}

.join-button-wrapper {
  flex-shrink: 0;
  margin-left: 80px;
}

.main-menu {
  position: relative;
  z-index: 9999;
  direction: rtl;
}

/* دکمه منوی موبایل (پیش‌فرض مخفی، فقط در موبایل نمایش داده می‌شود) */
.mobile-menu-button {
  display: none;
  background: rgb(25, 134, 197);
  color: #fff;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
}

/* منوی دسکتاپ */
.desktop-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* آیتم‌های اصلی منو */
.desktop-menu > li {
  list-style: none;
  position: relative;
}

.desktop-menu > li > a {
  background: rgb(25, 134, 197);
  min-width: 100px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
  font-size: clamp(13px, 1vw, 16px);
  text-decoration: none;
  color: #ffffff;
  padding: 12px 14px;
  white-space: nowrap;
  direction: rtl;
}

/* گرد کردن فقط اولین دکمه منوی اصلی */
.desktop-menu > li:first-child > a {
  border-radius: 0 8px 8px 0;
}

/* گرد کردن فقط آخرین دکمه منوی اصلی */
.desktop-menu > li:last-child > a {
  border-radius: 8px 0 0 8px;
}

.desktop-menu > li > a:hover {
  background: #08a8f9;
}

/* زیرمنوها */
.desktop-menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgb(25, 134, 197);
}

.desktop-menu li:hover > ul {
  display: block;
}

.desktop-menu li ul li a {
  display: block;
  font-size: clamp(12px, 0.9vw, 15px);
  text-align: center;
  font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
  color: #ffffff;
  padding: 8px 4px;
  text-decoration: none;
  white-space: normal;
  line-height: 1.4;
}

.desktop-menu li ul li a:hover {
  background: #08a8f9;
}





/* فقط دسکتاپ */
@media (min-width: 769px) {
    .join-button-wrapper {
        transform: translateX(20px);
    }
}




/*-------------------------------------------*/
/* منوی موبایل (سایدبار) - نسخه کامل */

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 270px;
  z-index: 999;

  /* حالت شیشه‌ای */
  background-color: rgba(244, 239, 239, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;

  padding: 70px 12px 24px 12px;
  margin: 0;
  list-style: none;
  overflow-y: auto;
  box-sizing: border-box;

  /* حالت بسته */
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s ease, visibility 0.35s;
}

.sidebar.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.sidebar li {
  list-style: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

.sidebar li.mobile-close {
  height: 0;
  margin: 0 0 -8px 0;
}

/* هر آیتم منو = یک ردیف کارتی شیشه‌ای */
.sidebar a {
  display: flex;
  align-items: center;
  justify-content: flex-start;

  width: 100%;
  min-height: 52px;
  padding: 10px 16px;

  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;

  color: #0a7a2f;
  font-size: 16px;
  font-weight: bold;
  font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
  text-align: right;
  text-decoration: none;
  line-height: 1.6;
  box-sizing: border-box;

  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sidebar a:focus {
  outline: none;
}

/* دکمه‌های منو و بستن */
.mobile-menu-button,
.close-btn {
  background: rgb(25, 134, 197);
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
  font-size: 17px;
}

.mobile-menu-button:active,
.close-btn:active {
  background: #08a8f9;
}

/* ریسپانسیو منوی موبایل */
@media (max-width: 768px) {

    .desktop-menu {
        display: none;
    }

    header {
        width: 100%;
        display: block;
        padding: 15px 0;
        margin: 10px 0;
    }

    .main-menu {
        width: 100%;
    }

    /* دکمه ✖ : دایره‌ای شیشه‌ای، بالا-چپ سایدبار */
    .sidebar .close-btn {
        position: absolute;
        top: 14px;
        left: 14px;
        z-index: 1001;

        width: 38px;
        height: 38px;
        padding: 0;
        margin: 0;

        display: flex;
        align-items: center;
        justify-content: center;

        background: rgba(255, 255, 255, 0.35);
        border: 1px solid rgba(255, 255, 255, 0.6);
        border-radius: 50%;
        color: #0a0e7a;

        font-size: 18px;
        line-height: 1;
    }

    .sidebar .close-btn:active {
        background: rgba(25, 134, 197, 0.75);
        color: #fff;
    }
}

/* رنگ نوشته‌های منوی موبایل */
.sidebar li a,
.sidebar li a:link,
.sidebar li a:visited {
    color: #075988 !important;
}

/* هاور فقط روی دستگاه‌هایی که ماوس دارند (دسکتاپ) */
@media (hover: hover) {
    .sidebar li a:hover {
        background: rgba(25, 134, 197, 0.75);
        border-color: rgba(25, 134, 197, 0.9);
        color: #ffffff !important;
    }
}

/* لمس در موبایل: فقط هنگام فشار دادن، آبی می‌شود */
.sidebar li a:active {
    background: rgba(25, 134, 197, 0.75);
    border-color: rgba(25, 134, 197, 0.9);
    color: #ffffff !important;
}




/*-----------------------صفحه ورود - ثبت نام--------------------*/


.join-button{
    background-color: white;
    border-color: rgba(8, 127, 217);
    margin-left: 5px;
    border-style: solid;
    border-width: 1px;
    color: rgba(75, 16, 239);
    min-width: 100px;
    padding: 6px 6px 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.5s, color 0.5s;
    vertical-align: top;
    font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
    font-size: clamp(14px, 1vw, 15px);
    direction: rtl;
    box-sizing: border-box;
}

.join-button:hover{
    background-color: rgba(3, 122, 212);
    color: white;
    opacity: 0.5;
}

.join-button:active{
    opacity: 0.5;
}

.is-hidden-by-auth{
    display: none !important;
}

@media (max-width: 768px){
    .join-button{
        display: none;
    }
}






/*-------------------دکمه آدمک برای ورود ، سبد خرید ، خروج-------------*/



.join-button .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.join-button .btn-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}



.join-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.join-button .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.join-button .btn-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.join-button .btn-text {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}



/*-------------------------------صفحه کوچک ورود و ثبت نام------------------------------------*/

/* =========================================================
   پنجره ورود / ثبت نام - Glassmorphism
   ========================================================= */

.auth-modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.auth-modal.show {
    display: block;
}


/* =========================================================
   لایه پشت پنجره
   ========================================================= */

.auth-modal-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    /* تیره و خشن نیست */
    background: rgba(20, 50, 80, 0.28);

    /* کمی محو کردن محیط پشت */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


/* =========================================================
   کادر اصلی
   ========================================================= */

.auth-modal-dialog {
    position: relative;
    z-index: 2;

    width: 90%;
    max-width: 500px;

    margin: 60px auto 0 auto;
}


/* =========================================================
   بدنه شیشه‌ای
   ========================================================= */

.auth-modal-content {
    position: relative;

    background-color: rgba(244, 239, 239, 0.4);


    backdrop-filter: blur(25px) saturate(130%);
    -webkit-backdrop-filter: blur(25px) saturate(130%);

    border: 1px solid rgba(255, 255, 255, 0.70);

    border-radius: 24px;

    padding: 30px;

    direction: rtl;
    box-sizing: border-box;

    /* سایه نرم */
    box-shadow:
        0 25px 70px rgba(30, 80, 120, 0.20),
        0 8px 25px rgba(0, 0, 0, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.80);
}


/* یک نور خیلی ظریف داخل شیشه */

.auth-modal-content::before {
    content: "";
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    border-radius: inherit;

    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.18),
        transparent 45%
    );

    pointer-events: none;
}


/* =========================================================
   Header
   ========================================================= */

.auth-modal-header {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 25px;
}


.auth-modal-title {
    margin: 0;

    font-size: 24px;
    font-weight: bold;

    color: #231172;

    text-shadow:
        0 1px 2px rgba(255, 255, 255, 0.8);
}


/* =========================================================
   دکمه بستن
   ========================================================= */

.auth-close-button {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.35);

    color: #57708a;

    font-size: 30px;
    line-height: 1;

    cursor: pointer;

    padding: 0;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}


.auth-close-button:hover {
    background: rgba(255, 255, 255, 0.65);

    color: #315675;

    transform: rotate(90deg);
}


/* =========================================================
   تب‌های ورود / ثبت نام
   ========================================================= */

.auth-tabs {
    position: relative;
    z-index: 2;

    display: flex;

    width: 100%;

    border-bottom: 1px solid rgba(100, 140, 170, 0.25);

    margin-bottom: 25px;
}


.auth-tab {
    position: relative;

    flex: 1;

    border: none;

    background: transparent;

    padding: 13px 10px;

    font-family: inherit;

    font-size: 16px;

    cursor: pointer;

    color: #2d577d;

    border-bottom: 3px solid transparent;

    transition:
        color 0.25s ease,
        border-color 0.25s ease;
}


.auth-tab.active {
    color: #134178;

    border-bottom: 3px solid #294c76;

    font-weight: bold;
}


/* =========================================================
   پنل‌ها
   ========================================================= */

.auth-panel {
    display: none;

    position: relative;
    z-index: 2;
}


.auth-panel.active {
    display: block;
}


/* =========================================================
   گروه فرم
   ========================================================= */

.auth-form-group {
    margin-bottom: 18px;
}


.auth-form-group label {
    display: block;

    margin-bottom: 7px;

    color: #184168;

    font-size: 14px;

    font-weight: bold;
}


/* =========================================================
   Input
   ========================================================= */

.auth-form-group input {
    width: 100%;

    box-sizing: border-box;

    padding: 14px 16px;

    border: 1px solid rgba(120, 160, 190, 0.28);

    border-radius: 12px;

    outline: none;

    background: rgba(255, 255, 255, 0.78);

    color: #35516b;

    font-family: inherit;

    font-size: 15px;

    direction: rtl;

    box-shadow:
        inset 0 1px 3px rgba(50, 90, 120, 0.05),
        0 2px 8px rgba(50, 100, 140, 0.04);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


.auth-form-group input::placeholder {
    color: #91a5b8;
}


.auth-form-group input:focus {
    border-color: rgba(76, 156, 255, 0.65);

    background: rgba(255, 255, 255, 0.92);

    box-shadow:
        0 0 0 3px rgba(76, 156, 255, 0.10),
        0 4px 12px rgba(50, 120, 180, 0.08);
}


/* =========================================================
   دکمه اصلی
   ========================================================= */

.auth-submit-button {
    position: relative;
    z-index: 2;

    width: 100%;

    border: none;

    border-radius: 12px;

    padding: 14px;

    font-family: inherit;

    font-size: 16px;

    cursor: pointer;

    color: #ffffff;

    margin-top: 5px;

    box-shadow:
        0 8px 18px rgba(60, 140, 230, 0.20);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}


.auth-submit-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 10px 22px rgba(60, 140, 230, 0.25);

    filter: brightness(1.04);
}


.auth-submit-button:active {
    transform: translateY(0);
}


.auth-submit-button:disabled {
    opacity: 0.6;

    cursor: not-allowed;

    transform: none;
}


/* =========================================================
   دکمه ورود
   ========================================================= */

.login-button {
    background: linear-gradient(
        135deg,
        #3b6dbd,
        #55b8ed
    );
}


.login-button:hover {
    background: linear-gradient(
        135deg,
        #3678e8,
        #49addf
    );
}


/* =========================================================
   دکمه ثبت نام
   ========================================================= */

.register-button {
    background: linear-gradient(
        135deg,
        #329079,
        #5dd2af
    );
}


.register-button:hover {
    background: linear-gradient(
        135deg,
        #3aae91,
        #55c39f
    );
}


/* =========================================================
   پیام
   ========================================================= */

.auth-message {
    position: relative;
    z-index: 2;

    margin-top: 12px;

    font-size: 14px;

    text-align: center;

    color: #526d84;
}


/* =========================================================
   جلوگیری از اسکرول صفحه
   ========================================================= */

body.auth-modal-open {
    overflow: hidden;
}


/* =========================================================
   📱 موبایل
   ========================================================= */

@media (max-width: 768px) {

    .auth-modal {
        overflow-y: auto;
        padding: 15px 0;
        box-sizing: border-box;
    }


    /* -----------------------------
       لایه پشت
       ----------------------------- */

    .auth-modal-overlay {
        background: rgba(20, 50, 80, 0.22);

        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }


    /* -----------------------------
       کادر
       ----------------------------- */

    .auth-modal-dialog {
        width: calc(100% - 24px);

        max-width: none;

        margin: 15px auto 15px auto;
    }


    /* -----------------------------
       شیشه
       ----------------------------- */

    .auth-modal-content {
        width: 100%;

        padding: 22px 18px;

        border-radius: 22px;

        background-color: rgba(244, 239, 239, 0.4);


        backdrop-filter: blur(22px) saturate(125%);
        -webkit-backdrop-filter: blur(22px) saturate(125%);

        box-shadow:
            0 20px 50px rgba(30, 80, 120, 0.18),
            0 6px 20px rgba(0, 0, 0, 0.07),
            inset 0 1px 1px rgba(255, 255, 255, 0.85);
    }


    /* -----------------------------
       Header
       ----------------------------- */

    .auth-modal-header {
        margin-bottom: 20px;
    }


    .auth-modal-title {
        font-size: 21px;
    }


    /* -----------------------------
       دکمه بستن
       ----------------------------- */

    .auth-close-button {
        width: 38px;
        height: 38px;

        font-size: 28px;
    }


    /* -----------------------------
       تب‌ها
       ----------------------------- */

    .auth-tabs {
        margin-bottom: 20px;
    }


    .auth-tab {
        padding: 11px 8px;

        font-size: 15px;
    }


    /* -----------------------------
       فرم
       ----------------------------- */

    .auth-form-group {
        margin-bottom: 15px;
    }


    .auth-form-group label {
        margin-bottom: 6px;

        font-size: 13px;
    }


    .auth-form-group input {
        padding: 13px 14px;

        min-height: 48px;

        border-radius: 11px;

        font-size: 14px;
    }


    /* -----------------------------
       دکمه
       ----------------------------- */

    .auth-submit-button {
        min-height: 48px;

        padding: 12px;

        border-radius: 11px;

        font-size: 15px;
    }


    /* -----------------------------
       پیام
       ----------------------------- */

    .auth-message {
        font-size: 13px;
    }
}


/* =========================================================
   📱 موبایل خیلی کوچک
   ========================================================= */

@media (max-width: 400px) {

    .auth-modal {
        padding: 10px 0;
    }


    .auth-modal-dialog {
        width: calc(100% - 16px);

        margin: 10px auto;
    }


    .auth-modal-content {
        padding: 19px 14px;

        border-radius: 20px;
    }


    .auth-modal-title {
        font-size: 19px;
    }


    .auth-close-button {
        width: 36px;
        height: 36px;

        font-size: 26px;
    }


    .auth-tab {
        font-size: 14px;
    }


    .auth-form-group input {
        padding: 12px;

        font-size: 14px;
    }


    .auth-submit-button {
        font-size: 14px;
    }
}





/* نوار جستجو -----------------------------------------------*/


.Search-bar {
  width: 180px;
  height: 38px;
  font-size: 14px;
  padding: 10px;
  margin-top: 7px;
  margin-left: 90px;
  border: 1px solid blue;
  border-radius: 5px;
  display: block;
  float: left;
  direction: rtl;
  box-sizing: border-box;
  font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
}

@media (max-width: 768px) {
  .Search-bar {
    display: none;
  }
}

@media (max-width: 1525px) {
  .Search-bar {
    width: 150px;
    height: 38px;
    font-size: 16px;
    padding: 10px;
    margin-top: 4px;
    margin-left: 90px;
  }
}

@media (max-width: 1450px) {
  .Search-bar {
    width: 120px;
    height: 38px;
    font-size: 16px;
    padding: 10px;
    margin-top: 4px;
    margin-left: 60px;
  }
}

@media (max-width: 1420px) {
  .Search-bar {
    width: 120px;
    height: 38px;
    font-size: 16px;
    padding: 10px;
    margin-top: 4px;
    margin-left: 30px;
  }
}

@media (max-width: 1400px) {
  .Search-bar {
    width: 120px;
    height: 38px;
    font-size: 16px;
    padding: 10px;
    margin-top: 4px;
    margin-left: 20px;
  }
}

@media (max-width: 1000px) {
  .Search-bar {
    display: none;
  }
}


/* ----------------------------------بنر اسلایدشو اتوماتیک-------------------------------------------------------- */




/* کانتینر اصلی */
.baner-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    margin: 17px auto;
    padding: 0 15px;
    box-sizing: border-box;
    direction: rtl;
}

/* --- اسلایدشو اصلی --- */
.slideshow-container {
    flex: 2 1 500px;
    min-width: 300px;
    max-width: 800px;
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0,0,0, 0.2);
    display: block;
}

.slideshow-container .mySlides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.slideshow-container .mySlides.active {
    opacity: 1;
    z-index: 1;
}


.slideshow-container .mySlides img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* دکمه‌های tap (راست و چپ) */
.tap-area {
    position: absolute;
    top: 0;
    height: 100%;
    width: 20%;
    cursor: pointer;
    z-index: 9;
}

.tap-left { left: 0; }
.tap-right { right: 0; }

/* نوار پیشرفت اتوپلی */
.autoplay-progress {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #00f;
    z-index: 20;
}

.autoplay-progress svg {
    position: absolute;
    width: 100%; height: 100%;
    stroke-width: 4px;
    stroke: #00f;
    fill: none;
    stroke-dasharray: 125.6;
    transform: rotate(-90deg);
    transition: stroke-dashoffset 0s linear;
    opacity: 1;
}

.autoplay-progress span {
    z-index: 1;
    color: white;
}

/* کانتینر دکمه‌های نقطه‌ای */
.dot-container {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 15px;
    border-radius: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 2px;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid white;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.dot:hover {
    background-color: rgba(255,255,255,0.8);
    transform: scale(1.2);
}

.dot.active {
    background-color: #1e90ff;
    border-color: #fff;
}

/* --- ستون سمت راست --- */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1 1 300px;
    min-width: 280px;
    max-width: 500px;
}

/* --- اسلایدر دستی ------------------------------------------------------- */


#slider {
    width: 100%;
    max-width: 500px;
    height: 211px;
    position: relative;
    border: 10px solid white;
    box-shadow: 0px 0px 5px 2px #ccc;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}




#slider #box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}



.manual-slide {
    display: none;
    width: 100%;
}
.manual-slide.active {
    display: block;
}



button.next, button.prew {
    padding: 10px 15px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    font-size: 24px;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 40%;
    z-index: 10;
    transition: background-color 0.3s ease;
}

/* موقعیت‌دهی دقیق‌تر دکمه‌ها */
.next {
    right: 15px;
}

.prew {
    left: 15px;
}

/* هاور (Hover) برای زیباتر شدن */
button.next:hover, button.prew:hover {
    background: rgba(0, 0, 0, 0.8);
}

#slider::before, #slider::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    z-index: 9;
}
.next-arrow-background {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.5), rgba(0,0,0,0));
}
.prev-arrow-background {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.5), rgba(0,0,0,0));
}


/* --- گروه عکس‌های کوچک --- */
.small-photos {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.photo-1, .photo-2 {
    width: calc(50% - 5px);
    height: 170px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}



/* ----------------------------- */
/*          📱 موبایل           */
/* ----------------------------- */
@media (max-width: 768px) {
    .baner-container {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        margin-top: 20px;
        width: 100%;
        padding: 0 10px;
    }

    .slideshow-container {
        display: block;
        width: 100%;
        max-width: 100%;
        height: 220px;
        flex: none;
    }

    .slideshow-container .mySlides img {
        border-radius: 12px;
    }

    .tap-area { display: none; }

    .autoplay-progress {
        bottom: 10px;
        right: 10px;
    }

    .dot-container {
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
    }

    .dot {
        height: 10px;
        width: 10px;
    }

    .right-column {
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    #slider {
        width: 100%;
        height: 180px;
        border-width: 6px;
        margin: 0;
    }

    #slider #box img {
        height: 180px;
    }

    button.next, button.prew {
        padding: 8px 12px;
        font-size: 12px;
    }

    .next { right: 10px; }
    .prew { left: 10px; }


    .small-photos {
        width: 100%;
        justify-content: center;
        gap: 8px;
        margin-top: 10px;
    }

    .photo-1, .photo-2 {
        width: 48%;
        height: 120px;
    }
}


/* ----------------------------------دکمه های رنگی-------------------------------------------------- */


.container-button{
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    background: #e9eef4;
    padding: 20px;
    gap: 20px;
    direction: rtl;
    width: 95%;
    max-width: 95%;
    margin: 0 auto;   /* وسط‌چین افقی */
    box-sizing: border-box;
}

.container-button button{
    color: #fff;
    border: none;
    border-radius: 20px;
    flex: 1 1 260px;
    max-width: 300px;
    min-height: 150px;
    font-size: clamp(15px, 1.4vw, 20px);
    font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
}

/* رنگ‌ها */
.computer-button{ background:#e7ae46; }
.Voip-button{ background:#ac71ea; }
.attendance-button{ background:#08ad97; }
.programing-button{ background:#0379c3; }


/* حالت موبایل */
@media (max-width: 768px) {
    .container-button{
        flex-wrap: wrap;  /* این خط رو اضافه کن */
    }

    .container-button button{
        flex: 1 1 44%;
        max-width: 48%;
        min-height: 90px;
        font-size: 14px;
    }
}




/*----------------------------------اسلاید محصولات---------------------------------*/



/* Slider Container */
.slider-container {
    width: 100%;
    max-width: 1340px;
    margin: 50px auto;
    margin-top: 25px;
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #5a788d;
    padding: 11px 20px 20px 20px;
    box-sizing: border-box;
}

.slide-text h3{
    margin: 0px 8px 20px 0px;
    text-align: right;
    font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
    font-size: 18px;
    color: #faf9fb;
}

/* Slider Wrapper */
.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
    direction: rtl;
}

/* Card Styles */
.card {
    flex: 0 0 auto;
    min-width: 280px;
    width: 280px;
    max-width: 300px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #333;
}

.card-content p {
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
}

/* Navigation Buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.slider-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-nav.prev {
    right: 30px;
    left: auto;
    width: 40px;
    height: 40px;
    direction: rtl;
}

.slider-nav.next {
    left: 30px;
    right: auto;
    width: 40px;
    height: 40px;
    margin-top: 40px;
    direction: rtl;
}


/* When disabled */
.slider-nav:disabled {
    background-color: rgba(0, 0, 0, 0.2);
/*    cursor: not-allowed;      */
    cursor: default;
    opacity: 0.6;
}




.card-link {
    display: block;
    flex: 0 0 auto;
    text-decoration: none;
    color: inherit;
}




/* Responsive adjustments (example) */
@media (max-width: 768px) {

    .slider-nav.prev {
        right: 15px;
        left: auto;
    }
    .slider-nav.next {
        left: 15px;
        right: auto;
    }

    .slide-text h3{
        background-color: #dae1e0;
        border-radius: 5px;
        margin: 0px 8px 20px 0px;
        text-align: center;
        font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
        font-size: 14px;
        color: #5f5a77;
    }
    .slider-wrapper {
        display: flex;
        transition: transform 0.5s ease-in-out;
        gap: 8px;
        direction: rtl;
    }
    .card {
        min-width: 120px;
        width: 120px;
        height: 211px;
    }

    .card-content h3 {
        margin-top: 0;
        margin-bottom: 0px;
        font-size: 15px;
        color: #1b076d;
    }

    .card-content p {
        font-size: 0.9em;
        color: #666;
        line-height: 1.5;
    }

    .slider-container {
        padding: 15px;
    }

    .slider-nav.prev {
        display: none;
    }
    .slider-nav.next {
        display: none;
    }

}


/*------------------------عنوان شبکه های کامپیوتری--------------------------------------------------------------*/


.text-main-1, .text-computer h1 , .text-attendance h1, .text-voip h1, .text-download-1{
    width: 100%;
    height: 40px;
    display: flex;
    font-size: 10px;
    text-align: center;
    font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
    background-color: rgb(54, 102, 132);
    color: #ffffff;
    border-radius: 5px;
    padding: 5px;
    align-items: center;      /* وسط‌چین عمودی */
    justify-content: center;  /* وسط‌چین افقی */
    margin: 0;
}




@media (max-width: 768px) {
.text-main-1 h1{
    margin: 0 auto;
    font-size: 15px;
}
}





.text-main-2{
    width: 100%;
    height: 40px;
    display: flex;
    font-size: 17px;
    text-align: center;
    font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
    background-color: rgb(54, 102, 132);
    color: #ffffff;
    border-radius: 5px;
    padding: 5px;
    align-items: center;      /* وسط‌چین عمودی */
    justify-content: center;  /* وسط‌چین افقی */
    margin: 0;
}

@media (max-width: 768px) {
.text-main-2 h3{
    font-size: 15px;
}
}

.text-main-3{
    width: 100%;
    height: 40px;
    display: flex;
    font-size: 17px;
    text-align: center;
    font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
    background-color: rgb(54, 102, 132);
    color: #ffffff;
    border-radius: 5px;
    padding: 5px;
    align-items: center;      /* وسط‌چین عمودی */
    justify-content: center;  /* وسط‌چین افقی */
    margin: 0;
}

@media (max-width: 768px) {
.text-main-3 h3{
    font-size: 15px;
}
}




.text-computer-1, .text-attendance-1, .text-voip-1, .text-programing-1, .text-licensesales-1, .text-download-1{
    width: 100%;
    height: 40px;
    display: flex;
    font-size: 9px;
    text-align: center;
    font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
    background-color: rgb(54, 102, 132);
    color: #ffffff;
    border-radius: 5px;
    padding: 5px;
    align-items: center;      /* وسط‌چین عمودی */
    justify-content: center;  /* وسط‌چین افقی */
    margin: 0;
}

@media (max-width: 768px) {
.text-computer-1 h1, .text-attendance-1 h1, .text-voip-1 h1, .text-programing-1 h1, .text-licensesales-1 h1{
    font-size: 15px;
}
}





/*------------------------------------text-computer voip attendance programing license download-title-----------------------------*/

.text-computer-title,
.text-voip-title,
.text-attendance-title,
.text-programing-title,
.text-license-title,
.text-download-title{
    direction: rtl;
    max-width: 1200px;
    margin: 60px auto;
    padding: 35px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
    font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
    line-height: 2.2;
    text-align: justify;
    color: #333;
    box-sizing: border-box;
}

.text-computer-title h2,
.text-voip-title h2,
.text-attendance-title h2,
.text-programing-title h2,
.text-license-title h2,
.text-download-title h2{
    font-size: 30px;
    color: #0b5ed7;
    margin-bottom: 25px;
    text-align: center;
}

.text-computer-title h3,
.text-voip-title h3,
.text-attendance-title h3,
.text-programing-title h3,
.text-license-title h3,
.text-download-title h3{
    font-size: 22px;
    color: #7a2ea8;
    margin-top: 35px;
    margin-bottom: 15px;
}

.text-computer-title p,
.text-voip-title p,
.text-attendance-title p,
.text-programing-title p,
.text-license-title p,
.text-download-title p{
    font-size: 18px;
    margin-bottom: 18px;
}


/* -------------------------------------- عکس ها و توضیحات ردیف اول---------------------------------------------------- */

.container-product {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
    width: 100%;
    max-width: 1400px;
    margin: 50px auto 0 auto;
    margin-top: 0px;
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
    direction: rtl;
    font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
}

.product-card {
    width: 100%;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-card a {
    text-decoration: none;
    color: inherit;
}

.product-img-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    border-radius: 0px 0px 11px 11px;
    object-fit: cover;
    display: block;
}

.description {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.description p {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 15px;
}

.description p:last-child {
    margin-bottom: 0;
    margin-top: auto;
    color: #888;
    font-size: 12px;
    text-align: left;
}


a.product-card {
    text-decoration: none;
    color: inherit;
}




/* برای حالت ریسپانسیو */
@media (max-width: 1000px) {
    .container-product {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container-product {
        grid-template-columns: 1fr;
    }
    .product-card {
        max-width: 400px;
        margin: 0 auto;
    }
}








/*---------------------------------product page صفحه-----------------------------------------------------*/




/* =========================================================
   بخش اصلی صفحه محصول
   ========================================================= */

.pp-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;

    padding: 25px 50px 30px;

    direction: rtl;

    box-sizing: border-box;

    background: #f6f9fc;
}


/* =========================================================
   ستون چپ - اطلاعات محصول
   ========================================================= */

.pp-left {
    flex: 1.15 1 380px;

    display: flex;
    flex-direction: column;

    gap: 18px;

    min-width: 0;
}


/* =========================================================
   ستون راست - تصاویر
   ========================================================= */

.pp-right {
    flex: 1.45 1 480px;

    display: flex;
    flex-direction: column;

    gap: 14px;

    min-width: 0;
}


/* =========================================================
   کارت اطلاعات محصول
   ========================================================= */

.pp-box {
    width: 100%;

    margin: 0;

    box-sizing: border-box;

    padding: 20px 22px;

    border: 1px solid #dfe7ef;
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.96);

    box-shadow:
        0 5px 18px rgba(52, 82, 110, 0.07);

    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.pp-box:hover {
    box-shadow:
        0 8px 24px rgba(52, 82, 110, 0.10);

    transform: translateY(-1px);
}


/* عنوان محصول */

.pp-box h1 {
    margin: 0 0 15px;

    color: #294f73;

    font-size: 24px;

    line-height: 1.7;

    font-weight: 700;
}


/* متن توضیحات */

.pp-box > div {
    color: #596b7d;

    font-size: 14px;

    line-height: 2.1;
}


/* پاراگراف‌های توضیحات */

.pp-box p {
    margin: 7px 0;

    color: #536577;

    line-height: 2;
}


/* =========================================================
   قیمت و وضعیت
   ========================================================= */

.pp-box:nth-child(2) {
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f7fbff
        );
}


/* قیمت */

.pp-box:nth-child(2) p:first-child {
    padding: 11px 14px;

    margin-bottom: 8px;

    border-radius: 9px;

    background: #eef6fd;

    color: #285f8d;

    font-weight: bold;
}


/* وضعیت */

.pp-box:nth-child(2) p:nth-child(2) {
    padding: 9px 14px;

    border-radius: 9px;

    background: #f4f7fa;

    color: #52677a;
}


/* =========================================================
   تصویر اصلی
   ========================================================= */

.pp-main-media {
    position: relative;

    width: 100%;

    min-height: 390px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border: 1px solid #dce6ef;
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f7fafc
        );

    overflow: hidden;

    box-shadow:
        0 6px 22px rgba(46, 78, 108, 0.08);
}


/* تصویر / ویدیو */

.pp-main-media img,
.pp-main-media video {
    max-width: 90%;
    max-height: 400px;

    object-fit: contain;

    transition: transform 0.3s ease;
}

.pp-main-media img:hover {
    transform: scale(1.025);
}


/* =========================================================
   فلش‌های تصاویر
   ========================================================= */

.pp-arrow {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.94);

    color: #3478ae;

    border: 1px solid #d5e3ef;

    border-radius: 50%;

    cursor: pointer;

    user-select: none;

    box-shadow:
        0 4px 14px rgba(46, 80, 110, 0.13);

    z-index: 10;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.pp-arrow svg {
    width: 20px;
    height: 20px;

    fill: none;

    stroke: currentColor;

    stroke-width: 2.2;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.pp-arrow-right {
    right: 14px;
}


.pp-arrow-left {
    left: 14px;
}


.pp-arrow:hover {
    background: #eaf4fc;

    color: #236697;

    box-shadow:
        0 6px 18px rgba(46, 80, 110, 0.18);
}


.pp-arrow-right:hover {
    transform:
        translateY(-50%)
        translateX(3px);
}


.pp-arrow-left:hover {
    transform:
        translateY(-50%)
        translateX(-3px);
}


.pp-arrow:active {
    transform:
        translateY(-50%)
        scale(0.92);
}


/* =========================================================
   گالری تصاویر کوچک
   ========================================================= */

.pp-thumbs {
    display: flex;

    align-items: center;

    gap: 10px;

    overflow-x: auto;

    padding: 10px;

    border: 1px solid #dce6ef;

    border-radius: 13px;

    background: #ffffff;

    box-shadow:
        0 3px 12px rgba(46, 78, 108, 0.05);

    scrollbar-width: thin;
}


.pp-thumb {
    width: 68px;
    height: 68px;

    flex: 0 0 auto;

    object-fit: cover;

    cursor: pointer;

    border: 2px solid transparent;

    border-radius: 9px;

    background: #f6f9fc;

    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.pp-thumb:hover {
    transform: translateY(-2px);

    box-shadow:
        0 4px 12px rgba(45, 80, 110, 0.12);
}


.pp-thumb.active {
    border-color: #4386c1;

    box-shadow:
        0 0 0 2px #e3f0fb;
}


/* =========================================================
   دکمه خرید
   ========================================================= */

.pp-buy-btn {
    width: 100%;

    margin-top: 12px;

    padding: 12px 18px;

    border: none;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #4386c1,
            #326fa5
        );

    color: #ffffff;

    font-family: inherit;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;

    box-shadow:
        0 5px 14px rgba(50, 111, 165, 0.18);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}


.pp-buy-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 7px 18px rgba(50, 111, 165, 0.25);
}


.pp-buy-btn:disabled {
    background: #aebbc7;

    cursor: not-allowed;

    box-shadow: none;

    opacity: 0.75;
}


/* =========================================================
   اطلاعات ارسال
   ========================================================= */

.pp-shipping {
    margin: 15px 50px 15px;

    padding: 13px 20px;

    box-sizing: border-box;

    border: 1px solid #dce7f0;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #f5faff,
            #edf6fc
        );

    color: #4c6b83;

    text-align: center;

    font-size: 13px;

    line-height: 1.8;

    box-shadow:
        0 3px 12px rgba(48, 82, 110, 0.05);
}


/* =========================================================
   موبایل
   ========================================================= */

@media (max-width: 768px) {

    .pp-wrapper {
        flex-direction: column;

        gap: 16px;

        padding: 12px 10px 20px;
    }


    .pp-right,
    .pp-left {
        width: 100%;

        flex: none;

        gap: 14px;
    }


    .pp-main-media {
        min-height: 300px;

        border-radius: 13px;
    }


    .pp-main-media img,
    .pp-main-media video {
        max-width: 88%;

        max-height: 320px;
    }


    .pp-arrow {
        width: 36px;
        height: 36px;
    }


    .pp-arrow-right {
        right: 9px;
    }


    .pp-arrow-left {
        left: 9px;
    }


    .pp-thumbs {
        padding: 8px;

        gap: 8px;

        border-radius: 11px;
    }


    .pp-thumb {
        width: 58px;
        height: 58px;
    }


    .pp-box {
        padding: 16px;

        border-radius: 12px;
    }


    .pp-box h1 {
        font-size: 19px;

        line-height: 1.8;
    }


    .pp-box > div {
        font-size: 13px;

        line-height: 2;
    }


    .pp-shipping {
        margin: 0 10px 20px;

        padding: 11px 14px;

        font-size: 12px;

        border-radius: 10px;
    }
}



/* =========================================================
   تب‌های زیبا - مشخصات ردیفی / توضیحات تکمیلی
   ========================================================= */

.pp-tabs-section {
    margin: 0 20px 30px 20px;

    border: 1px solid #dfe7f1;
    border-radius: 14px;

    overflow: hidden;

    direction: rtl;
    text-align: right;

    background: #ffffff;

    box-shadow:
        0 4px 18px rgba(45, 75, 110, 0.08);
}


/* =========================================================
   نوار تب‌ها
   ========================================================= */

.pp-tabs-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;

    padding: 10px;

    background: linear-gradient(
        135deg,
        #f4f8fc,
        #eef3fa
    );

    border-bottom: 1px solid #dfe7f1;

}


/* =========================================================
   دکمه تب
   ========================================================= */

.pp-tab-btn {
    position: relative;

    padding: 11px 22px;

    cursor: pointer;

    border: 1px solid transparent;
    border-radius: 10px;

    background: transparent;

    color: #53657a;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease,
        border-color 0.25s ease;

    white-space: nowrap;
}


/* =========================================================
   Hover
   ========================================================= */

.pp-tab-btn:hover {
    background: rgba(255, 255, 255, 0.85);

    color: #245b91;

    border-color: #d8e4f0;

    box-shadow:
        0 3px 10px rgba(60, 100, 140, 0.08);

    transform: translateY(-1px);
}


/* =========================================================
   تب فعال
   ========================================================= */

.pp-tab-btn.active {
    background: linear-gradient(
        135deg,
        #ffffff,
        #edf5ff
    );

    color: #24639b;

    border: 1px solid #cbdff2;

    font-weight: bold;

    box-shadow:
        0 4px 12px rgba(48, 104, 157, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    transform: translateY(-1px);
}


/* خط کوچک زیر تب فعال */

.pp-tab-btn.active::after {
    content: "";

    position: absolute;

    bottom: -10px;
    right: 50%;

    width: 32px;
    height: 3px;

    transform: translateX(50%);

    border-radius: 10px;

    background: #4386c1;
}


/* =========================================================
   تب دوم - توضیحات تکمیلی
   ========================================================= */

.pp-tab-btn:nth-child(2).active {
    color: #68539a;

    background: linear-gradient(
        135deg,
        #ffffff,
        #f5f0fc
    );

    border-color: #ded4ef;

    box-shadow:
        0 4px 12px rgba(105, 80, 150, 0.10);
}


/* خط زیر تب دوم */

.pp-tab-btn:nth-child(2).active::after {
    background: #8067ad;
}


/* =========================================================
   محتوای تب
   ========================================================= */

.pp-tab-content {
    padding: 20px;

    display: none;
}

.pp-tab-content.active {
    display: block;
}


/* =========================================================
   موبایل
   ========================================================= */

@media (max-width: 768px) {

    .pp-tabs-section {
        margin: 0 10px 25px 10px;

        border-radius: 12px;
    }


    .pp-tabs-header {
        gap: 6px;

        padding: 8px;

        overflow-x: auto;

        scrollbar-width: none;
    }


    .pp-tabs-header::-webkit-scrollbar {
        display: none;
    }


    .pp-tab-btn {
        flex: 0 0 auto;

        padding: 9px 15px;

        border-radius: 9px;

        font-size: 12px;
    }


    .pp-tab-btn.active::after {
        bottom: -8px;

        width: 25px;

        height: 2px;
    }


    .pp-tab-content {
        padding: 12px;
    }
}





/* =========================================================
   جدول مشخصات
   ========================================================= */



.pp-spec-table {
    width: 100%;
    border: 0;
    border-collapse: separate;
    border-spacing: 8px;
    direction: rtl;
    background: transparent;
    margin: -8px;
    width: calc(100% + 16px);
}


/* ---------------------------------------------------------
   تمام سلول‌ها
   --------------------------------------------------------- */

.pp-spec-table td {
    padding: 10px 13px;

    border: 1px solid #e0e8f0;
    border-radius: 7px;

    text-align: right;
    vertical-align: middle;

    line-height: 1.9;

    box-sizing: border-box;

    overflow-wrap: anywhere;

    background: #ffffff;
}


/* ---------------------------------------------------------
   ستون نام مشخصه
   سمت راست - کوچک‌تر
   --------------------------------------------------------- */

.pp-spec-table td:first-child {
    width: 30%;

    background: #edf3f9;

    color: #3e5d7b;

    font-weight: bold;

    border: 1px solid #dce5ee;

    border-radius: 7px;
}


/* ---------------------------------------------------------
   ستون مقدار
   سمت چپ - بزرگ‌تر
   --------------------------------------------------------- */

.pp-spec-table td:last-child {
    width: 70%;

    background: #ffffff;

    color: #344256;

    border: 1px solid #e0e8f0;

    border-radius: 7px;
}


/* ---------------------------------------------------------
   حذف استایل‌های قبلی ردیف‌ها
   --------------------------------------------------------- */

.pp-spec-table .pp-row-white td,
.pp-spec-table .pp-row-gray td {
    background: inherit;
}


/* ستون مشخصه در همه ردیف‌ها ثابت بماند */
.pp-spec-table .pp-row-white td:first-child,
.pp-spec-table .pp-row-gray td:first-child {
    background: #edf3f9;
}


/* مقدار همه ردیف‌ها سفید باشد */
.pp-spec-table .pp-row-white td:last-child,
.pp-spec-table .pp-row-gray td:last-child {
    background: #ffffff;
}


/* ---------------------------------------------------------
   افکت Hover
   --------------------------------------------------------- */

.pp-spec-table tr:hover td:first-child {
    background: #e6f0fa;
}

.pp-spec-table tr:hover td:last-child {
    background: #f8fbff;
}


/* ---------------------------------------------------------
   متن فارسی و انگلیسی
   --------------------------------------------------------- */

.pp-spec-table bdi {
    unicode-bidi: isolate;
}


/* =========================================================
   موبایل
   ========================================================= */

@media (max-width: 768px) {

    .pp-spec-table {
        border-spacing: 5px;

        margin: -5px;

        width: calc(100% + 10px);

        font-size: 12px;
    }


    .pp-spec-table td {
        padding: 8px 9px;

        line-height: 1.8;

        border-radius: 6px;
    }


    /* نام مشخصه کوچک‌تر */
    .pp-spec-table td:first-child {
        width: 32%;
    }


    /* مقدار بزرگ‌تر */
    .pp-spec-table td:last-child {
        width: 68%;
    }
}


/* =========================================================
   دکمه خرید
   ========================================================= */

.pp-buy-btn {
    width: 100%;

    padding: 12px;

    background: #a6266b;
    color: #fff;

    border: none;
    border-radius: 6px;

    font-size: 16px;

    cursor: pointer;

    margin-top: 10px;
}

.pp-buy-btn:disabled {
    background: #999;

    cursor: not-allowed;
}


/* =========================================================
   رنگ ردیف‌های جدول
   ========================================================= */

.pp-row-white {
    background: #ffffff;
}

.pp-row-gray {
    background: #f2f2f2;
}


/* =========================================================
   موبایل
   ========================================================= */

@media (max-width: 768px) {

    /* فلش‌ها در موبایل کوچک‌تر */

    .pp-arrow {
        width: 34px;
        height: 34px;
    }

    .pp-arrow svg {
        width: 18px;
        height: 18px;
    }

    .pp-arrow-right {
        right: 8px;
    }

    .pp-arrow-left {
        left: 8px;
    }

    .pp-box {
        width: 100%;
    }

    .pp-right {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .pp-main-media {
        width: 100%;
        max-width: 100%;
        height: 300px;
        min-height: 300px;
        max-height: 300px;
        overflow: hidden;
        box-sizing: border-box;
    }

    .pp-main-media img,
    .pp-main-media video {
        width: 100%;
        max-width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .pp-thumbs {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .pp-box {
        width: 100%;
    }

    .pp-wrapper {
        padding: 20px;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .pp-spec-table td {
    padding: 10px 12px;
    font-size: 14px;
    }

    .pp-spec-table td:first-child {
        width: 40%;
    }

    .pp-spec-table td:last-child {
        width: 60%;
    }
}



/* ------------------------------------------Footer------------------------------------------------ */

.footer-box {
    background-color: #212934;
    width: 100%;
    height: auto;
    margin-top: 100px;
    direction: rtl;
    padding-bottom: 20px;
}

.Container-Footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    padding: 20px;
}

.title-text,
.container-footer-detials,
.container-footer-about,
.container-footer-enamad{
    flex: 1;
    min-width: 220px;
    margin: 0;
    padding: 0;
}

/* ========== کارت یکسان برای هر ۴ بخش ========== */
.title-text,
.detials-footer,
.about-footer,
.enamad-footer{
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    padding: 24px 20px;
    box-sizing: border-box;
    height: 100%;
}

.title-text {
    color: #59ab6e;
    font-size: 18px;
    font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
}

.title-text-h4 {
    color: rgb(221, 221, 239);
    margin: 0 0 10px 0;
    font-weight: normal;
}

.title-text-email {
    font-family: tahoma;
    color: rgb(217, 217, 229);
    margin: 0;
}

/* ========== عنوان‌های h2 هر باکس ========== */
.detials-footer h2,
.about-footer h2,
.enamad-footer h2,
.title-text h2{
    color: #59ab6e;
    font-size: 20px;
    font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
    margin: 0 0 18px 0;
    padding: 0;
}

/* ========== لیست‌ها ========== */
.center-text,
.about-center-text{
    list-style: none;
    margin: 0;
    padding: 0;
}

.center-text li,
.about-center-text li{
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 10px 2px;
}

.center-text li:last-child,
.about-center-text li:last-child{
    border-bottom: none;
}

.center-text a,
.about-center-text a{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    text-decoration: none;
    font-size: 17px;
    font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
    color: #ffffff;
    transition: color 0.2s ease;
}

.center-text a:hover,
.about-center-text a:hover{
    color: #59ab6e;
}

.center-text a::after,
.about-center-text a::after{
    content: "\203A";
    font-size: 18px;
    color: #6bbf7b;
}

.enamad-footer{
    text-align: center;
}

.enamad-footer img{
    width: 120px;
    height: auto;
    margin-top: 15px;
}

/* ========== کپی‌رایت ========== */
.container-copyight {
    background-color: #091830;
    width: 100%;
    height: auto;
    direction: rtl;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.text-copyight-1 {
    color: rgb(194, 180, 28);
    font-size: 18px;
    font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
    padding-right: 0;
}

.text-copyight-2 {
    color: rgb(194, 180, 28);
    font-size: 16px;
    font-family: tahoma;
    padding-left: 0;
}






.title-text-h4,
.title-text-email{
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-icon{
    color: #59ab6e;
    flex-shrink: 0;
}

/* ========== کپی‌رایت (دسکتاپ) ========== */

.container-copyight {
    background-color: #091830;
    width: 100%;
    height: auto;
    direction: rtl;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.copyright-box{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;

    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 14px 24px;
    box-sizing: border-box;
    border-top: 2px solid #6bbf7b;
}

.text-copyight-1 {
    color: rgb(194, 180, 28);
    font-size: 18px;
    font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
}

.text-copyight-2 {
    color: rgb(194, 180, 28);
    font-size: 16px;
    font-family: tahoma;
    direction: ltr;
    opacity: 0.8;
    border-right: 1px solid rgba(255,255,255,0.15);
    padding-right: 12px;
}



/* ---------- موبایل ---------- */

@media (max-width:768px){

    .Container-Footer{
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 10px;
    }

    .title-text,
    .container-footer-detials,
    .container-footer-about,
    .container-footer-enamad{
        width: 100%;
    }

    .title-text,
    .detials-footer,
    .about-footer,
    .enamad-footer{
        padding: 18px 16px;
    }

    .center-text a,
    .about-center-text a{
        font-size: 16px;
    }

    /* ========== کپی‌رایت (موبایل) ========== */
    .container-copyight{
        padding: 15px 10px;
    }

    .copyright-box{
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        padding: 16px 14px;
        width: 100%;
        box-sizing: border-box;
    }

    .text-copyight-1{
        font-size: 13px;
        line-height: 1.7;
    }

    .text-copyight-2{
        font-size: 11px;
        border-right: none;
        padding-right: 0;
        opacity: 0.6;
    }
}



/* --------------------------------------درباره ما---------------------------------------------------- */

.text-about h3{
    background-color: rgb(216, 216, 225);
    margin: 70px 0px 15px 0px;
    padding-right: 50px;
    font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
    font-size: 17px;
    color: #373148;
    border-radius: 5px;
    direction: rtl;
}


.text-aboute-title{
    direction: rtl;
    max-width: 1250px;
    margin: 11px auto;
    padding: 45px;
    background: linear-gradient(180deg,#ffffff,#f8fbff);
    border: 1px solid #d9e7f5;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
    line-height: 2.3;
    text-align: justify;
    color: #333;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* نوار رنگی بالا */
.text-aboute-title::before{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg,#0d6efd,#00b894,#6f42c1);
}

/* عنوان اصلی */
.text-aboute-title h2{
    font-size: 34px;
    color: #0d47a1;
    text-align: center;
    margin-bottom: 35px;
    font-weight: bold;
}

/* عنوان هر بخش */
.text-aboute-title h3{
    font-size: 24px;
    color: #6a1b9a;
    margin-top: 35px;
    margin-bottom: 18px;
    border-right: 5px solid #0d6efd;
    padding-right: 12px;
}

/* پاراگراف ها */
.text-aboute-title p{
    font-size: 18px;
    line-height: 2.3;
    margin-bottom: 20px;
    color: #444;
}

/* اگر لیست استفاده کردی */
.text-aboute-title ul{
    margin: 25px 0;
    padding: 0;
    list-style: none;
}

.text-aboute-title li{
    font-size: 18px;
    margin-bottom: 14px;
    padding: 12px 18px;
    background: #f5f9ff;
    border-right: 4px solid #0d6efd;
    border-radius: 10px;
    transition: .3s;
}

.text-aboute-title li:hover{
    background: #eaf4ff;
    transform: translateX(-5px);
}

/* متن های بولد */
.text-aboute-title strong{
    color: #0d47a1;
}

/* موبایل */
@media (max-width:768px){

    .text-aboute-title{
        padding:25px;
        margin:30px 15px;
    }

    .text-aboute-title h2{
        font-size:26px;
    }

    .text-aboute-title h3{
        font-size:20px;
    }

    .text-aboute-title p,
    .text-aboute-title li{
        font-size:16px;
    }

}




/*----------------------------------------------دکمه های اطلاعات بیشتر و خرید-------------------------------------------------*/


.computer-button-1, .voip-button-1, .attendance-button-1, .programing-button-1, .licensesales-button-1, .download-button-1, .product-buttons-generic {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 15px;
}



.button-computer-1, .button-voip-1, .button-attendance-1 , .button-programing-1 ,.button-licensesales-1, .product-btn-info-generic{
    width: 111px;
    height: 40px;
    background-color: rgb(33, 93, 156);
    color: white;
    margin: 0;
    border: none;
    padding: 0 14px;
    font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
    font-size: 14px;
    border-radius: 35px;
    cursor: pointer;
    transition: box-shadow 0.5s;
    box-sizing: border-box;
}

.button-computer-1:hover, .button-voip-1:hover, .button-attendance-1:hover, .button-programing-1:hover, .button-licensesales-1:hover, .product-btn-info-generic:hover{
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
}

.button-computer-1-order, .button-voip-1-order, .button-attendance-1-order, .button-programing-1-order, .button-licensesales-1-order, .product-btn-order-generic{
    width: 111px;
    height: 40px;
    background-color: #a04a89;
    color: white;
    margin: 0;
    border: none;
    padding: 0 14px;
    border-radius: 35px;
    font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 1s;
    box-sizing: border-box;
}

.button-computer-1-order:hover, .button-voip-1-order:hover, .button-attendance-1-order:hover, .button-programing-1-order:hover, .button-licensesales-1-order:hover, .product-btn-order-generic:hover{
    background-color: rgb(162, 30, 202);
    opacity: 0.5;
}

.button-computer-1-order:active, .button-voip-1-order:active, .button-attendance-1-order:active ,.button-programing-1-order:active, .button-licensesales-1-order:active, .product-btn-order-generic:active {
    background-color: blueviolet;
    opacity: 0.7;
}

.button-computer-1-order:disabled, .button-voip-1-order:disabled, .button-attendance-1-order:disabled, .button-programing-1-order:disabled, .button-licensesales-1-order:disabled, .product-btn-order-generic:disabled {
    background-color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}
/*
.nav-price-status{
    background: #0f9395;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    color: #ffffff;
    font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
    direction: rtl;
    box-sizing: border-box;
    border-radius: 6px;
}
*/

.nav-price-status {
    background: #0f9395;
    width: 100%;
    min-height: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 20px;
    color: #ffffff;
    font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
    direction: rtl;
    box-sizing: border-box;
    border-radius: 6px;
}





/*---------------------------------------سبد خرید-------------------------------------------------------*/


.cart-drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 90%;
    height: 100%;
    background: #fff;
    z-index: 99999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    direction: rtl;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
}

.cart-drawer.open {
    right: 0;
}

.cart-drawer-overlay.show {
    display: block;
}

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.cart-drawer-close {
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
}

.cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.cart-drawer-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-drawer-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-drawer-item-info {
    flex: 1;
}

.cart-drawer-item-title {
    font-weight: bold;
    font-size: 14px;
}

.cart-drawer-item-price {
    color: #666;
    font-size: 13px;
    margin-top: 4px;
}

.cart-drawer-footer {
    padding: 16px;
    border-top: 1px solid #eee;
}

.cart-drawer-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 12px;
}

.cart-drawer-view-full {
    display: block;
    text-align: center;
    background: #28a745;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
}

/*
@media (max-width: 768px) {
    .cart-drawer {
        width: 100%;
        max-width: 100%;
    }
}
*/

/*
@media (max-width: 768px) {
    .cart-drawer {
        right: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .cart-drawer.open {
        transform: translateX(0);
    }
}
*/

@media (max-width: 768px) {
    .cart-drawer {
        right: 0;
        transform: translateX(100%);
        /* توجه: اینجا دیگه transition ننویسید */
    }

    .cart-drawer.open {
        transform: translateX(0);
    }

    .cart-drawer.animating {
        transition: transform 0.3s ease;
    }
}

/*----------------------دکمه منو و ورود در صفحه موبایل-----------------------------------*/


@media (max-width: 768px) {

    #userInfoBox {
        gap: 14px !important;
    }

    #userNameDisplay {
        display: none;
    }

    .join-button {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: #fff;
        padding: 0;
        min-width: auto;
        width: auto;
    }

    .join-button .btn-icon {
        display: block;
    }

    .join-button .btn-text {
        display: none;
    }

    #cartCountBadge {
        top: -6px;
        left: -6px;
    }

    .mobile-menu-button {
    /*    position: fixed; */
        top: 12px;
        right: 15px;
        z-index: 1001;
        background: transparent;
        border: none;
        color: #fff;
        padding: 0;
        width: auto;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        line-height: 1;
    }
}


/*--------------------دکمه رفتن به بالا اول صفحه------------------*/


#scrollToTopBtn {
    position: fixed;
    bottom: 25px;
    right: 15px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgb(25, 134, 197);
    color: #fff;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#scrollToTopBtn.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

#scrollToTopBtn:active {
    background: #08a8f9;
}



/*--------------------------------------------------*/


/* =========================================================
   هدر موبایل - کادر شناور و زیبا
   ========================================================= */

@media (max-width: 768px) {
/*
    header {
        position: sticky;
        top: 8px;
        z-index: 10000;

        width: calc(100% - 20px);
        height: 72px;
        min-height: 72px;

        margin: 8px auto 18px auto;
        padding: 0 15px;

        background: #263b78;

        display: flex;
        align-items: center;
        justify-content: space-between;

        box-sizing: border-box;
        direction: rtl;

        
        border-radius: 16px;

        
        border: 1px solid rgba(255, 255, 255, 0.28);

        
        box-shadow:
            0 5px 15px rgba(0, 0, 0, 0.20);

    }

*/


    header {
        position: sticky;
        top: 8px;
        z-index: 10000;

        width: calc(100% - 20px);
        height: 72px;
        min-height: 72px;

        margin: 8px auto 18px auto;
        padding: 0 15px;

        background: #263b78;

        display: flex;
        align-items: center;
        justify-content: space-between;

        box-sizing: border-box;
        direction: rtl;

        border-radius: 16px;

        border: 1px solid rgba(255, 255, 255, 0.28);

        box-shadow:
            0 5px 15px rgba(0, 0, 0, 0.20);

        /* برای انیمیشن مخفی/نمایان شدن */
        transition: transform 0.3s ease, opacity 0.3s ease;
    }


    /* هدر هنگام اسکرول به پایین */
    header.mobile-header-hidden {
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
    }




    /* =====================================================
       منوی سه خط - سمت راست
       ===================================================== */

    .main-menu {
        width: auto;
        position: static;
    }


    .mobile-menu-button {
        position: absolute;

        top: 50%;
        right: 12px;

        transform: translateY(-50%);

        width: 44px;
        height: 44px;

        padding: 0;
        margin: 0;

        display: flex !important;

        align-items: center;
        justify-content: center;

        background: transparent;

        border: none;

        color: #cbd2e2;

        font-size: 30px;
        line-height: 1;

        z-index: 1001;

        cursor: pointer;
    }


    /* هاور دکمه منو */
    .mobile-menu-button:hover {
        color: #ffffff;
    }


    /* =====================================================
       ورود + سبد خرید - سمت چپ
       ===================================================== */

    .join-button-wrapper {
        position: absolute;

        top: 50%;
        left: 12px;

        transform: translateY(-50%);

        margin: 0;
        padding: 0;

        display: flex;

        align-items: center;
        justify-content: center;

        gap: 8px;

        z-index: 1001;
    }


    /* =====================================================
       دکمه ورود
       ===================================================== */

    .join-button {
        width: 44px;
        height: 44px;

        min-width: 44px;

        padding: 0;
        margin: 0;

        display: flex !important;

        align-items: center;
        justify-content: center;

        background: rgba(255, 255, 255, 0.08);

        border: 1px solid rgba(255, 255, 255, 0.18);

        border-radius: 50%;

        color: #cbd2e2;

        cursor: pointer;

        transition: all 0.25s ease;
    }


    .join-button:hover {
        background: rgba(255, 255, 255, 0.18);
        color: #ffffff;
    }


    /* متن ورود مخفی */
    .join-button .btn-text {
        display: none;
    }


    /* آیکون ورود */
    .join-button .btn-icon {
        display: block;
        font-size: 24px;
        line-height: 1;
    }


    /* =====================================================
       اطلاعات کاربر
       ===================================================== */

    #userInfoBox {
        display: flex;

        align-items: center;

        gap: 8px !important;
    }


    #userNameDisplay {
        display: none;
    }


    /* =====================================================
       شماره سبد خرید
       ===================================================== */

    #cartCountBadge {
        top: -5px;
        left: -5px;
    }


    /* =====================================================
       سایدبار
       ===================================================== */

    .sidebar {
        z-index: 20000;
    }

}
/*------------------------------------------------------------------*/

.sidebar a {
  display: block;
  width: 100%;
  padding: 12px 12px;
  text-decoration: none;
  color: #333;
  font-size: 17px;
  font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
  text-align: right;
  box-sizing: border-box;
}

.sidebar a:hover {
  background: rgba(25, 134, 197, 0.7);
  color: #fff;
}



/*-----------------------دکمه حرکت به بالا----------------------------*/

#scrollToTopBtn .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

#scrollToTopBtn .btn-icon svg {
    width: 24px;
    height: 24px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 768px) {
    #scrollToTopBtn {
        width: 41px;
        height: 41px;
        right: 14px;
        bottom: 18px;
    }

    #scrollToTopBtn .btn-icon svg {
        width: 18px;
        height: 18px;
        stroke-width: 2;
    }
}






/*-----------------------------سبد خرید-------------------------------------------*/

/* =========================================================
   سبد خرید
   ========================================================= */

.cart-page-container {
    direction: rtl;

    max-width: 900px;

    margin: 40px auto;

    padding: 25px;

    background: #fff;

    border: 1px solid #e1e5e9;

    border-radius: 16px;

    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);

    box-sizing: border-box;
}


/* عنوان سبد خرید */

.cart-page-container h1 {
    margin: 0 0 25px 0;

    padding-bottom: 18px;

    border-bottom: 1px solid #eee;

    font-size: 24px;

    color: #222;

    text-align: right;
}


/* =========================================================
   محصول
   ========================================================= */

.cart-page-item {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 18px;

    margin-bottom: 12px;

    background: #fafbfc;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

    transition: 0.2s ease;
}


.cart-page-item:hover {
    border-color: #1986c5;

    box-shadow: 0 3px 12px rgba(25, 134, 197, 0.08);
}


/* اطلاعات محصول */

.cart-page-item-title {
    font-weight: bold;

    font-size: 17px;

    color: #222;

    line-height: 1.8;
}


.cart-page-item-price {
    color: #666;

    font-size: 14px;

    margin-top: 6px;

    line-height: 1.8;
}


/* =========================================================
   کنترل تعداد
   ========================================================= */

.cart-qty-controls {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    min-width: 105px;

    padding: 5px 8px;

    background: #fff;

    border: 1px solid #ddd;

    border-radius: 10px;
}


.cart-qty-button {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 30px;

    height: 30px;

    border: none;

    border-radius: 7px;

    background: #f0f3f6;

    color: #1986c5;

    cursor: pointer;

    font-size: 20px;

    font-weight: bold;

    line-height: 1;

    transition: 0.2s ease;
}


.cart-qty-button:hover {
    background: #1986c5;

    color: #fff;
}


.cart-qty-controls span {
    min-width: 20px;

    text-align: center;

    font-size: 15px;

    font-weight: bold;

    color: #333;
}


/* =========================================================
   حذف محصول
   ========================================================= */

.cart-remove-link {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    margin-right: 12px;

    padding: 7px 10px;

    color: #dc3545;

    background: #fff1f2;

    border-radius: 7px;

    cursor: pointer;

    font-size: 13px;

    transition: 0.2s ease;
}


.cart-remove-link:hover {
    background: #dc3545;

    color: #fff;
}


/* =========================================================
   جمع کل
   ========================================================= */

.cart-page-total {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 22px;

    padding: 20px 5px;

    border-top: 2px solid #eee;

    font-size: 18px;

    font-weight: bold;

    color: #222;
}


.cart-page-total span:last-child {
    color: #a6266b;

    font-size: 20px;
}


/* =========================================================
   دکمه ادامه خرید
   ========================================================= */

.cart-page-checkout {
    width: 100%;

    border: none;

    border-radius: 10px;

    padding: 15px;

    margin-top: 5px;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    color: #fff;

    background: #d91e75;

    box-shadow: 0 4px 12px rgba(166, 38, 107, 0.2);

    transition: 0.2s ease;
}


.cart-page-checkout:hover {
    background: #26be5b;

    transform: translateY(-1px);

    box-shadow: 0 6px 16px rgba(166, 38, 107, 0.3);
}


.cart-page-checkout:active {
    transform: translateY(0);
}


/* =========================================================
   سبد خرید خالی
   ========================================================= */

.cart-page-empty {
    text-align: center;

    color: #777;

    padding: 60px 20px;

    margin: 0;

    background: #fafbfc;

    border: 1px dashed #ccc;

    border-radius: 12px;

    font-size: 16px;
}


/* =========================================================
   موبایل
   ========================================================= */

@media (max-width: 768px) {

    .cart-page-container {
        margin: 20px 10px;

        padding: 15px;

        border-radius: 12px;
    }


    .cart-page-container h1 {
        font-size: 21px;

        margin-bottom: 18px;
    }


    .cart-page-item {
        flex-direction: column;

        align-items: stretch;

        gap: 15px;

        padding: 15px;
    }


    .cart-page-item-title {
        font-size: 16px;
    }


    .cart-page-item-price {
        font-size: 13px;
    }


    .cart-page-item > div:last-child {
        display: flex;

        align-items: center;

        justify-content: space-between;

        width: 100%;
    }


    .cart-qty-controls {
        min-width: 105px;
    }


    .cart-remove-link {
        margin-right: 0;

        padding: 8px 12px;
    }


    .cart-page-total {
        font-size: 16px;

        padding: 18px 5px;
    }


    .cart-page-total span:last-child {
        font-size: 18px;
    }


    .cart-page-checkout {
        padding: 14px;

        font-size: 15px;
    }
}

/*--------------------------------------تلفن شناور برای صفحه موبایل----------------------------*/

.floating-call-btn{
    display: none; /* پیش‌فرض: روی دسکتاپ مخفی */
}

@media (max-width:768px){

    .floating-call-btn{
        display: block;
        position: fixed;
        bottom: 20px;
        left: 16px;
        z-index: 999;
        direction: rtl;
    }

    .call-toggle{
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: #650eab;
        color: #fff;
        border: none;
        box-shadow: 0 4px 14px rgba(0,0,0,0.35);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        animation: call-pulse 2s infinite;
    }

    .call-toggle:active{
        transform: scale(0.95);
    }

    .call-menu{
        position: absolute;
        bottom: 68px;
        left: 0;
        background: #16065f;
        border-radius: 14px;
        padding: 10px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.4);

        display: flex;
        flex-direction: column;
        gap: 6px;
        min-width: 190px;

        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.25s ease;
    }

    .call-menu.open{
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .call-option{
        display: block;
        color: #fff;
        text-decoration: none;
        padding: 12px 14px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: bold;
        text-align: right;
        direction: ltr; /* شماره‌ها درست‌چین نمایش داده شوند */
        background: rgba(255,255,255,0.06);
    }

    .call-option:active{
        background: rgba(255,255,255,0.15);
    }
}

.call-option:active{
    background: #6bbf7b;
    color: #16065f;
}



/*---------------------------صفحه دریافت آدرس---------------------------------*/


.address-form-container {
    direction: rtl;
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
}
.address-form-group {
    margin-bottom: 16px;
}
.address-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}
.address-form-group select,
.address-form-group input,
.address-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}
.address-submit-button {
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    cursor: pointer;
    color: #fff;
    background: #28a745;
    margin-top: 10px;
}
.address-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 4px;
}

/* ===== Searchable select (جایگزین select2) ===== */
.ss-wrapper {
    position: relative;
    width: 100%;
}
/* select اصلی برای ارسال فرم و اعتبارسنجی می‌ماند، ولی نامرئی است */
.ss-native {
    position: absolute !important;
    left: 0;
    bottom: 0;
    width: 100% !important;
    height: 1px !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0;
    pointer-events: none;
}
.ss-display {
    display: flex;
    align-items: center;
    width: 100%;
    height: 46px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    text-align: right;
    cursor: pointer;
    box-sizing: border-box;
}
.ss-display:focus,
.ss-display:hover {
    border-color: #28a745;
    outline: none;
}
.ss-display span {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.ss-display::after {
    content: "";
    margin-top: 4px;
    border: 5px solid transparent;
    border-top-color: #666;
}
.ss-placeholder {
    color: #888;
}
.ss-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    padding: 8px;
}
.ss-dropdown.ss-open {
    display: block;
}
.ss-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    max-height: 240px;
    overflow-y: auto;
}
.ss-item {
    padding: 9px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.ss-item.ss-active {
    background: #e9f7ee;
}
.ss-item.ss-selected {
    font-weight: bold;
}
.ss-empty {
    padding: 10px;
    color: #888;
    font-size: 14px;
    text-align: center;
}

/*------------------------------------مرتب نشان دادن key value کارت ها--------------------------------------------*/


/*------------------------------------
  مشخصات محصول داخل کارت
------------------------------------*/

.product-specs {
    direction: rtl;
    text-align: right;

    width: 100%;
    margin: 10px 0 14px 0;

    background: #f8fafc;

    border: 1px solid #e1e6ec;
    border-radius: 8px;

    overflow: hidden;
    box-sizing: border-box;
}


.product-spec-row {
    direction: rtl;

    display: flex;
    align-items: stretch;

    width: 100%;
    min-height: 40px;

    box-sizing: border-box;

    border-bottom: 1px solid #e0e5ea;

    font-size: 14px;
    line-height: 1.6;
}


.product-spec-row:last-child {
    border-bottom: none;
}


/* ================================
   ستون سمت راست - کوچک‌تر
   ================================ */

.product-spec-row bdi:first-child {
    width: 42%;

    flex: 0 0 42%;

    box-sizing: border-box;

    padding: 8px 10px;

    background: #eef2f5;

    color: #536273;

    font-weight: bold;

    text-align: right;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    border-left: 1px solid #dfe4e9;
}


/* ================================
   ستون سمت چپ - بزرگ‌تر
   ================================ */

.product-spec-row bdi:last-child {
    width: 58%;

    flex: 0 0 58%;

    box-sizing: border-box;

    padding: 8px 10px;

    background: #ffffff;

    color: #4f6173;

    font-weight: 500;

    text-align: center;

    display: flex;
    align-items: center;
    justify-content: center;
}
/*--------------------------------کادر سفید برای نوشتن توضیحات تکمیلی در محصول------------------------------------------------*/


.pp-tab-content {
    background: #ffffff;

    border-radius: 14px;

    padding: 30px 35px;

    margin: 25px 20px;

    box-sizing: border-box;

    color: #333;

    font-size: 16px;

    line-height: 2.2;

    text-align: right;

    box-shadow: 0 5px 20px rgba(30, 60, 90, 0.08);
}



@media (max-width:768px){
    
    .pp-tab-content {
        background: #ffffff;

        border-radius: 14px;

        padding: 11px 11px;

        margin: 11px 11px;

        box-sizing: border-box;

        color: #333;

        font-size: 16px;

        line-height: 2.2;

        text-align: right;

        box-shadow: 0 5px 20px rgba(30, 60, 90, 0.08);
    }
}

/*-------------------------------دکمه پنل کاربری----------------------------------*/

.panel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    width: auto;
    height: 38px;
    
    padding: 6px 12px;

    background-color: white;
    border: 1px solid rgba(8, 127, 217);
    border-radius: 5px;

    color: rgba(75, 16, 239);
    text-decoration: none;

    font-family: 'B Yekan', 'B Koodak Bold', tahoma, sans-serif;
    font-size: 14px;

    cursor: pointer;
}

.panel-button .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.panel-button .btn-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.panel-button .btn-text {
    margin-right: 6px;
}


@media (max-width: 768px) {

    .panel-button {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        padding: 0 !important;

        display: inline-flex !important;
        align-items: center;
        justify-content: center;

        /* مثل بقیه دکمه‌ها: شفاف */
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        color: #cbd2e2 !important;

        border-radius: 50% !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        transition: all 0.25s ease;
    }

    .panel-button:hover {
        background: rgba(255, 255, 255, 0.18) !important;
        color: #ffffff !important;
    }

    .panel-button .btn-text {
        display: none !important;
    }

    .panel-button .btn-icon {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .panel-button .btn-icon svg {
        width: 25px;
        height: 25px;
    }
}











/*-------------------- جلوگیری از اسکرول افقی بدون خراب کردن هدر شناور (sticky) --------------------------------*/

html,
body {
    max-width: 100%;
    overflow-x: clip;
}