/*
Theme Name:   Hello Elementor Child - Sarmatec
Theme URI:    
Description:  قالب فرزند اختصاصی فروشگاه سرماتک بر پایه Hello Elementor
Author:       
Template:     hello-elementor
Version:      1.0.0
Text Domain:  hello-elementor-child
*/

/* استایل‌های عمومی سایت (در صورت نیاز) اینجا اضافه می‌شود.
   استایل‌های اختصاصی کارت محصول در فایل جداگانه‌ی
   assets/css/product-card.css نگهداری می‌شود تا ساختار
   پروژه ماژولار و قابل نگهداری باقی بماند. */


/* ─── Product Specs Table Styles ─── */
.woocommerce-Tabs-panel--additional_information {
  padding: 20px 0;
}

/* Section Header */
.woocommerce-Tabs-panel--additional_information h2 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 28px;
  padding-right: 20px;
  border-right: 4px solid #274EC1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.woocommerce-Tabs-panel--additional_information h2::before {
  content: "📋";
  font-size: 22px;
}

/* ─── Table Container ─── */
.woocommerce-product-attributes {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

/* ─── Table Rows ─── */
.woocommerce-product-attributes tr {
  transition: all 0.2s ease;
	height: 55px;
}

.woocommerce-product-attributes tr:hover {
  background: #f5f7ff;
}

.woocommerce-product-attributes tr:nth-child(even) {
  background: #fafbfc;
}

.woocommerce-product-attributes tr:nth-child(even):hover {
  background: #f5f7ff;
}

/* ─── Table Cells ─── */
.woocommerce-product-attributes th,
.woocommerce-product-attributes td {
  padding: 16px 24px;
  border-bottom: 1px solid #eef2f6;
  text-align: right;
  font-size: 14px;
}

.woocommerce-product-attributes tr:last-child th,
.woocommerce-product-attributes tr:last-child td {
  border-bottom: none;
}

/* ─── Label Column ─── */
.woocommerce-product-attributes-item__label {
  width: 40%!important;
  font-weight: 700;
  color: #1e293b;
  background: #f8fafc;
  position: relative;
  padding-right: 28px;
}

.woocommerce-product-attributes-item__label::before {
  content: "•";
  color: #274EC1;
  font-size: 18px;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

/* ─── Value Column ─── */
.woocommerce-product-attributes-item__value {
  width: 60%;
  color: #334155;
  font-weight: 500;
}

.woocommerce-product-attributes-item__value p {
    margin: 0;
    display: inline-block;
    background: #eef2ff;
    padding: 4px 16px !important;
    border-radius: 20px;
    font-size: 13px;
    color: #274EC1;
    font-weight: 600;
    font-style: normal;
}

/* Special styling for "ندارد" values */
.woocommerce-product-attributes-item__value p:contains("ندارد") {
  background: #fef2f2;
  color: #dc2626;
}

/* ─── Category Groups ─── */
/* Add visual separation for logical groups */

/* Group 1: Basic Info (Model, Function, Electrical) */
.woocommerce-product-attributes-item--attribute_pa_%d9%85%d8%af%d9%84-%d8%af%d8%b3%d8%aa%da%af%d8%a7%d9%87,
.woocommerce-product-attributes-item--attribute_pa_%d8%b9%d9%85%d9%84%da%a9%d8%b1%d8%af,
.woocommerce-product-attributes-item--attribute_pa_electrical-specifications {
  border-bottom: 2px solid #274EC1 !important;
}

.woocommerce-product-attributes-item--attribute_pa_%d9%85%d8%af%d9%84-%d8%af%d8%b3%d8%aa%da%af%d8%a7%d9%87 .woocommerce-product-attributes-item__label::after {
  content: "🔹";
  margin-right: 8px;
}

/* Group 2: Capacity & Power */
.woocommerce-product-attributes-item--attribute_pa_%d8%b8%d8%b1%d9%81%d9%8a%d8%aa-%da%af%d8%b1%d9%85%d8%a7%db%8c%d8%b4%db%8c,
.woocommerce-product-attributes-item--attribute_pa_cooling-input-power,
.woocommerce-product-attributes-item--attribute_pa_heating-input-power {
  background: #f0f7ff;
}

/* Group 3: Electrical */
.woocommerce-product-attributes-item--attribute_pa_cooling-current-consumption,
.woocommerce-product-attributes-item--attribute_pa_heating-current-consumption,
.woocommerce-product-attributes-item--attribute_pa_cooling-energy-efficiency-ra,
.woocommerce-product-attributes-item--attribute_pa_heating-coefficient-of-perfo {
  background: #faf5ff;
}

/* Group 4: Technical Specs */
.woocommerce-product-attributes-item--attribute_pa_sound-level,
.woocommerce-product-attributes-item--attribute_pa_static-pressure,
.woocommerce-product-attributes-item--attribute_pa_inverter-technology-energy,
.woocommerce-product-attributes-item--attribute_pa_gas-refrigerant-type,
.woocommerce-product-attributes-item--attribute_pa_compressor-type,
.woocommerce-product-attributes-item--attribute_pa_airflow-volume {
  background: #f5faff;
}

/* Group 5: Dimensions */
.woocommerce-product-attributes-item--attribute_pa_indoor-unit-dimensions,
.woocommerce-product-attributes-item--attribute_pa_outdoor-unit-dimensions,
.woocommerce-product-attributes-item--attribute_pa_net-weight-of-the-indoor-uni,
.woocommerce-product-attributes-item--attribute_pa_net-weight-of-the-outdoor-un {
  background: #fff8f0;
}

/* Group 6: Piping */
.woocommerce-product-attributes-item--attribute_pa_liquid-line-diameter,
.woocommerce-product-attributes-item--attribute_pa_gas-piping-diameter,
.woocommerce-product-attributes-item--attribute_pa_the-diameter-of-the-drain,
.woocommerce-product-attributes-item--attribute_pa_maximum-piping-length,
.woocommerce-product-attributes-item--attribute_pa_maximum-piping-height {
  background: #f0fff4;
}

/* Group 7: Wiring */
.woocommerce-product-attributes-item--attribute_pa_operating-temperature-range,
.woocommerce-product-attributes-item--attribute_pa_indoor-unit-wiring,
.woocommerce-product-attributes-item--attribute_pa_outdoor-unit-wiring,
.woocommerce-product-attributes-item--attribute_pa_signal-cable-wiring {
  background: #fefefe;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .woocommerce-product-attributes {
    border-radius: 12px;
  }

  .woocommerce-product-attributes th,
  .woocommerce-product-attributes td {
    padding: 12px 16px;
    font-size: 13px;
    display: block;
    width: 100% !important;
    border-bottom: none;
  }

  .woocommerce-product-attributes tr {
    display: block;
    margin-bottom: 4px;
    border-bottom: 1px solid #eef2f6;
  }

  .woocommerce-product-attributes tr:last-child {
    border-bottom: none;
  }

  .woocommerce-product-attributes-item__label {
    padding: 8px 16px 4px 16px;
    background: transparent;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
  }

  .woocommerce-product-attributes-item__label::before {
    display: none;
  }

  .woocommerce-product-attributes-item__value {
    padding: 0 16px 12px 16px;
  }

  .woocommerce-product-attributes-item__value p {
    font-size: 13px;
    padding: 2px 12px;
  }

  .woocommerce-Tabs-panel--additional_information h2 {
    font-size: 20px;
    padding-right: 16px;
  }
	
	 p.price span.woocommerce-Price-amount.amount bdi:not(del span.woocommerce-Price-amount.amount bdi),
.elementor-377 .elementor-element.elementor-element-fbdf7bf.elementor-wc-products ul.products li.product .price ins .amount , 
.elementor-377 .elementor-element.elementor-element-fbdf7bf.elementor-wc-products ul.products li.product .price > span.woocommerce-Price-amount.amount 
{
    color: #F12222!important;
    font-size: 14px!important;
	text-decoration: none!important;
	display: inline-flex;
}
}

.woocommerce table.shop_attributes th
{
		width :15%!important;
	 padding-right: 25px;
	    background: #e1e1e1;
}

.woocommerce span.onsale {
    min-height: 3.536em;
    min-width: 4.236em;
    padding: .202em;
    font-size: 1em;
    font-weight: 700;
    position: absolute;
    text-align: center;
    line-height: 4.236;
    top: -.5em;
    right: -.5em;
    margin: 0;
    border-radius: 30%;
    background-color: #ff0000;
    color: #fff;
    font-size: .857em;
    z-index: 9;
    font-family: 'IRANSansWeb_FaNum_Light';
    padding: 15px;
}

.woocommerce .elementor-441 .elementor-element.elementor-element-a88799d .price ins 
{
    color: #F12222;
    font-size: 25px;
    text-decoration: none;
}
 p.price span.woocommerce-Price-amount.amount bdi:not(del span.woocommerce-Price-amount.amount bdi),
.elementor-377 .elementor-element.elementor-element-fbdf7bf.elementor-wc-products ul.products li.product .price ins .amount , 
.elementor-377 .elementor-element.elementor-element-fbdf7bf.elementor-wc-products ul.products li.product .price > span.woocommerce-Price-amount.amount 
{
    color: #F12222!important;
    font-size: 17px;
	text-decoration: none!important;
	display: inline-flex;
}
.elementor-377 .elementor-element.elementor-element-fbdf7bf.elementor-wc-products ul.products li.product .price
{
	font-size: 14px!important;
}

.elementor-377 .elementor-element.elementor-element-128ce35.elementor-wc-products ul.products li.product .price del 
, .elementor-377 .elementor-element.elementor-element-fbdf7bf.elementor-wc-products ul.products li.product .price del .amount , 
.elementor-377 .elementor-element.elementor-element-fbdf7bf.elementor-wc-products ul.products li.product .price del .amount
{
    font-family: 'IRANSansWeb_FaNum_Medium'!important;
    font-weight: 500;
}

.woocommerce .elementor-377 .elementor-element.elementor-element-603feae .price ins 
{
	text-decoration: none;
}

.badge-sale  , .badge-new
{
    font-family: 'IRANSansWeb_Light';
    font-size: 12px;
}

@media (max-width: 480px) {
  .woocommerce-product-attributes th,
  .woocommerce-product-attributes td {
    padding: 10px 14px;
    font-size: 12px;
  }

  .woocommerce-product-attributes-item__value p {
    font-size: 12px;
    padding: 2px 10px;
  }

  .woocommerce-Tabs-panel--additional_information h2 {
    font-size: 18px;
  }
	
		.woocommerce div.product p.price del, .woocommerce div.product span.price del {
		position: relative;
		top: -10px;
	}
	
	.woocommerce div.product p.price ins, .woocommerce div.product span.price ins
	{
		position: relative;
    	top: 11px;
	}
	
	
}

@media (max-width: 768px) {
   
	
	.woocommerce div.product p.price del, .woocommerce div.product span.price del {
		position: relative;
		top: -10px;
	}
	
	.woocommerce div.product p.price ins, .woocommerce div.product span.price ins
	{
		position: relative;
    	top: 11px;
	}
	
	.wp-singular.product-template-default.single.single-product p.price span.woocommerce-Price-amount.amount bdi:not(del span.woocommerce-Price-amount.amount bdi)
	{
		font-size: 15px !important;
		color: #F12222 !important;
	}
	
	.wp-singular.product-template-default.single.single-product .elementor-441 .elementor-element.elementor-element-3e6e5d7  p.price span.woocommerce-Price-amount.amount bdi:not(del span.woocommerce-Price-amount.amount bdi)
	{
		font-size: 25px !important;
		color: #F12222 !important;
	}
}



/* ─── فروشگاه ووکامرس ─── */


/* ─── Header Tools (Result Count + Ordering) ─── */
.woocommerce .woocommerce-result-count {
  float: right;
  font-size: 15px;
  color: #475569;
  font-weight: 500;
  padding: 10px 0;
  margin: 0;
  background: #f8fafc;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.woocommerce .woocommerce-result-count::before {
  content: "📦 ";
  font-size: 16px;
}

.woocommerce .woocommerce-ordering {
  float: left;
  margin: 0;
  position: relative;
}

/* ─── Select Box ─── */
.woocommerce .woocommerce-ordering select.orderby {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 48px 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Vazirmatn', system-ui, sans-serif;
  min-width: 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23274EC1' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  background-size: 12px 8px;
}

.woocommerce .woocommerce-ordering select.orderby:hover {
  border-color: #274EC1;
  background-color: #f5f7ff;
}

.woocommerce .woocommerce-ordering select.orderby:focus {
  outline: none;
  border-color: #274EC1;
  box-shadow: 0 0 0 4px rgba(39, 78, 193, 0.12);
  background-color: #ffffff;
}

/* ─── Select Options ─── */
.woocommerce .woocommerce-ordering select.orderby option {
  padding: 8px 12px;
  font-weight: 400;
  color: #1e293b;
}

.woocommerce .woocommerce-ordering select.orderby option:checked {
  background: #274EC1;
  color: #ffffff;
}

.woocommerce .woocommerce-ordering select.orderby option:hover {
  background: #eef2ff;
}

/* ─── Clearfix ─── */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  margin-bottom: 30px;
}

.woocommerce:after {
  content: "";
  display: table;
  clear: both;
}

/* ─── Notices ─── */
.woocommerce .woocommerce-notices-wrapper {
  margin-bottom: 20px;
}

.woocommerce .woocommerce-notices-wrapper .woocommerce-message {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
}

.woocommerce .woocommerce-notices-wrapper .woocommerce-info {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1e40af;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
}

.woocommerce .woocommerce-notices-wrapper .woocommerce-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
}

/* ─── Responsive ─── */
@media (max-width: 992px) {


  .woocommerce .woocommerce-result-count,
  .woocommerce .woocommerce-ordering {
    float: none;
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
  }

  .woocommerce .woocommerce-ordering select.orderby {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 768px) {


  .woocommerce .woocommerce-result-count {
    font-size: 13px;
    padding: 8px 16px;
    text-align: center;
    display: inline-block;
    width: 100%;
  }

  .woocommerce .woocommerce-ordering select.orderby {
    font-size: 13px;
    padding: 8px 44px 8px 16px;
    min-width: unset;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {


  .woocommerce .woocommerce-result-count {
    font-size: 12px;
    padding: 6px 12px;
  }

  .woocommerce .woocommerce-ordering select.orderby {
    font-size: 12px;
    padding: 6px 40px 6px 12px;
    border-radius: 10px;
  }
}

/* ─── Dark Mode Support ─── */
@media (prefers-color-scheme: dark) {
    .woocommerce .woocommerce-result-count {
        background: #274ec1;
        color: #cbd5e1;
        border-color: #274ec1;
        font-family: 'IRANSansWeb_FaNum_Medium';
    }


  .woocommerce .woocommerce-ordering select.orderby {
        background-color: #001c6e;
        border-color: #274ec1;
        color: #e2e8f0;
        font-family: 'IRANSansWeb_FaNum_Medium';
  }

  .woocommerce .woocommerce-ordering select.orderby:hover {
    background-color: #475569;
    border-color: #274EC1;
  }

  .woocommerce .woocommerce-ordering select.orderby:focus {
    background-color: #1e293b;
    box-shadow: 0 0 0 4px rgba(39, 78, 193, 0.25);
  }

  .woocommerce .woocommerce-ordering select.orderby option {
    background: #1e293b;
    color: #e2e8f0;
  }

  .woocommerce .woocommerce-ordering select.orderby option:checked {
    background: #274EC1;
    color: #ffffff;
  }

  .woocommerce .woocommerce-ordering select.orderby option:hover {
    background: #274EC1;
    color: #ffffff;
  }
}


.wp-singular.product-template-default.single.single-product .woocommerce .elementor-378 .elementor-element.elementor-element-603feae .price
{
	    font-size: 10px;
}




/* ============================
   تبلت (حداکثر 768 پیکسل)
   ============================ */
@media (max-width: 768px) {
    .woocommerce-product-attributes-item__label,
    .woocommerce-product-attributes-item__value {
        padding: 12px 14px;
        font-size: 13.5px;
    }

    .woocommerce-product-attributes-item__label {
        width: 40%;
    }
	.woocommerce table.shop_attributes th
	{
		width:100%!important;
	}
}

/* ============================
   موبایل (حداکثر 576 پیکسل)
   تبدیل جدول به کارت‌های عمودی
   ============================ */
@media (max-width: 576px) {
    .woocommerce-product-attributes.shop_attributes,
    .woocommerce-product-attributes.shop_attributes tbody,
    .woocommerce-product-attributes.shop_attributes tr,
    .woocommerce-product-attributes.shop_attributes th,
    .woocommerce-product-attributes.shop_attributes td {
        display: block;
        width: 100%;
    }

    .woocommerce-product-attributes.shop_attributes tr {
        border: 1px solid #eee;
        border-radius: 10px;
        margin-bottom: 8px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }

    .woocommerce-product-attributes-item__label {
        border-left: none;
        border-bottom: 1px solid #eee;
        font-size: 13px;
        padding: 10px 14px 6px;
        background-color: #f7f9f7;
    }

    .woocommerce-product-attributes-item__value {
        padding: 8px 14px 12px;
        font-size: 13.5px;
        background-color: #fff;
    }

    .woocommerce-product-attributes.shop_attributes tbody tr:nth-child(even) .woocommerce-product-attributes-item__value {
        background-color: #fcfcfc;
    }
}

/* ============================
   موبایل خیلی کوچک (حداکثر 380 پیکسل)
   ============================ */
@media (max-width: 380px) {
    .woocommerce-product-attributes-item__label,
    .woocommerce-product-attributes-item__value {
        font-size: 12.5px;
        padding-left: 10px;
        padding-right: 10px;
    }
}
