/* Shop surfaces only. Loaded by inc/theme.php on WooCommerce routes. */
.hm-woocommerce {
  --hm-shop-ink: var(--violet, #464c78);
  --hm-shop-accent: var(--orange, #fd4f26);
  --hm-shop-line: #dcdde5;
  --hm-shop-muted: #5b6074;
  padding-block: 2rem 5rem;
  color: #242424;
  font-family: "Exo 2", sans-serif;
  line-height: 1.5;
  accent-color: var(--hm-shop-ink);
  caret-color: var(--hm-shop-ink);
}
.hm-woocommerce *, .hm-woocommerce *::before, .hm-woocommerce *::after { box-sizing: border-box; }
.hm-woocommerce ::selection { color: #fff; background: var(--hm-shop-ink); }
.hm-woocommerce .woocommerce { max-width: 100%; }
.hm-woocommerce :is(h1, h2, h3) { color: var(--hm-shop-ink); font-family: "Petrovsans Book", sans-serif; font-weight: 400; }
.hm-woocommerce h1.home-title { margin-bottom: 2rem; }
.hm-woocommerce :is(h2, h3) { margin: 0 0 1.35rem; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.35; }
.hm-woocommerce p { margin: 0 0 1rem; }
.hm-woocommerce a { color: var(--hm-shop-ink); text-underline-offset: .18em; }
.hm-woocommerce a:hover { color: #a82f12; }
.hm-woocommerce :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--hm-shop-ink); outline-offset: 3px; }
.hm-woocommerce :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], select, textarea) {
  width: 100%;
  min-height: 50px;
  padding: .75rem 1rem;
  border: 1px solid #999dad;
  border-radius: 8px;
  background: #fff;
  color: #242424;
  font: inherit;
  box-shadow: none;
}
.hm-woocommerce :is(input, textarea)::placeholder { color: #676b7b; opacity: 1; }
.hm-woocommerce textarea { min-height: 120px; resize: vertical; }
.hm-woocommerce label { display: block; margin-bottom: .5rem; font-weight: 500; line-height: 1.4; }
.hm-woocommerce .form-row { float: none; width: auto; margin: 0 0 1.15rem; padding: 0; }
.hm-woocommerce .required { color: #a82f12; text-decoration: none; }
.hm-woocommerce .optional { color: var(--hm-shop-muted); font-size: .875rem; font-weight: 400; }
.hm-woocommerce .woocommerce-input-wrapper { display: block; }
.hm-woocommerce :is(input[type="checkbox"], input[type="radio"]) { flex: 0 0 auto; width: 18px; height: 18px; margin: .15rem .5rem 0 0; }
.hm-woocommerce :is(.woocommerce-form__label-for-checkbox, label.checkbox) { display: flex; align-items: flex-start; gap: .3rem; font-weight: 400; }
.hm-woocommerce :is(.woocommerce-invalid input.input-text, .woocommerce-invalid textarea, .woocommerce-invalid .select2-selection) { border-color: #a82f12; }

/* Override the site's decorative .button without changing its typography. */
.hm-woocommerce :is(button.button, a.button, input.button, #place_order) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  width: auto;
  max-width: none;
  height: auto;
  min-height: 52px;
  padding: .9rem 1.7rem;
  border: 1px solid var(--hm-shop-accent);
  border-radius: 70px;
  background: var(--hm-shop-accent);
  background-image: none;
  color: #242424;
  filter: none;
  font: 400 1.1rem/1.25 "Petrovsans Book", sans-serif;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
  box-shadow: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
.hm-woocommerce :is(button.button, a.button, input.button, #place_order):hover { border-color: #d83c18; background: #d83c18; color: #fff; }
.hm-woocommerce :is(button.button, input.button):disabled,
.hm-woocommerce :is(button.button, a.button).disabled { color: #5b6074; border-color: #dcdde5; background: #e6e7eb; opacity: 1; cursor: not-allowed; }
.hm-woocommerce .woocommerce-message,
.hm-woocommerce .woocommerce-info,
.hm-woocommerce .woocommerce-error { margin: 0 0 1.5rem; padding: 1.15rem 1.25rem 1.15rem 3rem; border-top-color: var(--hm-shop-accent); background: #f2f2f2; color: #242424; border-radius: 0 0 8px 8px; }
.hm-woocommerce :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before { color: var(--hm-shop-ink); }
.hm-woocommerce .woocommerce-error { border-top-color: #a82f12; }
.hm-woocommerce .woocommerce-error a { color: #a82f12; }
.hm-woocommerce .woocommerce-notices-wrapper:empty { display: none; }

/* Products first; native independent cart and checkout forms stay intact. */
.hm-woocommerce .cartorder { display: grid; gap: 2.5rem; }
.hm-woocommerce .cartorder > .woocommerce:empty { display: none; }
.hm-woocommerce .hm-cartorder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  grid-template-areas: "cart sidebar" "checkout sidebar";
  gap: 2.5rem clamp(2rem, 4vw, 4rem);
  align-items: start;
  position: relative;
}
.hm-woocommerce .hm-cartorder-grid :is(.hm-cart-products, .hm-checkout-container),
.hm-woocommerce .hm-cartorder-grid :is(.hm-cart-products, .hm-checkout-container) > .woocommerce,
.hm-woocommerce .hm-cartorder-grid form.checkout,
.hm-woocommerce .hm-cartorder-grid .hm-checkout-layout { display: contents; }
.hm-woocommerce .hm-cartorder-grid .woocommerce-cart-form { grid-area: cart; min-width: 0; }
.hm-woocommerce .hm-cartorder-grid .hm-checkout-customer { grid-area: checkout; }
.hm-woocommerce .hm-cartorder-grid .hm-checkout-order { grid-area: sidebar; }
.hm-woocommerce .hm-cartorder-grid .woocommerce-form-coupon-toggle,
.hm-woocommerce .hm-cartorder-grid .checkout_coupon,
.hm-woocommerce .hm-cartorder-grid .woocommerce-notices-wrapper:not(:empty) { grid-column: 1 / -1; }
/* BlockUI can cover the outer grid while the form has no desktop layout box. */
.hm-woocommerce .hm-cartorder-grid form.checkout.processing .blockOverlay { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; z-index: 1000 !important; }
.hm-woocommerce .hm-cartorder-grid form.checkout.processing :is(button, input, select, textarea) { pointer-events: none; }
.hm-woocommerce .woocommerce-cart-form { margin: 0; }
.hm-woocommerce .shop_table { width: 100%; margin: 0; border: 0; border-collapse: collapse; border-radius: 0; }
.hm-woocommerce .shop_table :is(th, td) { padding: 1.2rem 1rem; border-top: 0; border-bottom: 1px solid var(--hm-shop-line); text-align: left; vertical-align: middle; }
.hm-woocommerce .shop_table th { color: var(--hm-shop-ink); font-weight: 500; }
.hm-woocommerce .cart thead { background: var(--gray, #f2f2f2); }
.hm-woocommerce .cart thead th { font-size: .9rem; }
.hm-woocommerce .cart .product-remove { width: 52px; padding-left: .5rem; padding-right: .5rem; }
.hm-woocommerce .cart a.remove { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--hm-shop-ink) !important; font: 400 1.6rem/1 sans-serif; text-decoration: none; }
.hm-woocommerce .cart a.remove:hover { color: #a82f12 !important; background: #fff0eb; }
.hm-woocommerce .cart .product-thumbnail { width: 108px; }
.hm-woocommerce .cart .product-thumbnail img { width: 80px; height: 80px; max-width: 100%; object-fit: contain; }
.hm-woocommerce .cart .product-name { min-width: 10rem; }
.hm-woocommerce .cart .product-name > a { font-size: 1.1rem; font-weight: 600; text-decoration: none; }
.hm-woocommerce .cart .variation { margin: .5rem 0 0; font-size: .875rem; }
.hm-woocommerce .cart :is(.product-price, .product-subtotal) { white-space: nowrap; }
.hm-woocommerce .cart .product-subtotal { color: var(--hm-shop-ink); font-weight: 600; }
.hm-woocommerce .quantity .qty { width: 5rem; max-width: 100%; min-height: 46px; padding: .55rem .6rem; text-align: center; }
.hm-woocommerce .amount { font-variant-numeric: tabular-nums; }
.hm-woocommerce .cart .actions { padding: 1rem 0 0; border: 0; text-align: right; }
.hm-woocommerce .cart .actions .button { float: none; min-height: 44px; padding: .65rem 1.4rem; background: transparent; border-color: var(--hm-shop-line); color: var(--hm-shop-ink); font-size: 1rem; }
.hm-woocommerce .cart .actions .button:hover { background: var(--gray, #f2f2f2); border-color: var(--hm-shop-ink); }

/* Contact and delivery on the left; order, payment and submission on the right. */
.hm-woocommerce form.checkout { margin: 0; }
.hm-woocommerce .hm-checkout-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.hm-woocommerce :is(.hm-checkout-customer, .hm-checkout-order) { min-width: 0; }
.hm-woocommerce #customer_details { display: grid; grid-template-columns: 1fr; gap: 2rem; width: 100%; }
.hm-woocommerce #customer_details::before,
.hm-woocommerce #customer_details::after { display: none; }
.hm-woocommerce #customer_details > :is(.col-1, .col-2) { float: none; width: 100%; }
.hm-woocommerce .woocommerce__wrapper { margin: 0; }
.hm-woocommerce :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; }
.hm-woocommerce :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper) > * { grid-column: 1 / -1; min-width: 0; }
.hm-woocommerce :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper) > :is(.form-row-first, .form-row-last) { grid-column: auto; }
.hm-woocommerce :is(.woocommerce-account-fields, .woocommerce-shipping-fields, .woocommerce-additional-fields) { margin-top: 1.5rem; }
.hm-woocommerce .woocommerce-shipping-fields:empty { display: none; }
.hm-woocommerce #ship-to-different-address label { display: flex; gap: .5rem; font-family: "Exo 2", sans-serif; font-size: 1rem; }
.hm-woocommerce .hm-checkout-order { padding: clamp(1.3rem, 2.5vw, 2rem); background: var(--gray, #f2f2f2); border-radius: 16px; }
.hm-woocommerce #order_review_heading { margin: 0 0 1.25rem; }
.hm-woocommerce #order_review { padding: 0; border: 0; background: transparent; }
.hm-woocommerce .woocommerce-checkout-review-order-totals { margin-bottom: 1.6rem; }
.hm-woocommerce .woocommerce-checkout-review-order-totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--hm-shop-line); }
.hm-woocommerce .woocommerce-checkout-review-order-totals > div > :last-child { text-align: right; }
.hm-woocommerce .woocommerce-checkout-review-order-totals .order-total { margin-top: .25rem; color: var(--hm-shop-ink); font-size: 1.5rem; line-height: 1.3; }
.hm-woocommerce .woocommerce-checkout-review-order-totals .order-total strong { font-weight: 600; }
.hm-woocommerce .woocommerce-checkout-review-order-totals small { display: block; margin-top: .35rem; font-size: .8rem; font-weight: 400; }
.hm-woocommerce .hm-checkout-shipping { width: 100%; border: 0; border-collapse: collapse; }
.hm-woocommerce .hm-checkout-shipping :is(th, td) { padding: 0; border: 0; font-size: 1rem; font-weight: 400; vertical-align: top; }
.hm-woocommerce .hm-checkout-shipping th { text-align: left; padding-right: 1rem; }
.hm-woocommerce .hm-checkout-shipping td { text-align: right; }
.hm-woocommerce .hm-checkout-shipping .woocommerce-shipping-destination { margin: .5rem 0 0; font-size: .85rem; color: var(--hm-shop-muted); }
.hm-woocommerce #shipping_method { margin: 0; padding: 0; list-style: none; }
.hm-woocommerce #shipping_method label { display: inline; font-weight: 400; }
.hm-woocommerce #payment { border-radius: 0; background: transparent; }
.hm-woocommerce #payment ul.payment_methods { margin: 0 0 1.3rem; padding: 0; border: 0; list-style: none; }
.hm-woocommerce #payment .wc_payment_method { padding: 1rem 0; border-bottom: 1px solid var(--hm-shop-line); line-height: 1.5; }
.hm-woocommerce #payment .wc_payment_method > input { margin: .15rem .55rem 0 0; vertical-align: top; }
.hm-woocommerce #payment .wc_payment_method > label { display: inline; color: var(--hm-shop-ink); font-weight: 600; }
.hm-woocommerce #payment .wc_payment_method > label img { max-height: 26px; max-width: 90px; margin-left: .5rem; vertical-align: middle; }
.hm-woocommerce #payment .payment_box { width: 100%; margin: .65rem 0 0; padding: 0; background: transparent; color: var(--hm-shop-muted); font-size: .9rem; line-height: 1.5; }
.hm-woocommerce #payment .payment_box::before { display: none; }
.hm-woocommerce #payment .payment_box p:last-child { margin-bottom: 0; }
.hm-woocommerce #payment .place-order { margin: 0; padding: 0; }
.hm-woocommerce .woocommerce-terms-and-conditions-wrapper { margin: 0 0 1.25rem; font-size: .875rem; }
.hm-woocommerce .woocommerce-privacy-policy-text { color: var(--hm-shop-muted); }
.hm-woocommerce #place_order { float: none; width: 100%; }
.hm-woocommerce .checkout_coupon { display: flex; flex-wrap: wrap; gap: 1rem; max-width: 42rem; margin: 0 0 2rem; padding: 1.5rem; border: 1px solid var(--hm-shop-line); border-radius: 12px; }
.hm-woocommerce .checkout_coupon > p:first-child { flex: 0 0 100%; margin: 0; }
.hm-woocommerce .checkout_coupon .form-row { flex: 1 1 13rem; margin: 0; }
.hm-woocommerce .checkout_coupon .form-row-last { flex: 0 0 auto; }
.hm-woocommerce .checkout_coupon::before,
.hm-woocommerce .checkout_coupon::after { display: none; }
.hm-woocommerce .blockUI.blockOverlay { border-radius: 12px; }

/* Match native Woo select controls and the existing delivery plugin to the theme. */
.hm-woocommerce .select2-container { width: 100% !important; }
.hm-woocommerce .select2-container .select2-selection--single { height: 50px; border: 1px solid #999dad; border-radius: 8px; background: #fff; }
.hm-woocommerce .select2-container .select2-selection--single .select2-selection__rendered { padding: 0 2.2rem 0 1rem; color: #242424; line-height: 48px; }
.hm-woocommerce .select2-container .select2-selection--single .select2-selection__arrow { height: 48px; right: .5rem; }
.hm-woocommerce .select2-container--focus .select2-selection { outline: 2px solid var(--hm-shop-ink); outline-offset: 2px; }
.hm-woocommerce .kaktus-delivery { margin-top: 2rem; padding: 2rem 0 0; border: 0; border-top: 1px solid var(--hm-shop-line); border-radius: 0; background: transparent; box-shadow: none; color: #242424; font-family: inherit; }
.hm-woocommerce .kaktus-delivery__header { margin-bottom: 1.5rem; }
.hm-woocommerce .kaktus-delivery__title { color: var(--hm-shop-ink); }
.hm-woocommerce :is(.kaktus-delivery__subtitle, .kaktus-delivery__hint, .kaktus-delivery__timing-note) { color: var(--hm-shop-muted); font-size: .9rem; line-height: 1.5; }
.hm-woocommerce .kaktus-delivery__body { display: grid; gap: 1.4rem; }
.hm-woocommerce .kaktus-delivery__field-group { margin: 0; }
.hm-woocommerce .kaktus-delivery__city-field { position: relative; }
.hm-woocommerce .kaktus-delivery__options { display: grid; gap: .7rem; }
.hm-woocommerce .kaktus-delivery__timing-note { margin-top: 1rem; }
.hm-woocommerce .kaktus-dropdown { border-radius: 8px; color: #242424; }
.hm-woocommerce .kaktus-dropdown__item:hover { background: var(--gray, #f2f2f2); }

/* Account and order screens share the same controls without loading shop CSS elsewhere. */
.hm-woocommerce .myaccount { display: grid; grid-template-columns: minmax(13rem, .35fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.hm-woocommerce .myaccount-nav__list { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.hm-woocommerce .myaccount-nav__link { display: block; padding: .8rem 1rem; color: var(--hm-shop-ink); border-radius: 8px; text-decoration: none; }
.hm-woocommerce .myaccount-nav__item--active .myaccount-nav__link,
.hm-woocommerce .myaccount-nav__link:hover { background: var(--gray, #f2f2f2); color: var(--hm-shop-ink); }
.hm-woocommerce :is(.myaccount__content, .myaccount-dashboard, .myaccount-orders, .myaccount-view-order, .woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword) { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--hm-shop-line); border-radius: 12px; background: #fff; }
.hm-woocommerce .myaccount-orders__table-wrapper { overflow-x: auto; }
.hm-woocommerce .myaccount-orders__table { width: 100%; border-collapse: collapse; }
.hm-woocommerce .myaccount-orders__table :is(th, td) { padding: .8rem; border-bottom: 1px solid var(--hm-shop-line); text-align: left; }
.hm-woocommerce .hm-order-status { display: inline-block; padding: .25rem .6rem; border-radius: 5px; background: var(--gray, #f2f2f2); color: var(--hm-shop-ink); }
.hm-woocommerce .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 1.5rem 0; padding: 1.5rem; border-radius: 12px; background: var(--gray, #f2f2f2); list-style: none; }
.hm-woocommerce .woocommerce-order-overview li { display: grid; gap: .3rem; }

@media (max-width: 991px) {
  .hm-woocommerce .hm-checkout-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.5rem; }
  .hm-woocommerce .hm-cartorder-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); column-gap: 1.5rem; }
  .hm-woocommerce .cart .product-thumbnail { width: 76px; }
  .hm-woocommerce .cart .product-thumbnail img { width: 56px; height: 56px; }
  .hm-woocommerce .shop_table :is(th, td) { padding: 1rem .65rem; }
}
@media (max-width: 767px) {
  .hm-woocommerce { padding-block: 1.25rem 3rem; }
  .hm-woocommerce h1.home-title { margin-bottom: 1.5rem; }
  .hm-woocommerce .cartorder { gap: 2rem; }
  .hm-woocommerce .hm-checkout-layout,
  .hm-woocommerce .myaccount { grid-template-columns: 1fr; gap: 2rem; }
  .hm-woocommerce .hm-checkout-order { padding: 1.5rem; }
  .hm-woocommerce .hm-cartorder-grid { display: block; }
  .hm-woocommerce .hm-cartorder-grid :is(.hm-cart-products, .hm-checkout-container),
  .hm-woocommerce .hm-cartorder-grid :is(.hm-cart-products, .hm-checkout-container) > .woocommerce,
  .hm-woocommerce .hm-cartorder-grid form.checkout { display: block; }
  .hm-woocommerce .hm-cartorder-grid .hm-checkout-layout { display: grid; }
  .hm-woocommerce .hm-cart-products { margin-bottom: 2rem; }
  .hm-woocommerce .hm-cartorder-grid form.checkout { position: relative; }
  .hm-woocommerce .cart { display: block; }
  .hm-woocommerce .cart thead { display: none; }
  .hm-woocommerce .cart tbody { display: block; }
  .hm-woocommerce .cart tr.cart_item { display: grid; grid-template-columns: 72px minmax(0, 1fr) 40px; gap: .8rem 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--hm-shop-line); }
  .hm-woocommerce .cart tr.cart_item td { display: block; width: auto; min-width: 0; padding: 0; border: 0; background: transparent; text-align: left !important; }
  .hm-woocommerce .cart tr.cart_item td::before { display: none; }
  .hm-woocommerce .cart tr.cart_item .product-thumbnail { display: block; grid-column: 1; grid-row: 1 / 3; }
  .hm-woocommerce .cart .product-thumbnail img { width: 72px; height: 72px; }
  .hm-woocommerce .cart tr.cart_item .product-name { grid-column: 2; grid-row: 1; align-self: center; padding-block: .3rem; }
  .hm-woocommerce .cart tr.cart_item .product-remove { grid-column: 3; grid-row: 1; }
  .hm-woocommerce .cart tr.cart_item .product-price { grid-column: 2; grid-row: 2; color: var(--hm-shop-muted); }
  .hm-woocommerce .cart tr.cart_item :is(.product-quantity, .product-subtotal) { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
  .hm-woocommerce .cart tr.cart_item :is(.product-quantity, .product-subtotal)::before { display: block; content: attr(data-title); font-size: .875rem; font-weight: 400; color: var(--hm-shop-muted); }
  .hm-woocommerce .cart .cart-actions-row { display: block; }
  .hm-woocommerce .cart .actions { display: block; padding: 1rem 0 0; text-align: right !important; }
  .hm-woocommerce .cart .actions::before { display: none; }
  .hm-woocommerce .cart .actions .button { width: auto; }
  .hm-woocommerce .woocommerce-order-overview { display: grid; }
}
@media (max-width: 479px) {
  .hm-woocommerce :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper) { grid-template-columns: 1fr; }
  .hm-woocommerce .hm-checkout-order { padding: 1.25rem; }
  .hm-woocommerce .checkout_coupon { padding: 1rem; }
  .hm-woocommerce .checkout_coupon .form-row-last { flex: 1 1 100%; }
  .hm-woocommerce .checkout_coupon .button { width: 100%; }
  .hm-woocommerce .cart tr.cart_item { grid-template-columns: 60px minmax(0, 1fr) 40px; gap: .7rem; }
  .hm-woocommerce .cart .product-thumbnail img { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-woocommerce :is(button.button, a.button, input.button, #place_order) { transition: none; }
}
