/* Shared Persian typography and accessible form controls. No numeric data rewriting. */
@font-face {
  font-family: "Vazirmatn FD";
  src: url("Vazirmatn-FD-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 500;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn FD";
  src: url("Vazirmatn-FD-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}
body { font-family: "Vazirmatn FD", Vazirmatn, Tahoma, sans-serif; }
input, select, textarea, button, .select2-container { font-family: inherit; }
.woocommerce .woocommerce-Price-amount,
.woocommerce .quantity .qty,
.woocommerce .product-quantity,
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-pagination,
.cart-link b {
  font-family: "Vazirmatn FD", Vazirmatn, sans-serif;
  font-variant-numeric: tabular-nums;
}
.woocommerce .woocommerce-Price-amount { white-space: nowrap; }
.woocommerce .woocommerce-Price-currencySymbol { margin-inline-start: 5px; }
input[type="email"], input[type="url"], input[type="password"],
input[autocomplete="username"], #coupon_code {
  font-family: Vazirmatn, Tahoma, sans-serif;
  direction: ltr;
  text-align: left;
}
.woocommerce form .form-row { padding: 0; margin: 0 0 20px; }
.woocommerce form .form-row label,
.contact-form label {
  color: #314b3d;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  margin-bottom: 8px;
}
.woocommerce form .form-row label .optional { font-size: 12px; font-weight: 400; color: #6d786f; }
.woocommerce form .form-row .required { color: #a63f35; text-decoration: none; }
.woocommerce form .form-row .woocommerce-input-wrapper { display: block; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.contact-form input:not([type="checkbox"]),
.contact-form textarea,
.woocommerce form .form-row .select2-selection--single {
  display: block;
  width: 100%;
  min-height: 52px;
  background: #fff;
  border: 1px solid #ccd9cf;
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 16px;
  color: #253b31;
  line-height: 1.6;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}
.woocommerce form .form-row input::placeholder,
.woocommerce form .form-row textarea::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #869187; opacity: 1; font-size: 14px; }
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.woocommerce form .form-row select:focus {
  border-color: #427d59;
  box-shadow: 0 0 0 3px #245e4514;
  outline: 2px solid transparent;
}
.woocommerce form .form-row.woocommerce-invalid input.input-text {
  border-color: #bd5a4b;
  box-shadow: 0 0 0 2px #bd5a4b10;
}
.woocommerce form .form-row.woocommerce-validated input.input-text { border-color: #7b9b80; }
.woocommerce form .form-row .description {
  display: block;
  margin-top: 7px;
  color: #6d786f;
  background: none;
  padding: 0;
  font-size: 12px;
  line-height: 1.9;
}
.woocommerce form .form-row .description::before { display: none; }
.woocommerce form .form-row textarea { min-height: 110px; resize: vertical; }
.woocommerce input[type="checkbox"],
.woocommerce input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #245e45;
  vertical-align: middle;
  cursor: pointer;
}
.woocommerce form .form-row label.checkbox { font-weight: 400; font-size: 14px; }
.woocommerce form .form-row .input-checkbox { position: static; margin: 0 0 0 8px; }
.woocommerce form .form-row .select2-container { width: 100% !important; }
.woocommerce form .form-row .select2-selection--single { padding: 0 14px 0 36px; height: 52px; }
.woocommerce form .form-row .select2-selection--single .select2-selection__rendered {
  line-height: 50px;
  padding: 0;
  color: #253b31;
  font-size: 16px;
}
.woocommerce form .form-row .select2-selection--single .select2-selection__arrow {
  height: 50px;
  width: 32px;
  left: 4px;
  right: auto;
}
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #427d59;
  box-shadow: 0 0 0 3px #245e4514;
}
.select2-dropdown { border-color: #ccd9cf; border-radius: 9px; overflow: hidden; font-size: 15px; }
.select2-search--dropdown { padding: 10px; }
.select2-search--dropdown .select2-search__field { border: 1px solid #ccd9cf; border-radius: 6px; padding: 9px; }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] { background: #245e45; }

/* Checkout: one address panel and a quiet, clearly separated order summary. */
.woocommerce-checkout .commerce-page { padding-top: 25px; }
.commerce-page .page-heading { margin-bottom: 24px; padding: 15px 0 22px; }
.commerce-page .page-heading .eyebrow { font-size: 13px; margin-bottom: 6px; }
.woocommerce-checkout .commerce-page .page-heading h1 { font-size: 30px; }
.woocommerce-checkout .commerce-page > .prose { line-height: 1.8; }
.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .95fr);
  gap: 28px;
  align-items: start;
}
.woocommerce-checkout form.checkout #customer_details {
  width: auto;
  padding: 28px;
  border: 1px solid #dfe7df;
  border-radius: 16px;
  background: #fff;
  min-width: 0;
}
.woocommerce-checkout form.checkout #customer_details::before,
.woocommerce-checkout form.checkout #customer_details::after,
.woocommerce-checkout form.checkout .woocommerce-billing-fields__field-wrapper::before,
.woocommerce-checkout form.checkout .woocommerce-billing-fields__field-wrapper::after,
.woocommerce-checkout form.checkout .woocommerce-shipping-fields__field-wrapper::before,
.woocommerce-checkout form.checkout .woocommerce-shipping-fields__field-wrapper::after { display: none; }
.woocommerce-checkout form.checkout #customer_details > .col-1,
.woocommerce-checkout form.checkout #customer_details > .col-2 {
  float: none;
  width: 100%;
  padding: 0;
}
.woocommerce-checkout form.checkout .woocommerce-billing-fields h3 {
  margin: 0 0 7px;
  font-size: 21px;
  font-weight: 700;
}
.gc-form-intro { color: #6d786f; font-size: 13px; margin-bottom: 25px; line-height: 1.9; }
.woocommerce-checkout form.checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout form.checkout .woocommerce-shipping-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
}
.woocommerce-checkout form.checkout .form-row-first,
.woocommerce-checkout form.checkout .form-row-last {
  float: none;
  width: auto;
  min-width: 0;
}
.woocommerce-checkout form.checkout .form-row-wide { grid-column: 1 / -1; }
.woocommerce-checkout #billing_country_field .woocommerce-input-wrapper strong,
.woocommerce-checkout #shipping_country_field .woocommerce-input-wrapper strong {
  display: block;
  padding: 12px 14px;
  min-height: 52px;
  background: #f5f8f3;
  border: 1px solid #e2e9df;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 400;
}
.woocommerce-checkout #ship-to-different-address {
  border-top: 1px solid #e4eae3;
  padding-top: 22px;
  margin: 8px 0 22px;
  font-size: 14px;
}
.woocommerce-checkout #ship-to-different-address label {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}
.woocommerce-checkout #ship-to-different-address input { margin: 0; flex: none; }
.woocommerce-checkout .woocommerce-additional-fields h3 { font-size: 17px; margin: 24px 0 15px; }
.gc-order-summary {
  min-width: 0;
  background: #f6f9f4;
  border: 1px solid #dfe7dc;
  border-radius: 16px;
  padding: 26px;
  position: sticky;
  top: 24px;
}
.woocommerce-checkout .gc-order-summary #order_review_heading { font-size: 21px; margin: 0 0 18px; }
.woocommerce-checkout .gc-order-summary table.shop_table {
  background: transparent;
  border: 0;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 14px;
}
.woocommerce-checkout .gc-order-summary table.shop_table th,
.woocommerce-checkout .gc-order-summary table.shop_table td { padding: 15px 0; border-color: #dfe7dc; }
.woocommerce-checkout .gc-order-summary table.shop_table thead th {
  color: #6d786f;
  font-weight: 400;
  font-size: 13px;
  padding-top: 0;
}
.woocommerce-checkout .gc-order-summary table.shop_table .product-total,
.woocommerce-checkout .gc-order-summary table.shop_table tfoot td { text-align: left; }
.woocommerce-checkout .gc-order-summary table.shop_table .product-name { padding-inline-end: 15px; }
.woocommerce-checkout .gc-order-summary .product-quantity { color: #6d786f; font-weight: 400; }
.woocommerce-checkout .gc-order-summary .order-total .woocommerce-Price-amount { color: #245e45; font-size: 22px; font-weight: 700; }
.woocommerce-checkout .gc-order-summary .order-total .woocommerce-Price-currencySymbol { font-size: 12px; }
.woocommerce-checkout .gc-order-summary .woocommerce-shipping-methods { text-align: right; }
.woocommerce-checkout .gc-order-summary .woocommerce-shipping-methods li { margin-bottom: 9px !important; line-height: 1.9; }
.woocommerce-checkout .gc-order-summary .woocommerce-shipping-methods label { font-size: 13px; }
.woocommerce-checkout .gc-order-summary #payment { background: transparent !important; border-radius: 0; }
.woocommerce-checkout .gc-order-summary #payment ul.payment_methods { padding: 0; border: 0; }
.woocommerce-checkout .gc-order-summary #payment .payment_box {
  margin: 0 0 18px;
  padding: 13px 15px;
  color: #4b6251;
  background: #e9f0e5;
  border-radius: 8px;
  font-size: 12px;
  line-height: 2;
}
.woocommerce-checkout .gc-order-summary #payment .payment_box::before { display: none; }
.woocommerce-checkout .gc-order-summary #payment .payment_box p { margin: 0; }
.woocommerce-checkout .gc-order-summary #payment div.place-order { padding: 0; margin: 0; }
.woocommerce-checkout .gc-order-summary .woocommerce-privacy-policy-text { color: #6d786f; font-size: 12px; line-height: 2; }
.woocommerce-checkout .gc-order-summary .woocommerce-terms-and-conditions-wrapper .form-row { margin-bottom: 17px; }
.woocommerce-checkout .gc-order-summary #place_order {
  width: 100%;
  min-height: 52px;
  float: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 9px;
}
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
  background: #fff;
  border: 1px solid #dfe7df;
  border-radius: 10px;
  margin-bottom: 22px;
  padding: 16px 57px 16px 18px;
  font-size: 14px;
  line-height: 1.9;
}
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before {
  content: "٪";
  font-family: "Vazirmatn FD", sans-serif;
  color: #245e45;
  background: #edf4ed;
  border-radius: 7px;
  font-size: 19px;
  width: 29px;
  line-height: 29px;
  text-align: center;
  top: 15px;
  right: 16px;
}
.woocommerce-checkout form.checkout_coupon { border-color: #dfe7df; border-radius: 12px; padding: 22px; background: #f8faf6; }
.woocommerce-checkout form.checkout_coupon > p:first-child { font-size: 14px; color: #6d786f; }
.woocommerce-checkout form.checkout_coupon .button { min-height: 52px; border-radius: 9px; }
.woocommerce-account .woocommerce form.login,
.woocommerce-account .woocommerce form.register { border-color: #dfe7df; border-radius: 14px; padding: 24px; }
.woocommerce-account .woocommerce h2 { font-size: 23px; }
.woocommerce .quantity .qty { height: 44px; min-width: 70px; border-radius: 7px; }
.woocommerce-cart .coupon #coupon_code { width: 170px; min-height: 44px; border-radius: 7px; border-color: #ccd9cf; padding: 8px 12px; font-size: 15px; }
@media (max-width: 960px) {
  .woocommerce-checkout form.checkout { grid-template-columns: 1fr; gap: 24px; }
  .gc-order-summary { position: static; padding: 24px; }
}
@media (max-width: 600px) {
  .commerce-page .page-heading { padding-top: 7px; margin-bottom: 20px; }
  .woocommerce-checkout .commerce-page .page-heading h1 { font-size: 27px; }
  .woocommerce-checkout form.checkout #customer_details { padding: 20px 16px; border-radius: 12px; }
  .woocommerce-checkout form.checkout .woocommerce-billing-fields__field-wrapper,
  .woocommerce-checkout form.checkout .woocommerce-shipping-fields__field-wrapper { column-gap: 12px; }
  .woocommerce-checkout form.checkout .woocommerce-billing-fields h3,
  .woocommerce-checkout .gc-order-summary #order_review_heading { font-size: 20px; }
  .gc-form-intro { font-size: 12px; }
  .gc-order-summary { padding: 22px 17px; border-radius: 12px; }
  .woocommerce form .form-row { margin-bottom: 18px; }
  .woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info { font-size: 13px; }
}
@media (max-width: 420px) {
  .woocommerce-checkout form.checkout .woocommerce-billing-fields__field-wrapper,
  .woocommerce-checkout form.checkout .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; }
}
