@font-face {
  font-family: "IRANSansXV";
  src: url('https://hossein-aslani.com/wp-content/themes/HosseinAslani-theme/assets/fonts/IRANSansXV.woff2') format('woff2'),
       url('https://hossein-aslani.com/wp-content/themes/HosseinAslani-theme/assets/fonts/IRANSansXV.woff') format('woff');
  font-style: normal;
  font-display: swap;
}

@font-face {
    font-family: "Pinar-VF";
      font-weight: 400;
    src: url('https://hossein-aslani.com/wp-content/themes/HosseinAslani-theme/assets/fonts/Pinar-FD-Light.woff2') format("woff-variations");
    font-display: swap;
}

@font-face {
  font-family: "Pinar-FD";
  font-weight: 900;
  font-style: normal;
  src: url('https://hossein-aslani.com/wp-content/themes/HosseinAslani-theme/assets/fonts/Pinar-FD-bold.woff2') format('woff2');
  font-display: swap;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: IRANSansXV;
    font-variation-settings: "wght" 300;
}

body {
    direction: rtl;
    background-color: #f2f4fd;
    overflow-x: hidden;
}

.container {
    margin: 0 auto;
    padding: 0 0px;
}

.custom-product-layout {
    /*padding: 20px;*/
}

.custom-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.custom-product-left-column,
.custom-product-right-column {
    width: 100%;
}

.custom-product-left-column {
    position: relative;
}

.custom-product-left-column .woocommerce-product-gallery {
    width: 921px;
    height: 502px;
    overflow: hidden;
}

.custom-product-left-column .woocommerce-product-gallery__wrapper {
    width: 100%;
    height: 100%;
}

.custom-product-left-column .woocommerce-product-gallery__image {
    width: 100%;
    height: 100%;
    display: block;
}

.custom-product-left-column .woocommerce-product-gallery__image img {
    width: 921px;
    height: 502px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    display: block;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff3f3b;
    color: #fff;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-variation-settings: "wght" 500;
    z-index: 10;
}

.custom-summary-box {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.info-box-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.info-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-radius: 8px;
    flex: 1;
    min-width: 200px;
}

.green-box {
    background-color: #cef8d0;
    color: #fff;
}

.yellow-box {
    background-color: #fffaef;
    color: #131200;
}

.info-box-text {
    flex-grow: 1;
}

.info-box-text span {
    display: block;
    font-size: 16px;
    font-variation-settings: "wght" 500;
}

.info-box-text small {
    font-size: 12px;
    opacity: 0.8;
}

.info-box-icon {
    font-size: 24px;
    margin-left: 10px;
}

.product-section {
    margin-top: 30px;
    padding: 36px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid;
    border-color: #c2c2c2;
}

.product-description-section {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
}

.product-description-section h2 {
    font-size: 1.5em;
    font-variation-settings: "wght" 600;
    margin-bottom: 15px;
}
h2{
    font-size: 1.3em !important;
}
/* مخفی کردن تب‌های محصول */
.woocommerce-tabs {
    display: none;
}

/* واکنش‌گرایی */
@media (max-width: 992px) {
    .custom-product-grid {
        grid-template-columns: 1fr;
    }
    
    .info-box {
        min-width: 100%;
    }
    
    .custom-product-left-column .woocommerce-product-gallery,
    .custom-product-left-column .woocommerce-product-gallery__image img {
        width: 100%;
        height: auto;
        aspect-ratio: 921 / 502;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .custom-product-layout {
        padding: 15px;
    }
    
    .custom-summary-box {
        padding: 15px;
    }
    
    .info-box {
        padding: 12px;
    }
    
    .info-box-text span {
        font-size: 14px;
    }
    
    .info-box-text small {
        font-size: 11px;
    }
    
    .product-description-section {
        padding: 15px;
    }
    
    .product-description-section h2 {
        font-size: 1.3em;
    }
    
    .custom-product-left-column .woocommerce-product-gallery,
    .custom-product-left-column .woocommerce-product-gallery__image img {
        width: 100%;
        height: auto;
        aspect-ratio: 921 / 502;
    }
}

@media (max-width: 576px) {
    .discount-badge {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .info-box {
        flex-direction: column;
        text-align: center;
    }
    
    .info-box-icon {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .custom-product-left-column .woocommerce-product-gallery,
    .custom-product-left-column .woocommerce-product-gallery__image img {
        width: 100%;
        height: auto;
        aspect-ratio: 921 / 502;
    }
}

/* CSS Custom Properties for theming */
:root {
    --timer-bg: #ff0000;
    --timer-text: #ffffff;
    --label-text: #333333;
    --title-text: #222222;
    --coupon-bg: #000000;
    --coupon-text: #ffffff;
    --payment-bg: #f9f9f9;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Main container */
.special-offer-widget-container {
    direction: rtl;
    text-align: center;
    font-family: inherit;
    padding: 20px;
    margin: 20px 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Title */
.offer-title {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--title-text);
    font-weight: 600;
}

/* Countdown timer */
.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    flex-direction: row-reverse;
    margin-bottom: 20px;
}

.time-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flip-card {
    position: relative;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.5;
    border-radius: 6px;
    padding: 0;
    width: 60px;
    height: 60px;
    background: var(--timer-bg);
    color: var(--timer-text);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.flip-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), transparent);
    border-radius: 6px 6px 0 0;
}

.number {
    transition: transform 0.2s ease;
}

.number.update {
    transform: translateY(-10px);
    opacity: 0;
}

.time-label {
    font-size: 0.9rem;
    margin-top: 8px;
    text-transform: uppercase;
    color: var(--label-text);
}

/* Discount code */
.discount-code {
    font-size: 1.1rem;
    color: var(--title-text);
    margin-bottom: 15px;
}

.discount-code .coupon {
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 4px;
    background: var(--coupon-bg);
    color: var(--coupon-text);
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.discount-code .coupon:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Coupon feedback */
.coupon-feedback {
    position: absolute;
    background: #4caf50;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-right: 10px;
    opacity: 0;
    animation: fadeInOut 2s ease forwards;
}

.coupon-feedback.error {
    background: #d32f2f;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(10px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

/* Payment form */
.payment-form {
    background: var(--payment-bg);
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.payment-error {
    color: #d32f2f;
    font-size: 1rem;
    margin: 0;
}

/* Responsive styles */
@media (max-width: 480px) {
    .special-offer-widget-container {
        padding: 15px;
    }
    .countdown-timer {
        gap: 8px;
    }
    .flip-card {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    .time-label {
        font-size: 0.75rem;
    }
    .offer-title {
        font-size: 1.3rem;
    }
    .discount-code {
        font-size: 1rem;
    }
}

.e-rating-wrapper{
    display: flex;
    justify-content: center;
}
.eicon-star::before {
    color: #ffa700;
}
bdi{
    font-family: "IRANSansXV";
    font-size: math;
}
.price del {
    color: #ff0000;
    font-size: small;
    text-decoration: line-through;
    margin-right: 8px;
  }
  
  /* استایل قیمت جدید (فعلی) */
  .price ins {
    color: #000000;
    font-variation-settings: "wght" 800, "dots" 1;
    font-size: large;
    font-weight: 800;
    text-decoration: none;
  }

  .single_add_to_cart_button.alt{
    background: #000;
    width: 100%;
    padding: 8px;
    font-weight: bold;
    font-family: iransansX;
    text-align: center;
  }

  /*
 * Product Attributes Table Widget Styles
 */
.product-extra-fields-wrapper {
    width: 100%;
}

.pqw-attributes-table {
    width: 100%;
    border-collapse: collapse; /* For clean borders */
    border-spacing: 0;
}

.pqw-attributes-table th,
.pqw-attributes-table td {
    padding: 12px 15px;
    border: 1px solid #EFEBE9;
    text-align: right; /* Right-to-left alignment */
    line-height: 1.6;
    padding: 10px 10px 10px 10px;
    border: 9px solid white;
    border-radius: 12px;
}

.pqw-attributes-table th {
    background-color: #EFEBE9;
    font-weight: bold;
    width: 30%; /* Gives the label column a defined width */
    padding: 10px 10px 10px 10px;
  border: 9px solid white;
  border-radius: 12px;
  font-variation-settings: "wght" 500, "dots" 1;
  color: #000;

}

.pqw-attributes-table td {
    background-color: #EFEBE9;
    padding: 10px 10px 10px 10px;
    border: 9px solid white;
    border-radius: 12px;
    font-variation-settings: "wght" 300, "dots" 1;
    color: #000;


}

/* Striped rows effect for better readability */
.pqw-attributes-table tr:nth-child(even) td {
    background-color: #EFEBE9;
    font-variation-settings: "wght" 300, "dots" 1;
    color: #000;

}

.pqw-table-title {
    text-align: right;
    margin-bottom: 20px;
}
/* Selector for the specific widget to avoid affecting other tables */
.elementor-widget-product_attributes_table .pqw-attributes-table {
    border-collapse: separate; /* This is crucial for adding space between rows */
    border-spacing: 0 10px;   /* 0 horizontal space, 10px vertical space */
    border: none;             /* Remove the main table border */
    background: none;         /* Remove any background set on the table itself */
}

/* Style for both label (th) and value (td) cells */
.elementor-widget-product_attributes_table .pqw-attributes-table th,
.elementor-widget-product_attributes_table .pqw-attributes-table td {
    border: none;                               /* Remove all cell borders */
    background-color: #f3f1ed;                  /* The light beige background from your image */
    padding: 18px 25px;                         /* Add comfortable padding inside each cell */
    vertical-align: middle;
}

/* Style for the right cell (Label/<th>) */
.elementor-widget-product_attributes_table .pqw-attributes-table th {
    font-weight: bold;                          /* Make the label bold */
    border-radius: 0 12px 12px 0;               /* Round the right-side corners */
	border-left: 6px solid white;
}

/* Style for the left cell (Value/<td>) */
.elementor-widget-product_attributes_table .pqw-attributes-table td {
    border-radius: 12px 0 0 12px;               /* Round the left-side corners */
}

/* --- Bonus: Responsive Styling for Mobile --- */
@media (max-width: 767px) {
    /* On mobile, stack the label on top of the value */
    .elementor-widget-product_attributes_table .pqw-attributes-table tr {
        display: block; /* Make the row a block element */
    }

    .elementor-widget-product_attributes_table .pqw-attributes-table th,
    .elementor-widget-product_attributes_table .pqw-attributes-table td {
        display: block;   /* Make cells full-width */
        width: 100%;
        box-sizing: border-box;
        text-align: center; /* Center the text on mobile */
    }

    /* Adjust border-radius for the stacked view */
    .elementor-widget-product_attributes_table .pqw-attributes-table th {
        border-radius: 12px 12px 0 0 !important;
    }
    .elementor-widget-product_attributes_table .pqw-attributes-table td {
        border-radius: 0 0 12px 12px !important;
    }
}

.subtitle{
    font-size: small;
}

.product-faq {margin-top:2rem;}
.faq-title {font-size:1.5rem;font-weight:900;margin-bottom:1rem;}
.faq-list dt {
  cursor:pointer;
  background:#f8f8f8;
  padding:12px 16px;
  border-radius:8px;
  margin-bottom:6px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-weight:600;
  transition:background 0.3s;
}
.faq-list dt:hover {background:#eee;}
.faq-icon {
  font-weight:bold;
  transition:transform 0.3s;
}
.faq-list dt.active .faq-icon {transform:rotate(45deg);}
.faq-answer {
  max-height:0;
  overflow:hidden;
  background:#fafafa;
  border-right:3px solid #f00;
  border-radius:0 0 8px 8px;
  padding:0 16px;
  margin-bottom:10px;
  transition:max-height 0.4s ease,padding 0.3s;
  color: #868686;
  font-size: medium;
}
.faq-answer.open {
  padding:12px 16px;
  max-height:200px; /* ارتفاع مناسب برای انیمیشن */
}
span.faq-text {
    font-variation-settings: "wght" 800, "dots" 1;
}


#apr-reviews-section .woocommerce-Reviews-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.apr-review-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 0;
    margin-bottom: 10px;
}

.apr-review-item:last-child {
    border-bottom: none;
}

.apr-review-header {
    display: flex;
    align-items: center;
}

.apr-reviewer-name {
    font-weight: bold;
    color: #333;
    margin-left: 10px;
    font-size: medium;
    font-variation-settings: "wght" 800, "dots" 1;
}



.apr-verified-badge::after {
    content: '✔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
}

.apr-star-rating {
    margin-right: auto;
    direction: ltr;
}

.apr-star-rating .star {
    font-size: 20px;
    color: #d8d8d8;
    display: inline-block;
}

.apr-star-rating .star.filled {
    color: #ffb900;
}
.apr-star-rating .star::before {
    content: '★';
}

.apr-review-meta {
    font-size: small;
    color: #888;
}

.apr-review-content p {
    margin: 0;
    line-height: 1.6;
    color: #000000;
    font-size: smaller;
    font-variation-settings: "wght" 500, "dots" 1;
    margin-top: 10px;
}
.apr-verified-badge::after {
    content: '✔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
  }
.apr-load-more-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
}

.apr-load-more-btn:hover {
    background-color: #f7f7f7;
    border-color: #999;
}

.apr-load-more-btn.loading {
    cursor: not-allowed;
    background-color: #f0f0f0;
}

/* استایل بخش ثبت دیدگاه */
#apr-reviews-section .comment-respond {
    border-top: 2px solid #f0f0f0;
    padding-top: 20px;
    margin-top: 30px;
}
#apr-reviews-section .comment-respond .comment-reply-title {
    font-size: 1.2rem;
}
.apr-login-notice, .apr-buyer-notice {
    padding: 15px;
    background-color: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    margin-top: 20px;
}

.icon-large {
    font-size: 44px;
    vertical-align: middle;
    margin-left: 27px;
    margin-right: -10px;
    color: #69727d;
}


.stock.out-of-stock{
    width: 100%;
  background-color: red;
  padding: 13px;
  border-radius: 9px;
  color: white;
  text-align: center;
  font-variation-settings: "wght" 800, "dots" 1;
}

.stock.available-on-backorder {
    background-color: antiquewhite;
    padding: 12px;
    border-radius: 10px;
  }

  .product_title{
    text-align: center;
  }

  /* استایل کلی صفحه */
.woocommerce-cart .woocommerce {
  max-width: 1100px;
  margin: 40px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(17,24,39,0.08);
  padding: 24px;
  font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial;
}

/* جدول سبد خرید */
.woocommerce-cart table.shop_table {
  width: 100%;
  border-collapse: collapse;
  border: none;
}

.woocommerce-cart table.shop_table th {
  text-align: left;
  padding: 12px;
  background: #f8fafc;
  font-weight: 600;
  color: #334155;
}

.woocommerce-cart table.shop_table td {
  padding: 14px 12px;
  border-top: 1px solid #e2e8f0;
  vertical-align: middle;
}

/* تصویر محصول */
.woocommerce-cart table.shop_table td.product-thumbnail img {
  width: 70px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* نام محصول */
.woocommerce-cart table.shop_table td.product-name a {
  color: #0f172a;
  font-weight: 500;
  text-decoration: none;
}

.woocommerce-cart table.shop_table td.product-name a:hover {
  color: #0ea5a4;
}

/* تعداد */
.woocommerce-cart input.qty {
  width: 70px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  text-align: center;
}

/* دکمه‌ها */
.woocommerce-cart .button,
.woocommerce-cart button.button {
  background: #0ea5a4;
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.woocommerce-cart .button:hover {
  background: #0d9488;
}

/* خلاصه سفارش */
.cart-collaterals .cart_totals {
  background: linear-gradient(180deg, #ffffff, #fbfeff);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.cart_totals h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .woocommerce-cart .woocommerce {
    padding: 16px;
  }
  .woocommerce-cart table.shop_table thead {
    display: none;
  }
  .woocommerce-cart table.shop_table tr {
    display: block;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
  }
  .woocommerce-cart table.shop_table td {
    display: flex;
    justify-content: space-between;
    border: none;
    padding: 8px 0;
  }
  .woocommerce-cart table.shop_table td:before {
    content: attr(data-title);
    font-weight: 600;
    color: #334155;
  }
}

