

/* --- استایل دکمه‌های انتخاب تنوع (Variants) --- */
.variant__size--value {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: fit-content;   /* مهم: نذاره باکس کوچیک‌تر از متن بشه */
    max-width: none;
    flex-shrink: 0;           /* مهم: تو فلکس‌باکس فشرده نشه */
    padding: 0 16px;
    height: auto;             /* یا min-height بجای height ثابت */
    min-height: 38px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    overflow: visible;
}

.variant__size {
    display: flex;
    flex-wrap: wrap;   /* اگه فضا کم بیاد، دکمه بعدی بره خط پایین، نه اینکه فشرده بشه */
    gap: 10px;
}


.variant__size--value:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
    transform: translateY(-1px);
}

/* حالت انتخاب شده - ست شدن با استایل قرمز سایت */
.variant__size--value.active {
    background: rgba(239, 68, 68, 0.05);
    border-color: #ef4444;
    color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* 
    13. Quickview css
*/
.modal {
  background: rgba(0, 0, 0, 0.2);
}

.quickview__main--wrapper {
  max-width: 895px;
  position: relative;
  overflow: auto;
  cursor: default;
  padding: 25px;
  transform: translateY(-50px);
  transition: var(--transition);
  pointer-events: inherit;
}

@media only screen and (max-width: 575px) {
  .quickview__main--wrapper {
    padding: 15px;
  }
}

.modal-content.quickview__main__content {
  padding: 20px;
  border-radius: 10px;
  border: 0;
  max-height: 80vh;
  overflow: auto;
}

@media only screen and (max-width: 575px) {
  .modal-content.quickview__main__content {
    padding: 5px;
  }
}

.modal-header.quickview_m_header {
  padding: 0;
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  z-index: 9;
}

.modal.is-visible {
  visibility: visible;
  opacity: 1;
}

.modal.is-visible .quickview__main--wrapper {
  transform: translateY(0);
}

.quickview__header {
  position: absolute;
  padding: 0;
  top: 16px;
  right: 16px;
  z-index: 9;
  border-bottom: 0;
}

@media only screen and (max-width: 767px) {
  .quickview__header {
    top: 10px;
    right: 10px;
  }
}

.quickview__close--btn {
  font-size: 1.8rem;
  padding: 0 !important;
  width: 3.2rem;
  height: 3.2rem;
  line-height: 3.4rem;
  border-radius: 50%;
  font-weight: 700;
  border: 1px solid var(--border-color);
  background: var(--body-background-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quickview__close--btn:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--text-white-color);
}

/* ANIMATIONS
–––––––––––––––––––––––––––––––––––––––––––––––––– */
[data-animation] .modal-dialog {
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.51, 0.92, 0.24, 1.15);
}

[data-animation].is-visible .modal-dialog {
  opacity: 1;
  transition-delay: 0.2s;
}

@media only screen and (max-width: 767px) {
  .quickview__gallery {
    margin-bottom: 20px;
  }
}

.quickview__thumb {
  position: relative;
}

.quickview__thumb--link {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.quickview__thumb--img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.quickview__gallery--pagination {
  bottom: 5px !important;
}

.quickview__gallery--pagination .swiper-pagination-bullet {
  width: 2rem;
  height: 0.6rem;
  background: var(--primary-color);
  opacity: 1;
  border-radius: 2px;
  margin: 0 3px !important;
}

.quickview__gallery--pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background: var(--secondary-color);
}





.variant__input--fieldset {
  min-width: -webkit-fit-content;
  min-width: -moz-fit-content;
  min-width: fit-content;
  border: none;
  margin: 0;
  padding: 0;
}

.variant__size--list input[type=radio]+label {
  border: 1px solid var(--border-color);
}

.variant__size--list input[type=radio]+label:hover {
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
}
.variant__size {
  gap: 13px;
}

.variant__size--list {
  margin-right: 0px;
}

.variant__size--list:last-child {
  margin-right: 0;
}

.variant__size--list input[type=radio] {
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  position: absolute;
  height: 1px;
  width: 1px;
}

.variant__size--list input[type=radio]:checked+label {
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
}

.variant__size--value {
  width: 4.7rem;
  height: 3.2rem;
  line-height: 2.8rem;
  display: inline-block;
  border-radius: 5px;
  text-align: center;
  font-size: 1.2rem;
  cursor: pointer;
}

.variant__size{
  gap:13px;
  display:flex;
  flex-wrap:wrap;
}

.variant__size--list{
  margin-right:0;
}

.variant__size--list:last-child{
  margin-right:0;
}



/* container */
.variant__size {
  gap: 13px;
  display: flex;
  flex-wrap: wrap;
}

.variant__size--list {
  margin-right: 0px;
}

.variant__size--list:last-child {
  margin-right: 0;
}

/* دکمه‌ها دقیقاً به جای label قبلی */
.variant-attr-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: inherit;

  width: 4.7rem;
  height: 3.2rem;
  line-height: 2.8rem;

  display: inline-block;
  border-radius: 5px;
  text-align: center;
  font-size: 1.2rem;

  cursor: pointer;
  transition: all 0.2s ease;
}

/* hover = مثل radio قبلی */
.variant-attr-btn:hover {
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
}

/* active = همان checked radio */
.variant-attr-btn.active {
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
}

/* برای سازگاری با تمپلیتت */
.variant__size--value {
  width: 4.9rem;
  height: 3.2rem;
}



.quickview__variant--wishlist__svg {
  width: 22px;
  margin-right: 7px;
}

.variant__wishlist--icon {
  display: flex;
  align-items: center;
}

.quickview__value--quantity {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 2.2rem;
  line-height: 3.3rem;
}



.quickview__value--quantity.increase {
  border-radius: 0 17px 17px 0;
}

.quickview__value--quantity.decrease {
  border-radius: 17px 0 0 17px;
}


input.quickview__value--number {
  height: 3.5rem;
  font-size: 1.7rem;
}

.quickview__cart--btn {
  height: 3.8rem;
  line-height: 3.8rem;
  padding: 0 25px;
  margin-left: 15px;
}

.quickview__social--title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-right: 15px;
}

.quickview__social--list {
  margin-right: 10px;
}

.quickview__social--list:last-child {
  margin-right: 0;
}

.quickview__social--icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-color);
  color: var(--text-white-color);
  border-radius: 50%;
}

.quickview__social--icon:hover {
  background: var(--primary-color);
  color: var(--text-white-color);
}

@media only screen and (max-width: 767px) {
  .quickview__social--style3 {
    justify-content: flex-start;
    margin-bottom: 1.5rem;
  }
}


