/* ==========================================================================
   WooCommerce, mapped onto the JH Global design system.
   Loaded after style.css. Only Woo's own class names live here.
   ========================================================================== */

/* Notices -------------------------------------------------------------- */
.woocommerce-notices-wrapper:empty { display: none; }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 var(--sp-2);
  padding: 0.875rem 1rem;
  border: 1px solid var(--c-border);
  border-left-width: 4px;
  border-radius: 10px;
  background: var(--c-offwhite);
  font-size: var(--fs-sm);
  list-style: none;
}

.woocommerce-message { border-left-color: var(--c-primary); background: var(--c-primary-50); color: var(--c-primary-900); }
.woocommerce-info { border-left-color: var(--c-blue); background: var(--c-blue-50); }
.woocommerce-error { border-left-color: #B32D2E; background: #FBE7E6; color: #8A1F20; }
.woocommerce-error li { margin: 0; }

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button { margin-left: auto; }

/* Buttons -------------------------------------------------------------- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
a.button, button.button, input.button,
.wc-block-components-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--c-primary);
  color: #fff;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover { background: var(--c-primary-700); color: #fff; }

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #place_order { background: var(--c-primary); color: #fff; }

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce #place_order:hover { background: var(--c-primary-700); }

.woocommerce .button.wc-backward {
  background: transparent;
  border-color: var(--c-border);
  color: var(--c-ink);
}
.woocommerce .button.wc-backward:hover { background: var(--c-offwhite); color: var(--c-ink); }

/* Proceed to checkout, full width in the summary card */
.wc-proceed-to-checkout { margin: var(--sp-2) 0 0; }
.wc-proceed-to-checkout .checkout-button {
  display: flex;
  width: 100%;
  min-height: 52px;
  font-size: var(--fs-md);
}

/* Quantity ------------------------------------------------------------- */
.quantity { display: inline-flex; }
.stepper--cart { display: inline-flex; align-items: center; gap: 0.25rem; }
.stepper--cart .quantity { margin: 0; }
.stepper--cart input.qty {
  width: 3.25rem;
  min-height: 40px;
  padding: 0.35rem 0.25rem;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  font: inherit;
  -moz-appearance: textfield;
}
.stepper--cart input.qty::-webkit-outer-spin-button,
.stepper--cart input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Cart ----------------------------------------------------------------- */
.cart-table .cart__thumb { display: block; flex: 0 0 auto; width: 72px; }
.cart-table .cart__thumb img,
.woocommerce table.cart img,
.cart-table img {
  width: 72px !important;
  height: 72px !important;
  max-width: none;
  border-radius: 10px;
  object-fit: cover;
}
.cart__thumb { display: block; flex: 0 0 auto; }
.cart__meta p { margin: 0; font-size: var(--fs-xs); color: var(--c-muted); }
.cart__meta dl { margin: 0; font-size: var(--fs-xs); color: var(--c-muted); }
.cart__meta dt, .cart__meta dd { display: inline; margin: 0; }
.cart__meta dt::after { content: ": "; }
.cart__meta dd + dt::before { content: " · "; }

.cart-actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-2); margin-top: var(--sp-3); }
.cart-actions .coupon { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.5rem; }
.cart-actions .coupon label { width: 100%; font-size: var(--fs-xs); color: var(--c-muted); }
.cart-actions .coupon input[type="text"] {
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: var(--c-field);
  font: inherit;
}
.cart-actions .btn--ghost {
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--c-muted);
}
.cart-actions .btn--ghost[disabled] { opacity: .45; cursor: not-allowed; }

.totals__coupon dd a { font-size: var(--fs-xs); }

/* Shipping rows inside the summary, Woo renders its own markup */
.totals tr.woocommerce-shipping-totals { display: block; }
.totals .woocommerce-shipping-totals th,
.totals .woocommerce-shipping-totals td { display: block; padding: 0; text-align: left; }
.totals .woocommerce-shipping-methods { margin: 0; padding: 0; list-style: none; font-size: var(--fs-sm); }
.totals .woocommerce-shipping-methods li { display: flex; gap: .5rem; align-items: baseline; }
.totals .woocommerce-shipping-destination { margin: .5rem 0 0; font-size: var(--fs-xs); color: var(--c-muted); }
.totals .shipping-calculator-button { font-size: var(--fs-xs); }

/* Checkout ------------------------------------------------------------- */
.woocommerce-checkout .form-card {
  padding: var(--sp-3);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  background: #fff;
}
.woocommerce-checkout .form-card h2 { margin-top: 0; }

.woocommerce form .form-row { display: grid; gap: 0.35rem; margin: 0 0 1rem; }
.woocommerce form .form-row label { font-weight: 600; font-size: var(--fs-sm); }
.woocommerce form .form-row .required { color: #B32D2E; text-decoration: none; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container .select2-selection--single {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: var(--c-field);
  font: inherit;
  color: var(--c-ink);
}
.woocommerce form .form-row textarea { min-height: 7rem; resize: vertical; }
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus { outline: 2px solid var(--c-primary); outline-offset: 1px; }

@media (min-width: 640px) {
  .woocommerce form .form-row-first,
  .woocommerce form .form-row-last { display: inline-grid; width: calc(50% - 0.5rem); }
  .woocommerce form .form-row-first { margin-right: 0.75rem; }
}

.woocommerce-checkout #order_review table.shop_table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.woocommerce-checkout #order_review th,
.woocommerce-checkout #order_review td { padding: 0.6rem 0; border-bottom: 1px solid var(--c-border); text-align: left; }
.woocommerce-checkout #order_review td:last-child,
.woocommerce-checkout #order_review th:last-child { text-align: right; }
.woocommerce-checkout #order_review tfoot .order-total th,
.woocommerce-checkout #order_review tfoot .order-total td { font-size: var(--fs-md); font-weight: 700; border-bottom: 0; }

#payment { margin-top: var(--sp-2); }
#payment ul.payment_methods { margin: 0 0 var(--sp-2); padding: 0; list-style: none; display: grid; gap: 0.5rem; }
#payment ul.payment_methods li {
  padding: 0.85rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: var(--c-offwhite);
}
#payment ul.payment_methods li label { font-weight: 600; }
#payment .payment_box { margin: 0.5rem 0 0; font-size: var(--fs-sm); color: var(--c-muted); }
#payment .place-order { margin: 0; }
#payment #place_order { width: 100%; min-height: 52px; font-size: var(--fs-md); }
.woocommerce-terms-and-conditions-wrapper { margin-bottom: var(--sp-2); font-size: var(--fs-sm); }

/* Empty state ---------------------------------------------------------- */
.empty-state { padding: var(--sp-4) var(--sp-2); text-align: center; }
.empty-state__icon { width: 3rem; height: 3rem; color: var(--c-primary); }
.empty-state h2 { margin: var(--sp-2) 0 0.5rem; }
.empty-state p { margin: 0 auto var(--sp-2); max-width: 36rem; color: var(--c-muted); }
.empty-state__alt { font-size: var(--fs-sm); }

/* My account ----------------------------------------------------------- */
.woocommerce-MyAccount-content table.shop_table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.woocommerce-MyAccount-content table.shop_table th,
.woocommerce-MyAccount-content table.shop_table td { padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--c-border); text-align: left; }

/* Price labels from JH Wholesale --------------------------------------- */
.jhw-price__label {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--c-accent-50);
  color: var(--c-accent-ink);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.jhw-tiers { width: 100%; margin: var(--sp-2) 0; border-collapse: collapse; font-size: var(--fs-sm); }
.jhw-tiers caption { margin-bottom: 0.35rem; font-weight: 700; text-align: left; }
.jhw-tiers th, .jhw-tiers td { padding: 0.4rem 0.6rem; border: 1px solid var(--c-border); text-align: left; }
.jhw-tiers th { background: var(--c-offwhite); font-weight: 600; }


/* The cart row stacks on small screens. This theme owns that, not Woo. */
@media (max-width: 1023px) {
  .cart-table tr { grid-template-columns: minmax(0, 1fr) auto; }
  .cart-table .cart__product { grid-column: 1 / -1; display: flex; gap: 0.75rem; align-items: flex-start; }
  .cart-table .cart__remove { justify-self: end; }
  .cart-actions { flex-direction: column; align-items: stretch; }
  .cart-actions .coupon { flex-wrap: nowrap; }
  .cart-actions .coupon input[type="text"] { flex: 1 1 auto; min-width: 0; }
}

/* Woo injects a blocking overlay while the cart updates. Keep it from covering
   the page in a solid white sheet. */
.blockUI.blockOverlay { background: #fff !important; opacity: .55 !important; }

/* ==========================================================================
   Wholesale page
   ========================================================================== */
.trade-hero { padding: var(--sp-4) 0; background: linear-gradient(180deg, var(--c-primary-50), #fff); }
.trade-hero__inner { display: grid; gap: var(--sp-3); align-items: start; }
@media (min-width: 1024px) { .trade-hero__inner { grid-template-columns: minmax(0, 1fr) 22rem; gap: var(--sp-4); } }
.trade-hero h1 { margin: 0.35rem 0 0.75rem; font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.75rem); line-height: 1.12; }
.trade-hero__sub { max-width: 46rem; color: var(--c-muted); font-size: var(--fs-md); }
.trade-hero .eyebrow { margin: 0; color: var(--c-accent-ink); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.trade-hero__ticks { display: grid; gap: 0.5rem; margin: var(--sp-2) 0 var(--sp-3); padding: 0; list-style: none; }
@media (min-width: 640px) { .trade-hero__ticks { grid-template-columns: 1fr 1fr; } }
.trade-hero__ticks li { display: flex; align-items: center; gap: 0.5rem; font-size: var(--fs-sm); font-weight: 600; }
.trade-hero__ticks .icon { width: 1.125rem; height: 1.125rem; color: var(--c-primary); flex: 0 0 auto; }

.trade-hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }

.trade-hero__card { padding: var(--sp-3); border: 1px solid var(--c-border); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(6, 74, 10, .07); }
.trade-hero__card > h2 { margin: 0 0 var(--sp-2); font-size: var(--fs-lg); }

.trade-steps { display: grid; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; counter-reset: none; }
.trade-steps li { display: flex; gap: 0.75rem; align-items: flex-start; }
.trade-steps__n { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 999px; background: var(--c-primary); color: #fff; font-size: var(--fs-sm); font-weight: 700; flex: 0 0 auto; }
.trade-steps strong { display: block; font-size: var(--fs-sm); }
.trade-steps p { margin: 0.15rem 0 0; font-size: var(--fs-xs); color: var(--c-muted); }

.trade-hero__ready { margin-top: var(--sp-3); padding-top: var(--sp-2); border-top: 1px solid var(--c-border); }
.trade-hero__ready p { margin: 0 0 0.4rem; font-size: var(--fs-sm); }
.trade-hero__ready ul { margin: 0; padding-left: 1.1rem; font-size: var(--fs-xs); color: var(--c-muted); }
.trade-hero__ready li { margin-bottom: 0.2rem; }

.trade-benefits { display: grid; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .trade-benefits { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .trade-benefits { grid-template-columns: repeat(4, 1fr); } }
.trade-benefits li { padding: var(--sp-3); border: 1px solid var(--c-border); border-radius: 14px; background: #fff; }
.trade-benefits .icon { width: 1.75rem; height: 1.75rem; color: var(--c-primary); }
.trade-benefits h2 { margin: 0.6rem 0 0.35rem; font-size: var(--fs-md); }
.trade-benefits p { margin: 0; font-size: var(--fs-sm); color: var(--c-muted); }

.trade-apply { display: grid; gap: var(--sp-3); align-items: start; }
@media (min-width: 1024px) { .trade-apply { grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--sp-4); } }
.trade-apply__main > h2 { margin: 0 0 0.35rem; }
.trade-apply__sub { margin: 0 0 var(--sp-3); color: var(--c-muted); font-size: var(--fs-sm); }

.trade-apply__side { display: grid; gap: var(--sp-2); position: sticky; top: calc(var(--header-h, 5rem) + 1rem); }
.trade-side-card { padding: var(--sp-3); border: 1px solid var(--c-border); border-radius: 14px; background: var(--c-offwhite); }
.trade-side-card h2 { margin: 0 0 0.5rem; font-size: var(--fs-md); }
.trade-side-card p { margin: 0 0 0.75rem; font-size: var(--fs-sm); color: var(--c-muted); }
.trade-side-card p:last-child { margin-bottom: 0; }
.trade-side-card__phone { font-size: var(--fs-lg); font-weight: 700; }
.trade-side-card__phone a { color: var(--c-primary-900); text-decoration: none; }
.trade-side-card__hours { font-size: var(--fs-xs); }

/* ==========================================================================
   Sign in and register
   ========================================================================== */
.auth__lead { max-width: 46rem; margin: 0 0 var(--sp-3); color: var(--c-muted); font-size: var(--fs-md); }
.auth--single { max-width: 32rem; }
.auth .form-card { padding: var(--sp-3); border: 1px solid var(--c-border); border-radius: 14px; background: #fff; }
.auth .form-card > h2 { margin: 0 0 var(--sp-2); font-size: var(--fs-lg); }

.auth__split { display: grid; gap: 0 1rem; }
@media (min-width: 480px) { .auth__split { grid-template-columns: 1fr 1fr; } }

.auth .field { margin: 0 0 1rem; }
.auth .field label { display: block; margin-bottom: 0.3rem; font-weight: 600; font-size: var(--fs-sm); }
.auth .field .required { color: #B32D2E; text-decoration: none; }
.auth .field input {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: var(--c-field);
  font: inherit;
  box-sizing: border-box;
}
.auth .field input:focus { outline: 2px solid var(--c-primary); outline-offset: 1px; background: #fff; }
.auth .field__hint,
.auth p.field__hint { display: block; margin: 0.35rem 0 1rem; font-size: var(--fs-xs); color: var(--c-muted); }

.auth label.check { display: flex; gap: 0.6rem; align-items: center; margin: 0 0 var(--sp-2); font-weight: 400; font-size: var(--fs-sm); color: var(--c-muted); }
.auth label.check input { width: 1.1rem; height: 1.1rem; min-height: 0; accent-color: var(--c-primary); }
.auth .auth__row label.check { margin: 0; }
.auth .btn--block { width: 100%; }

/* Woo prints its own password strength meter and reveal button */
.auth .woocommerce-password-strength { margin-top: .4rem; padding: .35rem .6rem; border-radius: 8px; font-size: var(--fs-xs); text-align: left; }
.auth .woocommerce-password-strength.short,
.auth .woocommerce-password-strength.bad { background: #FBE7E6; color: #8A1F20; }
.auth .woocommerce-password-strength.good { background: var(--c-accent-50); color: var(--c-accent-ink); }
.auth .woocommerce-password-strength.strong { background: var(--c-primary-50); color: var(--c-primary-900); }
.auth .show-password-input { position: absolute; right: .75rem; top: 2.2rem; cursor: pointer; }
.auth .password-input { position: relative; display: block; }

.auth-trade {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  padding: var(--sp-3);
  border: 1px solid var(--c-primary-50);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--c-primary-50), #fff);
}
.auth-trade h2 { margin: 0 0 0.35rem; font-size: var(--fs-lg); }
.auth-trade p { margin: 0; max-width: 46rem; color: var(--c-muted); font-size: var(--fs-sm); }

/* Lost password sits on the same page */
.woocommerce-ResetPassword { max-width: 32rem; padding: var(--sp-3); border: 1px solid var(--c-border); border-radius: 14px; background: #fff; }
.woocommerce-ResetPassword .form-row { display: grid; gap: .35rem; margin-bottom: 1rem; }

/* ==========================================================================
   My Account: forms and tables
   ========================================================================== */
.acct-forms { display: grid; gap: var(--sp-2); }
.acct-card { padding: var(--sp-3); border: 1px solid var(--c-border); border-radius: 14px; background: #fff; }
.acct-card__head { margin-bottom: var(--sp-2); padding-bottom: 0.75rem; border-bottom: 1px solid var(--c-border); }
.acct-card__head h2 { margin: 0; font-size: var(--fs-md); }
.acct-card__note { margin: -0.5rem 0 var(--sp-2); font-size: var(--fs-sm); color: var(--c-muted); }

.acct-card .field { margin: 0 0 1rem; }
.acct-card .field:last-of-type { margin-bottom: 0; }
.acct-card .field label { display: block; margin-bottom: 0.3rem; font-weight: 600; font-size: var(--fs-sm); }
.acct-card .field .req { color: #B32D2E; }
.acct-card .field input,
.acct-card .field select,
.acct-card .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: var(--c-field);
  font: inherit;
  color: var(--c-ink);
  box-sizing: border-box;
}
.acct-card .field input:focus,
.acct-card .field select:focus,
.acct-card .field textarea:focus { outline: 2px solid var(--c-primary); outline-offset: 1px; background: #fff; }
.acct-card .field__help { display: block; margin-top: 0.3rem; font-size: var(--fs-xs); color: var(--c-muted); }

.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.consent-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
.consent-list .check { display: flex; gap: 0.65rem; align-items: center; font-size: var(--fs-sm); }
.consent-list .check input { width: 1.1rem; height: 1.1rem; accent-color: var(--c-primary); }

.acct-save { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.acct-save__note { font-size: var(--fs-xs); color: var(--c-muted); }

/* Woo prints its own password meter inside our cards */
.acct-card .woocommerce-password-strength { margin-top: .4rem; padding: .35rem .6rem; border-radius: 8px; font-size: var(--fs-xs); }
.acct-card .woocommerce-password-strength.short,
.acct-card .woocommerce-password-strength.bad { background: #FBE7E6; color: #8A1F20; }
.acct-card .woocommerce-password-strength.good { background: var(--c-accent-50); color: var(--c-accent-ink); }
.acct-card .woocommerce-password-strength.strong { background: var(--c-primary-50); color: var(--c-primary-900); }
.acct-card .woocommerce-password-hint { display: block; margin-top: .35rem; font-size: var(--fs-xs); color: var(--c-muted); }

/* Addresses and orders endpoints, so every account screen matches */
.woocommerce-MyAccount-content .woocommerce-Addresses { display: grid; gap: var(--sp-2); }
@media (min-width: 700px) { .woocommerce-MyAccount-content .woocommerce-Addresses { grid-template-columns: 1fr 1fr; } }
.woocommerce-MyAccount-content .woocommerce-Address { padding: var(--sp-3); border: 1px solid var(--c-border); border-radius: 14px; background: #fff; }
.woocommerce-MyAccount-content .woocommerce-Address-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.woocommerce-MyAccount-content .woocommerce-Address-title h2,
.woocommerce-MyAccount-content .woocommerce-Address-title h3 { margin: 0; font-size: var(--fs-md); }
.woocommerce-MyAccount-content address { font-style: normal; color: var(--c-muted); line-height: 1.6; }

.woocommerce-MyAccount-content .woocommerce-orders-table { border: 1px solid var(--c-border); border-radius: 14px; overflow: hidden; background: #fff; }
.woocommerce-MyAccount-content .woocommerce-orders-table th { background: var(--c-offwhite); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); }
.woocommerce-MyAccount-content .woocommerce-orders-table td .button { min-height: 38px; padding: .45rem .9rem; font-size: var(--fs-sm); }

.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-message { margin-bottom: var(--sp-2); }

/* ==========================================================================
   Header account menu
   ========================================================================== */
.acct-menu { position: relative; }
.acct-menu > summary { list-style: none; }
.acct-menu > summary::-webkit-details-marker { display: none; }

.acct-menu__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: #fff;
  color: var(--c-ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.acct-menu__btn:hover { background: var(--c-offwhite); }
.acct-menu[open] .acct-menu__btn { border-color: var(--c-primary); }
.acct-menu__btn .icon { width: 1.125rem; height: 1.125rem; color: var(--c-primary); }
.acct-menu__btn .icon:last-child { width: 0.9rem; height: 0.9rem; color: var(--c-muted); }
.acct-menu[open] .acct-menu__btn .icon:last-child { transform: rotate(180deg); }
.acct-menu__name { display: none; }
@media (min-width: 900px) { .acct-menu__name { display: inline-flex; align-items: center; gap: 0.4rem; } }

.acct-menu__tag {
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--c-accent-50);
  color: var(--c-accent-ink);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.acct-menu__panel {
  position: absolute;
  right: 0;
  z-index: 60;
  width: 15rem;
  margin-top: 0.4rem;
  padding: 0.75rem;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(6, 74, 10, .14);
}
.acct-menu__hello { margin: 0 0 0.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--c-border); font-size: var(--fs-xs); color: var(--c-muted); }
.acct-menu__panel ul { margin: 0; padding: 0; list-style: none; }
.acct-menu__panel a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.5rem;
  border-radius: 8px;
  color: var(--c-ink);
  font-size: var(--fs-sm);
  text-decoration: none;
}
.acct-menu__panel a:hover { background: var(--c-primary-50); color: var(--c-primary-900); }
.acct-menu__panel .icon { width: 1rem; height: 1rem; color: var(--c-muted); flex: 0 0 auto; }
.acct-menu__out { margin-top: 0.4rem; padding-top: 0.5rem; border-top: 1px solid var(--c-border); color: #B32D2E !important; }
.acct-menu__out:hover { background: #FBE7E6 !important; color: #8A1F20 !important; }

/* ==========================================================================
   Basket table: desktop layout
   The base stylesheet turns every cell into display:table-cell at 1024px,
   which lands after .cart__product{display:flex} and cancels it, so the
   thumbnail stacks above the name. Restore the row and tidy the columns.
   ========================================================================== */
@media (min-width: 1024px) {
  .cart-table { border: 1px solid var(--c-border); border-radius: 14px; background: #fff; border-collapse: separate; border-spacing: 0; overflow: hidden; }
  .cart-table thead th { padding: 0.9rem 1rem; background: var(--c-offwhite); border-bottom: 1px solid var(--c-border); }
  .cart-table td { padding: 1rem; vertical-align: middle; }
  .cart-table tr:last-child td { border-bottom: 0; }

  .cart-table td.cart__product {
    display: flex !important;
    align-items: center;
    gap: 1rem;
    min-width: 18rem;
  }

  /* Hold the three numeric columns to a sensible share so they stop drifting apart */
  .cart-table th:nth-child(2), .cart-table td:nth-child(2) { width: 8rem; }
  .cart-table th:nth-child(3), .cart-table td:nth-child(3) { width: 11rem; }
  .cart-table th:nth-child(4), .cart-table td:nth-child(4) { width: 8rem; }
  .cart-table th:nth-child(5), .cart-table td:nth-child(5) { width: 3.5rem; }
}

.cart-table .product-price { color: var(--c-ink); font-variant-numeric: tabular-nums; }
.cart-table .product-subtotal strong { font-size: var(--fs-md); font-variant-numeric: tabular-nums; }
.cart-table .cart__name { font-size: 1.0625rem; line-height: 1.3; }
.cart-table .cart__meta { margin-top: 0.15rem; }

/* Remove button as a quiet circle that turns red on hover, not a bare cross */
.cart__remove .remove,
.cart__remove .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: #fff;
  color: var(--c-muted);
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.cart__remove .remove:hover,
.cart__remove .icon-btn:hover { border-color: #B32D2E; background: #FBE7E6; color: #B32D2E; }
.cart__remove .icon { width: 1rem; height: 1rem; }

/* Quantity stepper sits centred in its column */
.cart-table .product-quantity { }
.cart-table .stepper--cart { border: 1px solid var(--c-border); border-radius: 999px; padding: 0.2rem; background: #fff; }
.cart-table .stepper--cart .stepper__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: 0; border-radius: 999px;
  background: transparent; color: var(--c-primary); cursor: pointer;
}
.cart-table .stepper--cart .stepper__btn:hover { background: var(--c-primary-50); }
.cart-table .stepper--cart input.qty { border: 0; background: transparent; width: 2.5rem; font-weight: 600; }
.cart-table .stepper--cart input.qty:focus { outline: 2px solid var(--c-primary); outline-offset: 2px; border-radius: 6px; }

/* ==========================================================================
   Brands and Categories index pages
   The home page versions scroll sideways. On their own pages they wrap.
   ========================================================================== */
.brand-grid--page,
.cat-grid--page {
  display: grid;
  overflow: visible;
  grid-auto-flow: row;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.brand-grid--page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cat-grid--page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) {
  .brand-grid--page { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-grid--page { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .brand-grid--page { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cat-grid--page { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.brand-grid--page > li,
.cat-grid--page > li { width: auto; min-width: 0; scroll-snap-align: none; }
.brand-grid--page .brand-tile,
.cat-grid--page .cat-tile { width: 100%; height: 100%; }

.brand-tile__count { font-size: var(--fs-xs); color: var(--c-muted); }
.brand-count { margin: 0 0 var(--sp-2); font-size: var(--fs-sm); color: var(--c-muted); }
.brand-intro { margin-top: var(--sp-3); }
.cat-tile__sub { display: block; margin-top: 0.15rem; font-size: var(--fs-xs); color: var(--c-muted); }

/* ---------------------------------------------------------------------------
   Contact page
   --------------------------------------------------------------------------- */
.jhg-hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.contact-ways {
  display: grid; gap: var(--sp-2); margin: 0 0 var(--sp-3);
  padding: 0; list-style: none;
}
@media (min-width: 720px) { .contact-ways { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.way {
  display: flex; align-items: flex-start; gap: 0.875rem; height: 100%;
  padding: var(--sp-2);
  border: 1px solid var(--c-border); border-radius: var(--radius);
  background: var(--c-white); color: var(--c-text); text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.way:hover { border-color: var(--c-primary); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.way:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.way__icon {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--c-leaf-50); color: var(--c-leaf-700);
}
.way__icon .icon { width: 1.375rem; height: 1.375rem; }
.way--wa .way__icon { background: rgba(18, 140, 126, 0.12); color: var(--c-whatsapp); }
.way__body { display: grid; gap: 0.125rem; min-width: 0; }
.way__label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--c-muted); }
.way__value { font-size: var(--fs-md); font-weight: 700; overflow-wrap: anywhere; }
.way__note { font-size: var(--fs-xs); color: var(--c-muted); }

.contact-map {
  overflow: hidden; border: 1px solid var(--c-border); border-radius: var(--radius);
  background: var(--c-leaf-50); line-height: 0;
}
.contact-map iframe { display: block; width: 100%; height: 300px; border: 0; }

.info-card--legal .legal-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.info-card--legal .legal-list li {
  display: flex; justify-content: space-between; gap: var(--sp-1);
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--c-border);
  font-size: var(--fs-sm);
}
.info-card--legal .legal-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.info-card--legal .legal-list span { color: var(--c-muted); }
.info-card--legal .legal-list strong { text-align: right; overflow-wrap: anywhere; }

.contact-grid .form-card__note { margin-top: 0.875rem; }

/* ---------------------------------------------------------------------------
   Checkout summary: discount code and the extra total rows
   --------------------------------------------------------------------------- */
.totals__discount dt,
.totals__discount dd,
.totals__discount dd .amount { color: var(--c-leaf-700); }
.totals__discount dd a { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--c-muted); }
.totals__shipping dd,
.totals__tax dd,
.totals__fee dd { font-weight: 600; text-align: right; }
.totals__shipping dd { font-size: var(--fs-sm); }
.totals__saved {
  margin: -0.25rem 0 var(--sp-2); padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm); background: var(--c-leaf-50);
  font-size: var(--fs-sm); font-weight: 600; color: var(--c-leaf-700);
}

.totals__promo { margin: 0 0 var(--sp-2); padding-top: var(--sp-2); border-top: 1px dashed var(--c-border); }
.totals__promo-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-sm); font-weight: 600; color: var(--c-leaf-700); text-decoration: none;
}
.totals__promo-toggle:hover { text-decoration: underline; }
.totals__promo-toggle .icon { width: 1.0625rem; height: 1.0625rem; }
.totals__promo .checkout_coupon { margin-top: 0.75rem; }
.totals__promo .coupon-row { display: flex; gap: 0.5rem; }
.totals__promo .coupon-row input[type="text"] {
  flex: 1 1 auto; min-width: 0; min-height: var(--touch);
  padding: 0 0.75rem; border: 1px solid var(--c-input-border); border-radius: var(--radius-sm);
  font: inherit; text-transform: uppercase;
}
.totals__promo .coupon-row input[type="text"]:focus { border-color: var(--c-primary); }
.totals__promo .coupon-row input[type="text"]::placeholder { text-transform: none; }
.totals__promo .coupon-row .btn { flex: 0 0 auto; min-height: var(--touch); padding-inline: 1rem; }
.contact-main { display: grid; gap: var(--sp-3); align-content: start; min-width: 0; }
.contact-faq h2 { margin: 0 0 0.25rem; font-size: var(--fs-lg); }
.contact-faq__intro { margin: 0 0 var(--sp-2); font-size: var(--fs-sm); color: var(--c-muted); }
.contact-map iframe { height: 260px; }
/* style.css defines .field-row--3 before woocommerce.css redefines .field-row,
   so the three column rule has to be restated here to win the cascade. */
@media (min-width: 600px) { .field-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Visit the warehouse: a tight label-and-value list, not the footer's spacing */
.info-card--visit { padding: var(--sp-2); }
.contact-details { display: grid; font-style: normal; margin: 0; }
.contact-details .cd {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.75rem 0; border-top: 1px solid var(--c-border);
}
.contact-details .cd:first-child { padding-top: 0.25rem; border-top: 0; }
.cd__icon {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--c-leaf-50); color: var(--c-leaf-700);
}
.cd__icon .icon { width: 1rem; height: 1rem; }
.cd__icon--wa { background: rgba(18, 140, 126, 0.12); color: var(--c-whatsapp); }
.cd__body { display: grid; gap: 0.125rem; min-width: 0; }
.cd__label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--c-muted); }
.cd__value { font-size: var(--fs-sm); line-height: 1.45; color: var(--c-text); text-decoration: none; overflow-wrap: anywhere; }
a.cd__value { font-weight: 600; }
a.cd__value:hover { color: var(--c-leaf-700); text-decoration: underline; }
.info-card--visit .btn--block { margin-top: var(--sp-2); }

/* WooCommerce ships an absolutely positioned icon font glyph on its notices.
   The theme lays notices out as a flex row, so that glyph lands on top of the
   text. Replace it with an inline icon that takes part in the layout. */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before,
.woocommerce-noreviews::before,
p.no-comments::before {
  content: "";
  position: static;
  flex: 0 0 auto;
  width: 1.25rem; height: 1.25rem;
  margin: 0;
  padding: 0;
  font: inherit;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
.woocommerce-message::before,
.woocommerce-noreviews::before,
p.no-comments::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.5 12.2 2.4 2.4 4.6-4.9'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.5 12.2 2.4 2.4 4.6-4.9'/%3E%3C/svg%3E");
}
.woocommerce-info::before,
.woocommerce-error::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.8v5'/%3E%3Cpath d='M12 16.2h.01'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.8v5'/%3E%3Cpath d='M12 16.2h.01'/%3E%3C/svg%3E");
}
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments { position: relative; padding: 0.875rem 1rem; }

/* Offers: the state when nothing is reduced this week */
.offers-empty {
  display: grid; justify-items: center; gap: 0.75rem;
  max-width: 34rem; margin: 0 auto; padding: var(--sp-4) var(--sp-2);
  border: 1px dashed var(--c-border); border-radius: var(--radius-lg);
  background: var(--c-white); text-align: center;
}
.offers-empty__icon {
  display: grid; place-items: center;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: var(--c-leaf-50); color: var(--c-leaf-700);
}
.offers-empty__icon .icon { width: 1.5rem; height: 1.5rem; }
.offers-empty h2 { margin: 0; font-size: var(--fs-lg); }
.offers-empty p { margin: 0; max-width: 30rem; font-size: var(--fs-sm); color: var(--c-muted); }
.offers-empty__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.625rem; margin-top: 0.25rem; }

/* About: four pillars sit four across rather than three with an orphan */
@media (min-width: 1024px) { .why-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.totals__promo-toggle { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--c-leaf-700); }
.totals__promo-toggle:hover { text-decoration: underline; }
.totals__promo .coupon-row { margin-top: 0.75rem; }
.totals__promo .coupon-row[hidden] { display: none; }
.totals__promo-msg { margin: 0.5rem 0 0; font-size: var(--fs-xs); }
.totals__promo-msg:empty { display: none; }
.totals__promo-msg.is-ok { color: var(--c-leaf-700); }
.totals__promo-msg.is-bad { color: #8A1F20; }

/* Tap targets: the cart stepper and remove control were under 44px on phones */
@media (max-width: 767px) {
  .cart .stepper__btn, .stepper__btn { min-width: 44px; min-height: 44px; }
  .cart__remove .remove,
  .cart__remove .icon-btn,
  .woocommerce-cart-form .remove {
    display: grid; place-items: center;
    width: 44px; height: 44px;
  }
}

/* ---------------------------------------------------------------------------
   Trade account checkout: where the money goes, and who to ring
   --------------------------------------------------------------------------- */
.jhw-pay { display: grid; gap: var(--sp-2); }
.jhw-pay__lead { margin: 0; font-size: var(--fs-sm); }
.jhw-pay__details {
  display: grid; gap: 0; margin: 0;
  border: 1px solid var(--c-border); border-radius: var(--radius);
  background: var(--c-white); overflow: hidden;
}
.jhw-pay__details > div {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
  padding: 0.6rem 0.875rem; border-top: 1px solid var(--c-border);
  font-size: var(--fs-sm);
}
.jhw-pay__details > div:first-child { border-top: 0; }
.jhw-pay__details dt { margin: 0; color: var(--c-muted); }
.jhw-pay__details dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.jhw-pay__ref { background: var(--c-leaf-50); }
.jhw-pay__ref dd strong { color: var(--c-leaf-700); }
.jhw-pay__note, .jhw-pay__terms { margin: 0; font-size: var(--fs-xs); color: var(--c-muted); }
.jhw-pay__terms { padding: 0.6rem 0.75rem; border-radius: var(--radius-sm); background: var(--c-offwhite); color: var(--c-text); }
.jhw-pay__contact { padding-top: var(--sp-1); border-top: 1px dashed var(--c-border); }
.jhw-pay__contact-title { margin: 0 0 0.25rem; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--c-muted); }
.jhw-pay__contact ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0; padding: 0; list-style: none; font-size: var(--fs-sm); }
.jhw-pay__contact a { font-weight: 600; color: var(--c-leaf-700); text-decoration: none; }
.jhw-pay__contact a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------------
   Categories index: proper cards, not the home page's scroller tiles blown up
   --------------------------------------------------------------------------- */
.cat-grid--page { gap: var(--sp-2); }
.cat-grid--page > li { display: flex; }

.cat-grid--page .cat-tile {
  display: grid;
  grid-template-rows: auto auto 1fr;
  width: 100%;
  padding: 0.625rem 0.625rem 0.875rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-white);
  text-align: left;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.cat-grid--page .cat-tile:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.cat-grid--page .cat-tile:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }

.cat-grid--page .cat-tile__img {
  aspect-ratio: 4 / 3;
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
  background: var(--c-leaf-50);
  border: 0;
  overflow: hidden;
}
.cat-grid--page .cat-tile:hover .cat-tile__img { transform: none; box-shadow: none; }
.cat-grid--page .cat-tile__img img { width: 100%; height: 100%; object-fit: cover; }

.cat-grid--page .cat-tile__name {
  margin: 0 0 0.125rem;
  padding-inline: 0.25rem;
  font-family: var(--font-head, inherit);
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  color: var(--c-text);
}
.cat-grid--page .cat-tile__count {
  padding-inline: 0.25rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-align: left;
  color: var(--c-muted);
}
.cat-grid--page .cat-tile__sub {
  padding-inline: 0.25rem;
  margin-top: 0.25rem;
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--c-muted);
}

/* About with no featured image: one readable column, not half an empty grid */
@media (min-width: 1024px) {
  .about--solo { grid-template-columns: minmax(0, 1fr); }
}
.about--solo .about__content { max-width: 58rem; }
.about--solo .about__content p { max-width: 58rem; }

/* Newsletter: the offers link and the result message */
.newsletter__link { margin: 0 0 var(--sp-2); }
.newsletter__link a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.newsletter__msg { margin: 0; font-size: var(--fs-sm); font-weight: 600; }
.newsletter__msg.is-ok { color: var(--c-accent-50); }
.newsletter__msg.is-bad { color: #FFD7D7; }
.newsletter__form .btn--accent { background: var(--c-accent); color: #3A2A00; border-color: var(--c-accent); font-weight: 700; }
.newsletter__form .btn--accent:hover { background: var(--c-accent-600); border-color: var(--c-accent-600); color: #2A1F00; }

/* ---------------------------------------------------------------------------
   Audience cards with a background photo.
   The text sits over a fade, so it stays readable whatever the photo does.
   --------------------------------------------------------------------------- */
.aud-card.has-bg { isolation: isolate; }
.aud-card__media {
  position: absolute; inset: 0; z-index: 0;
  display: block; overflow: hidden; border-radius: inherit;
}
.aud-card__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.aud-card.is-right .aud-card__media img { object-position: right center; }
.aud-card.is-left .aud-card__media img { object-position: left center; }
.aud-card.is-center .aud-card__media img { object-position: center; }

/* The fade. Pale card keeps dark text, dark card keeps white text. */
.aud-card.has-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit;
  pointer-events: none;
}
.aud-card--retail.has-bg::after {
  background:
    linear-gradient(100deg, #F2F5EF 0%, rgba(242, 245, 239, .96) 34%, rgba(242, 245, 239, .72) 52%, rgba(242, 245, 239, .12) 78%, rgba(242, 245, 239, 0) 100%);
}
.aud-card--trade.has-bg::after {
  background:
    linear-gradient(100deg, #064A0A 0%, rgba(6, 74, 10, .95) 34%, rgba(6, 74, 10, .74) 54%, rgba(7, 122, 11, .28) 80%, rgba(7, 122, 11, .12) 100%);
}

/* Everything written stays above the fade. */
.aud-card.has-bg > *:not(.aud-card__media) { position: relative; z-index: 2; }

/* On a phone the card is narrow, so fade from the bottom instead of the side. */
@media (max-width: 767px) {
  .aud-card--retail.has-bg::after {
    background: linear-gradient(180deg, rgba(242, 245, 239, .97) 0%, rgba(242, 245, 239, .9) 55%, rgba(242, 245, 239, .55) 100%);
  }
  .aud-card--trade.has-bg::after {
    background: linear-gradient(180deg, rgba(6, 74, 10, .96) 0%, rgba(6, 74, 10, .88) 55%, rgba(6, 74, 10, .6) 100%);
  }
  .aud-card.has-bg .aud-card__media img { object-position: center; }
}

@media (prefers-reduced-motion: no-preference) {
  .aud-card.has-bg .aud-card__media img { transition: transform .5s ease; }
  .aud-card.has-bg:hover .aud-card__media img { transform: scale(1.03); }
}

/* ===========================================================================
   My Account dashboard
   =========================================================================== */

.dash { display: grid; gap: var(--sp-3); }

.dash__hero {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-2); padding: var(--sp-3);
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, var(--c-primary-900), var(--c-primary) 58%, #0C8F12);
  color: #fff;
}
.dash__eyebrow {
  margin: 0 0 .35rem; font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--c-accent);
}
.dash__title { margin: 0; font-size: var(--fs-h2); line-height: 1.15; color: #fff; }
.dash__sub { margin: .5rem 0 0; max-width: 46ch; color: rgba(255, 255, 255, .88); font-size: var(--fs-sm); }
.dash__hero .btn { flex: 0 0 auto; }

/* --- The four numbers ----------------------------------------------------- */

.dash__stats {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--sp-2);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) { .dash__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.dash-stat {
  position: relative; padding: var(--sp-2);
  border: 1px solid var(--c-border); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-sm);
}
.dash-stat__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; margin-bottom: .6rem;
  border-radius: 10px; background: var(--c-primary-50); color: var(--c-primary-700);
}
.dash-stat__icon .icon { width: 1.125rem; height: 1.125rem; }
.dash-stat strong {
  display: block; font-size: 1.5rem; line-height: 1.1; color: var(--c-text);
}
.dash-stat strong .woocommerce-Price-amount { font-size: inherit; }
.dash-stat > span:last-child { display: block; margin-top: .25rem; font-size: var(--fs-xs); color: var(--c-muted); }
.dash-stat--trade { border-color: var(--c-accent); background: var(--c-accent-50); }
.dash-stat--trade .dash-stat__icon { background: #fff; color: var(--c-accent-ink); }

/* --- Cards ---------------------------------------------------------------- */

.dash__grid { display: grid; gap: var(--sp-2); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .dash__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.dash-card {
  padding: var(--sp-2) var(--sp-3) var(--sp-3);
  border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-sm);
}
@media (min-width: 900px) { .dash-card--wide { grid-column: 1 / -1; } }

.dash-card__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-1);
  margin-bottom: var(--sp-2); padding-bottom: .75rem; border-bottom: 1px solid var(--c-border);
}
.dash-card__head h3 { margin: 0; font-size: var(--fs-lg); }
.dash-card__note { margin: 0 0 var(--sp-1); color: var(--c-muted); font-size: var(--fs-sm); }

.dash-address { margin: 0; font-style: normal; line-height: 1.7; color: var(--c-text); }

/* --- Recent orders -------------------------------------------------------- */

.dash-orders { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.dash-order {
  display: grid; gap: .5rem var(--sp-2); align-items: center;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: .85rem 1rem;
  border: 1px solid var(--c-border); border-radius: var(--radius);
  background: var(--c-offwhite);
}
.dash-order__no { font-weight: 700; color: var(--c-text); text-decoration: none; }
.dash-order__no:hover { color: var(--c-primary-700); text-decoration: underline; }
.dash-order__meta { display: block; margin-top: .15rem; font-size: var(--fs-xs); color: var(--c-muted); }
.dash-order__status {
  padding: .3rem .7rem; border-radius: var(--radius-pill);
  background: var(--c-primary-50); color: var(--c-primary-700);
  font-size: var(--fs-xs); font-weight: 700; white-space: nowrap;
}
.dash-order__status.is-on-hold, .dash-order__status.is-pending { background: var(--c-accent-50); color: var(--c-accent-ink); }
.dash-order__status.is-cancelled, .dash-order__status.is-failed { background: var(--c-red-50); color: var(--c-red-700); }
.dash-order__total { font-weight: 700; white-space: nowrap; }
@media (max-width: 599px) {
  .dash-order { grid-template-columns: minmax(0, 1fr) auto; }
  .dash-order__total { grid-column: 2; }
}

/* --- Empty state ---------------------------------------------------------- */

.dash-empty { padding: var(--sp-3) var(--sp-2); text-align: center; }
.dash-empty__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; margin-bottom: var(--sp-1);
  border-radius: 50%; background: var(--c-primary-50); color: var(--c-primary-700);
}
.dash-empty__icon .icon { width: 1.5rem; height: 1.5rem; }
.dash-empty__title { margin: 0 0 .3rem; font-weight: 700; font-size: var(--fs-md); }
.dash-empty__sub { margin: 0 auto var(--sp-2); max-width: 42ch; color: var(--c-muted); font-size: var(--fs-sm); }

/* --- Quick links ---------------------------------------------------------- */

.dash-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.dash-links a {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem .85rem; border-radius: var(--radius-sm);
  color: var(--c-text); text-decoration: none; font-weight: 600; font-size: var(--fs-sm);
}
.dash-links a:hover { background: var(--c-primary-50); color: var(--c-primary-700); }
.dash-links a > span { flex: 1 1 auto; }
.dash-links .icon { width: 1.125rem; height: 1.125rem; color: var(--c-primary-700); flex: 0 0 auto; }
.dash-links a:hover .icon:last-child { transform: translateX(2px); }
.dash-links .icon:last-child { color: var(--c-muted); transition: transform .15s ease; }

/* --- Trade promo ---------------------------------------------------------- */

.dash-card--promo {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-2); border: 0;
  background: linear-gradient(120deg, #0A40A8, #123C86 70%);
}
.dash-card--promo h3 { margin: 0 0 .35rem; color: #fff; font-size: var(--fs-lg); }
.dash-card--promo p { margin: 0; max-width: 52ch; color: rgba(255, 255, 255, .86); font-size: var(--fs-sm); }

/* ===========================================================================
   Sign in and create account: one split card
   =========================================================================== */

.auth__lead { display: none; }

.authbox {
  display: grid; grid-template-columns: minmax(0, 1fr);
  max-width: 62rem; margin: 0 auto;
  border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-md); overflow: hidden;
}
@media (min-width: 880px) { .authbox { grid-template-columns: 1fr 1fr; } }

/* --- Brand panel ---------------------------------------------------------- */

.authbox__brand {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-3);
  background:
    radial-gradient(120% 95% at 85% 0%, rgba(235, 176, 16, .22), transparent 58%),
    linear-gradient(145deg, var(--c-primary-900), var(--c-primary) 55%, #0C8F12);
  color: #fff;
}
@media (min-width: 880px) { .authbox__brand { padding: var(--sp-5) var(--sp-4); } }

.authbox__eyebrow {
  margin: 0 0 .9rem; font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent);
}
.authbox__title {
  margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem); line-height: 1.12;
  letter-spacing: -0.015em; color: #fff;
}
.authbox__sub {
  margin: .9rem 0 0; max-width: 34ch;
  color: rgba(255, 255, 255, .86); font-size: var(--fs-sm); line-height: 1.6;
}

.authbox__ticks { list-style: none; margin: var(--sp-3) 0 0; padding: 0; display: grid; gap: .7rem; }
.authbox__ticks li {
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: var(--fs-sm); line-height: 1.5; color: rgba(255, 255, 255, .94);
}
.authbox__ticks .icon {
  flex: 0 0 auto; width: 1.25rem; height: 1.25rem; padding: .18rem;
  border-radius: 50%; background: rgba(255, 255, 255, .16); color: var(--c-accent);
}
.authbox__foot {
  margin: 0; padding-top: var(--sp-2); border-top: 1px solid rgba(255, 255, 255, .22);
  font-size: var(--fs-xs); letter-spacing: .04em; color: rgba(255, 255, 255, .74);
}

/* --- Form panel ----------------------------------------------------------- */

.authbox__panel { padding: var(--sp-3); }
@media (min-width: 880px) { .authbox__panel { padding: var(--sp-5) var(--sp-4); } }

.authbox__pane[hidden] { display: none; }

.authbox__logo { display: inline-block; margin-bottom: var(--sp-2); }
.authbox__logo img { width: auto; height: 3rem; }

.authbox__h { margin: 0; font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -0.015em; }
.authbox__p { margin: .35rem 0 var(--sp-3); color: var(--c-muted); font-size: var(--fs-sm); }

.authbox__panel .field { margin-bottom: var(--sp-2); }
.authbox__panel .field label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: var(--fs-sm); }
.authbox__panel .field input {
  width: 100%; padding: .8rem .9rem;
  border: 1px solid var(--c-input-border); border-radius: var(--radius-sm);
  background: #fff; font-size: var(--fs-base);
}
.authbox__panel .field input:focus {
  outline: 2px solid var(--c-primary); outline-offset: 1px; border-color: var(--c-primary);
}

.authbox .auth__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem; margin-bottom: var(--sp-2);
}
.authbox .auth__row .check { margin: 0; font-size: var(--fs-sm); }
.authbox .auth__row .link-more { font-size: var(--fs-sm); }

/* The "NEW TO JH GLOBAL?" rule. */
.authbox__divider {
  position: relative; margin: var(--sp-3) 0 var(--sp-2); text-align: center;
}
.authbox__divider::before {
  content: ""; position: absolute; inset: 50% 0 auto; height: 1px;
  background: var(--c-border);
}
.authbox__divider span {
  position: relative; padding: 0 .85rem; background: #fff;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--c-muted);
}

.authbox__back {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: var(--sp-3); font-size: var(--fs-sm); font-weight: 600;
  color: var(--c-muted); text-decoration: none;
}
.authbox__back:hover { color: var(--c-primary-700); }
.authbox__back .icon { width: 1rem; height: 1rem; }

.authbox .auth__small { margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--c-muted); }
.authbox .auth__split { display: grid; gap: 0 var(--sp-2); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 480px) { .authbox .auth__split { grid-template-columns: 1fr 1fr; } }

/* Notices belong above the card, not stretched across the split. */
.woocommerce-account .woocommerce-notices-wrapper { max-width: 62rem; margin: 0 auto var(--sp-2); }

/* The same split card carries the trade application. */
.authbox--trade { max-width: 72rem; }
@media (min-width: 880px) { .authbox--trade { grid-template-columns: 2fr 3fr; } }
.authbox__cta { margin: var(--sp-3) 0 0; font-size: var(--fs-sm); color: rgba(255, 255, 255, .86); }
.authbox__cta a { display: block; color: #fff; font-weight: 700; }
.authbox__cta a:first-of-type { font-size: var(--fs-lg); margin-top: .2rem; }
.authbox__wa { margin-top: .4rem; font-size: var(--fs-sm); color: var(--c-accent) !important; }
.authbox--trade .authbox__panel .jhw-field label { font-weight: 600; font-size: var(--fs-sm); }
.authbox--trade .authbox__panel input[type="text"],
.authbox--trade .authbox__panel input[type="email"],
.authbox--trade .authbox__panel input[type="tel"],
.authbox--trade .authbox__panel input[type="password"],
.authbox--trade .authbox__panel select,
.authbox--trade .authbox__panel textarea {
  width: 100%; padding: .8rem .9rem;
  border: 1px solid var(--c-input-border); border-radius: var(--radius-sm); background: #fff;
}

/* The sign in screen stands on its own, with no header or footer. */
.jhg-auth-screen { background: var(--c-offwhite); }
.auth-screen {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-4) var(--sp-2);
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(7, 122, 11, .08), transparent 70%),
    var(--c-offwhite);
}
.auth-screen > .container { width: 100%; max-width: 62rem; }
.auth-screen > .container { display: grid; gap: var(--sp-2); }

/* The trade prompt becomes a slim line under the card, not a second band. */
.jhg-auth-screen .auth-trade {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .25rem var(--sp-1); margin: 0; padding: 0; border: 0; background: none;
  text-align: center; font-size: var(--fs-sm); color: var(--c-muted);
}
.jhg-auth-screen .auth-trade__copy { display: contents; }
.jhg-auth-screen .auth-trade h2 { margin: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--c-muted); }
.jhg-auth-screen .auth-trade p { display: none; }
.jhg-auth-screen .auth-trade .btn {
  padding: 0; border: 0; background: none; color: var(--c-primary-700);
  font-size: var(--fs-sm); font-weight: 700; text-decoration: underline;
}
.jhg-auth-screen .woocommerce-notices-wrapper { max-width: 62rem; margin: 0 auto var(--sp-2); }

/* ===========================================================================
   Product page: the buy row
   =========================================================================== */

.pdp__info form.cart {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
  margin: var(--sp-2) 0;
}
.pdp__info form.cart .quantity { display: inline-flex; margin: 0; }
.pdp__info form.cart input.qty {
  width: 5rem; height: 3.25rem; padding: 0 .5rem;
  border: 1px solid var(--c-input-border); border-radius: var(--radius-sm);
  background: #fff; text-align: center; font-size: var(--fs-md); font-weight: 700;
  color: var(--c-text); -moz-appearance: textfield;
}
.pdp__info form.cart input.qty:focus { outline: 2px solid var(--c-primary); outline-offset: 1px; border-color: var(--c-primary); }
.pdp__info form.cart input.qty::-webkit-outer-spin-button,
.pdp__info form.cart input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pdp__info .single_add_to_cart_button {
  flex: 1 1 13rem; min-height: 3.25rem;
  padding: 0 var(--sp-3); border: 0; border-radius: var(--radius-sm);
  background: var(--c-primary); color: #fff;
  font-size: var(--fs-md); font-weight: 700; line-height: 3.25rem; text-align: center;
  cursor: pointer; transition: background .15s ease, transform .1s ease;
}
.pdp__info .single_add_to_cart_button:hover { background: var(--c-primary-700); }
.pdp__info .single_add_to_cart_button:active { transform: translateY(1px); }
.pdp__info .single_add_to_cart_button:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.pdp__info .single_add_to_cart_button.disabled,
.pdp__info .single_add_to_cart_button[disabled] { background: var(--c-muted); cursor: not-allowed; }

/* A bare price from a plugin should still look like the rest of the page. */
.pdp__info > p.price { margin: 0 0 var(--sp-1); font-size: var(--fs-lg); font-weight: 700; color: var(--c-text); }

.pdp__info .stock { margin: 0 0 var(--sp-1); font-size: var(--fs-sm); font-weight: 600; }
.pdp__info .stock.in-stock { color: var(--c-primary-700); }
.pdp__info .stock.out-of-stock { color: var(--c-red-700); }

/* --- Variable products ---------------------------------------------------- */

.pdp__info table.variations { width: 100%; margin: 0 0 var(--sp-2); border: 0; border-collapse: collapse; }
.pdp__info table.variations th,
.pdp__info table.variations td { padding: 0 0 .6rem; border: 0; text-align: left; vertical-align: middle; }
.pdp__info table.variations th { width: 8rem; font-size: var(--fs-sm); font-weight: 600; color: var(--c-muted); }
.pdp__info table.variations select {
  width: 100%; height: 3rem; padding: 0 .75rem;
  border: 1px solid var(--c-input-border); border-radius: var(--radius-sm);
  background: #fff; font-size: var(--fs-base); color: var(--c-text);
}
.pdp__info table.variations select:focus { outline: 2px solid var(--c-primary); outline-offset: 1px; }
.pdp__info .reset_variations {
  display: inline-block; margin-top: .25rem;
  font-size: var(--fs-xs); font-weight: 600; color: var(--c-muted);
}
.pdp__info .woocommerce-variation-price {
  margin-bottom: var(--sp-1); font-size: var(--fs-lg); font-weight: 700; color: var(--c-text);
}
.pdp__info .woocommerce-variation-availability .stock { margin: 0; }

@media (max-width: 420px) {
  .pdp__info .single_add_to_cart_button { flex: 1 1 100%; }
}

/* --- Related and upsell rows ---------------------------------------------- */

.related.products,
.upsells.products {
  margin-top: var(--sp-4);
}
.related.products > h2,
.upsells.products > h2 {
  margin: 0 0 var(--sp-2);
  font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -0.015em;
}
/* These two carry WooCommerce's own class names, so they are pinned to block
   in case a grid rule elsewhere ever catches them and splits heading from row. */
.related.products,
.upsells.products { display: block; }
.related.products .grid-products,
.upsells.products .grid-products { width: 100%; }

/* Four related products, so the row skips the three-column step the listing
   grids use. Two across, then four across. Both divide into four exactly, so
   the fourth card never drops onto a row by itself. */
.related.products .grid-products,
.upsells.products .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) {
  .related.products .grid-products,
  .upsells.products .grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Nothing on a product page may push the page sideways. */
.pdp img,
.related.products img,
.upsells.products img { max-width: 100%; height: auto; }

/* A stray wide element used to give the product page a sideways scrollbar.
   clip, not hidden, so position: sticky still works inside. */
body.single-product { overflow-x: clip; }

/* --- Delivery choice in the basket summary -------------------------------- */

.totals__ship { display: block; }
.totals__ship dt,
.totals__ship th { display: block; margin-bottom: .5rem; font-weight: 700; }
.totals__ship dd,
.totals__ship td { display: block; margin: 0; padding: 0; text-align: left; }

.totals .woocommerce-shipping-methods {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: .4rem;
}
.totals .woocommerce-shipping-methods li {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .7rem .8rem;
  border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  background: #fff; font-size: var(--fs-sm); line-height: 1.4;
}
.totals .woocommerce-shipping-methods li:hover { border-color: var(--c-primary); }
.totals .woocommerce-shipping-methods input[type="radio"] {
  margin: .15rem 0 0; accent-color: var(--c-primary); flex: 0 0 auto;
}
.totals .woocommerce-shipping-methods label { flex: 1 1 auto; cursor: pointer; }
.totals .woocommerce-shipping-methods .amount { font-weight: 700; }
.totals .woocommerce-shipping-methods li:has(input:checked) {
  border-color: var(--c-primary); background: var(--c-primary-50);
}

.totals__ship-note { margin: .5rem 0 0; font-size: var(--fs-xs); color: var(--c-muted); }
.totals .woocommerce-shipping-destination { margin: 0; font-size: var(--fs-sm); color: var(--c-muted); }
.totals .shipping-calculator-button {
  display: inline-block; margin-top: .5rem;
  font-size: var(--fs-sm); font-weight: 600; color: var(--c-primary-700);
}
.totals .shipping-calculator-form { margin-top: .6rem; }
.totals .shipping-calculator-form p { margin: 0 0 .5rem; }
.totals .shipping-calculator-form input,
.totals .shipping-calculator-form select {
  width: 100%; padding: .6rem .7rem;
  border: 1px solid var(--c-input-border); border-radius: var(--radius-sm); background: #fff;
}

/* ===========================================================================
   Bank transfer: details and receipt upload
   =========================================================================== */

.bankbox {
  margin: var(--sp-3) 0;
  padding: var(--sp-3);
  border: 1px solid var(--c-border); border-left: 4px solid var(--c-primary);
  border-radius: var(--radius); background: var(--c-primary-50);
}
.bankbox__title { margin: 0 0 .4rem; font-size: var(--fs-lg); }
.bankbox__lead { margin: 0 0 var(--sp-2); max-width: 60ch; font-size: var(--fs-sm); color: var(--c-muted); }
.bankbox__list { margin: 0; display: grid; gap: .5rem; }
.bankbox__list > div {
  display: flex; flex-wrap: wrap; gap: .25rem var(--sp-2);
  padding: .55rem .75rem; border-radius: var(--radius-sm); background: #fff;
}
.bankbox__list dt { flex: 0 0 11rem; font-size: var(--fs-sm); color: var(--c-muted); }
.bankbox__list dd { margin: 0; font-weight: 700; letter-spacing: .02em; }

.proof {
  margin: var(--sp-3) 0;
  padding: var(--sp-3);
  border: 1px dashed var(--c-border); border-radius: var(--radius); background: #fff;
}
.proof__title { margin: 0 0 .4rem; font-size: var(--fs-lg); }
.proof__lead, .proof__swap { margin: 0 0 var(--sp-2); max-width: 60ch; font-size: var(--fs-sm); color: var(--c-muted); }
.proof__ok, .proof__have {
  margin: 0 0 var(--sp-2); padding: .7rem .9rem;
  border-radius: var(--radius-sm); background: var(--c-primary-50);
  color: var(--c-primary-700); font-weight: 600; font-size: var(--fs-sm);
}
.proof__err {
  margin: 0 0 var(--sp-2); padding: .7rem .9rem;
  border-radius: var(--radius-sm); background: var(--c-red-50);
  color: var(--c-red-700); font-weight: 600; font-size: var(--fs-sm);
}
.proof__form { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1); }
.proof__file { flex: 1 1 18rem; }
.proof__file input[type="file"] {
  width: 100%; padding: .7rem;
  border: 1px solid var(--c-input-border); border-radius: var(--radius-sm);
  background: var(--c-offwhite); font-size: var(--fs-sm);
}
.proof__hint { flex: 1 1 100%; margin: 0; font-size: var(--fs-xs); color: var(--c-muted); }

/* Place order now sits in the summary column. */
.totals #payment { margin-top: var(--sp-2); background: transparent; border-radius: 0; }
.totals #payment ul.payment_methods { border: 0; padding: 0; }
.totals #payment #place_order { width: 100%; min-height: 52px; }
.totals #payment .woocommerce-privacy-policy-text { font-size: var(--fs-xs); color: var(--c-muted); }

/* On a failed submit, WooCommerce prepends its error group as the first child
   of the checkout form. The form is a two column grid, so without this the
   notice took the first column and pushed the customer details into the
   narrow summary column. It gets a full row of its own instead. */
.checkout > .woocommerce-NoticeGroup,
.checkout > .woocommerce-error,
.checkout > .woocommerce-message,
.checkout > .woocommerce-info {
  grid-column: 1 / -1;
  margin: 0 0 var(--sp-2);
}
.checkout > .woocommerce-NoticeGroup > ul { margin: 0; }

/* ===========================================================================
   Pay and upload: two numbered steps the customer cannot miss
   =========================================================================== */

.payflow { margin: var(--sp-3) 0; display: grid; gap: var(--sp-2); }

.payflow__banner {
  display: flex; align-items: flex-start; gap: var(--sp-2);
  padding: var(--sp-3);
  border-radius: var(--radius-lg);
}
.payflow__banner--todo { background: #FFF6E0; border: 1px solid #F0C462; }
.payflow__banner--ok { background: var(--c-primary-50); border: 1px solid #BFD8C0; }
.payflow__banner-icon {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  font-size: 1.25rem; font-weight: 700; line-height: 1;
}
.payflow__banner--todo .payflow__banner-icon { background: #F0C462; color: #5A3C00; }
.payflow__banner--ok .payflow__banner-icon { background: var(--c-primary); color: #fff; }
.payflow__banner-title { margin: 0 0 .2rem; font-size: var(--fs-lg); font-weight: 700; line-height: 1.25; }
.payflow__banner-sub { margin: 0; max-width: 60ch; font-size: var(--fs-sm); line-height: 1.55; }
.payflow__banner-sub strong { white-space: nowrap; }

/* --- A step ---------------------------------------------------------------- */

.paystep {
  padding: var(--sp-3);
  border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  background: #fff;
}
.paystep.is-now { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-50); }
.paystep.is-done { background: var(--c-offwhite); }

.paystep__head {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}
.paystep__num {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--c-primary); color: #fff;
  font-size: var(--fs-md); font-weight: 700; line-height: 1;
}
.paystep.is-done .paystep__num { background: var(--c-primary-700); }
.paystep__head > div { flex: 1 1 16rem; }
.paystep__title { margin: 0 0 .2rem; font-size: var(--fs-lg); line-height: 1.25; }
.paystep__sub { margin: 0; max-width: 60ch; font-size: var(--fs-sm); color: var(--c-muted); line-height: 1.55; }

/* --- Account details ------------------------------------------------------- */

.paylist { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.paylist__row {
  display: flex; flex-wrap: wrap; align-items: center; gap: .3rem var(--sp-2);
  padding: .7rem .9rem;
  border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  background: var(--c-offwhite);
}
.paylist__row--key { border-color: var(--c-primary); background: var(--c-primary-50); }
.paylist__k { flex: 0 0 9rem; font-size: var(--fs-sm); color: var(--c-muted); }
.paylist__v {
  flex: 1 1 10rem;
  font-weight: 700; font-size: var(--fs-md); letter-spacing: .03em;
  font-variant-numeric: tabular-nums; word-break: break-word;
}

.paycopy {
  flex: 0 0 auto;
  padding: .35rem .75rem;
  border: 1px solid var(--c-border); border-radius: var(--radius-pill);
  background: #fff; color: var(--c-primary-700);
  font-size: var(--fs-xs); font-weight: 700; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.paycopy:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.paycopy.is-copied { background: var(--c-primary-700); border-color: var(--c-primary-700); color: #fff; }
.paycopy--lg { padding: .55rem 1rem; font-size: var(--fs-sm); }

/* --- Upload ---------------------------------------------------------------- */

.payflow .proof__form { display: grid; gap: var(--sp-2); }

.dropzone {
  display: grid; justify-items: center; gap: .3rem;
  padding: var(--sp-4) var(--sp-2);
  border: 2px dashed var(--c-border); border-radius: var(--radius);
  background: var(--c-offwhite); text-align: center; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--c-primary); background: var(--c-primary-50); }
.dropzone.has-file { border-style: solid; border-color: var(--c-primary); background: var(--c-primary-50); }
.dropzone input[type="file"] {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.dropzone:focus-within { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.dropzone__icon { font-size: 1.75rem; line-height: 1; color: var(--c-primary-700); }
.dropzone__title { font-weight: 700; font-size: var(--fs-md); color: var(--c-text); word-break: break-word; }
.dropzone__hint { font-size: var(--fs-xs); color: var(--c-muted); }

@media (max-width: 599px) {
  .paylist__k { flex: 1 1 100%; }
  .paystep__head .paycopy--lg { width: 100%; }
}

/* Bulk enquiry under the buy row on a product page. */
.pdp__bulk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1) var(--sp-2);
  margin: var(--sp-2) 0 0;
}
.pdp__bulk .icon { width: 1.1em; height: 1.1em; }
.pdp__bulk-wa {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-whatsapp);
}
