/*
Theme Name: Hello Elementor Child
Theme URI: https://example.com/
Description: چایلد تم برای هلو المنتور
Author: Nima
Author URI: https://example.com/
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* استایل‌های سفارشی شما از اینجا شروع میشه */
.custom-sale-badge {
    position: absolute;
    top: 0;
    left: -1vw;
    width: clamp(50px, 12vw, 70px);
    height: clamp(40px, 10vw, 60px);
    z-index: 10;
}

.custom-sale-badge img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.custom-sale-badge .discount-text {
    position: absolute;
    top: 73%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: red;
    font-weight: bold;
    font-size: clamp(10px, 2.5vw, 13px);
    text-shadow: 0 0 3px white;
    pointer-events: none;
}

/* قیمت قدیمی خط‌خورده */
.woocommerce del .amount {
  color: #999;
  font-size: 14px;
  text-decoration: line-through;
  margin-left: 8px;
}

/*----------------------------------*/
.elementor-menu-cart__main .woocommerce-mini-cart__empty-message {
  display: none !important;
}
/*-------------------------------*/
.hafanwp img {
    -webkit-mask: linear-gradient(-60deg,#000 30%,#0005,#000 50%) right / 300% 100%;
    mask: linear-gradient(-60deg,#000 30%,#0005,#000 50%) right / 300% 100%;
    animation: nsshine 3s infinite
}

@keyframes nsshine {
    0% {
        -webkit-mask-position: 140% 140%;
        mask-position: 140% 140%
    }

    100% {
        -webkit-mask-position: -20% -20%;
        mask-position: -20% -20%
    }
}
/*----------------------------*/
/* استایل کلی باکس قیمت */
.custom-price {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: "IRANSans", "Vazir", sans-serif;
    line-height: 1.6;
    margin: 8px 0;
    padding: 8px 8px;
    border: 2px solid #7D5A50;
    border-radius: 12px;
    background: #fdfbf9;
    box-shadow: 0 4px 10px rgba(125, 90, 80, 0.1);
    transition: all 0.3s ease;
}

/* افکت هاور */
.custom-price:hover {
    box-shadow: 0 6px 15px rgba(125, 90, 80, 0.2);
    transform: translateY(-2px);
}

/* قیمت اصلی (بدون تخفیف یا خط‌خورده وقتی تخفیف دارد) */
.custom-price .price-regular {
    font-size: 1rem;
    color: #444;
}
.custom-price .price-regular del {
    color: #999;
    font-size: 0.95rem;
    
}

.custom-price .price-no-discount{
      font-size: 0.75rem;
    font-weight: bold;
    color: #7D5A50;
    background: rgba(125, 90, 80, 0.08);
    padding: 8px 8px;
    border-radius: 8px;
    display: inline-block;
	text-align: center;
}
/* قیمت با تخفیف */
.custom-price .price-sale {
    font-size: 0.75rem;
    font-weight: bold;
    color: #7D5A50;
    background: rgba(125, 90, 80, 0.08);
    padding: 8px 8px;
    border-radius: 8px;
    display: inline-block;
	text-align: center;
}

/* واکنش‌گرا برای تبلت */
@media (max-width: 768px) {
    .custom-price {
        padding: 8px 10px;
        font-size: 0.95rem;
    }
    .custom-price .price-sale {
        font-size: 1rem;
    }
}

/* واکنش‌گرا برای موبایل کوچک */
@media (max-width: 480px) {
    .custom-price {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    .custom-price .price-sale {
        font-size: 0.95rem;
        padding: 6px 10px;
    }
}


.custom-price .call-btn {
  display: inline-block;
  background: #7D5A50;
  color: #fff !important;
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 12px;
  transition: background 0.3s;
}

.custom-price .call-btn:hover {
  background: #AC8276;
}
/*  ------------------------  */



/* ===========================
   ✅ تب‌ها
=========================== */
.woocommerce-tabs {
  background: #fff;
  margin-top: 40px;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

.woocommerce-tabs ul.tabs {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  border-bottom: none;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.woocommerce-tabs ul.tabs li {
  background: #f0eae3;
  border-radius: 30px;
  padding: 8px 20px;
  font-size: 15px;
  font-weight: bold;
  color: #333;
  transition: all 0.3s ease;
}

.woocommerce-tabs ul.tabs li.active {
  background: #8b5e3c;
  color: white;
}

.woocommerce-Tabs-panel {
  font-size: 15px;
  line-height: 2;
  color: #3e3e3e;
}

/* ===========================
   ✅ برچسب حراج
=========================== */
.woocommerce span.onsale {
  background-color: #e3342f;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  right: 10px !important;
  left: auto !important;
}

/* ===========================
   ✅ ریسپانسیو موبایل
=========================== */
@media (max-width: 768px) {
  .woocommerce div.product {
    flex-direction: column;
    padding: 20px;
  }

  .woocommerce div.product div.images,
  .woocommerce div.product div.summary {
    width: 100%;
  }

  .woocommerce div.product .product_title {
    font-size: 22px;
  }

  .woocommerce div.product p.price {
    font-size: 20px;
  }

  .woocommerce div.product .single_add_to_cart_button {
    width: 100%;
    text-align: center;
    font-size: 15px;
  }
}
/*  سبد خالی */

.woocommerce-mini-cart__empty-message{ font-size:0; height:100%; width:100%; background-image:url('https://keshtaval.ir/wp-content/uploads/2025/09/empty-cart.webp'); background-repeat:no-repeat; background-position:center; background-size:contain; }

/* box showdo */
.box-showdo{
	box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
}