



/* 
    5. Product card css 
*/
.tab__btn--wrapper {
  gap: 1rem;
  flex-wrap: wrap;
}

@media only screen and (min-width: 992px) {
  .tab__btn--wrapper {
    gap: 1.5rem;
  }
}

@media only screen and (min-width: 1200px) {
  .tab__btn--wrapper {
    gap: 2.5rem;
  }
}

.tab__btn--link {
  font-weight: 600;
  font-family: var(--inter-fonts);
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--foreground-sub-color);
  padding: 3px 10px;
  border: 0;
  background: var(--body-background-color);
  border-radius: 5px;
  line-height: 2.4rem;
}

@media only screen and (min-width: 992px) {
  .tab__btn--link {
    font-size: 1.4rem;
    padding: 3px 12px;
    line-height: 2.6rem;
  }
}

.tab__btn--link:hover {
  background: var(--secondary-color);
  color: var(--text-white-color);
  text-decoration: underline;
}

.tab__btn--link.active {
  background: var(--secondary-color);
  color: var(--text-white-color);
  text-decoration: underline;
}

.product__card {
  position: relative;  /* ← اضافه کردن این خط */
  border: 1px solid var(--border-color);
  border-radius: 5px;
}


/* ۱. تنظیم ظرف اصلی دکمه‌ها در پایین چپ */
.product__card--action {
    position: absolute !important;
    bottom: 12px !important;
    left: 12px !important;
    right: auto !important; /* حیاتی برای جلوگیری از غیب شدن در RTL */
    z-index: 30 !important;
    transform: none !important; /* بالاتر از لایه اسلایدر */
    
    display: flex !important;
    flex-direction: row !important; /* چیدمان افقی */
    align-items: center !important;
    gap: 4px !important; /* فاصله بین دو دکمه */
    
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    width: auto !important; /* اجازه بده باکس به اندازه دکمه‌ها باز بشه */
}

/* ۲. تنظیم هر دکمه به صورت جداگانه */
.product__card--action__list {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.product__card--action__btn {
    width: 38px !important;
    height: 38px !important;
    background: #ffffff !important;
    backdrop-filter: blur(4px);
    border-radius: 10px !important; /* مدل مدرن‌تر */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #333 !important;
    border: 1px solid #eee !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    transition: all 0.2s ease !important;
}

/* ۳. فیکس کردن اندازه آیکون‌های SVG */
.product__card--action__btn--svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    display: block !important;
}

/* هاور دکمه‌ها */
.product__card--action__btn:hover {
    background: #222 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

.product__card--thumbnail {
    position: relative;
    min-height: 240px;
    height: 240px;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 8px;
}

@media only screen and (min-width: 1200px) {
  .product__card--thumbnail {
    padding: 2rem 2.5rem;
  }
}

.product__card--thumbnail__link {
  position: relative;
}

.product__card--thumbnail__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    transition: transform 0.4s ease;
}


/* اسلایدر اصلی */
.variant-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.variant-slider .swiper-wrapper {
    height: 100%;
}

.variant-slider .swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.variant-slider img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transition: transform 0.5s ease;
}

.variant-slider:hover img {
    transform: scale(1.08);
}




/* =========================
   Variant Badges - Premium Glass Morphism
   ========================= */

.variant-option-label {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
    pointer-events: none;
    max-width: calc(100% - 72px);
}

.variant-option-label .tag-values {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

/* Base Badge - Enhanced Glass Material */
.variant-option-label .tag-value {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    isolation: isolate;

    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);

    /* Multi-layer Glass Effect */
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%),
        linear-gradient(135deg, rgba(58, 12, 18, 0.94) 0%, rgba(24, 7, 10, 0.88) 100%);

    border: 1px solid rgba(255, 255, 255, 0.14);

    box-shadow:
        0 8px 24px -4px rgba(0, 0, 0, 0.2),
        0 4px 12px -2px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 1px rgba(0, 0, 0, 0.08);

    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);

    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

/* Top Highlight Gradient */
.variant-option-label .tag-value::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.08) 35%,
        rgba(255, 255, 255, 0.02) 60%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Subtle Inner Ring */
.variant-option-label .tag-value::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    pointer-events: none;
    z-index: 2;
}

/* Content Layer Above Effects */
.variant-option-label .tag-icon,
.variant-option-label .tag-text {
    position: relative;
    z-index: 3;
}

/* Icon Styles */
.variant-option-label .tag-icon {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    background-color: currentColor;
    opacity: 0.96;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));

    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
}

/* Type Variant Icon */
.variant-option-label .tag-icon--type {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4h10M7 12h10M7 20h10M4 4h1M4 12h1M4 20h1'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4h10M7 12h10M7 20h10M4 4h1M4 12h1M4 20h1'/%3E%3C/svg%3E");
}

/* Size/Direction Icon */
.variant-option-label .tag-icon--size {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M4 12l4-4M4 12l4 4M20 12l-4-4M20 12l-4 4'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M4 12l4-4M4 12l4 4M20 12l-4-4M20 12l-4 4'/%3E%3C/svg%3E");
}

/* Text Vertical Alignment */
.variant-option-label .tag-text {
    display: inline-block;
}

/* Hover - Lifted Glass Effect */
.product-card:hover .variant-option-label .tag-value {
    transform: translateY(-2px) scale(1.01);
    box-shadow:
        0 12px 32px -4px rgba(0, 0, 0, 0.24),
        0 6px 16px -2px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -1px 1px rgba(0, 0, 0, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
}

/* Focus State - Accessibility */
.variant-option-label .tag-value:focus-visible {
    outline: 2px solid rgba(252, 165, 165, 0.9);
    outline-offset: 3px;
    border-radius: 999px;
}

/* Active State */
.variant-option-label .tag-value:active {
    transform: translateY(-1px) scale(0.99);
    transition-duration: 0.1s;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .variant-option-label .tag-value {
        transition: none;
    }
    
    .product-card:hover .variant-option-label .tag-value {
        transform: none;
    }
}

/* Mobile Optimization */
@media (max-width: 480px) {
    .variant-option-label {
        top: 8px;
        right: 8px;
        max-width: calc(100% - 62px);
    }

    .variant-option-label .tag-values {
        gap: 5px;
    }

    .variant-option-label .tag-value {
        min-height: 20px;
        padding: 2px 7px;
        font-size: 8px;
        gap: 4px;
    }

    .variant-option-label .tag-icon {
        width: 8px;
        height: 8px;
        flex-basis: 8px;
    }
}





/* ۲. تنظیمات فلش‌های ناوبری (فیکس شده و مدرن) */
.variant-slider .swiper-button-next,
.variant-slider .swiper-button-prev {
    /* ابعاد و ظاهر */
    width: 35px !important;
    height: 35px !important;
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #222 !important;
    
    /* نمایش همیشگی */
    opacity: 1 !important;
    visibility: visible !important;
    
    /* تراز عمودی در مرکز عکس */
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
    z-index: 10;
    transition: all 0.3s ease;
}

/* ۳. فیکس کردن فاصله از طرفین (جلوگیری از روی هم افتادن) */
.variant-slider .swiper-button-next {
    right: 10px !important;
    left: auto !important;
}

.variant-slider .swiper-button-prev {
    left: 10px !important;
    right: auto !important;
}

/* آیکون داخل فلش */
.variant-slider .swiper-button-next::after,
.variant-slider .swiper-button-prev::after {
    font-size: 14px !important;
    font-weight: bold;
}

/* حالت هاور دکمه‌ها */
.variant-slider .swiper-button-next:hover,
.variant-slider .swiper-button-prev:hover {
    background: #dc3545 !important;
    color: #fff !important;
    transform: translateY(-50%) scale(1.1) !important; /* حفظ مرکزیت و زوم */
}

/* حالت غیرفعال */
.variant-slider .swiper-button-disabled {
    opacity: 0.2 !important;
    cursor: not-allowed;
}


.product__card--content {
  padding: 0 1.5rem 2rem;
  position: relative;
}

@media only screen and (min-width: 1200px) {
  .product__card--content {
    padding: 0 2rem 2rem;
  }
}

.product__card--title {
  margin-bottom: 0.8rem;
  
}

@media only screen and (max-width: 479px) {
  .product__card--title {
    margin-bottom: 0.6rem;
    font-size: 1.6rem;
    line-height: 2.2rem;
  }
}

.product__card--footer {
  position: relative;
  opacity: 1;
  visibility: visible;
  transition: 0.4s;
  padding: 1rem 0 0;
  background: var(--body-background-color);
}


.product__card--btn {
  text-transform: uppercase;
  font-size: 1.2rem;
  display: block;
  height: 3.5rem;
  line-height: 3.5rem;
  border-radius: 5px;
  text-align: center;
  padding: 0 1.5rem;
  width: 100%;
}

.product__card--btn svg {
  margin-right: 3px;
}

@media only screen and (min-width: 992px) {
  .product__card--btn {
    height: 3.8rem;
    line-height: 3.8rem;
    padding: 0 2rem;
  }
}


.product__card--action {
  position: absolute;
  left: 50%;
  transform: translatex(-50%);
  opacity: 0;
  visibility: visible;
  z-index: 9;
  transition: 0.5s;
  bottom: 30%;
  gap: 0.8rem;
}

.product__card--action__btn {
  width: 3rem;
  height: 3rem;
  line-height: 2.8rem;
  color: var(--foreground-sub-color);
  background: var(--body-background-color);
  border-radius: 50%;
  text-align: center;
  transform: scale(0.5);
  transition: 0.5s;
}

.product__card--action__btn:hover {
  background: var(--secondary-color);
  color: var(--text-white-color);
}

@media only screen and (min-width: 576px) {
  .product__card--action__btn {
    width: 3.5rem;
    height: 3.5rem;
    line-height: 3.3rem;
  }
}

@media only screen and (min-width: 992px) {
  .product__card--action__btn {
    width: 4rem;
    height: 4rem;
    line-height: 3.8rem;
  }
}

.product__card--rating {
  margin-bottom: 1.1rem;
}

.product__card--price {
  transition: var(--transition);
}
.product__card--price .current__price {
    font-size: 1.3rem;
    line-height: 1.8rem;
}

.product__badge {
    background: #ED1D24;
    color: #fff;
    padding: 6px 13px;
    font-size: 1.32rem;
    font-weight: 700;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(237, 29, 36, 0.45);
    white-space: nowrap;
}


/* تگ‌ها (Badge) */
.product__badge-tags {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 6px;
}




.product__secondary--img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;

}

.current__price {
  color: var(--secondary-color);
  font-weight: 600;
  line-height: 1.8rem;
  font-family: var(--inter-fonts);
}

.old__price {
  color: var(--foreground-sub-color);
  margin-left: 0.8rem;
  line-height: 1.8rem;
  font-family: var(--inter-fonts);
}


.rating {
    display: flex;
    gap: 1.5px;
    width: fit-content;
    margin-right: 0;
    margin-left: auto;
}

.rating__icon {
    color: var(--secondary-color);
}

.rating__review--text {
    font-size: 1.2rem;
    font-family: var(--inter-fonts);
    color: var(--foreground-sub-color);
    margin-inline-start: 8px
}

.rating input {
    display: none;
}

.rating label svg {
    color: var(--secondary-color);
    cursor: pointer;
}

/* حالت پیش‌فرض */
.rating .star-full { display: none; }
/* استایل ستاره‌های خالی */
.rating-display .star-empty {
    fill: var(--secondary-color);
}
/* حالت checked */
.rating li:has(input:checked) label .star-full,
.rating li:has(input:checked) ~ li label .star-full { display: block; }

.rating li:has(input:checked) label .star-empty,
.rating li:has(input:checked) ~ li label .star-empty { display: none; }

/* حالت hover */
.rating li:hover label .star-full,
.rating li:hover ~ li label .star-full { display: block; }

.rating li:hover label .star-empty,
.rating li:hover ~ li label .star-empty { display: none; }




/* کانتینر اصلی بخش امتیاز در کامنت */
.comment-rating-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* چسباندن به سمت راست در باکس کامنت */
    margin-bottom: 0.5rem;
}

/* لیست ستاره‌ها */
.rating-display {
    display: flex;
    flex-direction: row; /* چیدمان افقی */
    gap: 1.5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* استایل ستاره‌های پر */
.rating-display .star-filled {
    fill: var(--secondary-color);
}

/* استایل ستاره‌های خالی */
.rating-display .star-empty {
    fill: var(--secondary-color);
}

/* حذف هرگونه تداخل احتمالی با استایل‌های قبلی .rating */
.rating-display li {
    line-height: 0;
}



/*
     contact-number css
*/
.contact-number {
  font-size: 1.4rem;
  color: var(--secondary-color);
  font-weight: 600;
  background: var(--body-background-color);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 0.5rem;
}





.contact__btn_wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa; /* خاکستری خیلی روشن */
    border: 1px dashed #dc3545; /* خط‌چین قرمز برای جلب توجه */
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.contact__label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.contact__number {
    font-size: 14px;
    color: #dc3545; /* رنگ قرمز برند شما */
    font-weight: 700;
    direction: ltr; /* نمایش صحیح شماره تلفن */
}

.contact__icon {
    color: #dc3545;
    display: flex;
    align-items: center;
}

.contact__btn_wrapper:hover {
    background: #fff5f6;
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.1);
}



/* skeleton loading */
.skeleton-card {
    background: #f0f0f0;
    height: 280px;
    border-radius: 8px;
    animation: skeleton-pulse 1.2s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* گرید موبایل - نسخه نهایی */
.mobile-category-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1rem !important;
  padding: 0 !important;
  list-style: none !important;
  margin: 0 !important;
}

.mobile-category-grid .widget__form--check__list {
  margin-bottom: 0 !important;
  position: relative !important;
  width: 100% !important;
}

.mobile-category-grid .widget__form--check__label {
  cursor: pointer;
  line-height: 2.8rem !important;
  transition: var(--transition);
  border: 1px solid var(--border-color) !important;
  background: var(--white-color) !important;
  padding: 0.5rem 3rem 0.5rem 1.5rem !important;
  border-radius: 0.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100% !important;
  box-sizing: border-box !important;
  min-height: 3.8rem !important;
}

  



.mobile-category-grid .widget__form--check__input {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  cursor: pointer;
  z-index: 999;
}

.mobile-category-grid .widget__form--checkmark {
  height: 1.8rem !important;
  width: 1.8rem !important;
  border: 1px solid var(--secondary-color) !important;
  border-radius: 50% !important;
  display: block !important;
  position: absolute !important;
  top: 50% !important;
  right: 1rem !important;
  transform: translateY(-50%) !important;
  background: var(--body-background-color) !important;
  transition: var(--transition);
  flex-shrink: 0 !important;
}

.mobile-category-grid .widget__form--checkmark::before {
  content: "";
  position: absolute;
  display: none;
  right: 0.5rem;
  top: 0.3rem;
  width: 0.5rem;
  height: 0.8rem;
  border: solid white;
  border-width: 0 0.2rem 0.2rem 0;
  transform: rotate(45deg);
}

.mobile-category-grid .widget__form--check__input:checked ~ .widget__form--checkmark {
  background-color: var(--secondary-color) !important;
  border: 1px solid var(--secondary-color) !important;
}

.mobile-category-grid .widget__form--check__input:checked ~ .widget__form--checkmark::before {
  display: block;
}

/* تبلت (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .mobile-category-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.2rem !important;
  }
  
  .mobile-category-grid .widget__form--check__label {
    
    padding: 0.6rem 3.5rem 0.6rem 1.6rem !important;
    line-height: 2.8rem !important;
    min-height: 4rem !important;
  }
  
  .mobile-category-grid .widget__form--checkmark {
    height: 2rem !important;
    width: 2rem !important;
    right: 1.2rem !important;
  }
  
  .mobile-category-grid .widget__form--checkmark::before {

    right: 0.6rem;
    top: 0.35rem;
    width: 0.55rem;
    height: 0.9rem;
  }
}
/* موبایل بزرگ (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .mobile-category-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.9rem !important;
  }
  
  .mobile-category-grid .widget__form--check__label {
   
    padding: 0.5rem 3rem 0.5rem 1.2rem !important;
    line-height: 2.4rem !important;
    min-height: 3.4rem !important;
  }
  
  .mobile-category-grid .widget__form--checkmark {
    height: 1.6rem !important;
    width: 1.6rem !important;
    right: 1rem !important;
  }
  
  .mobile-category-grid .widget__form--checkmark::before {
    right: 0.45rem;
    top: 0.25rem;
    width: 0.45rem;
    height: 0.75rem;

  }
}

/* موبایل متوسط (400px - 575px) */
@media (min-width: 400px) and (max-width: 575px) {
  .mobile-category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.8rem !important;
  }
  
  .mobile-category-grid .widget__form--check__label {
    
    padding: 0.5rem 2.8rem 0.5rem 1rem !important;
    line-height: 2.2rem !important;
    min-height: 3.2rem !important;
  }
  
  .mobile-category-grid .widget__form--checkmark {
    height: 1.5rem !important;
    width: 1.5rem !important;
    right: 0.9rem !important;
  }
  
  .mobile-category-grid .widget__form--checkmark::before {
    right: 0.42rem;
    top: 0.23rem;
    width: 0.4rem;
    height: 0.7rem;
  }
}

/* موبایل کوچک (زیر 400px) */
@media (max-width: 399px) {
  .mobile-category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.7rem !important;
  }
  
  .mobile-category-grid .widget__form--check__label {
    
    padding: 0.4rem 2.6rem 0.4rem 0.8rem !important;
    line-height: 2rem !important;
    min-height: 2.8rem !important;
  }
  
  .mobile-category-grid .widget__form--checkmark {
    height: 1.4rem !important;
    width: 1.4rem !important;
    right: 0.8rem !important;
  }
  
  .mobile-category-grid .widget__form--checkmark::before {
    right: 0.38rem;
    top: 0.2rem;
    width: 0.35rem;
    height: 0.65rem;
  }
}



