@font-face {
    font-family: 'iranyekan';
    src: url('../fonts/iranyekanr.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-feature-settings: "ss02";
    font-display: swap;
}

@font-face {
    font-family: 'iranyekan';
    src: url('../fonts/iranyekanb.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-feature-settings: "ss02";
    font-display: swap;
}

@font-face {
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap !important;
    src: url('../webfonts/fa-solid-900.woff2') format('woff2');
}

body {
    font-family: 'iranyekan' !important;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
    background-color: var(--background, #F8F9F8);
}

.ss02 {
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}

.woocommerce,
.woocommerce * {
    font-family: 'iranyekan' !important;
}

/********************** اسلایدر ***************/

.slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.slides {
    display: flex;
    width: 300%; /* برای ۳ اسلاید */
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 33.33333%; /* برای ۳ اسلاید */
    height: 100%;
    flex-shrink: 0;
    background: #000;
    position: relative;
}

.slide img {
    width: 100%;
    height: auto;
    object-fit: cover !important;
    object-position: center top;
    display: block;
}

/* متن و دکمه روی اسلاید */
.slide-content {
    position: absolute;
    top: 77%;
    right: 17%;
    transform: translateY(-50%);
    z-index: 5;
    text-align: right;
    max-width: 550px;
    color: #ffffff;
}

.slide-btn {
    display: inline-block;
    padding: 16px 38px;
    border-radius: 23px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
    background: linear-gradient(135deg, #D4A359 0%, #C89547 100%);
    box-shadow: 0 8px 25px rgba(212, 163, 89, 0.35);
    transition: all 0.3s ease;
    border: none;
}

.slide-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #E2B36B 0%, #D4A359 100%);
    box-shadow: 0 12px 30px rgba(212, 163, 89, 0.45);
    color: #000;
}

/* فلش‌ها */
.nav-arrow {
    position: absolute;
    top: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev { left: 20px; }
.next { right: 20px; }

.nav-arrow:hover {
    background: var(--primary, #436A49);
    border-color: var(--accent, #D4A359);
}

/* @media (max-width: 768px) {
    .slider,
    .slick-slider,
    .owl-carousel {
        overflow: visible !important;
    }

    .slick-track,
    .owl-stage {
        overflow: visible !important;
    }

    .slider-container {
        margin: 0px auto 15px;
    }

    .slide-content {
        position: absolute;
        top: 90%;
        right: 30%;
    }

    .slide-btn {
        padding: 10px 16px;
        font-size: 12px;
    }

    .nav-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
} */









 /* استایل‌های کلی صفحه */
  .gold-page-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    box-sizing: border-box;
    direction: rtl;
    font-family: inherit;
  }
/* =========================================================
   HERO BANNER
   Full Width + Compact Height
========================================================= */

.gold-hero-banner {

    width: 100%;

    min-height: 280px;

    margin: 25px 0 45px;

    padding: 35px 7%;

    box-sizing: border-box;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

    direction: rtl;

    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 12% 50%,
            rgba(242, 185, 0, 0.14),
            transparent 30%
        ),

        linear-gradient(
            135deg,
            #075c3e 0%,
            #064c35 50%,
            #032f23 100%
        );

    box-shadow:
        0 15px 40px rgba(0, 40, 25, 0.16);

}


/* =========================================================
   BACKGROUND LIGHT
========================================================= */

.gold-hero-banner::before {

    content: "";

    position: absolute;

    width: 400px;

    height: 400px;

    left: -180px;

    top: -180px;

    background:

        radial-gradient(
            circle,
            rgba(255, 200, 50, 0.12),
            transparent 70%
        );

    border-radius: 50%;

    pointer-events: none;

}


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

.hero-content {

    position: relative;

    z-index: 2;

    flex: 1;

    max-width: 700px;

}


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

.hero-badge {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 7px 14px;

    margin-bottom: 12px;

    color: #f5d477;

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

    border:
        1px solid rgba(255, 255, 255, 0.14);

    border-radius: 30px;

    font-size: 12px;

    line-height: 1;

}


/* =========================================================
   LIVE DOT
========================================================= */

.hero-live-dot {

    width: 7px;

    height: 7px;

    min-width: 7px;

    display: inline-block;

    background: #19d38a;

    border-radius: 50%;

    box-shadow:
        0 0 0 4px rgba(25, 211, 138, 0.12);

}


/* =========================================================
   HERO TITLE
========================================================= */

.hero-content h1 {

    margin: 0 0 10px;

    color: #ffffff;

    font-size: clamp(27px, 3vw, 42px);

    line-height: 1.45;

    font-weight: 800;

}


.hero-content h1 strong {

    color: #f3c542;

    font-weight: 800;

}


/* =========================================================
   HERO DESCRIPTION
========================================================= */

.hero-content p {

    max-width: 650px;

    margin: 0 0 18px;

    color:
        rgba(255, 255, 255, 0.78);

    font-size: 14px;

    line-height: 1.9;

}


/* =========================================================
   HERO BUTTONS
========================================================= */

.hero-actions {

    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

}


.hero-btn {

    min-width: 145px;

    padding: 11px 20px;

    box-sizing: border-box;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    text-align: center;

    text-decoration: none !important;

    font-size: 13px;

    font-weight: 700;

    transition:
        all 0.25s ease;

}


/* =========================================================
   PRIMARY BUTTON
========================================================= */

.hero-btn-primary {

    color: #142c20 !important;

    background:
        #f2b900;

    box-shadow:
        0 8px 20px rgba(242, 185, 0, 0.18);

}


.hero-btn-primary:hover {

    color: #142c20 !important;

    background:
        #ffca20;

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 25px rgba(242, 185, 0, 0.28);

}


/* =========================================================
   SECONDARY BUTTON
========================================================= */
.hero-btn-secondary {
    color: #ffffff !important;
    background:rgba(255, 255, 255, 0.07);
    border:1px solid rgba(255, 255, 255, 0.18);
}

.hero-btn-secondary:hover {
    color: #ffffff !important;
    background:rgba(255, 255, 255, 0.14);
    transform:translateY(-2px);
}
/* =========================================================
   HERO VISUAL
========================================================= */
.hero-visual {
    width: 390px;
    height: 230px;
    position: relative;
    flex-shrink: 0;
}
/* =========================================================
   PRICE CARD
========================================================= */
.hero-price-card {
    position: absolute;
    z-index: 3;
    top: 0;
    right: 0;
    width: 220px;
    padding: 15px 18px;
    box-sizing: border-box;
    background:rgba(255, 255, 255, 0.97);
    border-radius: 15px;
    box-shadow:0 15px 35px rgba(0, 0, 0, 0.18);
}
.hero-price-card > span {
    display: block;
    margin-bottom: 6px;
    color: #647067;
    font-size: 11px;
}
/* =========================================================
   PRICE
========================================================= */
.hero-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    direction: rtl;
}
.hero-price strong {
    color: #075c3e;
    font-size: 23px;
    font-weight: 800;
}
.hero-price small {
    color: #555;
    font-size: 11px;
}
/* =========================================================
   PRICE STATUS
========================================================= */
.hero-price-status {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    color: #198754;
    font-size: 10px;
}
/* =========================================================
   GOLD BAR
========================================================= */
.hero-gold-shape {
    position: absolute;
    width: 240px;
    height: 135px;
    left: 5px;
    bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:linear-gradient( 135deg, #ffe69b 0%,#d99b18 35%,#f6cf59 55%,#b87908 100%);
    border-radius: 20px;
    transform:
        rotate(-7deg);
    box-shadow:
        0 20px 35px rgba(0, 0, 0, 0.22),

        inset 0 2px 4px
        rgba(255, 255, 255, 0.55);

}

.hero-gold-shape::before {
    content: "";
    position: absolute;
    inset: 10px;
    border:1px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
}
.hero-gold-shape span {
    position: relative;
    z-index: 2;
    color: rgba(80, 50, 0, 0.55);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 5px;
    transform:
        rotate(7deg);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .gold-hero-banner {

        padding:
            30px 5%;

        gap:
            20px;

    }


    .hero-visual {

        width: 330px;

        transform:
            scale(0.9);

        transform-origin:
            center right;

    }

}


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

@media (max-width: 760px) {

    .gold-hero-banner {

        min-height: auto;

        margin:
            15px 0 35px;

        padding:
            35px 20px 25px;

        flex-direction:
            column;

        text-align:
            center;

        gap:
            10px;

    }


    .hero-content {

        width: 100%;

        max-width: 100%;

    }


    .hero-badge {

        font-size:
            11px;

    }


    .hero-content h1 {

        font-size:
            28px;

        line-height:
            1.55;

    }


    .hero-content h1 strong {

        display:
            block;

    }


    .hero-content p {

        margin-left:
            auto;

        margin-right:
            auto;

        font-size:
            13px;

        line-height:
            1.9;

    }


    .hero-actions {

        width:
            100%;

        justify-content:
            center;

    }


    .hero-btn {

        min-width:
            145px;

    }


    .hero-visual {

        width:
            320px;

        height:
            190px;

        transform:
            scale(0.85);

        transform-origin:
            center center;

        margin-top:
            -10px;

        margin-bottom:
            -20px;

    }

}


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

@media (max-width: 480px) {

    .gold-hero-banner {

        padding:
            30px 15px 20px;

    }


    .hero-content h1 {

        font-size:
            25px;

    }


    .hero-content p {

        font-size:
            12px;

    }


    .hero-actions {

        flex-direction:
            column;

    }


    .hero-btn {

        width:
            100%;

    }


    .hero-visual {

        transform:
            scale(0.72);

        margin-top:
            -20px;

        margin-bottom:
            -35px;

    }

}
/* باکس والد برای دو ستونه کردن */
.calculators-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 40px auto;
  align-items: stretch; /* هم‌ارتفاع شدن دو باکس */
  direction: rtl;
  padding: 0 15px;
  box-sizing: border-box;
}

/* تنظیمات باکس اول */
.gold-calc-container {
  margin-bottom: 0 !important; /* حذف فاصله پایینی قدیمی */
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* تنظیمات باکس دوم */
.gold-calc-card-v2 {
  margin: 0 !important; /* حذف مارجین‌های جانبی قدیمی */
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
  /* --- استایل بخش محاسبه‌گر --- */
.gold-calc-container {
  background-color: #0d5c3a;
  border-radius: 20px;
  padding: 35px 30px;
  color: #ffffff;
  display: flex;
  flex-direction: column; /* چیدمان عمودی: بخش راست می‌رود بالا */
  align-items: stretch;
  gap: 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  margin: 0 auto 50px auto;
  max-width: 480px;        /* ایجاد حالت عمودی/مربعی شیک */
  box-sizing: border-box;
}

/* بخش عنوان و قیمت که اکنون بالا قرار می‌گیرد */
.gold-calc-right {
  flex: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;    /* مرکزچین کردن متون و قیمت */
  text-align: center;
}

.gold-calc-title h2 {
  color: #fff;
  margin: 0 0 10px 0;
  font-size: 26px;
  font-weight: 800;
}

.gold-calc-title p {
  color: #e2e8f0;
  margin: 0;
  font-size: 14px;
}

.gold-live-price {
  background-color: #ca8a04;
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 15px;
}

.live-dot {
  width: 10px;
  height: 10px;
  background-color: #ef4444;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #ef4444;
}

/* بخش فرم و ورودی‌ها که زیر قرار می‌گیرد */
.gold-calc-left {
  flex: none;
  width: 100%;
  background-color: #e9ecef;
  border-radius: 14px;
  padding: 20px;
  color: #333;
  box-sizing: border-box;
}

.gold-calc-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.gold-calc-tab {
  flex: 1;                 /* هم‌اندازه شدن تب‌های خرید و فروش */
  text-align: center;
  padding: 10px 0;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s ease-in-out;
  background-color: #dcdcdc;
  color: #555;
}

.gold-calc-tab.active-buy {
  background-color: #10b981;
  color: #fff;
}

.gold-calc-tab.active-sell {
  background-color: #ef4444;
  color: #fff;
}

.gold-calc-inputs {
  display: flex;
  flex-direction: column; /* عمودی شدن اینپوت‌ها برای چیدمان بهتر در کارت عمودی */
  gap: 12px;
  margin-bottom: 15px;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.input-wrapper input {
  width: 100%;
  padding: 12px;
  padding-left: 50px;
  border-radius: 10px;
  border: 2px solid #ccc;
  font-size: 16px;
  font-weight: bold;
  outline: none;
  box-sizing: border-box;
  text-align: right;
}

.input-wrapper input:focus {
  border-color: #0d5c3a;
}

.input-wrapper .unit {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 13px;
  font-weight: bold;
  pointer-events: none;
}

.btn-submit {
  width: 100%;             /* تمام‌عرض شدن دکمه برای ظاهری مدرن‌تر */
  padding: 14px 0;
  border-radius: 10px;
  border: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
  background-color: #124e37;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.btn-submit.sell-mode {
  background-color: #dc2626;
}

.gold-calc-info {
  font-size: 12.5px;
  color: #555;
  margin-top: 12px;
  line-height: 1.6;
  text-align: center;      /* متون راهنما در مرکز */
}

  .gold-calc-right {
    display: flex;
    flex-direction: column;
  }

  .gold-calc-title h2 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 30px;
    font-weight: 800;
  }

  .gold-calc-title p {
    color: #e2e8f0;
    margin: 0;
    font-size: 15px;
  }

  .gold-live-price {
    background-color: #ca8a04;
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    font-size: 17px;
  }

  .live-dot {
    width: 12px;
    height: 12px;
    background-color: #ef4444;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #ef4444;
  }

  /* --- استایل بخش تابلوی بازار --- */
  .market-board-header-text {
    text-align: center;
    margin-bottom: 25px;
  }

  .market-board-header-text h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 8px 0;
  }

  .market-board-header-text p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
  }

  .market-board-header-text .underline {
    width: 80px;
    height: 4px;
    background-color: #f59e0b;
    margin: 10px auto 0 auto;
    border-radius: 2px;
  }

  .market-board-card {
    background-color: #121824;
    border-radius: 16px;
    padding: 20px;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid #1e293b;
  }

  .board-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid #10b981;
    padding-bottom: 12px;
    margin-bottom: 20px;
  }

  .board-time {
    color: #f59e0b;
    font-size: 14px;
    font-weight: 600;
  }

  .board-live-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ef4444;
    font-weight: bold;
    font-size: 14px;
  }

  .board-live-dot {
    width: 10px;
    height: 10px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 8px #ef4444;
  }

  .board-items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
  }

  .board-item {
    background-color: #1e2638;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    transition: transform 0.2s ease;
  }

  .board-item:hover {
    transform: translateY(-3px);
  }

  .item-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
  }

  .item-price {
    color: #e2e8f0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
  }

  .item-change {
    font-size: 13px;
    direction: ltr;
    display: inline-block;
    font-weight: bold;
  }

  .item-change.up { color: #10b981; }
  .item-change.down { color: #ef4444; }
  .item-change.neutral { color: #94a3b8; }

  .board-footer {
    background-color: #0b0f19;
    border-radius: 10px;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #cbd5e1;
  }

  .footer-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* ================= استایل‌های بخش محصولات ================= */
  .gold-products-section {
    direction: rtl;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 15px;
    font-family: inherit;
  }

  .sec-header { text-align: center; margin-bottom: 25px; }
  .sec-header h2 { font-size: 30px; font-weight: 900; color: #0f172a; margin: 0 0 8px 0; }
  .sec-header p { font-size: 14px; color: #64748b; margin: 0; }
  .sec-header .yellow-bar { width: 140px; height: 5px; background-color: #facc15; margin: 10px auto 0 auto; border-radius: 10px; }

  .filter-controls { display: flex; flex-direction: column; align-items: center; gap: 15px; margin-bottom: 35px; }
  .tabs-group { display: inline-flex; background-color: #e2e8f0; padding: 4px; border-radius: 30px; gap: 4px; }
  .tab-item { border: none; background: transparent; padding: 8px 22px; border-radius: 20px; font-size: 14px; font-weight: 700; color: #475569; cursor: pointer; transition: all 0.2s ease-in-out; }
  .tab-item.active { background-color: #ffffff; color: #0f172a; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }

  .dropdown-group select { background-color: #f8fafc; border: 1px solid #cbd5e1; border-radius: 20px; padding: 8px 24px; font-size: 13px; font-weight: 700; color: #334155; outline: none; cursor: pointer;font-family:'iranyekan'; }

  .products-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  
  /* جلوگیری از پرش تصویر در لود اولیه */
  .custom-prod-card { 
    background: #ffffff; 
    border: 1px solid #e2e8f0; 
    border-radius: 18px; 
    padding: 16px; 
    display: none; /* پیش‌فرض تمام کارت‌ها مخفی هستند */
    flex-direction: column; 
    justify-content: space-between; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.02); 
    transition: transform 0.2s ease, box-shadow 0.2s ease; 
  }
  
  .custom-prod-card.is-initial-visible {
    display: flex !important; /* فقط کارت‌های اولیه نمایش داده می‌شوند */
  }

  .custom-prod-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }

  .card-image { height: 150px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
  .card-image img { max-height: 100%; max-width: 100%; object-fit: contain; }
  .card-title { font-size: 14px; font-weight: 800; color: #0f172a; text-align: center; margin: 0 0 12px 0; min-height: 38px; display: flex; align-items: center; justify-content: center; }

  .card-details { background-color: #f8fafc; border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; font-size: 12px; }
  .detail-item { display: flex; justify-content: space-between; margin-bottom: 4px; }
  .detail-item:last-child { margin-bottom: 0; }
  .detail-item .lbl { color: #64748b; }
  .detail-item .val { color: #1e293b; font-weight: 700; }

  .card-price-box { margin-bottom: 12px; text-align: right; }
  .card-price-box .p-label { font-size: 11px; color: #64748b; display: block; }
  .card-price-box .p-amount { display: flex; align-items: baseline; gap: 4px; }
  .card-price-box .num { font-size: 18px; font-weight: 900; color: #0f172a; }
  .card-price-box .unit { font-size: 11px; color: #64748b; font-weight: 700; }

  .add-to-cart-btn { background-color: #eab308; color: #ffffff; text-align: center; text-decoration: none; padding: 10px; border-radius: 10px; font-weight: 800; font-size: 13px; display: block; transition: background-color 0.2s; }
  .add-to-cart-btn:hover { background-color: #ca8a04; }

  /* @media (max-width: 900px) { .board-items-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 992px) { .products-container { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 768px) { .gold-calc-inputs { flex-direction: column; align-items: stretch; } .btn-submit { width: 100%; } }
  @media (max-width: 576px) { .products-container { grid-template-columns: 1fr; } }
  @media (max-width: 500px) { .board-items-grid { grid-template-columns: 1fr; } .board-footer { flex-direction: column; text-align: center; } } */

.gold-calc-card-v2 {

    max-width: 520px;

    margin: 40px auto;

    background-color: #e9ecef;

    border-radius: 24px;

    padding: 35px 30px;

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);

    font-family: inherit;

    direction: rtl;

    box-sizing: border-box;

  }

  .gold-calc-card-v2 .calc-header-v2 {
    text-align: center;
    margin-bottom: 25px;
  }

  .gold-calc-card-v2 .calc-header-v2 h2 {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px 0;
  }

  .gold-calc-card-v2 .calc-header-v2 p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
  }

  /* تب‌های خرید / فروش */
  .gold-calc-card-v2 .calc-tabs-wrapper-v2 {
    background-color: #dcdcdc;
    border-radius: 50px;
    padding: 4px;
    display: flex;
    margin-bottom: 25px;
  }

  .gold-calc-card-v2 .calc-tab-v2 {
    flex: 1;
    padding: 10px 0;
    border: none;
    border-radius: 50px;
    background: transparent;
    font-size: 15px;
    font-weight: 700;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.25s ease;
  }

  .gold-calc-card-v2 .calc-tab-v2.active-buy {
    background-color: #10b981;
    color: #ffffff;
  }

  .gold-calc-card-v2 .calc-tab-v2.active-sell {
    background-color: #ef4444;
    color: #ffffff;
  }

  /* ورودی و دراپ‌داون */
  .gold-calc-card-v2 .calc-input-group-v2 {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
  }

  .gold-calc-card-v2 .input-field-container-v2, 
  .gold-calc-card-v2 .select-field-container-v2 {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .gold-calc-card-v2 .input-field-container-v2 {
    flex: 1.2;
  }

  .gold-calc-card-v2 .select-field-container-v2 {
    flex: 1;
  }

  .gold-calc-card-v2 .field-label-v2 {
    font-size: 11px;
    color: #6b7280;
    text-align: center;
  }

  .gold-calc-card-v2 .input-box-wrapper-v2 {
    position: relative;
    display: flex;
    align-items: center;
  }

  .gold-calc-card-v2 .input-box-wrapper-v2 input {
    width: 100%;
    height: 48px;
    padding: 0 40px 0 15px;
    border-radius: 12px;
    border: 1.5px solid #000000;
    background-color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    outline: none;
    box-sizing: border-box;
    text-align: right;
  }

  .gold-calc-card-v2 .input-box-wrapper-v2 .unit-tag-v2 {
    position: absolute;
    left: 12px;
    font-size: 13px;
    color: #6b7280;
    pointer-events: none;
  }

  .gold-calc-card-v2 .select-box-wrapper-v2 select {
    width: 100%;
    height: 48px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1.5px solid #d1d5db;
    background-color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
  }

  /* بخش قیمت لحظه‌ای */
  .gold-calc-card-v2 .live-rate-wrapper-v2 {
    text-align: center;
    margin-bottom: 20px;
  }

  .gold-calc-card-v2 .live-rate-wrapper-v2 .rate-title-v2 {
    font-size: 11px;
    color: #6b7280;
    display: block;
    margin-bottom: 4px;
  }

  .gold-calc-card-v2 .live-rate-wrapper-v2 .rate-value-v2 {
    font-size: 22px;
    font-weight: 900;
    color: #111827;
  }

  .gold-calc-card-v2 .live-rate-wrapper-v2 .rate-unit-v2 {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-right: 4px;
  }

  /* نتیجه و دکمه پویا */
  .gold-calc-card-v2 .calc-dynamic-result-v2 {
    display: none;
    flex-direction: column;
    gap: 15px;
    animation: fadeInV2 0.3s ease-in-out forwards;
  }

  @keyframes fadeInV2 {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .gold-calc-card-v2 .result-info-box-v2 {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }

  .gold-calc-card-v2 .result-info-box-v2 .res-weight-text-v2 {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
  }

  .gold-calc-card-v2 .result-info-box-v2 .res-price-group-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .gold-calc-card-v2 .result-info-box-v2 .res-price-num-v2 {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
  }

  .gold-calc-card-v2 .result-info-box-v2 .res-unit-v2 {
    font-size: 12px;
    color: #6b7280;
  }

  .gold-calc-card-v2 .result-info-box-v2 .status-icon-v2 {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #10b981;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
  }

  .gold-calc-card-v2 .result-info-box-v2 .status-icon-v2.sell-icon {
    background-color: #ef4444;
  }

  .gold-calc-card-v2 .submit-action-btn-v2 {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: none;
    background-color: #10b981;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
  }

  .gold-calc-card-v2 .submit-action-btn-v2.sell-mode {
    background-color: #ef4444;
  }
html, body, div, span, p, a, li, ul, ol, h1, h2, h3, h4, h5, h6, input, textarea, button, label {
    font-family: 'iranyekan' !important;
}


/* @media (max-width: 768px) {
    .product-card img {
        height: 220px;
        width: 100% !important;
        object-fit: cover;
    }
    
    .container {
        overflow-x: hidden;
    }
} */
/* Modal & Overlay Styles */
.gold-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px); /* تار شدن بک‌گراند */
  z-index: 99998;
}

.gold-modal-box {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  z-index: 99999;
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.close-modal-btn {
  position: absolute;
  top: 10px; right: 15px;
  background: none; border: none;
  font-size: 24px; cursor: pointer; color: #888;
}

.modal-input-group { margin-bottom: 15px; }
.modal-input-group input {
  width: 100%; padding: 10px;
  border: 1px solid #ccc; border-radius: 6px;
  outline: none; font-family: inherit;
}

.modal-submit-btn {
  width: 100%; padding: 12px;
  background: #28a745; color: #fff;
  border: none; border-radius: 6px;
  cursor: pointer; font-weight: bold;
}
.modal-submit-btn:disabled { background: #aaa; }
.gold-modal-box,
.gold-modal-box * {
  box-sizing: border-box;
}

.modal-input-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  font-family: inherit;
}