

/*برای بنر اصلی سایت*/
.hero-container {
  background-image: url('https://fashionbag.ir/wp-content/uploads/2025/05/یک-کیف-مشکی-با-زنجیر-طلایی-و-زیر-کیف-یکم-تزینی-طلایی-باشه-و-بکگراند-مشکی-باشه-خود-کیفم-مشکی-باشه-.jpg');
  background-size: cover;
   background-position: center 70%; /* تغییر این مقدار */
  background-repeat: no-repeat;
  width: 100%;
}

/* برای دسکتاپ و لپ‌تاپ‌های بزرگ */
@media (min-width: 1200px) {
  .hero-container {
    height: 70vh;
  }
}

/* برای لپ‌تاپ‌های کوچک‌تر و تبلت‌های افقی */
@media (min-width: 992px) and (max-width: 1199px) {
  .hero-container {
    height: 40vh;
  }
}

/* برای تبلت‌های عمودی و لپ‌تاپ‌های بسیار کوچک */
@media (min-width: 768px) and (max-width: 991px) {
  .hero-container {
    height: 40vh;
  }
}

/* برای موبایل‌های بزرگ و تبلت‌های کوچک */
@media (min-width: 576px) and (max-width: 767px) {
  .hero-container {
    height: 40vh;
  }
}

/* برای موبایل‌های کوچک */
@media (max-width: 575px) {
  .hero-container {
    height: 30vh;
  }
}

/*کد استایل نمایش بگراند کارت محصول به صورت شیشهای   */
 .product-card-shdowe {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05), 
              0 6px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden!important;
  position: relative;
}

.product-card-shdowe:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.08),
              0 10px 10px rgba(0, 0, 0, 0.05);
}

/*کد استایل نمایش آیکن علاقه منددی   */
.favorite-added svg {
    fill: #eb1414!important;
    
}


/*کد استایل دسته بندی برای نمایش */
.category-box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 5px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  z-index: 1;
  border: 1px solid rgba(0,0,0,0.05);
}

.category-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 50%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-box:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.category-box:hover::before {
  opacity: 1;
}

.category-box img {
  transition: transform 0.5s ease;
}

.category-box:hover img {
  transform: scale(1.05);
}
/*افکت براق برای لوگو سایت  */
.fashionbaglogo {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.fashionbaglogo::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.3) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-30deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  100% {
    left: 200%;
  }
}
/*کد افزودن رنگ به کارت محصول */
.colorshowe .fb-product-color-swatches {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.colorshowe .fb-product-color-swatches .fb-color-swatch {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.colorshowe .fb-product-color-swatches .fb-plus-color {
    display: flex;
    width: 10px;
    height: 10px;
    justify-content: center;
    align-items: center;
    color: #fff;
    pointer-events: none;
}
.colorshowe .fb-product-color-swatches .fb-color-swatch:nth-of-type(1n + 4) {
    display: none;
}

/*استایل کد تخفیف */
.beban-product-discount {
    background: linear-gradient(to right, #D4AF37, #E6B25C);
    color: #000000;
    font-size: 0.85rem; /* استفاده از واحد نسبی */
    border-radius: 10px 10px 10px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    min-width: 60px; /* عرض حداقلی برای حفظ تناسب */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    line-height: 1.2;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transform: translateZ(0); /* برای بهینهسازی انیمیشن */
    transition: all 0.2s ease;
}

/* افکت براق روی بنر */
.beban-product-discount::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.3) 50%,
        rgba(255,255,255,0) 100%
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    100% {
        left: 200%;
    }
}

/* رسپانسیو برای دستگاههای مختلف */
@media (max-width: 1200px) {
    .beban-product-discount {
        font-size: 0.8rem;
        min-width: 55px;
        padding: 3px 8px;
    }
}

@media (max-width: 768px) {
    .beban-product-discount {
        font-size: 0.75rem; /* حدود 12px */
        min-width: 50px;
        padding: 2px 6px;
        border-radius: 6px 6px 6px 6px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 480px) {
    .beban-product-discount {
        font-size: 0.7rem;
        min-width: 45px;
        padding: 2px 5px;
    }
}

/* حالت hover برای تعامل بهتر */
@media (hover: hover) {
    .beban-product-discount:hover {
        transform: scale(1.05);
        box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
    }
}
/* استایل دکمه سبد خریدوکارت محصول هنگام  هاور*/
.fashionhover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fashionhover:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.fashionhover:hover .cartboxhover  #box\#  {
   background-color: #000000;
    color: #F5E4D0;
}
/*برای عنوان کارت محصول که بیش از یک خط میشن رو نقطه جین نیزاره */
.titercotah{
 display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* کد برای پریلودر  سایت */
  .fashionbagpreloader {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background-color: #000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
  }

  .fashionbagpreloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .fashion-logo {
    width: 160px;
    height: auto;
    margin-bottom: 20px;
  }

  .typewriter {
    font-size: 32px;
    color: #fff;
    white-space: nowrap;
    border-right: 2px solid #fff;
    overflow: hidden;
    margin-bottom: 12px;
  }

  .brown {
    color: #8B641F; /* رنگ BAG */
  }

  .loading-text {
    color: #aaa;
    font-size: 16px;
    margin-top: 8px;
    letter-spacing: 0.5px;
    font-style: italic;
    visibility: hidden;
    animation: blink 1s step-end infinite;
  }

  @keyframes blink {
    50% {
      opacity: 0;
    }
  }
/* استایل برای محصولات ناموجودو ویژه برای حلقه المنتور*/
.outofstock .fashion--first-off .beban-product-discount{

display:none;
    
}

.swiper .outofstock .price {

filter:blur(2px);  
}

.swiper .outofstock .fashion-first-off .elementor-widget-image a:before {
    content: "نامـــــــــــــــــوجود";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: clamp(14px, 4vw, 28px); /* ریسپانسیو: موبایل تا دسکتاپ */
    font-weight: 900;
    font-family: "IRANSansXV", Sans-serif;
    text-align: center;
    white-space: nowrap;

    background: rgba(0, 0, 0, 0.26);
    color: #D4AF37;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.86);

    width: 100%;
    height: 100%;
    border-radius: 12px;
    pointer-events: none;
}



.instock.sale .fashion--first-off{
border:1px solid red

}

.instock.sale .fashion--first-off:before{
content:"";
    height:100px;
    width:120px;
    position:absolute;
    top:15px;
    left:15px;
    z-index:9;
    background-image:url(https://fashionbag.ir/wp-content/uploads/2025/03/pshnahde-visheh.png);
    background-repeat:no-repeat;
    background-position:center;
    background-size:contain;
    
}

/* نسخه پیش‌فرض (دسکتاپ) - کد شما بدون تغییر */
.fashion-price ins {
    color: #915c00 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-block;
    animation: fashionPulse 1.5s infinite ease-in-out;
    position: relative;
    margin: 0px;
}

.fashion-price del {
    color: #000000 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    position: relative;
    display: inline-block;
    margin: 0px;
}

.fashion-price del::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #915c00, #FFD700);
    transform: rotate(-5deg);
    opacity: 0.7;
}

.fashion-price:not(:has(ins)):not(:has(del)) bdi {
    color: #915c00 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    animation: fashionPulse 1.5s infinite ease-in-out;
    display: inline-block;
    position: relative;
}

/* انیمیشن */
@keyframes fashionPulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 0px;
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 1px #915c00;
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 0px;
    }
}

/* Media Query برای موبایل و تبلت */
@media (max-width: 768px) {
    .fashion-price ins {
        font-size: 12px !important;
        margin: 0px;
    }

    .fashion-price del {
        font-size: 10px !important;
        margin: 0px;
    }

    .fashion-price:not(:has(ins)):not(:has(del)) bdi {
        font-size: 11px !important;
    }
}


/*اسکرول بار بغل صفحه */
::-webkit-scrollbar{
    width: 20px;
}
::-webkit-scrollbar-track{
    background-color: #fff!important;
}
::-webkit-scrollbar-thumb{
    background-color: #D4AF37;
    border-radius: 20px;
}

