/**
 * Habesha Market - Type scale, phone fixes, checkout v2, shipping table, category strip, cart stepper, material filter
 * Part of the site CSS moved from Customizer > Additional CSS on 2026-11-15 (original lines 1432-1656).
 * Files 01-08 load in number order; the order matters (later rules win), so keep it.
 */

/* === HM TYPE (added 2026-09-20): one type scale. Headings and card titles Cormorant Garamond 600; UI, body, buttons, labels, logo Work Sans. h1 40/28, h2 30/26, h3 22/20, card title 20/18, body 16, small 14, buttons 14/600, labels 14/600, inputs 16, card price 14/500, tagline 12. Footer brand set in the same face/size as the header logo. Remove to roll back. === */
:root { --hm-fs-h1: 40px; --hm-fs-h2: 30px; --hm-fs-h3: 22px; --hm-fs-card: 20px; --hm-font-serif: 'Cormorant Garamond', Georgia, serif; --hm-font-sans: 'Work Sans', system-ui, sans-serif; }
@media (max-width: 767px) { :root { --hm-fs-h1: 28px; --hm-fs-h2: 26px; --hm-fs-h3: 20px; --hm-fs-card: 18px; } }
/* logo: footer brand = header wordmark */
#colophon h2.wp-block-heading { font-family: var(--hm-font-sans); font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: normal; }
@media (max-width: 767px) { #colophon h2.wp-block-heading { font-size: 20px; } }
.site-description { font-size: 12px; }
/* headings */
.single-product .product_title { font-size: var(--hm-fs-h1); }
.entry-content h2:not(.hm-cart-empty__title):not(.woocommerce-loop-product__title) { font-size: var(--hm-fs-h2); }
.entry-content h3:not(.product-teaser-title) { font-size: var(--hm-fs-h3); }
#colophon h3.wp-block-heading { font-size: var(--hm-fs-h3); }
.hm-cart-empty__title, .entry-content:has(.wp-block-woocommerce-empty-cart-block) .hm-cart-empty__title { font-size: var(--hm-fs-h1); }
/* card / product titles */
.woocommerce ul.products li.product .woocommerce-loop-product__title, .wc-block-grid__product .wc-block-grid__product-title, h3.product-teaser-title, .entry-content .kt-inside-inner-col h3.wp-block-heading.has-link-color { font-family: var(--hm-font-serif); font-size: var(--hm-fs-card); font-weight: 600; line-height: 1.25; }
/* buttons, labels, inputs, meta, prices */
.button, .wp-block-button__link, .wc-block-grid__product-add-to-cart .wp-block-button__link { font-size: 14px; font-weight: 600; }
.wpforms-field-label, .woocommerce-ordering label, .woocommerce form .form-row label:not(.checkbox) { font-size: 14px; font-weight: 600; }
.woocommerce-ordering select, select.orderby, .wpforms-container .wpforms-field-medium { font-size: 16px; font-weight: 400; }
.woocommerce-result-count, p.stock { font-size: 14px; }
.woocommerce ul.products li.product .price, .wc-block-grid__product-price { font-size: 14px; font-weight: 500; }
.hm-cart-empty__text { font-size: 17px; }
#colophon a:not(.social-button) { font-size: 16px; }
/* === /HM TYPE === */
/* === HM TYPE 2 (added 2026-09-20): !important only where Kadence / Woo / WPForms rules outrank the type scale above (documented, scoped to these elements). Remove to roll back. === */
body ul.products li.product h2.woocommerce-loop-product__title { font-family: var(--hm-font-serif) !important; font-size: var(--hm-fs-card) !important; font-weight: 600 !important; line-height: 1.25 !important; }
body .wc-block-grid__product .wp-block-button__link, body .wc-block-grid__product .add_to_cart_button { font-size: 14px !important; font-weight: 600 !important; }
body .wpforms-container .wpforms-field-label, body .woocommerce-ordering label, body .woocommerce form .form-row label:not(.checkbox) { font-size: 14px !important; font-weight: 600 !important; }
body .woocommerce-ordering select, body select.orderby { font-size: 16px !important; font-weight: 400 !important; }
#masthead .site-description { font-size: 12px; }
body.single-product div.product p.stock { font-size: 14px; }
/* === /HM TYPE 2 === */
/* === HM TYPE 3 (added 2026-09-20): category-page sort dropdown and stock line follow the scale (!important: plugin/theme rules outrank). Remove to roll back. === */
body .entry-content select, body .content-area select { font-size: 16px !important; font-weight: 400 !important; }
body.single-product div.product p.stock { font-size: 14px !important; }
body .entry-content label:not(.wpforms-field-label):not([class*=checkbox]):not([class*=radio]) { font-weight: 600; }
/* === /HM TYPE 3 === */
/* === HM TYPE 4 (added 2026-09-20): footer brand = header wordmark size and product h1 = page h1 size (!important: block font-size preset / Woo rule outrank). Remove to roll back. === */
#colophon h2.wp-block-heading { font-size: 26px !important; }
body.single-product h1.product_title { font-size: var(--hm-fs-h1) !important; }
@media (max-width: 767px) { #colophon h2.wp-block-heading { font-size: 20px !important; } }
/* === /HM TYPE 4 === */
/* === HM MOBILE 2 (added 2026-09-20): full phone QA. (1) Checkout: undo my label-weight regression (floating labels/checkbox text back to regular), 14px checkbox text, summary card padding restored (it had 0 on the left), 48px pay button, 44px tap rows (address line 2 toggle, coupon toggle). (2) Cart: 44px remove button, 16px quantity input, 13px item meta. (3) Category pages: 44px 'Tilbage' link, 16px search input (no iOS zoom). (4) Shop badge 12px. (5) Product page: 14px meta with 44px links, 44px tabs. (6) Footer links min 44px wide. Remove to roll back. === */
.wp-block-woocommerce-checkout label, .wp-block-woocommerce-checkout .wc-block-components-text-input label, .wp-block-woocommerce-checkout .wc-block-components-checkbox__label, .wp-block-woocommerce-checkout .wc-block-components-select-input label { font-weight: 400 !important; }
.wp-block-woocommerce-checkout .wc-block-components-checkbox__label { font-size: 14px; }
.wp-block-woocommerce-checkout .wc-block-checkout__sidebar { padding: var(--hm-space-3); }
@media (max-width: 782px) {
  .wp-block-woocommerce-checkout .wc-block-checkout__sidebar { padding: var(--hm-space-2); }
  .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button { min-height: 48px; }
  .wp-block-woocommerce-checkout .wc-block-components-address-form__address_2-toggle, .wp-block-woocommerce-checkout .wc-block-components-panel__button { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 767px) {
  .wc-block-cart-item__remove-link { min-width: 44px; min-height: 44px; }
  .wp-block-woocommerce-cart .wc-block-components-quantity-selector__input { font-size: 16px; }
  .wp-block-woocommerce-cart .wc-block-components-product-metadata, .wp-block-woocommerce-cart .wc-block-components-product-metadata__description { font-size: 13px; }
  .wp-block-woocommerce-cart .wc-block-components-panel__button { min-height: 44px; display: flex; align-items: center; }
  a.hm-cat-back { display: inline-flex; align-items: center; min-height: 44px; }
  .hm-cat-search input, .hm-cat-search input.search-field { font-size: 16px; }
  .product-teaser-badge { font-size: 12px; }
  body.single-product div.product .summary .product_meta, body.single-product div.product .summary .product_meta a { font-size: 14px; }
  body.single-product div.product .summary .product_meta a { display: inline-block; padding: 10px 0; }
  .woocommerce-tabs ul.tabs li a { min-height: 44px; display: flex; align-items: center; }
  #colophon .hm-footer-links a { min-width: 44px; }
}
/* === /HM MOBILE 2 === */
/* === HM MOBILE 3 (added 2026-09-20): express-payment title back to a small serif label (the h3 scale had made it 22px and it collided with its box border); pay button 48px (Woo rule outranks). Remove to roll back. === */
.wp-block-woocommerce-checkout .wc-block-components-express-payment__title-container .wc-block-components-title, .wp-block-woocommerce-checkout .wc-block-components-express-payment__title { font-size: 16px !important; line-height: 1.2; }
body .wc-block-components-button.wc-block-components-checkout-place-order-button { min-height: 48px; }
/* === /HM MOBILE 3 === */
/* === HM MOBILE 4 (added 2026-09-20): remaining phone fixes where Woo/Kadence rules outrank (!important, scoped): theme search input 16px (no iOS zoom), product meta 14px, gallery zoom button 44px, cart item text 13px and quantity input 16px. Remove to roll back. === */
@media (max-width: 767px) {
  body input.search-field, body input[name=s] { font-size: 16px !important; }
  body.single-product .product_meta, body.single-product .product_meta * { font-size: 14px !important; }
  body.single-product .woocommerce-product-gallery__trigger { width: 44px !important; height: 44px !important; }
  body .wp-block-woocommerce-cart .wc-block-components-product-metadata__description, body .wp-block-woocommerce-cart .wc-block-components-product-metadata__description * { font-size: 13px !important; }
  body .wp-block-woocommerce-cart .wc-block-components-quantity-selector__input { font-size: 16px !important; }
}
/* === /HM MOBILE 4 === */
/* === HM MOBILE 5 (added 2026-09-20): shop sort dropdown must not exceed the 24px gutters on 360px phones. Remove to roll back. === */
@media (max-width: 767px) {
  body .kadence-shop-top-item, body .woocommerce-ordering { max-width: 100%; box-sizing: border-box; }
  body .woocommerce-ordering select.orderby { width: 100%; max-width: 100%; box-sizing: border-box; }
}
/* === /HM MOBILE 5 === */
/* === HM MOBILE 6 (added 2026-09-20): on phones the Shop sections and the category-page sections had a second 24px inset (text at x=48 instead of 24) because .hm-align pads inside a container that is already padded. !important needed to beat .hm-align's own !important padding. Remove to roll back. === */
@media (max-width: 767px) {
  .woocommerce-products-header .hm-align, .page-description > .hm-align, .entry-content > .hm-align.hm-section--crumb, .entry-content > .hm-align.hm-cat-intro, .entry-content > .hm-align.hm-cat-grid { padding-left: 0 !important; padding-right: 0 !important; }
}
/* === /HM MOBILE 6 === */
/* === HM SPACING 7 (added 2026-09-20): same double-inset fix on tablet/desktop - Shop sections and category sections started at x=48 while the logo, hero and page titles are at x=24. Remove to roll back. === */
@media (min-width: 768px) {
  .woocommerce-products-header .hm-align, .page-description > .hm-align, .entry-content > .hm-align.hm-section--crumb, .entry-content > .hm-align.hm-cat-intro, .entry-content > .hm-align.hm-cat-grid { padding-left: 0 !important; padding-right: 0 !important; }
}
/* === /HM SPACING 7 === */

/* === HM ORDER SUMMARY SMALLER TEXT (added 2026-09-20): smaller fonts in cart/checkout summary. Remove this block to roll back. === */
.wc-block-components-checkout-order-summary__title-text,
.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-title { font-size: 20px !important; }
.wc-block-components-order-summary-item__description .wc-block-components-product-name { font-size: 16px !important; line-height: 1.35 !important; }
.wc-block-components-order-summary-item__total-price,
.wc-block-components-order-summary-item .wc-block-components-product-price { font-size: 14px !important; }
.wc-block-components-order-summary-item__description .wc-block-components-product-metadata,
.wc-block-components-order-summary-item__description .wc-block-components-product-metadata p { font-size: 13px !important; }
.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value,
.wc-block-components-totals-coupon .wc-block-components-panel__button { font-size: 14px !important; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: 16px !important; }
/* === /HM ORDER SUMMARY SMALLER TEXT === */

/* === HM CHECKOUT 3 (added 2026-09-20): checkout matches approved mock-up - cream page, each step in its own card with the number badge at the left, serif step titles, light order-summary card. Remove this block to roll back (backup option hm_custom_css_backup_20260920c). === */
body.woocommerce-checkout, body.woocommerce-checkout .site, body.woocommerce-checkout #wrapper, body.woocommerce-checkout .content-bg, body.woocommerce-checkout .entry-content-wrap { background: #F4F1EA; }
.wp-block-woocommerce-checkout .wc-block-components-checkout-step { position: relative; background: #faf9f6; border: 1px solid var(--hm-border); border-radius: 8px; padding: 16px 20px 20px 64px; margin: 0 0 12px; }
.wp-block-woocommerce-checkout .wc-block-components-checkout-step__heading { margin: 0 0 4px; }
.wp-block-woocommerce-checkout .wc-block-components-checkout-step__title { position: static; font-family: var(--global-heading-font-family, Georgia, serif); font-size: 18px; font-weight: 600; color: #2e3320; }
.wp-block-woocommerce-checkout .wc-block-components-checkout-step__title::before { position: absolute; left: 20px; top: 16px; }
.wp-block-woocommerce-checkout .wc-block-components-checkout-step__description { font-size: 13px; color: #5f5f58; margin: 0 0 12px; }
.wp-block-woocommerce-checkout .wc-block-components-checkout-step__content { padding: 0; }
.wp-block-woocommerce-checkout .wc-block-checkout__sidebar { background: #faf9f6; border: 1px solid var(--hm-border); border-radius: 8px; padding: 20px; }
@media (max-width: 781px) {
  .wp-block-woocommerce-checkout .wc-block-components-checkout-step { padding: 16px 16px 16px 16px; }
  .wp-block-woocommerce-checkout .wc-block-components-checkout-step__title::before { position: static; }
}
/* === /HM CHECKOUT 3 === */

/* === HM CHECKOUT 4 (added 2026-09-20): Apple Pay / express block moved from the top of the checkout down into the Betaling step (above the card option), plus a 'Sikker betaling' line under the button. Remove this block to roll back (backup option hm_custom_css_backup_20260920d). === */
.wp-block-woocommerce-checkout form.wc-block-checkout__form { display: flex; flex-direction: column; }
.wp-block-woocommerce-checkout .wc-block-components-express-payment { order: 1; margin: 0; padding: 16px 20px 0 64px; background: #faf9f6; border: 1px solid var(--hm-border); border-bottom: 0; border-radius: 8px 8px 0 0; }
.wp-block-woocommerce-checkout .wc-block-components-express-payment + .wc-block-components-checkout-step,
.wp-block-woocommerce-checkout .wc-block-checkout__payment-method { order: 2; }
.wp-block-woocommerce-checkout .wc-block-checkout__payment-method { border-top: 0; border-radius: 0 0 8px 8px; margin-top: 0; }
.wp-block-woocommerce-checkout .wc-block-checkout__add-note,
.wp-block-woocommerce-checkout .wc-block-checkout__terms,
.wp-block-woocommerce-checkout .wc-block-checkout__actions { order: 3; }
.wp-block-woocommerce-checkout .wc-block-checkout__actions::after { content: "\1F512  Sikker betaling"; display: block; margin-top: 12px; text-align: center; font-size: 13px; color: #5f5f58; }
@media (max-width: 781px) { .wp-block-woocommerce-checkout .wc-block-components-express-payment { padding-left: 16px; } }
/* === /HM CHECKOUT 4 === */

/* === HM CHECKOUT 5 (added 2026-09-20): step number badges removed on the checkout (Danish and English - CSS applies to both); cards use normal left padding. Remove this block to roll back (backup option hm_custom_css_backup_20260920e). === */
.woocommerce-checkout .wc-block-components-checkout-step__title::before,
.wp-block-woocommerce-checkout .wc-block-components-checkout-step__title::before { content: none !important; display: none !important; }
.wp-block-woocommerce-checkout .wc-block-components-checkout-step { padding-left: 20px; }
.wp-block-woocommerce-checkout .wc-block-components-express-payment { padding-left: 20px; }
.woocommerce-checkout .wc-block-components-checkout-step__title { gap: 0; }
/* === /HM CHECKOUT 5 === */

/* === HM CHECKOUT 6 (added 2026-09-20): fix for HM CHECKOUT 4 - the express block sits in an unnamed wrapper div, so the flex order goes on the wrapper; the 'continue below' divider is hidden. Remove to roll back (backup option hm_custom_css_backup_20260920f). === */
.wp-block-woocommerce-checkout form.wc-block-checkout__form > div:has(> .wc-block-components-express-payment) { order: 1; }
.wp-block-woocommerce-checkout .wc-block-components-express-payment-continue-rule { display: none; }
/* === /HM CHECKOUT 6 === */

/* === HM CHECKOUT 7 (added 2026-09-20): on phones the order summary showed twice (top card + above the pay button). Hide the top one, keep the one next to the button. Remove to roll back (backup option hm_custom_css_backup_20260920g). === */
@media (max-width: 781px) {
  .wp-block-woocommerce-checkout .wc-block-checkout__sidebar { display: none; }
}
/* === /HM CHECKOUT 7 === */

/* === HM HIDE WEIGHT (added 2026-09-24): the Magna teff flour product (ID 269) shows a shipping weight of 5,5 kg in the "Yderligere information" tab, which conflicts with the 5 kg net weight in the title/description and confused the owner. Hides the tab (weight is its only row) on this product only. The underlying product weight field is NOT cleared - it still feeds real shipping-cost calculation. Remove this block to bring the tab back. === */
body.postid-269 .woocommerce-tabs ul.tabs li.additional_information_tab,
body.postid-269 #tab-additional_information { display: none !important; }
/* === /HM HIDE WEIGHT === */

/* === HM SHIPPING TABLE (added 2026-11-08): shipping price table on Levering/Delivery. Remove this block to roll back. === */
.hm-shipping-table { margin: var(--hm-space-3) 0; }
.hm-shipping-table table { width: 100%; max-width: 420px; border-collapse: collapse; border: 1px solid var(--hm-border); border-radius: 8px; overflow: hidden; font-size: 16px; }
.hm-shipping-table th, .hm-shipping-table td { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--hm-border); text-align: left; }
.hm-shipping-table thead th { background: #faf9f6; font-size: 14px; font-weight: 600; }
.hm-shipping-table td:last-child, .hm-shipping-table th:last-child { text-align: right; white-space: nowrap; }
.hm-shipping-table tbody tr:last-child td { border-bottom: 0; }
/* === /HM SHIPPING TABLE === */


/* Product grid buttons: centre text vertically (Kadence archive rule forces display:block) */
.woocommerce ul.products.woo-archive-btn-button li.product .button:not(.kb-button) {
	display: flex;
	align-items: center;
	justify-content: center;
}
.woocommerce ul.products.woo-archive-btn-button li.product .button:not(.kb-button) {
	position: relative;
}
.woocommerce ul.products.woo-archive-btn-button li.product .button:not(.kb-button) .kadence-svg-iconset {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	margin: 0;
}


/* HM CATEGORY STRIP: one row of small round thumbnails (Shop pages) */
.hm-cat-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:24px;margin-top:24px;}
.hm-cat-strip__item{display:flex;flex-direction:column;align-items:center;text-align:center;text-decoration:none;color:#2e3320;}
.hm-cat-strip__thumb{display:block;width:100%;max-width:120px;aspect-ratio:1/1;border-radius:50%;overflow:hidden;background:#F3EFE7;transition:transform .2s ease;}
.hm-cat-strip__thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.hm-cat-strip__label{margin-top:10px;font-size:15px;font-weight:500;line-height:1.3;}
.hm-cat-strip__item:hover .hm-cat-strip__thumb{transform:translateY(-2px);}
.hm-cat-strip__item:hover .hm-cat-strip__label{color:#A85C32;}
@media (max-width:767px){.hm-cat-strip{gap:8px;margin-top:16px;}.hm-cat-strip__label{margin-top:6px;font-size:11.5px;}}


/* HM CART QUANTITY + REMOVE: brand-styled stepper and delete button (cart page + mini cart) */
body .wc-block-cart-item__quantity{display:flex;align-items:center;gap:12px;}
body .wc-block-components-quantity-selector{display:inline-flex;align-items:center;width:auto;height:40px;margin:0;padding:3px;background:#F7F3EC !important;border:1px solid #E3DFD5 !important;border-radius:999px !important;overflow:visible !important;box-shadow:none;}
body .wc-block-components-quantity-selector::after{display:none;}
body .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button{width:32px;min-width:32px;height:32px;min-height:32px;padding:0;display:flex;align-items:center;justify-content:center;border-radius:50% !important;background:#FFFFFF;color:#545934;font-size:18px;font-weight:600;line-height:1;opacity:1;box-shadow:0 1px 2px rgba(46,51,32,.12);transition:background .15s,color .15s;}
body .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover:not(:disabled){background:#545934;color:#FFFFFF;}
body .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:disabled{opacity:.35;cursor:not-allowed;box-shadow:none;}
body .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:focus-visible{outline:2px solid #A85C32;outline-offset:2px;}
body .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input{width:36px;min-width:36px;height:32px;padding:0;margin:0;border:0;background:transparent;text-align:center;font-size:15px;font-weight:600;color:#2E3320;box-shadow:none;-moz-appearance:textfield;}
body .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input:focus{outline:none;box-shadow:none;}
body .wc-block-components-quantity-selector input::-webkit-outer-spin-button,body .wc-block-components-quantity-selector input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
body .wc-block-cart-item__remove-link{width:40px;height:40px;min-width:40px;padding:0 !important;margin:0 !important;display:inline-flex !important;align-items:center;justify-content:center;border-radius:50% !important;border:1px solid #E3DFD5 !important;background:#FFFFFF !important;color:#6B6B5C !important;transition:background .15s,color .15s,border-color .15s;}
body .wc-block-cart-item__remove-link svg{width:18px;height:18px;fill:currentColor;}
body .wc-block-cart-item__remove-link:hover{background:#FBEFEA !important;color:#A85C32 !important;border-color:#E9C9B8 !important;}
body .wc-block-cart-item__remove-link:focus-visible{outline:2px solid #A85C32;outline-offset:2px;}

/* === HM MATERIAL FILTER (added 2026-11-11): material chips (Alle / Rustfrit staal / Soelv...) on category landing pages, from sandbox hm-material-filter.php. Remove this block to roll back. === */
.hm-cat-grid .hm-material-filter { display: flex; flex-wrap: wrap; gap: var(--hm-space-1); margin: 0 0 var(--hm-space-3); }
.hm-material-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--hm-space-2); box-sizing: border-box; background: #fff; color: #1f2a1f; border: 1px solid var(--hm-border); border-radius: 6px; font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none; transition: border-color .15s, background-color .15s, color .15s; }
.hm-material-chip:hover { border-color: #545934; color: #545934; text-decoration: none; }
.hm-material-chip[aria-current="true"] { background: #545934; border-color: #545934; color: #fff; }
.hm-material-chip:focus-visible { outline: 2px solid #b3402a; outline-offset: 2px; }
/* === /HM MATERIAL FILTER === */

