/* تغییرات تکمیلی قالب گلشا (جدا از bundle.css تا با build مجدد SCSS پاک نشود) */

/* ---------- منوی هدر ---------- */
.site-menu { gap: 6px; flex-wrap: wrap; }
.site-menu__link {
  display: inline-block; padding: 6px 12px; border-radius: 8px;
  color: #02170a; font-weight: 600; font-size: .9rem; text-decoration: none;
  transition: background .2s, color .2s;
}
.site-menu__link:hover { background: rgba(2, 23, 10, .08); color: #02170a; }
@media (max-width: 575.98px) {
  .site-menu { gap: 0; }
  .site-menu__link { padding: 4px 8px; font-size: .8rem; }
}

/* ---------- لوگوی کوچک‌تر در هدر آرشیو مقالات ---------- */
.navbar__brand--small img { max-height: 44px; width: auto; }
@media (min-width: 768px) { .navbar__brand--small img { max-height: 56px; } }

/* ---------- بخش مزیت‌ها: کوچک و خلاصه ---------- */
.services--compact .services__icon { width: 28px; height: 28px; }
.services--compact .services__title { font-size: .85rem; margin-bottom: 0; }
.services--compact .services__text { font-size: .8rem; }
.services--compact .services__item { padding-bottom: 8px; }
@media (min-width: 768px) {
  .services--compact .services__icon { width: 34px; height: 34px; }
  .services--compact .services__title { font-size: .95rem; }
}

/* ---------- سخن مشتریان: فقط عکس کوچک، نام و متن ---------- */
.comments .comments__avatar {
  width: 56px; height: 56px; min-width: 56px; max-width: 56px;
  border-radius: 50%; object-fit: cover;
}
.comments .comments__quote { width: 28px; height: auto; }

/* ---------- تب‌های محصول: جلوگیری از بریده شدن متن و لینک بلند در موبایل ---------- */
.tab-content, .tab-content .tab-pane { overflow-wrap: anywhere; word-break: break-word; }
.tab-content img, .tab-content iframe, .tab-content video { max-width: 100%; height: auto; }
.tab-content table { display: block; max-width: 100%; overflow-x: auto; }
.tab-content a { overflow-wrap: anywhere; }

/* ---------- دکمه اشتراک‌گذاری محصول ---------- */
.product-share-button {
  position: absolute; top: 10px; right: 48px; z-index: 5;
  width: 30px; height: 30px; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .9); border: 1px solid #d9e2dc; cursor: pointer;
}
.product-share-toast {
  position: absolute; top: 48px; right: 10px; z-index: 6;
  background: #02170a; color: #fff; font-size: .8rem; padding: 6px 12px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.product-share-toast.is-visible { opacity: 1; }

/* ---------- کارت مقالات (اسلایدر) ---------- */
.blogSwiper { padding-bottom: 4px; }
.golsha-blog-card {
  display: flex; flex-direction: column; height: 100%;
  border: 1px solid #e3e8e5; border-radius: 12px; padding: 12px;
  background: #fff; color: inherit; text-decoration: none;
}
.golsha-blog-card__thumb { aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: #eef3f0; }
.golsha-blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.golsha-blog-card__placeholder { display: block; width: 100%; height: 100%; }
.golsha-blog-card__title { font-size: .95rem; font-weight: 700; margin: 12px 0 6px; line-height: 1.7; }
.golsha-blog-card__text { font-size: .85rem; color: #555; line-height: 1.9; margin-bottom: 10px; }
.golsha-blog-card__more { margin-top: auto; color: #093ce3; font-size: .85rem; font-weight: 600; }
.blog-swiper-button-next, .blog-swiper-button-prev { color: #02170a; transform: scale(.6); }
@media (max-width: 575.98px) { .blog-swiper-button-next, .blog-swiper-button-prev { display: none; } }

/* ---------- فوتر: نمادها و راه‌های ارتباطی ---------- */
.footer__badge { display: flex; align-items: center; justify-content: center; padding: 6px; min-width: 96px; min-height: 96px; background: #fff; border-radius: 8px; }
.footer__badge img { max-width: 80px; height: auto; }
.footer__phone { display: inline-block; color: #fff; font-weight: 600; margin-bottom: 10px; text-decoration: none; direction: ltr; }
.footer__social-title { color: #fff; font-size: .95rem; font-weight: 600; margin: 14px 0 10px; }
.footer__social { gap: 12px; }
.footer__social a { display: inline-flex; opacity: 1; transition: opacity .2s ease, transform .2s ease; }
.footer__social a:hover { opacity: .8; transform: translateY(-2px); }
/* همه آیکون‌های راه‌های ارتباطی سفید نمایش داده می‌شوند */
.footer__social img { display: block; filter: brightness(0) invert(1); }

/* ---------- لیست محصولات (صفحه اصلی و فروشگاه) ---------- */
.golsha-shop { padding: 24px 0 48px; }
.golsha-shop__title { font-size: 1.4rem; font-weight: 700; color: #02170a; margin-bottom: 20px; }
.golsha-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 768px) { .golsha-products { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .golsha-products { grid-template-columns: repeat(4, 1fr); } }
.golsha-product-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #e3e8e5; border-radius: 12px; overflow: hidden; }
.golsha-product-card__thumb { display: block; aspect-ratio: 1 / 1; background: #f6f8f7; }
.golsha-product-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.golsha-product-card__body { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.golsha-product-card__title { font-size: .95rem; font-weight: 700; line-height: 1.8; color: #02170a; text-decoration: none; margin-bottom: 8px; }
.golsha-product-card__price { margin-top: auto; font-weight: 700; color: #02170a; }
.golsha-product-card__price del { color: #888; font-weight: 400; font-size: .85rem; margin-left: 6px; }
.golsha-product-card__price ins { text-decoration: none; }
.golsha-product-card__btn { margin-top: 10px; display: block; text-align: center; padding: 8px 10px; border-radius: 8px; background: #0b8a3e; color: #fff; text-decoration: none; font-size: .9rem; }
.golsha-product-card__btn:hover { color: #fff; opacity: .9; }
.golsha-sale-badge { position: absolute; top: 10px; right: 10px; z-index: 2; background: #d62d3a; color: #fff; font-size: .75rem; padding: 2px 10px; border-radius: 20px; }

/* ---------- صفحه تماس با ما ---------- */
.golsha-contact { max-width: 720px; margin: 0 auto; padding: 32px 16px 56px; }
.golsha-contact__phone { font-size: 1.25rem; font-weight: 700; direction: ltr; display: inline-block; margin-bottom: 20px; color: #02170a; text-decoration: none; }
.golsha-contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.golsha-contact__item a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid #e3e8e5; border-radius: 12px; color: #02170a; text-decoration: none; background: #fff; }
.golsha-contact__item img { width: 32px; height: 32px; }

/* ---------- فرم تسویه: یادداشت سفارش و خطاها ---------- */
.golsha-order-notes { margin-top: 16px; }
.golsha-order-notes textarea { width: 100%; min-height: 90px; resize: vertical; }
.woocommerce-checkout .woocommerce-invalid input.input-text,
.woocommerce-checkout .woocommerce-invalid select { border-color: #d62d3a; }
.woocommerce-NoticeGroup .woocommerce-error, .woocommerce-error {
  list-style: none; margin: 0 0 16px; padding: 12px 16px; border-radius: 10px;
  background: #fdecee; color: #8f1d27; font-size: .9rem; line-height: 2;
}

/* ---------- هدر موبایل: یک ردیف، سبد خرید فقط آیکن ---------- */
.golsha-main-header .golsha-header-row { flex-wrap: nowrap; }
.golsha-main-header .golsha-header-nav { flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 575.98px) {
  .golsha-main-header .container { padding-left: 10px; padding-right: 10px; }
  .golsha-main-header .golsha-header-logo img { max-height: 30px !important; }
  .golsha-main-header .golsha-nav-link,
  .golsha-main-header .golsha-dynamic-menu li a { font-size: .78rem; }
  .golsha-main-header .golsha-dynamic-menu { gap: .5rem !important; }
  .golsha-main-header .golsha-cart-nav-btn { padding: 6px 8px !important; gap: 4px !important; }
  .golsha-main-header .golsha-cart-nav-btn .badge { font-size: .65rem; padding: 3px 6px; }
}

/* ---------- کارت محصولات مرتبط: قیمت زیر هم، بدون به‌هم‌ریختگی ---------- */
.related-products__price-row { flex-direction: column; align-items: stretch !important; gap: 4px; padding: 0 12px 12px; }
.related-products__price-row .related-products__price-title { font-size: .8rem; margin: 0; text-align: right; }
.related-products__price-row .related-products__price { margin: 0 !important; padding: 0 !important; text-align: right; }
.related-products__price-row .text-start { text-align: right !important; }
.related-products__price-row .d-flex { flex-wrap: wrap; gap: 6px; }
.related-products__price-row .disabled-price { margin: 0 !important; }
.related-products__price-row .discount-percent { margin: 0 !important; }
.related-products .related-products__product-title { padding: 0 12px; }

/* ---------- ویژگی‌های زیر عنوان محصول ---------- */
.product__info .product__features { margin-top: 12px; }

/* ---------- فرم آدرس: راست‌چین کردن همه‌ی فیلدها ---------- */
.golsha-checkout-form input,
.golsha-checkout-form select,
.golsha-checkout-form textarea { direction: rtl; text-align: right; }
.golsha-checkout-form input::placeholder,
.golsha-checkout-form textarea::placeholder { direction: rtl; text-align: right; unicode-bidi: plaintext; }

/* ---------- باکس اطلاعات فروشگاه در صفحه پرداخت ---------- */
.golsha-store-notice { margin-top: 16px; padding: 14px 16px; border: 1px solid #cfe8d8; background: #f2fbf5; border-radius: 12px; color: #1b4d2e; font-size: .9rem; line-height: 2; }
.golsha-store-notice p { margin: 0 0 4px; }
.golsha-store-notice p:last-child { margin-bottom: 0; }

/* ---------- اسلایدر محصولات صفحه اصلی ---------- */
.golsha-home-slider .swiper { padding-bottom: 32px; }
.golsha-home-slide { display: flex; align-items: center; gap: 14px; padding: 14px; background: #f2fbf5; border: 1px solid #d7ecdf; border-radius: 16px; text-decoration: none; color: #02170a; }
.golsha-home-slide__img { flex: 0 0 38%; max-width: 38%; }
.golsha-home-slide__img img { width: 100%; height: auto; max-height: 190px; object-fit: contain; display: block; }
.golsha-home-slide__body { display: flex; flex-direction: column; gap: 8px; flex: 1; text-align: right; }
.golsha-home-slide__title { font-size: 1rem; line-height: 1.8; }
.golsha-home-slide__price { font-weight: 700; color: #0b8a3e; }
.golsha-home-slide__btn { align-self: flex-start; background: #0b8a3e; color: #fff; padding: 6px 14px; border-radius: 8px; font-size: .85rem; }
.golsha-home-pagination .swiper-pagination-bullet-active { background: #0b8a3e; }


/* ---------- صفحه پرداخت: آدرس و خلاصه سفارش ---------- */
.golsha-checkout-form .golsha-address-field { font-size: 1rem; line-height: 2; min-height: 110px; resize: vertical; padding: 10px 14px; }
.golsha-checkout-form .form-control, .golsha-checkout-form .form-select { font-size: 1rem; }
#order_review table.shop_table { width: 100%; direction: rtl; }
#order_review table.shop_table th, #order_review table.shop_table td { text-align: right; vertical-align: middle; font-size: .95rem; padding: 10px 0; border-bottom: 1px solid #eef1ef; }
#order_review table.shop_table td:last-child, #order_review table.shop_table th:last-child { text-align: left; }
#order_review table.shop_table .order-total th, #order_review table.shop_table .order-total td { font-weight: 700; font-size: 1.05rem; border-bottom: 0; }

/* عکس مینیمال محصول در خلاصه سفارش */
.golsha-review-item { display: flex; align-items: center; gap: 10px; }
.golsha-review-item img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid #e3e8e5; background: #f6f8f7; flex: 0 0 48px; }
.golsha-review-item__name { line-height: 1.8; }
