

/* 
    17. Shop page css 
*/
@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .shop-col-width-lg-4 {
    width: 30%;
  }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .shop-col-width-lg-8 {
    width: 70%;
  }
}

.shop__header {
  padding: 1.5rem 2rem;
  border-radius: 0.5rem;
  background: var(--bg-offwhite-color);
  gap: 3rem;
}

@media only screen and (max-width: 1199px) {
  .shop__header {
    flex-wrap: wrap;
    justify-content: center !important;
    gap: 2rem;
  }
}

.product__view--mode {
  gap: 2.5rem;
}

@media only screen and (max-width: 767px) {
  .product__view--mode {
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }
}

@media only screen and (max-width: 479px) {
  .product__view--mode {
    gap: 1.5rem;
  }
}

.product__view--label {
  font-weight: 600;
  margin-right: 1.2rem;
}

@media only screen and (min-width: 992px) {
  .product__view--label {
    margin-right: 1rem;
  }
}

@media only screen and (min-width: 1200px) {
  .product__view--label {
    margin-right: 2rem;
  }
}

.product__view--select {
  border: 1px solid var(--border-color);
  padding: 0.6rem 3rem 0.6rem 1.2rem;
  -webkit-appearance: none;
  cursor: pointer;
  border-radius: 0.5rem;
  background: var(--body-background-color);
}

.select.shop__header--select::before {
  right: 14px;
}

.product__grid--column__buttons--icons {
  border: 1px solid var(--border-color);
  background: var(--body-background-color);
  border-radius: 0.3rem;
  width: 3.7rem;
  height: 3.7rem;
  line-height: 1.1rem;
  margin-right: 10px;
  text-align: center;
  padding: 0;
}

.product__grid--column__buttons--icons:last-child {
  margin-right: 0;
}

.product__grid--column__buttons--icons:hover {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.product__grid--column__buttons--icons.active {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.product__grid--column__buttons--icons>* {
  pointer-events: none;
}

.shop__header.justify-content-between {
    flex-direction: row-reverse !important;
}

.product__showing--count {
  color: var(--foreground-sub-color);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-align: right;
  direction: rtl;
}


/*
    shop product wrapper css here
*/
@media only screen and (max-width: 991px) {
  .shop__product--wrapper .product__items--link {
    width: 100%;
  }
}

@media only screen and (max-width: 991px) {
  .shop__product--wrapper .product__items--img {
    width: 100%;
  }
}

.product__list {
  gap: 2rem;
  padding: 1.7rem;
}

@media only screen and (min-width: 576px) {
  .product__list {
    gap: 2.5rem;
    padding: 2rem;
  }
}

@media only screen and (min-width: 1200px) {
  .product__list {
    gap: 3rem;
    padding: 3rem;
  }
}

@media only screen and (max-width: 479px) {
  .product__list {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.product__list .product__card--price {
  opacity: 1;
  visibility: visible;
}

.product__list--thumbnail {
  width: 220px;
  padding: 0;
}

@media only screen and (min-width: 480px) {
  .product__list--thumbnail {
    width: 170px;
  }
}

@media only screen and (min-width: 768px) {
  .product__list--thumbnail {
    width: 190px;
  }
}

@media only screen and (min-width: 1200px) {
  .product__list--thumbnail {
    width: 270px;
  }
}

.product__list--content {
  width: 100%;
  padding: 0;
}

@media only screen and (min-width: 480px) {
  .product__list--content {
    width: calc(100% - 200px);
  }
}

@media only screen and (min-width: 768px) {
  .product__list--content {
    width: calc(100% - 212px);
  }
}

@media only screen and (min-width: 1200px) {
  .product__list--content {
    width: calc(100% - 270px);
  }
}

@media only screen and (max-width: 479px) {
  .product__list--content {
    text-align: center;
  }
}

.product__list--content .product__card--title {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

@media only screen and (min-width: 768px) {
  .product__list--content .product__card--title {
    font-size: 1.8rem;
  }
}

@media only screen and (min-width: 1200px) {
  .product__list--content .product__card--title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
}

.product__list--content .product__card--rating {
  margin-bottom: 1.4rem;
}

@media only screen and (min-width: 1200px) {
  .product__list--content .product__card--rating {
    margin-bottom: 1.5rem;
  }
}

@media only screen and (max-width: 479px) {
  .product__list--content .product__card--rating {
    justify-content: center;
  }
}

.product__list--content .product__card--btn {
  display: inline-block;
}

.product__card--content__desc {
  line-height: 2.6rem;
}

@media only screen and (min-width: 1200px) {
  .product__card--content__desc {
    line-height: 2.8rem;
  }
}

@media only screen and (max-width: 767px) {
  .product__card--content__desc {
    display: none;
  }
}

.product__list--price {
  margin-bottom: 1rem;
}

@media only screen and (min-width: 1200px) {
  .product__list--price {
    margin-bottom: 1.2rem;
  }
}

.product__list--price .current__price {
  font-size: 1.3rem;
  line-height: 2.2rem;
}

@media only screen and (min-width: 992px) {
  .product__list--price .current__price {
    font-size: 1.4rem;
    line-height: 2.4rem;
  }
}

.product__list--price .old__price {
  font-size: 1.6rem;
  line-height: 2.2rem;
}

@media only screen and (min-width: 992px) {
  .product__list--price .old__price {
    font-size: 1.8rem;
    line-height: 2.4rem;
  }
}





.small__product--thumbnail {
  overflow: hidden;
    width: 90px;

}



@media only screen and (max-width: 1199px) {
  .small__product--thumbnail {
    width: 63px;
  }
}

@media only screen and (max-width: 767px) {
  .small__product--thumbnail {
    width: 55px;
  }
}




/*
     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;
  }
}



