/**
 * Habesha Market - Footer redesign, order confirmation page, hover standard, shop grid
 * Part of the site CSS moved from Customizer > Additional CSS on 2026-11-15 (original lines 855-1013).
 * Files 01-08 load in number order; the order matters (later rules win), so keep it.
 */

/* === HM FOOTER REDESIGN (2026-09-19) === */
.site-footer-top-section-1 .footer-widget1 h2 { font-size: clamp(2rem, 2.6vw, 2.5rem); line-height: 1.15; }
.footer-widget1 .hm-eyebrow { font-weight: 600; letter-spacing: 0.18em; margin-bottom: var(--hm-space-3); }
.footer-widget1 .hm-footer-tagline { margin: 0 0 var(--hm-space-3); font-size: 1.125rem; line-height: 1.55; max-width: 22rem; color: var(--global-palette3); }
.site-footer .footer-social-wrap .footer-social-inner-wrap { gap: var(--hm-space-3); }
.site-footer .footer-social-wrap a.social-button { width: 46px; height: 46px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--global-palette1); color: #fff; }
.site-footer .footer-social-wrap a.social-button:hover { background: var(--global-palette2); color: #fff; }
.site-footer-top-section-3 .widget h3, .site-footer-top-section-2 .widget h3, .site-footer-top-section-4 .widget h3, .site-footer-top-section-1 .widget h3 { font-size: 1.5rem; margin-bottom: var(--hm-space-3); }
.hm-footer-contact { list-style: none; margin: 0; padding: 0; }
.hm-footer-contact li { margin: 0 0 var(--hm-space-2); }
.hm-footer-contact a { display: flex; align-items: center; gap: var(--hm-space-3); color: var(--global-palette3); text-decoration: none; }
.hm-footer-contact a:hover { color: var(--global-palette2); }
.site-footer-bottom-section-2 .site-info-inner a { text-decoration: none !important; }
/* === /HM FOOTER REDESIGN === */

#colophon .footer-social-wrap .footer-social-inner-wrap a.social-button { box-sizing: border-box; flex: 0 0 46px; width: 46px !important; min-width: 46px; height: 46px !important; padding: 0 !important; display: inline-flex !important; align-items: center; justify-content: center; border: 0 !important; border-radius: 50% !important; background: var(--global-palette1) !important; color: #fff !important; }
#colophon .footer-social-wrap .footer-social-inner-wrap a.social-button:hover { background: var(--global-palette2) !important; color: #fff !important; }
#colophon .footer-social-wrap .footer-social-inner-wrap a.social-button svg { width: 22px; height: 22px; fill: currentColor; }


/* === HM ORDER CONFIRMATION (redesigned 2026-09-19): receipt-style order-received page - small olive check, slim overview row, tidy order table, three next steps, one button === */
.woocommerce-order-received .entry-hero { height: 0; min-height: 0; overflow: hidden; padding: 0; margin: 0; }
.woocommerce-order-received .entry-content > .woocommerce { max-width: 760px; margin-inline: auto; padding: 24px 16px 0; box-sizing: border-box; }
.woocommerce-order-received .woocommerce-thankyou-order-received { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; background: none; border: 0; padding: 16px 0 8px; margin: 0 0 8px; }
.woocommerce-order-received .hm-thanks__title { display: flex; flex-direction: column; align-items: center; gap: 16px; font-family: var(--global-heading-font-family, inherit); font-size: 2rem; line-height: 1.2; color: #2e3320; }
.woocommerce-order-received .hm-thanks__title > span[aria-hidden] { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #545934; color: #fff; font-family: var(--global-body-font-family, inherit); font-size: 1.5rem; line-height: 1; }
.woocommerce-order-received .hm-thanks__text { display: block; max-width: 32rem; color: var(--global-palette4); }
.woocommerce-order-received ul.order_details { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px 0; margin: 24px 0 32px; padding: 16px 0; list-style: none; border-top: 1px solid var(--hm-border, #e4e0d6); border-bottom: 1px solid var(--hm-border, #e4e0d6); }
.woocommerce-order-received ul.order_details li { margin: 0; padding: 0 12px; border: 0; background: none; float: none; text-align: center; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--global-palette5); }
.woocommerce-order-received ul.order_details li strong { display: block; margin-top: 4px; font-size: 1rem; letter-spacing: 0; text-transform: none; color: #2e3320; word-break: break-word; }
@media (min-width: 640px) { .woocommerce-order-received ul.order_details li + li { border-left: 1px solid var(--hm-border, #e4e0d6); } }
.woocommerce-order-received .woocommerce-order-details__title, .woocommerce-order-received .woocommerce-column__title, .woocommerce-order-received .hm-next__title { font-size: 1.5rem; margin: 0 0 16px; }
.woocommerce-order-received table.woocommerce-table--order-details { border: 1px solid var(--hm-border, #e4e0d6); border-radius: 6px; border-collapse: separate; border-spacing: 0; overflow: hidden; background: #fff; }
.woocommerce-order-received table.woocommerce-table--order-details th, .woocommerce-order-received table.woocommerce-table--order-details td { padding: 12px 16px; border-color: var(--hm-border, #e4e0d6); }
.woocommerce-order-received table.woocommerce-table--order-details tfoot th { font-weight: 500; }
.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:last-child th, .woocommerce-order-received table.woocommerce-table--order-details tfoot tr:last-child td { font-weight: 700; }
.woocommerce-order-received .woocommerce-customer-details address { border: 1px solid var(--hm-border, #e4e0d6); border-radius: 6px; background: #fff; padding: 16px; font-style: normal; }
.hm-next { margin: 40px 0 0; }
.hm-next__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.hm-next__steps li { display: flex; align-items: flex-start; gap: 16px; margin: 0; }
.hm-next__n { flex: 0 0 40px; font-family: var(--global-heading-font-family, inherit); font-size: 1.5rem; line-height: 1.1; color: #545934; }
.hm-next__body { display: flex; flex-direction: column; gap: 2px; }
.hm-next__body strong { font-weight: 600; color: #2e3320; }
.hm-next__body span { color: var(--global-palette5); }
.hm-thanks__actions { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 40px 0 24px; text-align: center; }
.hm-thanks__actions .button { margin: 0; }
.hm-thanks__help { margin: 0; color: var(--global-palette5); }
.hm-thanks__help a { color: #545934; font-weight: 600; }
/* === /HM ORDER CONFIRMATION === */

/* HM footer layout match (2026-09-19) */
@media (min-width: 1025px) {
  #colophon .site-top-footer-inner-wrap.site-footer-row-columns-4 { grid-template-columns: 1.6fr 1fr 1fr 1.3fr !important; column-gap: var(--hm-space-6) !important; align-items: start !important; }
}
#colophon .site-footer-top-section-1.footer-section-inner-items-2 { display: flex !important; flex-direction: column; align-items: flex-start !important; justify-content: flex-start; gap: var(--hm-space-3); }
#colophon .site-footer-top-section-1 .footer-social, #colophon .site-footer-top-section-1 .footer-social-wrap, #colophon .site-footer-top-section-1 .footer-social-inner-wrap { justify-content: flex-start; text-align: left; margin-right: auto; }
#colophon .site-footer-top-section-1 .footer-social-inner-wrap { flex-direction: row; }
#colophon .site-top-footer-wrap { background: var(--global-palette8); }
#colophon .site-top-footer-wrap .site-footer-row-container-inner { padding-top: 64px; padding-bottom: 48px; }
#colophon .site-bottom-footer-wrap .site-footer-row-container-inner { padding-top: 28px; padding-bottom: 28px; }
#colophon .footer-widget-area .widget-title, #colophon .footer-widget-area h3 { line-height: 1.2; }

/* HM footer responsive fixes (2026-09-19) */
#colophon .site-footer-top-section-1 .footer-social { margin-left: 0 !important; }
@media (min-width: 768px) and (max-width: 1024px) {
  #colophon .site-top-footer-inner-wrap.site-footer-row-columns-4 { grid-template-columns: 1.5fr 1fr 1.15fr 1.4fr !important; column-gap: var(--hm-space-3) !important; row-gap: 0 !important; align-items: start !important; }
  #colophon .site-footer-top-section-1 .footer-widget1 h2 { font-size: 1.5rem; }
  #colophon .footer-widget1 .hm-eyebrow { font-size: 0.625rem; letter-spacing: 0.14em; margin-bottom: var(--hm-space-2); }
  #colophon .footer-widget1 .hm-footer-tagline { font-size: 0.875rem; margin-bottom: var(--hm-space-2); }
  #colophon .site-footer-top-section-1.footer-section-inner-items-2 { gap: var(--hm-space-2); }
  #colophon .footer-widget-area h3 { font-size: 1rem; margin-bottom: var(--hm-space-2); }
  #colophon .hm-footer-links a, #colophon .footer-widget-area p, #colophon .hm-footer-contact a { font-size: 0.8125rem; }
  #colophon .hm-footer-links li { margin-bottom: 4px; }
  #colophon .hm-footer-contact a { gap: var(--hm-space-2); }
  #colophon .hm-footer-contact svg { width: 18px; height: 18px; flex: none; }
  #colophon .footer-social-wrap .footer-social-inner-wrap { gap: var(--hm-space-2); }
  #colophon .footer-social-wrap .footer-social-inner-wrap a.social-button { flex-basis: 34px; width: 34px !important; min-width: 34px; height: 34px !important; }
  #colophon .footer-social-wrap .footer-social-inner-wrap a.social-button svg { width: 16px; height: 16px; }
}
@media (max-width: 767px) {
  #colophon .site-top-footer-wrap .site-footer-row-container-inner { padding-top: 40px; padding-bottom: 32px; }
  #colophon .site-top-footer-inner-wrap.site-footer-row-columns-4 { row-gap: var(--hm-space-5) !important; }
  #colophon .site-bottom-footer-wrap .site-footer-row-container-inner { padding-top: 20px; padding-bottom: 20px; }
  #colophon .site-bottom-footer-section-1 .site-info-inner p, #colophon .site-bottom-footer-section-2 .site-info-inner p { text-align: left !important; }
}

/* === HM HOVER STANDARD (2026-09-19) === one hover look everywhere: buttons darken to palette3 with white text; text links turn palette2 (terracotta) */
.button:hover, .button:focus-visible, .wp-block-button__link:hover, .wp-block-button__link:focus-visible, button[type=submit]:hover, button[type=submit]:focus-visible, input[type=submit]:hover, input[type=submit]:focus-visible, .wpforms-submit:hover, .wpforms-submit:focus-visible, .wc-block-components-button:not(.is-link):hover, .wc-block-components-button:not(.is-link):focus-visible, .single_add_to_cart_button:hover, .add_to_cart_button:hover, .hm-atc__continue:hover, .hm-atc__continue:focus-visible, .hm-thanks__secondary:hover, .hm-thanks__secondary:focus-visible, .category-tile-arrow:hover, #wpforms-form-498 #wpforms-submit-498:hover, #wpforms-form-498 #wpforms-submit-498:focus-visible, div.wpforms-container-full .wpforms-form .wpforms-submit-container button[type=submit].wpforms-submit:hover, .hm-button .wp-block-button__link:hover, #colophon .footer-social-wrap .footer-social-inner-wrap a.social-button:hover { background-color: var(--global-palette3) !important; border-color: var(--global-palette3) !important; color: var(--global-palette9) !important; }
.button, .wp-block-button__link, .wpforms-submit, .wc-block-components-button, .hm-atc__continue, .hm-thanks__secondary, .category-tile-arrow, a.social-button { transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.entry-content a:not(.button):not(.wp-block-button__link):not(.hm-gateway-card):not(.add_to_cart_button):hover, .hm-link-all a:hover, .hm-link-all a:focus-visible, .hm-cat-back:hover, .hm-account-link:hover, .hm-footer-links a:hover, .hm-footer-contact a:hover, .woocommerce-loop-product__title a:hover, .site-footer .site-footer-top-wrap a:not(.social-button):hover { color: var(--global-palette2); }
.site-footer-bottom-section-2 .site-info-inner a:hover { color: #E8E3D3 !important; }
/* === /HM HOVER STANDARD === */

/* HM footer refinement (2026-09-19) */
#colophon .site-top-footer-wrap { border-top: 1px solid var(--global-palette7); }
#colophon .footer-widget-area h2, #colophon .footer-widget-area h3 { margin-top: 0; }
#colophon .hm-footer-contact li { margin-bottom: 10px; }
#colophon .hm-footer-contact a { gap: 12px; font-size: 0.9375rem; }
#colophon .hm-footer-contact svg { width: 18px; height: 18px; flex: none; opacity: 0.85; }
#colophon .footer-widget-area p { margin-top: 0; }
@media (min-width: 1025px) {
  #colophon .site-footer-top-section-1 .footer-widget1 h2 { font-size: clamp(1.5rem, 1.9vw, 1.75rem); line-height: 1.15; margin-bottom: 6px; }
  #colophon .footer-widget1 .hm-eyebrow { font-size: 0.6875rem; margin-bottom: var(--hm-space-2); }
  #colophon .footer-widget1 .hm-footer-tagline { font-size: 1rem; margin-bottom: var(--hm-space-2); }
  #colophon .footer-widget-area h3 { font-size: 1.25rem; margin-bottom: var(--hm-space-2); }
  #colophon .footer-social-wrap .footer-social-inner-wrap { gap: var(--hm-space-2); }
  #colophon .footer-social-wrap .footer-social-inner-wrap a.social-button { flex-basis: 34px; width: 34px !important; min-width: 34px; height: 34px !important; }
  #colophon .footer-social-wrap .footer-social-inner-wrap a.social-button svg { width: 16px; height: 16px; }
}


/* === HM SHOP GRID (added 2026-09-19): product cards were 155px wide at 545-767px (3 columns + 40px gaps), crushing the buttons. 2 columns there, tighter gap up to tablet. === */
@media (min-width: 544px) and (max-width: 767px) { .woocommerce ul.products.product-archive.grid-sm-col-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 544px) and (max-width: 1024px) { .woocommerce ul.products.product-archive { gap: 24px; } }
/* === /HM SHOP GRID === */

/* HM footer: match approved desktop reference (2026-09-19) */
.hm-sep { display: inline-block; margin: 0 1.5rem; opacity: 0.9; }
@media (min-width: 1025px) {
  #colophon .site-top-footer-inner-wrap.site-footer-row-columns-4 { grid-template-columns: 332px max-content max-content 1fr !important; column-gap: var(--hm-space-6) !important; }
  #colophon .site-footer-top-section-1 .footer-widget1 h2 { font-size: clamp(1.75rem, 2.2vw, 2.125rem); line-height: 1.15; white-space: nowrap; margin-bottom: 8px; }
  #colophon .footer-widget1 .hm-eyebrow { font-size: 0.75rem; margin-bottom: var(--hm-space-3); }
  #colophon .footer-widget1 .hm-footer-tagline { font-size: 1.0625rem; margin-bottom: var(--hm-space-4); max-width: 24rem; }
  #colophon .footer-widget-area h3 { font-size: clamp(1.375rem, 1.7vw, 1.625rem); margin-bottom: var(--hm-space-3); }
  #colophon .hm-footer-links a, #colophon .footer-widget-area p, #colophon .hm-footer-contact a { font-size: 1.0625rem; }
  #colophon .hm-footer-links li { margin-bottom: 10px; }
  #colophon .hm-footer-contact li { margin-bottom: 14px; }
  #colophon .hm-footer-contact a { gap: 16px; }
  #colophon .hm-footer-contact svg { width: 24px; height: 24px; opacity: 1; }
  #colophon .footer-social-wrap .footer-social-inner-wrap { gap: var(--hm-space-3); }
  #colophon .footer-social-wrap .footer-social-inner-wrap a.social-button { flex-basis: 48px; width: 48px !important; min-width: 48px; height: 48px !important; }
  #colophon .footer-social-wrap .footer-social-inner-wrap a.social-button svg { width: 22px; height: 22px; }
  #colophon .site-top-footer-wrap .site-footer-row-container-inner { padding-top: 64px; padding-bottom: 56px; }
  #colophon .site-info-inner p { font-size: 1.0625rem; }
}
/* Newsletter strip: dash removed; full-width thin divider under the strip instead. */
.kb-row-layout-id8_80cc34-b7 { border-bottom: 1px solid rgba(84, 89, 52, 0.25); }

/* HM footer compact (2026-09-19): minimal padding */
.entry-content > :last-child { margin-bottom: var(--hm-space-3) !important; }
#colophon .site-top-footer-wrap .site-footer-row-container-inner { padding-top: 36px !important; padding-bottom: 32px !important; }
#colophon .site-top-footer-inner-wrap { min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
#colophon .site-bottom-footer-wrap .site-footer-row-container-inner { padding-top: 16px !important; padding-bottom: 16px !important; }
#colophon .site-bottom-footer-inner-wrap { min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
#colophon .site-bottom-footer-section-1, #colophon .site-bottom-footer-section-2 { min-height: 0 !important; }
#colophon .site-footer-section .widget, #colophon .footer-widget-area .widget { margin-bottom: 0 !important; }
#colophon .footer-widget1 .hm-eyebrow { margin-bottom: var(--hm-space-2) !important; }
#colophon .footer-widget1 .hm-footer-tagline { margin-bottom: var(--hm-space-2) !important; }
#colophon .site-footer-top-section-1.footer-section-inner-items-2 { gap: var(--hm-space-2) !important; }
#colophon .footer-widget-area h3 { margin-bottom: var(--hm-space-2) !important; }
#colophon .hm-footer-links li { margin-bottom: 4px !important; }
#colophon .hm-footer-links a { padding: 2px 0; }
#colophon .hm-footer-contact li { margin-bottom: 8px !important; }
#colophon .footer-widget-area p { margin-bottom: var(--hm-space-2); }

#colophon .site-bottom-footer-wrap .site-info-inner p, #colophon .site-bottom-footer-wrap .site-info-inner { margin: 0 !important; padding: 0 !important; }
#colophon .site-bottom-footer-wrap .widget { margin: 0 !important; }


