header.main-header .main-menu .list .list-item:not(:last-child) {
    margin-right: 0;
}



/* changed the style of address choosing */
a.btn-modern {
  display: inline-block;
  font-weight: 600;
  font-size: 10px;
  border-radius: 12px;
  padding: 10px 10px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  line-height: 1.5;
}

a.btn-modern.btn-select {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #0b7b0d;
   border: 2px solid #15803d;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
}
a.btn-modern.btn-select:hover {
  background: linear-gradient(135deg, #15803d, #16a34a);
  box-shadow: 0 6px 14px rgba(22, 163, 74, 0.4);
  color: #fff;
}

a.btn-modern.btn-new-address {
  background: #fff;
  color: #0ea5e9;
  border: 2px solid #0ea5e9;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.15);
}
a.btn-modern.btn-new-address:hover {
  background: #0ea5e9;
  color: #fff;
  box-shadow: 0 6px 14px rgba(14, 165, 233, 0.3);
}

a.btn-modern.btn-select,
a.btn-modern.btn-new-address {
  background-image: none;
}



/* استایل کلی برای لیست جزئیات سفارش */
.order-details-list {
    list-style-type: none; /* حذف نقطه‌های کنار لیست */
    padding: 0;
    margin: 0;
}

/* استایل هر آیتم در لیست */
.order-details-list li {
    display: flex;
    justify-content: space-between; /* عنوان و تعداد را در دو طرف قرار می‌دهد */
    align-items: center;
    padding: 12px 10px;
    background: linear-gradient(135deg, #D4AF37, #FFD700, #F0E68C, #FFD700, #D4AF37);
    border-radius: 8px; /* گوشه‌های گرد */
    margin-bottom: 8px; /* فاصله بین آیتم‌ها */
    border: 1px solid #D4AF37; /* یک حاشیه ظریف */
}

/* استایل عنوان محصول */
.order-details-list .product-title {
    font-weight: 500;
    color: #212529;
}

/* استایل تعداد محصول که شبیه یک برچسب (badge) می‌شود */
.order-details-list .product-quantity {
    font-size: 0.9rem;
    color: #495057;
    background-color: #e9ecef;
    padding: 4px 10px;
    border-radius: 12px;
}

/* سوشال مدیا */
footer.main-footer .footer-widgets .socials_1 {
  text-align: center;
  margin-top: 25px;
}

footer.main-footer .footer-widgets .socials_1 .social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  justify-items: center;
  align-items: center;
}

footer.main-footer .footer-widgets .socials_1 .social-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-size: 13px;
  transition: transform 0.2s ease;
}

/* اندازه آیکون‌ها روی دسکتاپ */
footer.main-footer .footer-widgets .socials_1 .social-grid img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 5px;
  transition: transform 0.2s ease;
}

/* هنگام هاور */
footer.main-footer .footer-widgets .socials_1 .social-grid a:hover img {
  transform: scale(1.1);
}

/* اندازه آیکون‌ها روی موبایل */
@media (max-width: 576px) {
  footer.main-footer .footer-widgets .socials_1 .social-grid img {
    width: 30px;
    height: 30px;
  }
}






/* ==============================================================
   ۱.   تنظیم ابعاد و جلوگیری از تغییر سایز برای هر دو اسلایدر اصلی و کمپین
============================================================== */
/* ==============================================================
   اسلایدر اصلی
============================================================== */

#main-slider .carousel-item {
    aspect-ratio: 16 / 6;
    overflow: hidden;
}

#main-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==============================================================
   بنر لندینگ هدر
============================================================== */

#campaignBannerSlider .carousel-item {
    overflow: hidden;
}

/* فقط بنر دسکتاپ */
#campaignBannerSlider .landing-desktop-banner {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 1;
    height: auto;
    object-fit: contain;
}

/* فقط بنر موبایل */
#campaignBannerSlider .landing-mobile-banner {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 6;
    object-fit: cover;
}

/* ==============================================================
   موبایل
============================================================== */

@media (max-width:768px){

    #main-slider .carousel-item{
        aspect-ratio:16 / 6;
    }

}

/* ==============================================================
   ۲. کوچک و ظریف کردن فلش‌های چپ و راست در هر دو اسلایدر
============================================================== */
.carousel-control-prev, 
.carousel-control-next {
    width: 5% !important;     /* کاهش ناحیه کلیک روی عکس */
    opacity: 0.7;
}

.carousel-control-prev-icon, 
.carousel-control-next-icon {
    width: 25px !important;   /* کوچک کردن خود آیکون فلش */
    height: 25px !important;
}





/* ✅ پادزهر نهایی باگ منو در آیفون‌های جدید ✅ */
@media screen and (max-width: 991px) {
    /* نابود کردن ریشه‌ای لایه‌های کاذب که تو سافاری شیفت می‌شدن */
    .sidebar-collapse .navbar-collapse::before,
    .sidebar-collapse .navbar-collapse::after,
    .burger-menu .navbar-collapse::before,
    .burger-menu .navbar-collapse::after {
        display: none !important;
        content: none !important;
        background: transparent !important;
        width: 0 !important;
        height: 0 !important;
    }

    /* دادن رنگ اصلی (زرشکی) مستقیماً به خودِ کانتینر منو */
    .sidebar-collapse .navbar-collapse,
    .burger-menu .navbar-collapse {
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* بالا آوردن محتوا برای اطمینان صد در صد */
    .sidebar-collapse .navbar-collapse .navbar-nav,
    .sidebar-collapse .navbar-collapse .logo-nav-res {
        position: relative !important;
        z-index: 9999 !important;
    }
}

/* Stable mobile off-canvas menu for iOS Safari */
@media screen and (max-width: 1077px) {
    html.nav-open,
    html.nav-open body {
        overflow-x: hidden;
    }

    .sidebar-collapse nav.header-responsive .navbar-collapse#navigation {
        position: fixed !important;
        display: block !important;
        top: 0 !important;
        right: -300px !important;
        left: auto !important;
        bottom: 0 !important;
        width: 300px !important;
        max-width: 86vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        max-height: 100dvh !important;
        visibility: visible !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        background: var(--mobile-menu-bg, #fff) !important;
        direction: rtl !important;
        text-align: right !important;
        z-index: 10050 !important;
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.18);
        contain: paint;
        isolation: isolate;
        -webkit-transform: none !important;
        transform: none !important;
        -webkit-transition: right 0.35s cubic-bezier(0.685, 0.0473, 0.346, 1) !important;
        transition: right 0.35s cubic-bezier(0.685, 0.0473, 0.346, 1) !important;
    }

    .nav-open .sidebar-collapse nav.header-responsive .navbar-collapse#navigation {
        right: 0 !important;
        -webkit-transform: none !important;
        transform: none !important;
    }

    .sidebar-collapse nav.header-responsive .navbar-collapse#navigation::before,
    .sidebar-collapse nav.header-responsive .navbar-collapse#navigation::after {
        display: none !important;
        content: none !important;
    }

    .nav-open .sidebar-collapse .wrapper,
    .nav-open .sidebar-collapse .navbar-translate {
        -webkit-transform: none !important;
        transform: none !important;
    }

    .sidebar-collapse #bodyClick {
        position: fixed !important;
        top: 0 !important;
        right: 300px !important;
        right: min(300px, 86vw) !important;
        bottom: 0 !important;
        left: 0 !important;
        width: auto !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 10040 !important;
        background: rgba(0, 0, 0, 0.18) !important;
        -webkit-transform: none !important;
        transform: none !important;
    }

    .nav-open .sidebar-collapse nav.header-responsive .navbar-toggler {
        position: fixed !important;
        top: 14px !important;
        right: 16px !important;
        z-index: 10060 !important;
    }

    .sidebar-collapse nav.header-responsive .navbar-collapse#navigation .logo-nav-res,
    .sidebar-collapse nav.header-responsive .navbar-collapse#navigation .navbar-nav {
        position: relative !important;
        z-index: 1 !important;
    }

    .sidebar-collapse nav.header-responsive .navbar-collapse#navigation .logo-nav-res {
        margin: 54px 0 12px !important;
    }

    .sidebar-collapse nav.header-responsive .navbar-collapse#navigation .navbar-nav {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 0 24px !important;
    }

    .sidebar-collapse nav.header-responsive .navbar-collapse#navigation .navbar-nav > li {
        float: none !important;
        display: block !important;
        width: 100% !important;
    }

    .sidebar-collapse nav.header-responsive .navbar-collapse#navigation a {
        box-sizing: border-box;
    }
}
