/* ============================================================
   SINGLE PRODUCT LAYOUT - FINAL CLEANED & CONSOLIDATED VERSION
   ============================================================ */

/* --- 1. Layout Basics & Breadcrumbs --- */
.main-product-container {
  padding-top: 20px;
  padding-bottom: 60px;
}

.woocommerce-breadcrumb {
  font-size: 13px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #333 !important;
  font-weight: 800 !important;
  padding: 10px 0;
}

.woocommerce-breadcrumb a {
  color: #8a8a8a !important;
  font-weight: 400 !important;
  text-decoration: none;
  transition: 0.3s;
}

.woocommerce-breadcrumb a:hover {
  color: #ff8c40 !important;
}

.breadcrumb-sep {
  color: #cccccc !important;
  margin: 0 8px;
  font-weight: 300;
}

/* --- 2. Countdown Timer --- */
.countdown-container {
  width: 100%;
  padding: 0;
  margin-bottom: 10px;
}

.countdown-label {
  font-size: 14px;
  font-weight: 800;
  color: #ff8c40;
  text-align: right;
  line-height: 2;
  margin-bottom: 5px;
}

.product-countdown-wrapper {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  direction: ltr;
}

.countdown-item {
  width: 50px;
  height: 50px;
  border: 1px solid #ff8c40;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 2px 5px rgba(255, 140, 64, 0.1);
}

.countdown-item span {
  font-size: 18px;
  font-weight: 900;
  color: #ff8c40 !important;
}

/* --- 3. Main Image (Fit & Zoom) --- */
.main-image-box {
  border: 1px solid #ff8c40 !important;
  border-radius: 12px;
  background: #fff;
  width: 100%;
  padding: 0 !important;
  margin-bottom: 20px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1 / 1;
}

.main-product-img {
  width: 90% !important;
  height: 90% !important;
  object-fit: contain;
  transform: scale(1.15);
  transition: transform 0.3s ease;
}

.zoom-container:hover .main-product-img {
  transform: scale(1.25);
}

.zoom-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Icons Overlay (Wishlist/Compare) */
.gallery-overlay-icons {
  position: absolute;
  bottom: 15px;
  left: 15px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 1px solid #ff8c40;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  padding: 7px;
}

.gallery-btn:hover {
  background: #ff8c40;
}
.gallery-btn:hover img {
  filter: brightness(0) invert(1);
}

/* --- 4. Gallery Thumbnails & Arrows --- */
.gallery-thumbs-wrapper {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: 15px;
  position: relative;
}

.gallery-thumbs-slider {
  flex-grow: 1;
  width: calc(100% - 70px);
  min-width: 0;
  overflow: hidden;
  padding: 2px;
}

.thumb-item {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 3px;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s ease;
  box-sizing: border-box;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  display: block;
}

.thumb-item.active,
.thumb-item:hover {
  border-color: #ff8c40 !important;
}

.thumb-item img {
  border-radius: 8px;
  width: 100%;
  height: auto;
}

/* Custom Arrows */
.domderaz-thumb-prev,
.domderaz-thumb-next {
  width: 30px !important;
  height: 30px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  position: static !important;
  margin: 0 !important;
  transform: none !important;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.domderaz-thumb-prev img,
.domderaz-thumb-next img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Disabled State for Arrows */
.domderaz-thumb-prev.swiper-button-disabled,
.domderaz-thumb-next.swiper-button-disabled {
  opacity: 0.2 !important;
  cursor: default !important;
  pointer-events: none !important;
  filter: grayscale(100%);
}

/* Report Link (Footer of Gallery) */
.gallery-footer-info {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.report-link {
  font-size: 11px;
  color: #999;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
  transition: none;
}

.report-link:hover,
.report-link:focus,
.report-link:active {
  color: #999 !important;
  text-decoration: none !important;
}

.sku-text {
  font-size: 11px;
  color: #999;
  font-family: sans-serif;
  direction: ltr;
}

/* --- 5. Info Column (Middle) --- */
.product-title {
  font-size: 18px;
  font-weight: 800;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.6;
}

.english-title {
  font-family: sans-serif;
  color: #999;
  font-size: 14px;
  margin-bottom: 15px;
  text-align: left;
  direction: ltr;
}

.info-divider {
  height: 1px;
  background-color: #eee;
  width: 100%;
  margin: 20px 0;
}

.features-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
}

.product-features-list ul {
  list-style: none !important;
  padding: 0;
  margin: 0;
}

.product-features-list li {
  position: relative;
  padding-right: 20px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #444;
  line-height: 1.8;
}

.product-features-list li::before {
  content: "•";
  position: absolute;
  right: 0;
  color: #ff8c40;
  font-size: 20px;
  line-height: 18px;
}

/* Branch Box */
.branch-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #ff8c40;
  border-radius: 10px;
  padding: 12px 15px;
  margin-top: 20px;
  background-color: transparent !important;
}

.branch-text strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #333;
}
.branch-text p {
  margin: 0;
  font-size: 11px;
  color: #666;
}

.branch-icon img {
  filter: invert(66%) sepia(35%) saturate(3000%) hue-rotate(338deg)
    brightness(101%) contrast(101%);
}

/* --- 6. Buy Box (Left Sidebar) --- */
.product-buy-box {
  border: 1px solid #ff8c40;
  border-radius: 12px;
  padding: 15px;
  background: #fff;
  position: relative;
  margin-bottom: 20px;
}

/* Header */
.buy-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.brand-logo-area img {
  max-height: 40px;
  max-width: 100px;
}

/* Auth Badges */
.auth-badge {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: bold;
}
.auth-original {
  background: #d4edda;
  color: #155724;
}
.auth-fake {
  background: #f8d7da;
  color: #721c24;
}
.auth-unknown {
  background: #fff3cd;
  color: #856404;
}

/* Dividers */
.dashed-divider {
  border-top: 1px dashed #ccc;
  width: 100%;
  margin: 15px 0;
}

/* Info Grid */
.info-grid-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}
.info-item {
  border: 1px dashed #ddd;
  border-radius: 12px;
  padding: 10px 5px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 110px;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.icon-wrap img {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
}
.info-label {
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
}
.info-value {
  font-size: 13px;
  font-weight: 800;
  color: #ff8c40;
}
.stock-value-display span {
  display: inline-block;
}
.small-text {
  font-size: 11px;
  line-height: 1.4;
}

/* Warranty Box */
.warranty-info-box {
  border: 1px solid #eee;
  background: #fafafa;
  border-radius: 8px;
  padding: 10px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: #666;
}

/* --- 7. Variations Form & Styling --- */
.variations_form {
  width: 100%;
}
.variations {
  width: 100%;
  margin-bottom: 10px;
}
.variations tr {
  display: block;
  margin-bottom: 15px;
}
.variations td {
  display: block;
  width: 100%;
  padding-bottom: 5px;
}
.variations label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  color: #333;
  font-weight: bold;
}

.variations select {
  width: 100%;
  height: 45px;
  border: 1px solid #ff8c40;
  border-radius: 10px;
  padding: 0 15px 0 40px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: #fff url("../img/arrow-down.svg") no-repeat left 15px center;
  background-size: 14px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  box-shadow: none;
}

/* Reset Variations Button (Clear) */
.reset_variations {
  display: none; /* JS controls visibility */
  width: auto !important;
  float: left;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 5px;
  margin-bottom: 10px;
  font-size: 11px;
  color: #dc3545 !important;
  text-decoration: none !important;
  cursor: pointer;
}

.reset_variations::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("../img/close-circle.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg)
    brightness(104%) contrast(97%);
  vertical-align: middle;
}

/* --- 8. Price Section & Add to Cart (FINAL FIXED) --- */

/* Main Container */
.price-display-section {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100%;
  margin-bottom: 15px;
  padding-top: 10px;
}

/* Label: "قیمت کالا" */
.price-label {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #333;
  margin: 0;
}

/* Price Value Wrapper (Holds Old & New Price) */
.price-value {
  display: flex;
  /* مهم: آیتم‌ها در یک ردیف کنار هم باشند */
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 10px; /* فاصله بین قیمت قدیم و جدید */
}

/* Hide Default WooCommerce Price */
.woocommerce-variation-price {
  display: none !important;
}

/* =================================
   NEW PRICE (نارنجی)
   ================================= */
.price-value ins,
.price-value > .amount {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 5px;
  text-decoration: none !important;
}

/* عدد قیمت اصلی */
.price-value ins .amount,
.price-value > .amount {
  font-family: inherit !important;
  font-weight: 900 !important;
  font-size: 24px !important;
  color: #ff8c40 !important;
  /* عدد سمت راست باشد */
  order: 2;
}

/* نماد تومان قیمت اصلی */
.price-value ins .woocommerce-Price-currencySymbol,
.price-value > .amount .woocommerce-Price-currencySymbol {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #ff8c40 !important;
  margin-top: 5px;
  /* نماد سمت چپ باشد */
  order: 1;
}

/* =================================
   OLD PRICE (طوسی و خط خورده)
   ================================= */
.price-value del {
  order: -1; /* نمایش قبل از قیمت اصلی (سمت راست‌تر یا چپ‌تر بسته به جهت) */
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  margin-bottom: 0;
  gap: 3px;
  text-decoration: none !important; /* خط روی کل باکس نباشد */
}

/* عدد قیمت قدیم */
.price-value del .amount {
  font-size: 14px !important;
  color: #bbb !important;
  text-decoration: line-through !important;
  display: flex;

  /* عدد سمت راست باشد */
  order: 2;
}

/* نماد تومان قیمت قدیم */
.price-value del .woocommerce-Price-currencySymbol {
  font-size: 11px !important;
  color: #bbb !important;
  text-decoration: line-through !important;
  margin-right: 0;
  margin-top: 2px;

  /* نماد سمت چپ باشد */
  order: 1;
}

/* Add to Cart Button */
.single_add_to_cart_button,
button.single_add_to_cart_button,
.cart .single_add_to_cart_button {
  width: 100% !important;
  height: 50px;
  background-color: #ff8c40 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 16px !important;
  font-weight: bold !important;
  cursor: pointer;
  display: block;
  transform: none !important;
  transition: none !important;
  box-shadow: none !important;
}
.single_add_to_cart_button:hover,
.single_add_to_cart_button:focus,
.single_add_to_cart_button:active {
  background-color: #ff8c40 !important;
  color: #fff !important;
  transform: none !important;
  box-shadow: none !important;
}
.single_add_to_cart_button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Notify Me Button (Yellow) */
.notify-btn-yellow,
.notify-me-btn {
  width: 100%;
  background-color: #ffe082 !important;
  color: #333 !important;
  border: 1px solid #ffca28 !important;
  border-radius: 12px;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer !important;
  text-align: center;
  display: block;
  margin-top: 10px;
  transition: all 0.3s ease;
  pointer-events: auto !important;
  opacity: 1 !important;
}
.notify-btn-yellow:hover {
  background-color: #ffc107 !important;
}

/* Better Price Link */
.better-price-link {
  margin-top: 10px;
  padding-right: 5px;
  text-align: left;
}
.better-price-link a {
  font-size: 12px;
  color: #999;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: none;
}
.better-price-link a:hover {
  color: #999 !important;
}
.better-price-link img {
  width: 16px;
  filter: grayscale(100%);
  opacity: 0.7;
}

/* Hide Defaults */
.quantity,
.woocommerce-variation-availability,
.stock {
  display: none !important;
}

/* Out of Stock Styling */
.out-of-stock-badge,
.woocommerce-variation-availability .stock.out-of-stock,
.wc-waitlist-container {
  background-color: #fff3cd !important;
  color: #856404 !important;
  border: 1px solid #ffeeba;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  width: 100%;
  margin-top: 10px;
  font-size: 13px;
  font-weight: bold;
}
/* Force hide price container if parent has out-of-stock class */
.product-buy-box.out-of-stock .price-display-section {
  display: none !important;
}

/* --- 9. Custom Modals --- */
.custom-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.custom-modal-box {
  background: #fff;
  width: 90%;
  max-width: 400px;
  padding: 20px;
  border-radius: 15px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.close-modal-btn {
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
}
.close-modal-btn:hover {
  color: #ff8c40;
}
.modal-header-custom {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #333;
  text-align: right;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}
.custom-input,
.custom-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 10px;
  font-family: inherit;
  box-sizing: border-box;
}
.custom-textarea {
  height: 80px;
  resize: none;
}
.custom-submit-btn {
  width: 100%;
  background: #ff8c40;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}
.custom-submit-btn:hover {
  background: #e07630;
}

/* --- 10. Responsive --- */
@media (max-width: 991px) {
  .product-buy-box {
    position: static;
  }
  .info-grid-box {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}
@media (max-width: 767px) {
  .product-top-section .col-lg-4,
  .product-top-section .col-lg-5,
  .product-top-section .col-lg-3 {
    margin-bottom: 25px;
  }
  .info-grid-box {
    grid-template-columns: 1fr 1fr;
  }
  .main-image-box {
    padding: 5px;
  }
}



/* --- Wrapper اصلی --- */
.product-bottom-section-wrapper {
    background-color: #FBFBFB; /* رنگ درخواستی */
    padding-bottom: 60px;
    margin-top: 40px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.content-sections-container {
    padding-top: 30px;
}

/* --- نوار دسترسی سریع (Sticky Nav) --- */
.product-anchor-nav {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0; /* تنظیم برای هدر چسبان، اگر هدر دارید این عدد را بیشتر کنید */
    z-index: 90;
    padding: 0;
}

.anchor-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto; /* اسکرول در موبایل */
}

.anchor-list li {
    margin-left: 30px;
}

.anchor-list a {
    display: block;
    padding: 15px 0;
    font-size: 14px;
    font-weight: 700;
    color: #666;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.anchor-list a:hover,
.anchor-list a.active {
    color: #ff8c40;
    border-bottom-color: #ff8c40;
}

/* --- استایل کارت‌های سفید (Section Cards) --- */
.domderaz-section-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}

.section-title {
    font-size: 16px;
    font-weight: 800;
    color: #ff8c40; /* نارنجی */
    margin-bottom: 15px;
}

.section-divider {
    width: 100%;
    height: 1px;
    background: #ff8c40; /* خط نارنجی زیر تیتر */
    opacity: 0.3;
    margin-bottom: 25px;
}

/* --- استایل جدول مشخصات --- */
.product-attributes-wrapper table {
    width: 100%;
    border-collapse: collapse;
}

.product-attributes-wrapper th,
.product-attributes-wrapper td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    text-align: right;
}

.product-attributes-wrapper th {
    width: 25%;
    background: #f9f9f9;
    color: #555;
    font-weight: bold;
}

.product-attributes-wrapper td {
    color: #333;
}

.product-attributes-wrapper tr:last-child th,
.product-attributes-wrapper tr:last-child td {
    border-bottom: none;
}

/* --- استایل کارت محصول (اسلایدر) --- */
.product-card-simple {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
}
.product-card-simple:hover {
    border-color: #ff8c40;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.product-card-simple img {
    height: 180px;
    object-fit: contain;
    margin-bottom: 10px;
}
.card-title {
    font-size: 13px;
    font-weight: bold;
    min-height: 40px;
    line-height: 1.4;
    margin-bottom: 10px;
}
.card-title a { color: #333; text-decoration: none; }
.card-price {
    font-size: 14px;
    font-weight: 800;
    color: #ff8c40;
    margin-bottom: 10px;
}
.card-add-btn {
    display: block;
    border: 1px solid #ff8c40;
    color: #ff8c40;
    border-radius: 8px;
    padding: 8px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}
.card-add-btn:hover {
    background: #ff8c40;
    color: #fff;
}

/* Swiper Controls */
.related-next, .related-prev {
    color: #ff8c40 !important;
    transform: scale(0.6);
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


/* --- اصلاح خط جداکننده زیر تیتر بخش‌ها --- */
.section-header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    width: 100%;
}

.section-title {
    font-size: 16px;
    font-weight: 800;
    color: #ff8c40; /* نارنجی */
    white-space: nowrap;
    margin: 0 0 0 15px; /* فاصله با خط */
}

/* خط افقی پررنگ */
.section-divider-line {
    flex-grow: 1; /* پر کردن فضای باقی‌مانده */
    height: 1px;
    background-color: #ff8c40; /* رنگ خط نارنجی */
    opacity: 0.4;
}


/* --- اصلاح رنگ باکس‌های پایین به F9F9F9 --- */
.domderaz-section-card {
    background: #F9F9F9; /* رنگ درخواستی */
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #f0f0f0; /* کمی کادر برای تمیزی */
    box-shadow: none; /* فلت‌تر */
}

/* --- استایل دهی به بخش نظرات (Review Styling) --- */
.custom-reviews-wrapper {
    padding: 10px;
}

/* حذف بولت‌های لیست نظرات */
.woocommerce-Reviews ol.commentlist {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

/* استایل هر آیتم نظر */
.woocommerce-Reviews li.review {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

/* آواتار کاربر */
.woocommerce-Reviews .avatar {
    float: right;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-left: 15px;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* متن نظر */
.woocommerce-Reviews .comment-text {
    margin-right: 70px; /* فاصله برای آواتار */
    border: none !important;
    padding: 0 !important;
}

/* نام کاربر و تاریخ */
.woocommerce-Reviews .meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
    display: block;
}
.woocommerce-Reviews .meta strong {
    font-size: 14px;
    color: #333;
    display: block;
    margin-bottom: 2px;
}

/* ستاره‌های امتیازدهی */
.woocommerce-Reviews .star-rating {
    float: left; /* ستاره سمت چپ باکس */
    color: #ff8c40;
}

/* فرم ارسال نظر */
#review_form_wrapper {
    margin-top: 40px;
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #eee;
}

#review_form_wrapper h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 20px;
}

.comment-form-rating label {
    display: block;
    margin-bottom: 5px;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 13px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fdfdfd;
}

.form-submit input[type="submit"] {
    background: #ff8c40;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
}
.form-submit input[type="submit"]:hover {
    background: #e07630;
}


/* --- اصلاح رنگ باکس‌های پایین به F9F9F9 --- */
.domderaz-section-card {
    background: #F9F9F9; /* رنگ درخواستی */
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #f0f0f0; /* کمی کادر برای تمیزی */
    box-shadow: none; /* فلت‌تر */
}

/* --- استایل دهی به بخش نظرات (Review Styling) --- */
.custom-reviews-wrapper {
    padding: 10px;
}

/* حذف بولت‌های لیست نظرات */
.woocommerce-Reviews ol.commentlist {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

/* استایل هر آیتم نظر */
.woocommerce-Reviews li.review {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

/* آواتار کاربر */
.woocommerce-Reviews .avatar {
    float: right;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-left: 15px;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* متن نظر */
.woocommerce-Reviews .comment-text {
    margin-right: 70px; /* فاصله برای آواتار */
    border: none !important;
    padding: 0 !important;
}

/* نام کاربر و تاریخ */
.woocommerce-Reviews .meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
    display: block;
}
.woocommerce-Reviews .meta strong {
    font-size: 14px;
    color: #333;
    display: block;
    margin-bottom: 2px;
}

/* ستاره‌های امتیازدهی */
.woocommerce-Reviews .star-rating {
    float: left; /* ستاره سمت چپ باکس */
    color: #ff8c40;
}

/* فرم ارسال نظر */
#review_form_wrapper {
    margin-top: 40px;
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #eee;
}

#review_form_wrapper h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 20px;
}

.comment-form-rating label {
    display: block;
    margin-bottom: 5px;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 13px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fdfdfd;
}

.form-submit input[type="submit"] {
    background: #ff8c40;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
}
.form-submit input[type="submit"]:hover {
    background: #e07630;
}