/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* ==========================================================================
 * GH Tools unified WooCommerce checkout
 * ========================================================================== */

body.woocommerce-checkout .main-page-wrapper {
  background: #fff;
}

body.woocommerce-checkout .site-content {
  padding-top: clamp(24px, 4vw, 52px);
  padding-bottom: clamp(48px, 7vw, 88px);
}

.gh-unified-checkout {
  --gh-ink: #252238;
  --gh-muted: #777286;
  --gh-line: #e8e4df;
  --gh-purple: #4c3b78;
  --gh-purple-dark: #37295e;
  --gh-gold: #c9a45d;
  color: var(--gh-ink);
  font-family: var(--wd-text-font, "Yekan Bakh FaNum", Arial, Helvetica, sans-serif);
  font-size: 14px;
  letter-spacing: 0;
  max-width: 1240px;
  margin: 0 auto;
}

.gh-checkout-heading {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  padding: clamp(24px, 3vw, 34px) clamp(20px, 4vw, 46px);
  border-radius: 22px;
  background: linear-gradient(135deg, #30224f 0%, #4c3b78 65%, #62518e 100%);
  color: #fff;
  text-align: right;
  box-shadow: 0 15px 35px rgba(48, 34, 79, .17);
}

.gh-checkout-heading::after {
  position: absolute;
  top: -74px;
  left: -40px;
  width: 210px;
  height: 210px;
  border: 28px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.gh-checkout-back,
.gh-cart-back {
  position: absolute;
  top: clamp(20px, 2.5vw, 30px);
  left: clamp(18px, 3vw, 34px);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  background: #f0d39a;
  color: #3a2a5e;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 15px rgba(25, 15, 48, .16);
  transition: transform .2s ease, background .2s ease;
}

.gh-checkout-back:hover,
.gh-cart-back:hover {
  background: #f7dfad;
  color: #3a2a5e;
  transform: translateY(-1px);
}

/* Keep theme button decorations out of the unified purchase flow. */
.gh-checkout-back::before,
.gh-checkout-back::after,
.gh-cart-back::before,
.gh-cart-back::after,
.gh-confirmation-back::before,
.gh-confirmation-back::after,
.gh-unified-cart .button::before,
.gh-unified-cart .button::after,
.gh-unified-cart .checkout-button::before,
.gh-unified-cart .checkout-button::after,
.gh-unified-checkout #place_order::before,
.gh-unified-checkout #place_order::after,
.gh-confirmation-primary::before,
.gh-confirmation-primary::after {
  display: none !important;
  content: none !important;
}

.gh-checkout-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #f5dfb1;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}

.gh-checkout-heading h1 {
  margin: 0 0 8px;
  position: relative;
  color: #fff;
  font-size: clamp(25px, 3vw, 37px);
  line-height: 1.35;
}

.gh-checkout-heading > p,
.gh-checkout-section-title p {
  margin: 0;
  color: var(--gh-muted);
  font-size: 14px;
  line-height: 1.8;
}

.gh-checkout-heading > p {
  position: relative;
  max-width: 560px;
  color: rgba(255, 255, 255, .75);
}

.gh-checkout-steps {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  max-width: 590px;
  margin: 24px 0 0 auto;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 13px;
  background: rgba(20, 12, 39, .2);
  list-style: none;
}

.gh-checkout-steps li {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .52);
  font-size: 12px;
  font-weight: 700;
}

.gh-checkout-steps li:not(:last-child)::after {
  content: "";
  height: 1px;
  flex: 1;
  margin: 0 10px;
  background: rgba(255, 255, 255, .2);
}

.gh-checkout-steps li > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}

.gh-checkout-steps .is-done,
.gh-checkout-steps .is-current {
  color: #fff;
}

.gh-checkout-steps .is-done > span,
.gh-checkout-steps .is-current > span {
  border-color: #f0d39a;
  background: #f0d39a;
  color: #3a2a5e;
}

.gh-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(350px, .85fr);
  align-items: start;
  gap: 20px;
}

.gh-checkout-details,
.gh-checkout-summary {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--gh-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(47, 37, 73, .05);
}

.gh-checkout-details {
  padding-right: clamp(8px, 1.5vw, 18px);
  padding-left: clamp(8px, 1.5vw, 18px);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.gh-checkout-summary {
  position: sticky;
  top: 24px;
  border-right: 0;
  background: #fcfbf9;
}

.gh-checkout-section-title {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 26px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--gh-line);
}

.gh-checkout-section-number {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #eee9f5, #e1d8ef);
  color: #3d2d65;
  font-weight: 900;
}

.gh-checkout-section-title h2 {
  margin: 0 0 3px;
  color: var(--gh-ink);
  font-size: 19px;
  line-height: 1.5;
}

.gh-unified-checkout .woocommerce-billing-fields > h3,
.gh-unified-checkout .woocommerce-additional-fields > h3,
.gh-unified-checkout #order_review_heading {
  display: none;
}

/* Country stays available to WooCommerce in the background, but is not part of the approved checkout form. */
.gh-unified-checkout #billing_country_field {
  display: none !important;
}

/* Preserve the approved RTL field map regardless of WooCommerce float helpers. */
.gh-unified-checkout #billing_first_name_field { grid-column: 2; grid-row: 1; }
.gh-unified-checkout #billing_last_name_field { grid-column: 1; grid-row: 1; }
.gh-unified-checkout #billing_phone_field { grid-column: 2; grid-row: 2; }
.gh-unified-checkout #billing_postcode_field { grid-column: 1; grid-row: 2; }

/*
 * The address deliberately carries no grid-row. It used to be pinned to row 3,
 * which forced it above province and city wherever they sat in the form: those
 * two have no row of their own, and auto-placed items land after every pinned
 * one. Left to auto-placement the address follows them in source order, and the
 * same holds on phones, where the grid collapses to a single column.
 */
.gh-unified-checkout #billing_address_1_field { grid-column: 1 / -1; }

/* WooCommerce's float clearer is a grid item too, and it eats a whole cell. */
.gh-unified-checkout .woocommerce-billing-fields__field-wrapper > .clear { display: none; }
.gh-unified-checkout .woocommerce-billing-fields__field-wrapper > .form-row {
  float: none !important;
  width: auto !important;
}

/* The coupon field belongs to the cart; keep checkout aligned with its approved preview. */
body.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.woocommerce-checkout .wd-free-progress-bar {
  display: none !important;
}


.gh-unified-checkout .woocommerce-billing-fields__field-wrapper,
.gh-unified-checkout .woocommerce-shipping-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px 16px;
  max-width: 660px;
}

.gh-unified-checkout .woocommerce-additional-fields__field-wrapper,
.gh-unified-checkout .gh-checkout-shipping {
  width: 100%;
  max-width: 660px;
}

.gh-unified-checkout .form-row {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}

.gh-unified-checkout .form-row-wide,
.gh-unified-checkout #billing_address_1_field,
.gh-unified-checkout #billing_address_2_field {
  grid-column: 1 / -1;
}

.gh-unified-checkout .form-row label {
  display: block;
  margin-bottom: 5px;
  color: #777081;
  font-size: 12px;
  font-weight: 700;
}

.gh-unified-checkout .woocommerce-billing-fields__field-wrapper .form-row,
.gh-unified-checkout .woocommerce-shipping-fields__field-wrapper .form-row,
.gh-unified-checkout .woocommerce-additional-fields__field-wrapper .form-row,
.gh-unified-checkout .gh-checkout-shipping .form-row {
  padding: 11px 13px 10px;
  border: 1px solid #e5dfd8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(53, 42, 79, .025);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.gh-unified-checkout .woocommerce-billing-fields__field-wrapper .form-row:focus-within,
.gh-unified-checkout .woocommerce-shipping-fields__field-wrapper .form-row:focus-within,
.gh-unified-checkout .woocommerce-additional-fields__field-wrapper .form-row:focus-within,
.gh-unified-checkout .gh-checkout-shipping .form-row:focus-within {
  border-color: #a899cb;
  box-shadow: 0 0 0 3px rgba(76, 59, 120, .10);
}

.gh-unified-checkout .woocommerce-additional-fields__field-wrapper .form-row,
.gh-unified-checkout .gh-checkout-shipping .form-row,
.gh-unified-checkout #billing_address_1_field {
  padding-bottom: 4px;
}

.gh-unified-checkout .required {
  color: #9c3452;
}

.gh-unified-checkout input.input-text,
.gh-unified-checkout textarea,
.gh-unified-checkout select,
.gh-unified-checkout .select2-container--default .select2-selection--single {
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f1f0ed;
  color: var(--gh-ink);
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  font: inherit;
}

.gh-unified-checkout .woocommerce-billing-fields__field-wrapper input.input-text,
.gh-unified-checkout .woocommerce-billing-fields__field-wrapper select,
.gh-unified-checkout .woocommerce-billing-fields__field-wrapper textarea,
.gh-unified-checkout .woocommerce-shipping-fields__field-wrapper input.input-text,
.gh-unified-checkout .woocommerce-shipping-fields__field-wrapper select,
.gh-unified-checkout .woocommerce-shipping-fields__field-wrapper textarea,
.gh-unified-checkout .woocommerce-additional-fields__field-wrapper input.input-text,
.gh-unified-checkout .woocommerce-additional-fields__field-wrapper select,
.gh-unified-checkout .woocommerce-additional-fields__field-wrapper textarea,
.gh-unified-checkout .gh-checkout-shipping input.input-text,
.gh-unified-checkout .gh-checkout-shipping textarea {
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.gh-unified-checkout .woocommerce-billing-fields__field-wrapper textarea,
.gh-unified-checkout .woocommerce-shipping-fields__field-wrapper textarea,
.gh-unified-checkout .woocommerce-additional-fields__field-wrapper textarea,
.gh-unified-checkout .gh-checkout-shipping textarea {
  display: block;
  width: 100%;
  height: 28px !important;
  min-height: 28px !important;
  padding: 3px 0 0 !important;
  line-height: 1.5;
  overflow: hidden;
}

.gh-unified-checkout .form-row-wide input.input-text,
.gh-unified-checkout .form-row-wide textarea {
  padding-right: 16px;
}

.gh-unified-checkout input.input-text,
.gh-unified-checkout textarea,
.gh-unified-checkout select {
  padding: 12px 14px;
}

.gh-unified-checkout textarea {
  min-height: 92px;
  resize: vertical;
}

.gh-unified-checkout input.input-text:focus,
.gh-unified-checkout textarea:focus,
.gh-unified-checkout select:focus,
.gh-unified-checkout .select2-container--open .select2-selection--single {
  border-color: #b7a8d8;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(76, 59, 120, .1);
}

.gh-unified-checkout .woocommerce-billing-fields__field-wrapper input.input-text:focus,
.gh-unified-checkout .woocommerce-billing-fields__field-wrapper textarea:focus,
.gh-unified-checkout .woocommerce-shipping-fields__field-wrapper input.input-text:focus,
.gh-unified-checkout .woocommerce-shipping-fields__field-wrapper textarea:focus,
.gh-unified-checkout .woocommerce-additional-fields__field-wrapper input.input-text:focus,
.gh-unified-checkout .woocommerce-additional-fields__field-wrapper textarea:focus,
.gh-unified-checkout .gh-checkout-shipping input.input-text:focus,
.gh-unified-checkout .gh-checkout-shipping textarea:focus {
  box-shadow: none;
}

.gh-unified-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 10px 14px;
  line-height: 28px;
}

.gh-unified-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 12px;
}

.gh-unified-checkout .woocommerce-shipping-fields,
.gh-unified-checkout .woocommerce-additional-fields {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gh-line);
}

.gh-unified-checkout .woocommerce-additional-fields,
.gh-unified-checkout .gh-checkout-shipping {
  margin-top: 16px;
  padding-top: 0;
  border-top: 0;
}

.gh-unified-checkout .woocommerce-checkout-review-order-table {
  margin: 0 0 22px;
  border: 0;
  background: transparent;
}

.gh-unified-checkout .woocommerce-checkout-review-order-table tr:first-child td {
  padding-top: 0;
}

.gh-unified-checkout .woocommerce-checkout-review-order-table th,
.gh-unified-checkout .woocommerce-checkout-review-order-table td {
  padding: 14px 0;
  border-color: var(--gh-line);
  font-size: 13px;
}

.gh-unified-checkout .woocommerce-checkout-review-order-table thead th {
  color: var(--gh-muted);
  font-size: 12px;
  font-weight: 700;
}

.gh-unified-checkout .woocommerce-checkout-review-order-table .product-name {
  padding-left: 14px;
  color: var(--gh-ink);
  font-weight: 700;
}

.gh-unified-checkout .gh-checkout-product-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.gh-unified-checkout .gh-checkout-product-thumbnail {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  overflow: hidden;
  border: 1px solid #e7e1d9;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
}

/* Woodmart prints its own checkout thumbnail; the unified product line already supplies one. */
.gh-unified-checkout .wd-checkout-prod-img {
	display: none !important;
}

/*
 * Quantity can be changed during checkout too. Woodmart prints the stepper;
 * the floor of 1 and the guard against an emptied box live in
 * mu-plugins/ghtools-checkout-quantity.php. The checkout's generic input
 * padding would otherwise leave the 30px box no room for the digit.
 */
.gh-unified-checkout .wd-checkout-prod-title > .quantity {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	width: auto;
	margin-top: 8px;
	border: 1px solid var(--gh-line);
	border-radius: 9px;
	background: #fff;
	overflow: hidden;
}

.gh-unified-checkout .wd-checkout-prod-title > .quantity input.qty {
	width: 40px;
	min-height: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--gh-ink);
	font-size: 14px;
	font-weight: 800;
	text-align: center;
	box-shadow: none;
}

.gh-unified-checkout .wd-checkout-prod-title > .quantity .minus,
.gh-unified-checkout .wd-checkout-prod-title > .quantity .plus {
	width: 30px;
	min-height: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: #f6f4f9;
	color: #4c3b78;
	font-size: 16px;
	line-height: 1;
}

/* A finger needs a bigger target than a mouse pointer. */
@media (pointer: coarse) {
	.gh-unified-checkout .wd-checkout-prod-title > .quantity input.qty {
		width: 44px;
		min-height: 38px;
		height: 38px;
	}

	.gh-unified-checkout .wd-checkout-prod-title > .quantity .minus,
	.gh-unified-checkout .wd-checkout-prod-title > .quantity .plus {
		width: 38px;
		min-height: 38px;
		height: 38px;
	}
}

.gh-unified-checkout .gh-checkout-product-title {
  min-width: 0;
  line-height: 1.7;
}

.gh-unified-checkout .gh-checkout-product-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eee9f5, #d8cdea);
  color: #4c3b78;
  font-size: 12px;
  font-weight: 900;
}

.gh-unified-checkout .order-total th,
.gh-unified-checkout .order-total td {
  color: var(--gh-purple-dark);
  font-size: 16px;
  font-weight: 900;
}

.gh-unified-checkout #payment {
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #f2f0f4;
}

.gh-unified-checkout #payment ul.payment_methods,
.gh-unified-checkout #payment div.form-row {
  padding: 16px;
}

.gh-unified-checkout #payment div.payment_box {
  border-radius: 10px;
  margin: 12px 0 0;
  padding: 11px 12px;
  background: rgba(255, 255, 255, .62);
  color: #5f5869;
  font-size: 12px;
  line-height: 1.8;
}

.gh-unified-checkout #place_order {
  width: 100%;
  min-height: 54px;
  margin-top: 12px;
  border-radius: 11px;
  background: linear-gradient(135deg, #5a468d, #3d2d65);
  color: #fff;
  font-family: var(--wd-text-font, "Yekan Bakh FaNum", Arial, Helvetica, sans-serif) !important;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 10px 24px rgba(76, 59, 120, .2);
}

.gh-unified-checkout #place_order:hover,
.gh-unified-checkout #place_order:focus {
  background: var(--gh-purple-dark);
}

.gh-unified-checkout .woocommerce-privacy-policy-text,
.gh-unified-checkout .woocommerce-terms-and-conditions-wrapper {
  color: var(--gh-muted);
  font-size: 11px;
  line-height: 1.8;
}

/* ==========================================================================
 * GH Tools unified cart
 * ========================================================================== */
body.woocommerce-cart .main-page-wrapper {
  background: #fff;
}

/* Cart notices share the same compact card language as the purchase flow. */
body.woocommerce-cart .woocommerce-notices-wrapper {
  max-width: 1240px;
  margin: 0 auto 18px;
}

body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #d8e7dc;
  border-radius: 14px;
  background: #f6fbf7;
  box-shadow: 0 8px 22px rgba(41, 86, 56, .07);
  color: #2f6641;
  font-family: var(--wd-text-font, "Yekan Bakh FaNum", Arial, Helvetica, sans-serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

body.woocommerce-cart .woocommerce-message::before,
body.woocommerce-cart .woocommerce-info::before,
body.woocommerce-cart .woocommerce-error::before {
  position: static;
  flex: 0 0 auto;
  margin: 0;
  color: #3d8b50;
  font-size: 18px;
}

body.woocommerce-cart .woocommerce-error {
  border-color: #efd8dc;
  background: #fff8f8;
  color: #9a4053;
}

body.woocommerce-cart .woocommerce-error::before { color: #b54e61; }

body.woocommerce-cart .woocommerce-message .restore-item {
  flex: 0 0 auto;
  margin-right: auto;
  padding: 5px 11px;
  border: 1px solid #b8d6bf;
  border-radius: 8px;
  color: #2f6d43;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

body.woocommerce-cart .woocommerce-message .restore-item:hover {
  background: #e6f3e8;
}


@media (max-width: 767px) {
  body.woocommerce-cart .woocommerce-notices-wrapper { margin-bottom: 14px; }
  body.woocommerce-cart .woocommerce-message,
  body.woocommerce-cart .woocommerce-info,
  body.woocommerce-cart .woocommerce-error { align-items: flex-start; padding: 11px 13px; font-size: 12px; }
}

.gh-unified-cart {
  --gh-cart-ink: #252238;
  --gh-cart-line: #e6e0d9;
  --gh-cart-purple: #4c3b78;
  max-width: 1240px;
  margin: 0 auto;
  color: var(--gh-cart-ink);
  font-family: var(--wd-text-font, "Yekan Bakh FaNum", Arial, Helvetica, sans-serif);
  font-size: 14px;
  line-height: 1.65;
}

.gh-unified-cart button,
.gh-unified-cart input,
.gh-unified-cart a {
  font-family: var(--wd-text-font, "Yekan Bakh FaNum", Arial, Helvetica, sans-serif) !important;
}

.gh-checkout-back,
.gh-cart-back,
.gh-confirmation-back,
.gh-unified-cart .button,
.gh-unified-cart .checkout-button,
.gh-unified-checkout #place_order,
.gh-confirmation-primary {
  border: 0 !important;
  text-decoration: none !important;
  appearance: none;
  -webkit-appearance: none;
}

.gh-cart-heading {
  position: relative;
  margin-bottom: 22px;
  padding: clamp(24px, 3vw, 34px) clamp(20px, 4vw, 46px);
  border-radius: 22px;
  background: linear-gradient(135deg, #30224f, #4c3b78 65%, #62518e);
  color: #fff;
  box-shadow: 0 15px 35px rgba(48, 34, 79, .17);
}

.gh-cart-heading::after { position: absolute; top: -74px; left: -40px; width: 210px; height: 210px; border: 28px solid rgba(255,255,255,.07); border-radius: 50%; content: ""; pointer-events: none; }

.gh-cart-kicker { display: inline-block; margin-bottom: 8px; padding: 5px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #f5dfb1; font-size: 13px; font-weight: 800; }
.gh-cart-heading h1 { margin: 0 0 7px; color: #fff; font-size: clamp(25px, 3vw, 37px); }
.gh-cart-heading > p { margin: 0; color: rgba(255,255,255,.75); font-size: 14px; }
.gh-cart-steps { display: flex; gap: 26px; margin: 22px 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.55); font-size: 12px; font-weight: 700; }
.gh-cart-steps li { display: flex; align-items: center; gap: 7px; }
.gh-cart-steps span { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.gh-cart-steps .is-current { color: #fff; }.gh-cart-steps .is-current span { border-color: #f0d39a; background: #f0d39a; color: #3a2a5e; }

.gh-cart-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, .72fr); gap: 20px; align-items: start; min-width: 0; }
.gh-cart-items, .gh-cart-summary { border: 1px solid var(--gh-cart-line); border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgba(47,37,73,.05); }
.gh-cart-items { min-width: 0; overflow: hidden; }
.gh-cart-summary { position: sticky; top: 24px; padding: clamp(22px, 3vw, 34px); background: #fcfbf9; }
.gh-unified-cart .shop_table { width: 100% !important; min-width: 0 !important; margin: 0; border: 0; background: transparent; }
.gh-unified-cart .shop_table th { padding: 18px 16px; border-color: var(--gh-cart-line); color: #7a7486; font-size: 12px; font-weight: 700; }
.gh-unified-cart .shop_table td { padding: 18px 16px; border-color: var(--gh-cart-line); vertical-align: middle; font-size: 13px; }
.gh-unified-cart .product-remove a.remove::before { content: none !important; }
body.woocommerce-cart .wd-free-progress-bar { display: none !important; }
.gh-shipping-coupon-notice { display: flex; align-items: center; gap: 10px; margin: -4px 0 18px; padding: 12px 15px; border: 1px solid #d8e7dc; border-radius: 14px; background: #f6fbf7; color: #2f6641; box-shadow: 0 8px 22px rgba(41, 86, 56, .07); }
.gh-shipping-coupon-notice > span { display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; border-radius: 50%; background: #3d8b50; color: #fff; font-size: 14px; font-weight: 900; }.gh-shipping-coupon-notice p { margin: 0; font-size: 13px; font-weight: 750; line-height: 1.7; }
.gh-unified-cart .product-thumbnail { width: 82px; }.gh-unified-cart .product-thumbnail img { width: 64px; height: 64px; border: 1px solid var(--gh-cart-line); border-radius: 12px; object-fit: cover; }
.gh-unified-cart .product-name a { color: var(--gh-cart-ink); font-weight: 800; }.gh-unified-cart .product-subtotal { color: #3d2d65; font-weight: 900; white-space: nowrap; }
.gh-unified-cart .product-remove .remove { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #f7eaed; color: #a13e55 !important; font-size: 21px; line-height: 1; }
.gh-unified-cart .quantity input.qty { width: 56px; min-height: 38px; border: 1px solid var(--gh-cart-line); border-radius: 9px; text-align: center; }
.gh-unified-cart .actions { padding: 20px 16px !important; background: #fbfaf8; text-align: center; }.gh-unified-cart .coupon { display: flex; float: none !important; width: min(100%, 360px); margin: 0 auto 12px; padding: 5px; gap: 5px; border: 1px solid #e5dfd8; border-radius: 14px; background: #fff; box-shadow: 0 4px 12px rgba(47,37,73,.04); }
.gh-unified-cart .coupon .input-text { min-height: 40px; width: 100%; padding: 0 11px; border: 0; border-radius: 9px; background: transparent; box-shadow: none; }.gh-unified-cart .coupon .button { flex: 0 0 auto; min-height: 40px; margin: 0 !important; padding: 0 15px; border-radius: 9px; background: #eee9f5; color: #4c3b78; font-family: inherit; font-size: 12px; font-weight: 800; }.gh-unified-cart .actions > .button { float: none !important; min-height: 38px; margin: 0 !important; padding: 0 14px; border-radius: 9px; background: transparent; color: #6d657a; font-family: inherit; font-size: 12px; }
.gh-unified-cart .cart_totals > h2 { margin: 0 0 20px; color: var(--gh-cart-ink); font-size: 20px; }.gh-unified-cart .cart_totals table { margin: 0 0 20px; border: 0; }.gh-unified-cart .cart_totals th, .gh-unified-cart .cart_totals td { padding: 13px 0; border-color: var(--gh-cart-line); font-size: 13px; }.gh-unified-cart .cart_totals .order-total th, .gh-unified-cart .cart_totals .order-total td { color: #3d2d65; font-size: 16px; font-weight: 900; }
.gh-unified-cart .cart_totals .woocommerce-shipping-totals,
.gh-unified-cart .cart_totals tr.shipping,
.gh-unified-cart .cart_totals tr.cart-subtotal { display: none !important; }
.gh-unified-cart .shipping-calculator-form,
.gh-unified-cart .shipping-calculator-button { display: none !important; }
.gh-unified-cart .wc-proceed-to-checkout { padding: 0; }.gh-unified-cart .wc-proceed-to-checkout a.checkout-button { display: flex; align-items: center; justify-content: center; min-height: 54px; margin: 0; border-radius: 11px; background: linear-gradient(135deg, #5a468d, #3d2d65); color: #fff; font-family: inherit; font-size: 15px; font-weight: 850; text-decoration: none; }

@media (max-width: 991px) { .gh-cart-layout { grid-template-columns: 1fr; }.gh-cart-summary { position: static; } }
@media (max-width: 767px) { body.woocommerce-cart { overflow-x: clip; }.gh-unified-cart { max-width: 100%; }.gh-cart-heading { padding: 22px 17px 17px; border-radius: 18px; }.gh-cart-steps { gap: 14px; }.gh-cart-layout { gap: 14px; }.gh-cart-items, .gh-cart-summary { border-radius: 16px; }.gh-unified-cart .shop_table, .gh-unified-cart .shop_table tbody { display: block; width: 100% !important; min-width: 0 !important; }.gh-unified-cart .shop_table thead { display: none; }.gh-unified-cart .shop_table tr.cart_item { display: grid; grid-template-columns: 64px minmax(0, 1fr) 34px; gap: 0 12px; width: 100%; padding: 16px; border-bottom: 1px solid var(--gh-cart-line); }.gh-unified-cart .shop_table td { display: block; min-width: 0; padding: 0; border: 0; }.gh-unified-cart .product-thumbnail { grid-row: span 2; width: auto; }.gh-unified-cart .product-name { padding-top: 2px !important; }.gh-unified-cart .product-price { display: none !important; }.gh-unified-cart .product-quantity, .gh-unified-cart .product-subtotal { grid-column: 2; margin-top: 10px; }.gh-unified-cart .product-remove { grid-column: 3; grid-row: 1; }.gh-unified-cart .actions { display: grid !important; width: 100%; gap: 10px; }.gh-unified-cart .coupon { width: min(100%, 360px); margin: 0 auto; }.gh-unified-cart .coupon .input-text { flex: 1; min-width: 0; }.gh-unified-cart .actions > .button { width: auto; margin: 0 auto !important; } }

/* A real phone layout: no horizontal overflow, no overlapping header controls.
   clip, not hidden: WoodMart gives <html> overflow too, and with that a body set to
   hidden turns into a scroll box of its own, so the sticky mobile header stopped sticking. */
@media (max-width: 767px) {
  body.woocommerce-cart,
  body.woocommerce-checkout,
  body.woocommerce-order-received {
    overflow-x: clip;
  }

  .gh-checkout-heading,
  .gh-cart-heading,
  .gh-confirmation-heading {
    padding: 20px 16px 16px;
    border-radius: 18px;
  }

  .gh-checkout-back,
  .gh-cart-back,
  .gh-confirmation-back {
    position: absolute;
    top: 54px;
    left: 16px;
    width: max-content;
    max-width: 100%;
    margin: 0;
  }

  .gh-checkout-heading h1,
  .gh-cart-heading h1,
  .gh-confirmation-heading h1 {
    max-width: calc(100% - 145px);
    font-size: 24px;
  }

  .gh-checkout-heading > p,
  .gh-cart-heading > p,
  .gh-confirmation-heading > p {
    font-size: 12px;
    line-height: 1.85;
  }

  .gh-checkout-steps,
  .gh-cart-steps,
  .gh-confirmation-steps {
    justify-content: space-between;
    gap: 5px;
    font-size: 10px;
  }

  .gh-checkout-steps li,
  .gh-cart-steps li,
  .gh-confirmation-steps li {
    gap: 4px;
    white-space: nowrap;
  }

  .gh-checkout-steps li > span,
  .gh-cart-steps span,
  .gh-confirmation-steps span {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
  }

  .gh-checkout-layout,
  .gh-cart-layout {
    gap: 14px;
  }

  .gh-checkout-summary,
  .gh-cart-summary,
  .gh-confirmation-card {
    border-radius: 16px;
  }

  .gh-unified-cart .product-name a,
  .gh-unified-cart .product-subtotal,
  .gh-unified-cart .product-quantity {
    font-size: 12px;
  }

  .gh-unified-cart .product-thumbnail img,
  .gh-unified-cart .product-thumbnail .gh-checkout-product-thumbnail {
    width: 56px;
    height: 56px;
  }

  .gh-unified-cart .wc-proceed-to-checkout a.checkout-button,
  .gh-unified-checkout #place_order,
  .gh-confirmation-primary {
    width: 100%;
    min-height: 52px;
  }
}

/* ==========================================================================
 * GH Tools order confirmation
 * ========================================================================== */
.gh-order-confirmation { max-width: 900px; margin: 0 auto; color: #252238; font-family: var(--wd-text-font, "Yekan Bakh FaNum", Arial, Helvetica, sans-serif); }
.gh-confirmation-heading { position: relative; overflow: hidden; margin-bottom: 22px; padding: clamp(24px, 3vw, 34px) clamp(20px, 4vw, 46px); border-radius: 22px; background: linear-gradient(135deg, #30224f, #4c3b78 65%, #62518e); color: #fff; box-shadow: 0 15px 35px rgba(48,34,79,.17); }.gh-confirmation-heading::after { position:absolute; top:-74px; left:-40px; width:210px; height:210px; border:28px solid rgba(255,255,255,.07); border-radius:50%; content:""; }
.gh-confirmation-kicker { position:relative; display:inline-block; margin-bottom:8px; padding:5px 10px; border:1px solid rgba(255,255,255,.2); border-radius:999px; color:#f5dfb1; font-size:13px; font-weight:800; }.gh-confirmation-heading h1 { position:relative; margin:0 0 7px; color:#fff; font-size:clamp(25px,3vw,37px); }.gh-confirmation-heading>p { position:relative; margin:0; color:rgba(255,255,255,.75); font-size:14px; }.gh-confirmation-back { position:absolute; top:clamp(20px,2.5vw,30px); left:clamp(18px,3vw,34px); z-index:1; display:inline-flex; align-items:center; min-height:36px; padding:0 13px; border-radius:10px; background:#f0d39a; color:#3a2a5e; font-size:12px; font-weight:800; box-shadow:0 6px 15px rgba(25,15,48,.16); }
.gh-confirmation-steps { position:relative; display:flex; gap:24px; margin:22px 0 0; padding:0; list-style:none; color:rgba(255,255,255,.65); font-size:12px; font-weight:700; }.gh-confirmation-steps li { display:flex; align-items:center; gap:7px; }.gh-confirmation-steps span { display:grid; width:27px; height:27px; place-items:center; border:1px solid rgba(255,255,255,.25); border-radius:50%; }.gh-confirmation-steps .is-done span { background:rgba(255,255,255,.16); }.gh-confirmation-steps .is-current { color:#fff; }.gh-confirmation-steps .is-current span { border-color:#f0d39a; background:#f0d39a; color:#3a2a5e; }
.gh-confirmation-card { padding:clamp(24px,4vw,44px); border:1px solid #e6e0d9; border-radius:20px; background:#fff; box-shadow:0 10px 28px rgba(47,37,73,.05); }.gh-confirmation-status { display:flex; align-items:center; gap:15px; padding-bottom:24px; border-bottom:1px solid #e6e0d9; }.gh-confirmation-icon { display:grid; width:52px; height:52px; flex:0 0 52px; place-items:center; border-radius:16px; background:#e5f2e9; color:#27734a; font-size:27px; font-weight:900; }.gh-confirmation-status h2 { margin:0 0 3px; font-size:21px; }.gh-confirmation-status p { margin:0; color:#777286; font-size:13px; }.gh-order-confirmation.is-failed .gh-confirmation-icon { background:#f8e8eb; color:#a13e55; }
.gh-confirmation-meta { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:24px 0; }.gh-confirmation-meta>div { padding:14px; border-radius:13px; background:#f7f5f8; }.gh-confirmation-meta span { display:block; margin-bottom:4px; color:#7b7488; font-size:11px; }.gh-confirmation-meta strong { color:#3d2d65; font-size:14px; }.gh-confirmation-actions { display:flex; align-items:center; gap:18px; }.gh-order-confirmation .button.gh-confirmation-primary { display:inline-flex; align-items:center; justify-content:center; min-height:52px; padding:0 24px; border:0 !important; border-radius:10px !important; background:linear-gradient(135deg,#5a468d,#3d2d65) !important; box-shadow:0 8px 18px rgba(73,52,111,.18); color:#fff !important; font-family:var(--wd-text-font, "Yekan Bakh FaNum", Arial, Helvetica, sans-serif) !important; font-size:14px; font-weight:800; letter-spacing:0; line-height:1; text-decoration:none !important; text-shadow:none; white-space:nowrap; }.gh-order-confirmation .button.gh-confirmation-primary:hover { background:linear-gradient(135deg,#65509b,#463474) !important; color:#fff !important; }.gh-confirmation-secondary { color:#5e4b8b; font-size:13px; font-weight:700; }
@media (max-width:575px) { .gh-confirmation-back { position:static; margin-bottom:17px; }.gh-confirmation-steps { gap:11px; font-size:11px; }.gh-confirmation-card { padding:22px 16px; border-radius:16px; }.gh-confirmation-meta { grid-template-columns:1fr; gap:9px; margin:19px 0; }.gh-confirmation-actions { flex-direction:column; align-items:stretch; gap:13px; }.gh-confirmation-secondary { text-align:center; } }

/* Confirmation header follows the exact same mobile button position as cart and checkout. */
@media (max-width: 767px) {
  .gh-confirmation-back {
    position: absolute;
    top: 54px;
    left: 16px;
    width: max-content;
    max-width: 100%;
    margin: 0;
  }
}

/* Product rows become compact product cards on small screens. */
@media (max-width: 767px) {
  .gh-unified-cart .shop_table tr.cart_item {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 12px;
    row-gap: 11px;
    padding: 17px 16px;
  }

  .gh-unified-cart .shop_table td::before {
    display: none !important;
  }

  .gh-unified-cart .product-thumbnail {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .gh-unified-cart .product-name {
    grid-column: 2;
    grid-row: 1;
    min-height: 48px;
    padding-left: 32px !important;
  }

  .gh-unified-cart .product-name small,
  .gh-unified-cart .product-name .variation {
    color: #857e91;
    font-size: 10px;
  }

  .gh-unified-cart .product-remove {
    position: absolute;
    top: 15px;
    left: 16px;
    z-index: 1;
  }

  .gh-unified-cart .product-quantity {
    grid-column: 2;
    grid-row: 2;
    display: flex !important;
    align-items: center;
    margin: 0;
  }

  .gh-unified-cart .product-subtotal {
    grid-column: 2;
    grid-row: 3;
    width: auto;
    margin: 0 !important;
    color: #3d2d65;
    font-size: 13px;
    font-weight: 800;
  }

  .gh-unified-cart .quantity input.qty {
    width: 48px;
    min-height: 34px;
    border-radius: 8px;
  }
}

@media (max-width: 991px) {
  .gh-checkout-layout {
    grid-template-columns: 1fr;
  }

  .gh-checkout-summary {
    position: static;
  }
}

/* On phone screens every field stays on its own line. */
@media (max-width: 575px) {
  .gh-unified-checkout .woocommerce-billing-fields__field-wrapper,
  .gh-unified-checkout .woocommerce-shipping-fields__field-wrapper {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    max-width: none;
  }

  .gh-unified-checkout .woocommerce-additional-fields__field-wrapper,
  .gh-unified-checkout .gh-checkout-shipping {
    max-width: none;
  }

  .gh-unified-checkout .form-row,
  .gh-unified-checkout .form-row-wide,
  .gh-unified-checkout #billing_postcode_field,
  .gh-unified-checkout #billing_address_1_field,
  .gh-unified-checkout #billing_address_2_field {
    grid-column: 1;
  }

  .gh-unified-checkout .form-row label {
    margin-bottom: 6px;
  }
}

/* One header rule for every purchase step: title right, back action left, same row. */
.gh-purchase-header-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 8px;
}

.gh-purchase-header-row h1 {
  min-width: 0;
  margin: 0 !important;
}

.gh-purchase-header-row .gh-checkout-back,
.gh-purchase-header-row .gh-cart-back,
.gh-purchase-header-row .gh-confirmation-back {
  position: static !important;
  flex: 0 0 auto;
  margin: 0 !important;
}

.gh-cart-empty-card {
  display: flex;
  min-height: 300px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 42px 24px;
  border: 1px solid var(--gh-cart-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(47, 37, 73, .05);
  text-align: center;
}

.gh-cart-empty-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 18px;
  background: #f2edf9;
  font-size: 28px;
}

.gh-cart-empty-card h2 { margin: 0 0 8px; color: #30224f; font-size: 21px; }
.gh-cart-empty-card p { margin: 0 0 22px; color: #777286; font-size: 14px; }
.gh-cart-empty-action { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 22px; border-radius: 11px; background: linear-gradient(135deg, #5a468d, #3d2d65); color: #fff !important; font-size: 14px; font-weight: 850; text-decoration: none !important; }

@media (max-width: 767px) {
  .gh-purchase-header-row {
    gap: 10px;
    margin-bottom: 9px;
  }

  .gh-purchase-header-row h1 {
    max-width: none !important;
    font-size: 23px !important;
  }

  .gh-purchase-header-row .gh-checkout-back,
  .gh-purchase-header-row .gh-cart-back,
  .gh-purchase-header-row .gh-confirmation-back {
    min-height: 34px;
    padding: 0 10px;
    font-size: 11px;
    white-space: nowrap;
  }
}

@media (max-width: 575px) {
  .gh-checkout-back,
  .gh-cart-back {
    position: static;
    margin-bottom: 17px;
  }

  .gh-unified-checkout {
    margin-inline: 0;
  }

  body.woocommerce-checkout .site-content {
    padding-top: 18px;
    padding-bottom: 36px;
  }

  .gh-checkout-heading {
    margin-bottom: 20px;
  }

  .gh-checkout-heading > p {
    font-size: 13px;
  }

  .gh-checkout-steps li {
    justify-content: center;
    gap: 5px;
  }

  .gh-checkout-steps li:not(:last-child)::after {
    margin: 0 5px;
  }

  .gh-checkout-steps li > span {
    font-size: 12px;
  }

  .gh-checkout-layout {
    gap: 14px;
  }

  .gh-checkout-details,
  .gh-checkout-summary {
    padding: 22px 16px;
    border-radius: 16px;
  }

  .gh-checkout-details {
    padding-right: 0;
    padding-left: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .gh-checkout-section-title {
    gap: 10px;
    margin-bottom: 22px;
  }

  .gh-checkout-section-number {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 9px;
  }

  .gh-checkout-section-title h2 {
    font-size: 17px;
  }

  .gh-checkout-section-title p {
    font-size: 12px;
    line-height: 1.7;
  }

  .gh-unified-checkout .form-row label {
    font-size: 12px;
  }

  .gh-unified-checkout input.input-text,
  .gh-unified-checkout textarea,
  .gh-unified-checkout select {
    min-height: 46px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .gh-unified-checkout #payment ul.payment_methods,
  .gh-unified-checkout #payment div.form-row {
    padding: 14px;
  }

  .gh-checkout-heading {
    margin-inline: -2px;
    padding: 22px 17px 17px;
    border-radius: 18px;
  }

  .gh-checkout-heading h1 {
    font-size: 25px;
  }

  .gh-checkout-steps {
    margin-top: 19px;
    padding: 10px 8px;
  }

  .gh-unified-checkout #place_order {
    min-height: 52px;
    margin-top: 8px;
  }

  .gh-unified-checkout .woocommerce-billing-fields__field-wrapper,
  .gh-unified-checkout .woocommerce-shipping-fields__field-wrapper {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .gh-unified-checkout .form-row,
  .gh-unified-checkout #billing_address_1_field,
  .gh-unified-checkout #billing_address_2_field {
    grid-column: 1;
  }
}


/* Checkout and cart header on a phone.
   The title, the back button and the three steps were laid out as one wide
   row: at 375px the steps needed 336px inside a 314px box, so «تأیید سفارش»
   was clipped by the card's overflow. Give the title its own line, and let the
   steps shrink to their content instead of stretching to fill. */
@media (max-width: 575px) {
  .gh-purchase-header-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .gh-purchase-header-row h1 {
    flex: 1 1 100%;
  }

  .gh-checkout-steps,
  .gh-cart-steps {
    max-width: 100%;
    gap: 6px;
    padding: 10px 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .gh-checkout-steps::-webkit-scrollbar,
  .gh-cart-steps::-webkit-scrollbar {
    display: none;
  }

  .gh-checkout-steps li,
  .gh-cart-steps li {
    flex: 0 1 auto;
    min-width: 0;
    gap: 6px;
    font-size: 11px;
    white-space: nowrap;
  }

  /* The connectors are decoration, and they were eating the width. */
  .gh-checkout-steps li:not(:last-child)::after,
  .gh-cart-steps li:not(:last-child)::after {
    display: none;
  }

  .gh-checkout-steps li > span,
  .gh-cart-steps li > span {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    font-size: 11px;
  }
}

/* Checkout fields on a phone.
   The wrapper was still a two-column grid at 375px and the columns came out
   uneven -- 142px against 189px -- so each pair of boxes was a different size,
   and the province, city and street rows all landed in the narrow column with
   dead space beside them. One column, and let select2 fill the row. */
@media (max-width: 575px) {
  .gh-unified-checkout .woocommerce-billing-fields__field-wrapper,
  .gh-unified-checkout .woocommerce-shipping-fields__field-wrapper,
  .gh-unified-checkout .woocommerce-additional-fields__field-wrapper {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .gh-unified-checkout .form-row {
    padding: 10px 13px 9px;
  }

  .gh-unified-checkout .form-row .select2-container,
  .gh-unified-checkout .form-row .select2-container .select2-selection,
  .gh-unified-checkout .form-row select {
    width: 100% !important;
    max-width: 100%;
  }
}

/* The rows carry explicit grid-column placements for the desktop two-column
   layout. An item placed in column 2 makes a second column exist however the
   template is declared, which is why the single-column rule above looked
   ignored. Put the rows back in flow. */
@media (max-width: 575px) {
  .gh-unified-checkout .woocommerce-billing-fields__field-wrapper > .form-row,
  .gh-unified-checkout .woocommerce-shipping-fields__field-wrapper > .form-row,
  .gh-unified-checkout .woocommerce-additional-fields__field-wrapper > .form-row {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

/* «ممکن است به این محصول نیز علاقه‌مند باشید» under the cart: the heading was
   as loud as the page title and the cards carried the shop's full product
   chrome. Quiet the heading, and let the two cards sit as a plain pair. */
.gh-unified-cart .cross-sells > h2,
.gh-unified-cart .cross-sells > h3,
.cross-sells > h2 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.7;
  color: var(--gh-ink, #2f2350);
}

.cross-sells {
  margin-top: 26px;
  padding: 20px 18px;
  border: 1px solid var(--gh-cart-line, #ece7f5);
  border-radius: 18px;
  background: #fff;
}

@media (max-width: 575px) {
  .cross-sells {
    margin-top: 18px;
    padding: 16px 13px;
    border-radius: 16px;
  }

  .cross-sells > h2,
  .cross-sells > h3 {
    font-size: 15px;
  }

  .cross-sells .product-title,
  .cross-sells .wd-entities-title {
    font-size: 12px;
    line-height: 1.65;
  }

  .cross-sells .price {
    font-size: 13px;
  }
}

/* The cart actions cell holds nothing but hidden inputs since the discount
   field moved below the table, and it was drawing an empty band under every
   cart. A hidden input still posts, so the quantity update is unaffected. */
.gh-unified-cart .actions {
  display: none !important;
}

/* The order summary is the invoice the customer reads before paying, and on a
   phone it was set at desktop proportions: a 22px heading, 47px rows for a
   label and a number, and 22px of padding around all of it. Tighten the type
   and the rows so the whole invoice fits in a glance instead of a scroll. */
@media (max-width: 575px) {
  .gh-cart-summary,
  .gh-unified-checkout .gh-checkout-summary {
    padding: 16px 13px !important;
  }

  .gh-cart-summary h2,
  .gh-unified-checkout .gh-checkout-summary h2 {
    margin-bottom: 10px;
    font-size: 16px;
  }

  .gh-unified-cart .cart_totals table th,
  .gh-unified-cart .cart_totals table td,
  .woocommerce-checkout-review-order-table th,
  .woocommerce-checkout-review-order-table td {
    padding: 8px 0 !important;
    font-size: 12.5px;
    line-height: 1.7;
  }

  .woocommerce-checkout-review-order-table thead th {
    padding: 0 0 7px !important;
    font-size: 11px;
  }

  .woocommerce-checkout-review-order-table tr.cart_item td {
    padding: 9px 0 !important;
  }

  .gh-unified-checkout .gh-checkout-product-thumbnail {
    width: 40px;
    height: auto;
  }

  .gh-unified-checkout .gh-checkout-product-title {
    font-size: 12px;
    line-height: 1.6;
  }

  .gh-unified-cart .cart_totals .order-total th,
  .gh-unified-cart .cart_totals .order-total td,
  .woocommerce-checkout-review-order-table .order-total th,
  .woocommerce-checkout-review-order-table .order-total td {
    padding: 10px 0 0 !important;
    font-size: 15px;
    font-weight: 800;
  }

  .gh-unified-cart .checkout-button,
  .gh-unified-checkout #place_order {
    min-height: 46px;
    margin-top: 12px;
    font-size: 14px;
  }
}

/* ==========================================================================
 * Product page breadcrumb: a soft pill with chevrons instead of bare slashes.
 * The product's own name is dropped from the trail -- it is the big title
 * right below. The home link keeps its text (see mu-plugins/ghtools-seo.php);
 * on phones only the category path shows, the rest stays in the markup.
 * ======================================================================== */
.single-product .wd-el-breadcrumbs .wd-breadcrumbs {
	display: inline-flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 2px;
	max-width: 100%;
	padding: 6px 8px;
	border: 1px solid #ece7f4;
	border-radius: 999px;
	background: #f8f6fb;
	overflow-x: auto;
	scrollbar-width: none;
	font-size: 13px;
	line-height: 1.6;
	white-space: nowrap;
}
.single-product .wd-el-breadcrumbs .wd-breadcrumbs::-webkit-scrollbar { display: none; }
.single-product .wd-el-breadcrumbs .wd-breadcrumbs > a {
	padding: 3px 10px;
	border-radius: 999px;
	color: #6e6880;
	transition: background-color .2s, color .2s;
}
.single-product .wd-el-breadcrumbs .wd-breadcrumbs > a:hover {
	background: #fff;
	color: #4c3b78;
}
.single-product .wd-el-breadcrumbs .wd-breadcrumbs > a.wd-last-link {
	background: #fff;
	box-shadow: 0 1px 4px rgba(76, 59, 120, .1);
	color: #4c3b78;
	font-weight: 700;
}
.single-product .wd-el-breadcrumbs .wd-delimiter {
	display: inline-flex;
	margin: 0;
	color: #c9a45d;
}
/* Woodmart draws its slash here; a small chevron pointing the way Persian reads. */
.single-product .wd-el-breadcrumbs .wd-delimiter::after {
	content: "";
	width: 6px;
	height: 6px;
	margin: 0 6px;
	border-left: 1.6px solid currentColor;
	border-bottom: 1.6px solid currentColor;
	transform: rotate(225deg);
	font-size: 0;
}
.single-product .wd-el-breadcrumbs .wd-last,
.single-product .wd-el-breadcrumbs .wd-last-link + .wd-delimiter {
	display: none;
}
@media (max-width: 767px) {
	.single-product .wd-el-breadcrumbs .wd-breadcrumbs > a:nth-of-type(-n+2),
	.single-product .wd-el-breadcrumbs .wd-breadcrumbs > span.wd-delimiter:nth-of-type(-n+2) {
		display: none;
	}
}
