:root {
  --hx-primary: #0b5fa5;
  --hx-primary-dark: #084374;
  --hx-primary-soft: #e7eff6;
  --hx-primary-border: #b6cfe4;
  /* Brand colour prepared for text (headings, prices, links). Falls back to a
     darker shade of the brand colour when the chosen one is too light to read. */
  --hx-brand-text: #0b5fa5;
  /* Brand colour prepared for filled surfaces (white text on top). */
  --hx-primary-fill: #0b5fa5;
  --hx-accent: #f4a261;
  --hx-accent-soft: #fef4ec;
  --hx-on-accent: #0f172a;
  --hx-price: #0b5fa5;
  --hx-badge: #d7263d;
  --hx-ink: #0f172a;
  --hx-ink-muted: #475569;
  --hx-ink-light: #5f6f85;
  --hx-bg: #ffffff;
  --hx-bg-alt: #f8fafc;
  --hx-line: #e2e8f0;

  --hx-font-latin: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --hx-font-arabic: "Cairo", Inter, Tahoma, Arial, sans-serif;
  --hx-font: var(--hx-font-latin);
  --hx-fs-xs: 0.75rem;
  --hx-fs-sm: 0.875rem;
  --hx-fs-md: 0.9375rem;
  --hx-fs-base: 1rem;
  --hx-fs-lg: 1.125rem;
  --hx-fs-xl: 1.25rem;
  --hx-fs-2xl: 1.5rem;
  --hx-fs-3xl: 1.875rem;
  --hx-fs-4xl: 2.25rem;

  --hx-sp-1: 0.25rem;  --hx-sp-2: 0.5rem;   --hx-sp-3: 0.75rem;
  --hx-sp-4: 1rem;     --hx-sp-5: 1.25rem;  --hx-sp-6: 1.5rem;
  --hx-sp-8: 2rem;     --hx-sp-10: 2.5rem;  --hx-sp-12: 3rem;
  --hx-sp-16: 4rem;

  --hx-radius-sm: 6px; --hx-radius: 10px; --hx-radius-md: 12px;
  --hx-radius-lg: 16px; --hx-radius-xl: 24px; --hx-radius-full: 999px;

  --hx-shadow-sm: 0 1px 2px rgba(15,23,42,0.05);
  --hx-shadow: 0 1px 3px rgba(15,23,42,0.08), 0 1px 2px rgba(15,23,42,0.04);
  --hx-shadow-md: 0 4px 6px -1px rgba(15,23,42,0.08), 0 2px 4px -2px rgba(15,23,42,0.05);
  --hx-shadow-lg: 0 10px 15px -3px rgba(15,23,42,0.1), 0 4px 6px -4px rgba(15,23,42,0.05);
  --hx-shadow-xl: 0 20px 25px -5px rgba(15,23,42,0.1), 0 8px 10px -6px rgba(15,23,42,0.05);

  --hx-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --hx-dur: 220ms;
  --hx-dur-slow: 400ms;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html[dir="rtl"] body { font-family: var(--hx-font-arabic); }
html[dir="ltr"] body { font-family: var(--hx-font-latin); }
body {
  font-family: var(--hx-font);
  font-size: var(--hx-fs-base);
  line-height: 1.6;
  color: var(--hx-ink);
  background: var(--hx-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--hx-dur) var(--hx-ease); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.25; color: var(--hx-ink); letter-spacing: -0.01em; }

mark.count { background: none; color: inherit; padding: 0; }

.hx-container { max-width: 1280px; margin: 0 auto; padding-inline: var(--hx-sp-4); }
@media (min-width: 640px)  { .hx-container { padding-inline: var(--hx-sp-6); } }
@media (min-width: 1024px) { .hx-container { padding-inline: var(--hx-sp-8); } }
.hx-container--narrow { max-width: 860px; padding-inline: 0 !important; }
@media (max-width: 767px) {
  .hx-container.hx-container--narrow { padding-inline: var(--hx-sp-4) !important; }
}

.hx-main { min-height: 60vh; }

.screen-reader-text {
  position: absolute; 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;
}
.skip-link:focus {
  position: fixed; top: var(--hx-sp-2); inset-inline-start: var(--hx-sp-2);
  width: auto; height: auto; margin: 0; padding: var(--hx-sp-2) var(--hx-sp-4);
  overflow: visible; clip: auto; clip-path: none;
  background: var(--hx-ink); color: #fff; border-radius: var(--hx-radius-sm);
  z-index: 9999; box-shadow: var(--hx-shadow-lg);
}
:focus-visible { outline: 2px solid var(--hx-primary); outline-offset: 3px; border-radius: 3px; }

.hx-announce {
  background: linear-gradient(90deg, var(--hx-primary-dark), var(--hx-primary) 50%, var(--hx-primary-dark));
  color: #fff; font-size: var(--hx-fs-sm); font-weight: 600;
}
.hx-announce__inner {
  display: flex; align-items: center; justify-content: center;
  gap: var(--hx-sp-4); padding-block: var(--hx-sp-2); position: relative;
}
.hx-announce__close {
  position: absolute; inset-inline-end: 0;
  width: 32px; height: 32px; border-radius: 50%;
  color: #fff; font-size: 20px; line-height: 1; opacity: 0.7;
  transition: all var(--hx-dur) var(--hx-ease);
}
.hx-announce__close:hover { opacity: 1; background: rgba(255,255,255,0.15); }

.hx-header {
  background: #fff; border-block-end: 1px solid var(--hx-line);
  position: sticky; top: 0; z-index: 90;
}
.hx-header__inner {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: var(--hx-sp-6);
  padding-block: var(--hx-sp-3);
}
.hx-header__logo { white-space: nowrap; }
.hx-header__logo .hx-logo-text {
  color: var(--hx-brand-text); font-size: var(--hx-fs-xl);
  font-weight: 800; letter-spacing: -0.02em;
}
.hx-header__logo .custom-logo { max-height: 40px; width: auto; }

.hx-search {
  display: flex;
  align-items: center;
  max-width: 560px;
  min-width: 0;
  width: 100%;
  margin-inline: auto;
  position: relative;
  overflow: hidden;
  background: var(--hx-bg-alt);
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius-full);
  direction: ltr;
  transition: border-color var(--hx-dur) var(--hx-ease), box-shadow var(--hx-dur) var(--hx-ease), background-color var(--hx-dur) var(--hx-ease);
}
.hx-search:focus-within {
  background: #fff;
  border-color: var(--hx-primary);
  box-shadow: 0 0 0 4px var(--hx-primary-soft);
}
.hx-search__input {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 var(--hx-sp-4);
  appearance: none;
  -webkit-appearance: none;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  outline: 0;
  font: inherit;
  font-size: var(--hx-fs-sm);
  line-height: normal;
  color: var(--hx-ink);
  text-align: start;
}
.hx-search__input:-webkit-autofill,
.hx-search__input:-webkit-autofill:hover,
.hx-search__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--hx-ink);
  -webkit-box-shadow: 0 0 0 1000px var(--hx-bg-alt) inset !important;
  transition: background-color 9999s ease-out 0s;
}
.hx-search:focus-within .hx-search__input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
}
.hx-search__input::placeholder { color: var(--hx-ink-light); }
.hx-search__btn {
  display: inline-flex;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--hx-ink-muted);
  background: transparent;
  border: 0;
  border-radius: var(--hx-radius-full);
  transition: color var(--hx-dur) var(--hx-ease), background-color var(--hx-dur) var(--hx-ease);
}
.hx-search__btn:hover { color: var(--hx-brand-text); background: var(--hx-primary-soft); }

/* Search follows the document direction so it mirrors correctly on RTL sites. */
html[dir="rtl"] .hx-search,
html[dir="rtl"] .hx-drawer__search { direction: rtl; }

.hx-actions { display: flex; align-items: center; gap: var(--hx-sp-1); }
.hx-action {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  padding: var(--hx-sp-2) var(--hx-sp-3);
  border-radius: var(--hx-radius-sm); color: var(--hx-ink-muted);
  font-size: var(--hx-fs-xs); font-weight: 600;
  transition: all var(--hx-dur) var(--hx-ease); position: relative;
  min-height: 44px; min-width: 44px; justify-content: center;
}
.hx-action:hover { color: var(--hx-brand-text); background: var(--hx-primary-soft); }
.hx-action__icon { position: relative; display: inline-flex; }
.hx-action__badge {
  position: absolute; top: -6px; inset-inline-end: -8px;
  min-width: 18px; height: 18px; padding-inline: 5px;
  background: var(--hx-accent); color: var(--hx-on-accent);
  font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
  border-radius: var(--hx-radius-full);
  box-shadow: 0 2px 4px rgba(15,23,42,0.25);
}
.hx-action__label { font-size: 11px; letter-spacing: 0.02em; }

.hx-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  border-radius: var(--hx-radius-sm); background: var(--hx-primary-soft);
}
.hx-burger span {
  display: block; height: 2px; background: var(--hx-primary-fill);
  border-radius: 2px; transition: all var(--hx-dur) var(--hx-ease);
}
.hx-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hx-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hx-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hx-navbar {
  background: #fff;
  border-block-end: 1px solid var(--hx-line);
  box-shadow: var(--hx-shadow-sm);
  position: relative;
  z-index: 85;
}
.hx-navbar__inner { display: flex; justify-content: center; }
.hx-nav { display: flex; align-items: center; justify-content: center; gap: var(--hx-sp-6); min-height: 42px; }

/* Account link in the navigation bar */
.hx-nav__account {
  display: inline-flex; align-items: center; gap: var(--hx-sp-2);
  padding: 9px 12px; border-radius: 8px; background: transparent; color: var(--hx-ink);
  font-size: var(--hx-fs-sm); font-weight: 600; line-height: 1.2; text-decoration: none;
}
.hx-nav__account:hover { color: var(--hx-brand-text); background: var(--hx-primary-soft); }

.hx-drawer-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.6);
  opacity: 0; visibility: hidden;
  transition: all var(--hx-dur) var(--hx-ease);
  z-index: 998; backdrop-filter: blur(2px);
}
.hx-drawer-overlay.is-open { opacity: 1; visibility: visible; }

.hx-drawer {
  position: fixed; top: 0; inset-inline-end: 0;
  width: 300px; max-width: 85vw; height: 100vh;
  background: #fff; z-index: 999;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--hx-dur-slow) var(--hx-ease),
              visibility 0s linear var(--hx-dur-slow);
  display: flex; flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}
[dir="rtl"] .hx-drawer { transform: translateX(-100%); box-shadow: 10px 0 40px rgba(0,0,0,0.15); }
.hx-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform var(--hx-dur-slow) var(--hx-ease), visibility 0s;
}
.hx-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--hx-sp-4) var(--hx-sp-5); border-block-end: 1px solid var(--hx-line);
}
.hx-drawer__title { font-weight: 800; font-size: var(--hx-fs-lg); }
.hx-drawer__close {
  width: 44px; height: 44px; font-size: 24px; line-height: 1;
  border-radius: 50%; color: var(--hx-ink-muted);
  transition: all var(--hx-dur) var(--hx-ease);
}
.hx-drawer__close:hover { background: var(--hx-bg-alt); color: var(--hx-ink); }
.hx-drawer__body { padding: var(--hx-sp-3) 0; overflow-y: auto; flex: 1; }
.hx-drawer__account {
  display: block; margin: 10px 14px; padding: 12px;
  border-radius: 8px; background: var(--hx-bg-alt); color: var(--hx-ink);
  font-weight: 700; text-decoration: none;
}
.hx-drawer__account:hover { color: var(--hx-brand-text); }

.hx-drawer__search {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0 var(--hx-sp-3) var(--hx-sp-3);
  overflow: hidden;
  background: var(--hx-bg-alt);
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius);
  direction: ltr;
  transition: border-color var(--hx-dur) var(--hx-ease), box-shadow var(--hx-dur) var(--hx-ease), background-color var(--hx-dur) var(--hx-ease);
}
.hx-drawer__search:focus-within {
  background: #fff;
  border-color: var(--hx-primary);
  box-shadow: 0 0 0 4px var(--hx-primary-soft);
}
.hx-drawer__search-input {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 var(--hx-sp-4);
  appearance: none;
  -webkit-appearance: none;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  outline: 0;
  font: inherit;
  font-size: var(--hx-fs-sm);
  line-height: normal;
  color: var(--hx-ink);
  text-align: start;
}
.hx-drawer__search-input:-webkit-autofill,
.hx-drawer__search-input:-webkit-autofill:hover,
.hx-drawer__search-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--hx-ink);
  -webkit-box-shadow: 0 0 0 1000px var(--hx-bg-alt) inset !important;
  transition: background-color 9999s ease-out 0s;
}
.hx-drawer__search:focus-within .hx-drawer__search-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
}
.hx-drawer__search-input::placeholder { color: var(--hx-ink-light); }
.hx-drawer__search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--hx-ink-muted);
  background: transparent;
  border: 0;
  border-radius: var(--hx-radius);
  cursor: pointer;
  transition: all var(--hx-dur) var(--hx-ease);
}
.hx-drawer__search-btn:hover {
  color: var(--hx-brand-text);
  background: var(--hx-primary-soft);
}

/* The mobile drawer is redundant on desktop, where the navigation bar is shown. */
@media (min-width: 992px) {
  .hx-drawer,
  .hx-drawer-overlay { display: none !important; }
}

.hx-btn, .hx-404__btn, .hx-category-filter__apply {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--hx-sp-2); padding: var(--hx-sp-3) var(--hx-sp-6);
  background: var(--hx-primary-fill); color: #fff !important;
  border-radius: var(--hx-radius); font-weight: 800; font-size: var(--hx-fs-base);
  border: none; cursor: pointer;
  transition: all var(--hx-dur) var(--hx-ease);
  box-shadow: 0 1px 2px rgba(15,23,42,0.2); text-align: center;
  min-height: 44px;
}
.hx-btn:hover, .hx-404__btn:hover, .hx-category-filter__apply:hover {
  background: var(--hx-primary-dark); color: #fff !important;
  transform: translateY(-2px); box-shadow: 0 4px 12px rgba(15,23,42,0.3);
}
.hx-btn:active { transform: translateY(0); }

/* Buttons written in the content (WordPress block buttons).
   WordPress ships them in its default dark grey (#32373c), which ignores the
   brand, so the theme takes them over. The palette classes an editor adds
   (has-palette-color-*) keep working: they use !important and win. */
.wp-block-button {
  margin-block: var(--hx-sp-2);
}
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--hx-sp-2);
  min-height: 44px;
  padding: var(--hx-sp-3) var(--hx-sp-6);
  background: var(--hx-primary-fill);
  color: #fff !important;
  border: 0;
  border-radius: var(--hx-radius);
  box-shadow: 0 1px 2px rgba(15,23,42,0.2);
  font-family: inherit;
  font-size: var(--hx-fs-base);
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--hx-dur) var(--hx-ease), color var(--hx-dur) var(--hx-ease), transform var(--hx-dur) var(--hx-ease), box-shadow var(--hx-dur) var(--hx-ease);
}
.wp-block-button__link:hover {
  background: var(--hx-primary-dark);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15,23,42,0.3);
}
.wp-block-button__link:active { transform: translateY(0); }
.wp-block-button__link:focus-visible {
  outline: 2px solid var(--hx-primary);
  outline-offset: 2px;
}
.is-style-outline .wp-block-button__link,
.is-style-outline.wp-block-button__link {
  background: transparent;
  color: var(--hx-brand-text) !important;
  border: 2px solid var(--hx-primary-fill);
  box-shadow: none;
}
.is-style-outline .wp-block-button__link:hover,
.is-style-outline.wp-block-button__link:hover {
  background: var(--hx-primary-soft);
  color: var(--hx-brand-text) !important;
  box-shadow: none;
}
.is-style-ghost .wp-block-button__link,
.is-style-ghost.wp-block-button__link {
  background: transparent;
  color: var(--hx-brand-text) !important;
  box-shadow: none;
}
.is-style-ghost .wp-block-button__link:hover,
.is-style-ghost.wp-block-button__link:hover {
  background: var(--hx-primary-soft);
  color: var(--hx-brand-text) !important;
  box-shadow: none;
}

/* Classic buttons written in the content (plugins, shortcodes). */
.hx-page__content a.button,
.hx-post__content a.button,
.hx-page__content button.button,
.hx-post__content button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--hx-sp-2);
  min-height: 44px;
  padding: var(--hx-sp-3) var(--hx-sp-6);
  background: var(--hx-primary-fill);
  color: #fff !important;
  border: 0;
  border-radius: var(--hx-radius);
  box-shadow: 0 1px 2px rgba(15,23,42,0.2);
  font-family: inherit;
  font-size: var(--hx-fs-base);
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--hx-dur) var(--hx-ease), color var(--hx-dur) var(--hx-ease), transform var(--hx-dur) var(--hx-ease), box-shadow var(--hx-dur) var(--hx-ease);
}
.hx-page__content a.button:hover,
.hx-post__content a.button:hover,
.hx-page__content button.button:hover,
.hx-post__content button.button:hover {
  background: var(--hx-primary-dark);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15,23,42,0.3);
}

.hx-btn--ghost {
  background: #fff;
  color: var(--hx-brand-text) !important;
  border: 1.5px solid var(--hx-primary-border);
  box-shadow: none;
}
.hx-btn--ghost:hover {
  background: var(--hx-primary-soft);
  color: var(--hx-brand-text) !important;
  box-shadow: none;
}

ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: var(--hx-sp-5);
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
ul.products::before,
ul.products::after { display: none !important; }
ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
  position: relative;
  pointer-events: auto !important;
}
ul.products li.product .hx-card__link,
ul.products li.product .woocommerce-LoopProduct-link,
ul.products li.product a {
  pointer-events: auto !important;
  z-index: 1;
  position: relative;
}
ul.products li.product::before,
ul.products li.product::after { pointer-events: none !important; }
ul.products li.product .hx-card__media,
ul.products li.product .hx-card__media img,
ul.products li.product img { pointer-events: auto !important; }
ul.products li.product .hx-card__body,
ul.products li.product .hx-card__body * { pointer-events: auto !important; }

ul.products li.product-category {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* Breadcrumb (product page + category pages) */
.hx-breadcrumb {
  font-size: var(--hx-fs-sm);
  color: var(--hx-ink-muted);
  padding-block: var(--hx-sp-4);
}
.hx-breadcrumb__inner { display: flex; flex-wrap: wrap; align-items: center; }
.hx-breadcrumb a { color: var(--hx-ink-muted); text-decoration: none; display: inline-block; padding-block: 3px; }
.hx-breadcrumb a:hover { color: var(--hx-brand-text); }
.hx-breadcrumb__sep { margin-inline: var(--hx-sp-2); color: var(--hx-ink-light); }
.hx-breadcrumb__item:last-child { color: var(--hx-ink); font-weight: 600; }

/* Archive toolbar (shop + category archives) */
.hx-category-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--hx-sp-3); margin-block-end: var(--hx-sp-5);
}
.hx-category-toolbar .woocommerce-notices-wrapper { flex-basis: 100%; }
.hx-category-toolbar .woocommerce-result-count,
.hx-category-toolbar .woocommerce-ordering { margin: 0; float: none; }
.hx-category-toolbar .woocommerce-ordering select { margin: 0; }

/* Category heading (also used by the fallback template when the Category module is off) */
.hx-category-heading { padding-block: var(--hx-sp-6) var(--hx-sp-4); }
.hx-category-title {
  font-size: var(--hx-fs-3xl); font-weight: 800; letter-spacing: -0.02em;
  margin-block-end: var(--hx-sp-2);
}
.hx-category-desc { color: var(--hx-ink-muted); line-height: 1.7; max-width: 680px; }
.hx-category-desc > * + * { margin-block-start: var(--hx-sp-3); }

ul.products li.product-category > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius-md);
  overflow: hidden;
  text-align: center;
  transition: all var(--hx-dur) var(--hx-ease);
}
ul.products li.product-category > a:hover {
  border-color: var(--hx-primary-border);
  box-shadow: var(--hx-shadow-lg);
  transform: translateY(-4px);
}
ul.products li.product-category img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--hx-bg-alt);
  border-radius: 0;
  margin: 0;
}
ul.products li.product-category .woocommerce-loop-category__title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--hx-sp-2);
  margin: 0;
  padding: var(--hx-sp-3) var(--hx-sp-4);
  font-size: var(--hx-fs-base);
  font-weight: 800;
  line-height: 1.4;
  color: var(--hx-ink);
}
ul.products li.product-category .woocommerce-loop-category__title .count {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--hx-radius-full);
  background: var(--hx-primary-soft);
  color: var(--hx-brand-text);
  font-size: var(--hx-fs-xs);
  font-weight: 700;
  line-height: 1.4;
}

.hx-card, .hx-post-card {
  display: flex; flex-direction: column; background: #fff;
  border-radius: var(--hx-radius-md); overflow: hidden;
  border: 1px solid var(--hx-line);
  transition: all var(--hx-dur) var(--hx-ease); height: 100%;
}
.hx-card:hover, .hx-post-card:hover {
  border-color: var(--hx-primary-border);
  box-shadow: var(--hx-shadow-lg); transform: translateY(-4px);
}
.hx-card__link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.hx-card__media, .hx-post-card__media {
  position: relative; aspect-ratio: 1; overflow: hidden; background: var(--hx-bg-alt);
}
.hx-post-card__media { aspect-ratio: 16 / 9; }
.hx-card__media img, .hx-post-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--hx-dur-slow) var(--hx-ease);
}
.hx-card:hover .hx-card__media img,
.hx-post-card:hover .hx-post-card__media img { transform: scale(1.06); }
.hx-card__badge {
  position: absolute; top: var(--hx-sp-3); inset-inline-end: var(--hx-sp-3);
  padding: var(--hx-sp-1) var(--hx-sp-3);
  background: var(--hx-badge); color: #fff;
  font-size: var(--hx-fs-xs); font-weight: 800;
  border-radius: var(--hx-radius-full); z-index: 2; box-shadow: var(--hx-shadow);
}
.hx-card__body, .hx-post-card__body {
  padding: var(--hx-sp-4); display: flex; flex-direction: column;
  gap: var(--hx-sp-2); flex: 1;
}
.hx-post-card__body { padding: var(--hx-sp-5); }
/* The theme owns the card title.
   The long selector also beats the WooCommerce loop rule
   (.woocommerce ul.products li.product .woocommerce-loop-product__title),
   which adds `padding: 0.5em 0` and `font-size: 1em` and would otherwise
   break the card rhythm: a one-line title and a two-line title ended up with
   different heights, so the prices and buttons no longer lined up. */
.hx-card__title,
.woocommerce ul.products li.product .hx-card__title.woocommerce-loop-product__title {
  margin: 0;
  padding: 0;
  font-size: var(--hx-fs-sm); font-weight: 600; line-height: 1.4; color: var(--hx-ink);
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden; overflow-wrap: anywhere;
  min-height: 2.8em;
}
.hx-post-card__title { font-size: var(--hx-fs-lg); font-weight: 800; line-height: 1.35; }
.hx-post-card__title a:hover { color: var(--hx-brand-text); }
.hx-post-card__excerpt { font-size: var(--hx-fs-sm); color: var(--hx-ink-muted); line-height: 1.65; }
.hx-card__price {
  font-size: var(--hx-fs-base); font-weight: 800;
  color: var(--hx-price); margin-top: auto; margin-bottom: 0;
}
.hx-card__price del { color: var(--hx-ink-light); font-weight: 500; font-size: 0.85em; margin-inline-end: var(--hx-sp-2); }
.hx-card__price ins { text-decoration: none; }
.hx-card__price .woocommerce-Price-currencySymbol { margin-inline-end: 0 !important; padding-inline-end: 0 !important; }
.woocommerce-Price-amount { white-space: nowrap; }

.hx-archive__head {
  margin-block-end: var(--hx-sp-8); padding-block-end: var(--hx-sp-6);
  border-block-end: 1px solid var(--hx-line);
}
.hx-archive__title {
  font-size: var(--hx-fs-3xl); font-weight: 800; color: var(--hx-ink);
  margin-block-end: var(--hx-sp-2); letter-spacing: -0.02em;
}
.hx-archive__desc { font-size: var(--hx-fs-base); color: var(--hx-ink-muted); max-width: 680px; line-height: 1.7; }
.hx-archive__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--hx-sp-6);
}

.hx-post, .hx-page {
  background: #fff; padding: var(--hx-sp-10) var(--hx-sp-8);
  border-radius: var(--hx-radius-lg); box-shadow: var(--hx-shadow-sm);
  margin-block: var(--hx-sp-8);
}
.hx-post__title, .hx-page__title {
  font-size: var(--hx-fs-4xl); font-weight: 800;
  margin-block-end: var(--hx-sp-3); letter-spacing: -0.02em; line-height: 1.15;
}
.hx-post__meta {
  display: inline-flex; align-items: center; gap: var(--hx-sp-2);
  font-size: var(--hx-fs-sm); color: var(--hx-ink-light);
  margin-block-end: var(--hx-sp-6); padding-block-end: var(--hx-sp-4);
  border-block-end: 1px solid var(--hx-line); width: 100%;
}
.hx-post__updated { padding-inline-start: var(--hx-sp-2); border-inline-start: 1px solid var(--hx-line); }

.hx-post__thumbnail {
  margin-block: 0 var(--hx-sp-6);
  border-radius: var(--hx-radius-md);
  overflow: hidden;
  background: var(--hx-bg-alt);
}
.hx-post__thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--hx-radius-md);
}

.hx-post__content { font-size: var(--hx-fs-lg); line-height: 1.8; color: var(--hx-ink); }
/* The page typography lives in the Pages module (inc/modules/Pages/assets/css/
   pages.css), scoped under `.hx-page-body`: the home page keeps the styles of
   `front-page.css` and is never touched by the page rules. */
.hx-post__content > * + * { margin-block-start: var(--hx-sp-5); }
.hx-post__content h2 { font-size: var(--hx-fs-2xl); margin-block-start: var(--hx-sp-10); }
.hx-post__content h3 { font-size: var(--hx-fs-xl); }
.hx-post__content a { color: var(--hx-brand-text); text-decoration: underline; text-underline-offset: 3px; }
.hx-post__content img { border-radius: var(--hx-radius); margin-block: var(--hx-sp-5); }
.hx-post__content blockquote {
  border-inline-start: 4px solid var(--hx-primary);
  padding-inline-start: var(--hx-sp-5);
  font-style: italic; color: var(--hx-ink-muted); font-size: var(--hx-fs-lg);
}

.hx-404__inner { text-align: center; padding-block: var(--hx-sp-16); }
.hx-404__title {
  font-size: clamp(6rem, 15vw, 10rem); font-weight: 900;
  line-height: 1; letter-spacing: -0.05em; margin-block-end: var(--hx-sp-4);
  background: linear-gradient(135deg, var(--hx-primary), var(--hx-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; color: transparent;
  padding-block: 0.1em;
}
@supports not (-webkit-background-clip: text) {
  .hx-404__title { color: var(--hx-brand-text); -webkit-text-fill-color: var(--hx-brand-text); }
}
.hx-404__text { font-size: var(--hx-fs-lg); color: var(--hx-ink-muted); margin-block-end: var(--hx-sp-8); }

.hx-footer {
  background: var(--hx-ink);
  color: #fff;
  margin-block-start: var(--hx-sp-16);
  padding-block: clamp(2.75rem, 6vw, 4.5rem) var(--hx-sp-5);
}
.hx-footer__inner { display: block; }
.hx-footer__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.45fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block-end: var(--hx-sp-10);
}
.hx-footer__brand { max-width: 320px; }
.hx-footer__brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-block-end: var(--hx-sp-3);
}
.hx-footer__brand-name {
  color: #fff;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.hx-footer__brand-link .custom-logo {
  display: block;
  width: auto;
  max-width: 180px;
  max-height: 44px;
  filter: brightness(0) invert(1);
}
.hx-footer__description {
  max-width: 30ch;
  color: rgba(255,255,255,0.68);
  font-size: var(--hx-fs-sm);
  line-height: 1.75;
}
.hx-footer__column { min-width: 0; }
.hx-footer__heading {
  margin: 0 0 var(--hx-sp-4);
  color: #fff;
  font-size: var(--hx-fs-sm);
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.4;
  text-transform: uppercase;
}
.hx-footer__links {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hx-footer__links li { margin: 0; padding: 0; }
.hx-footer__links a {
  display: inline-flex;
  align-items: flex-start;
  padding-block: 2px;
  color: rgba(255,255,255,0.68);
  font-size: var(--hx-fs-sm);
  font-weight: 500;
  line-height: 1.55;
  text-decoration: none;
  transition: color var(--hx-dur) var(--hx-ease);
}
.hx-footer__links a:hover,
.hx-footer__links a:focus-visible { color: #fff; }
.hx-footer__contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--hx-sp-6);
  padding-block: var(--hx-sp-6);
  border-block-start: 1px solid rgba(255,255,255,0.14);
  margin-block-end: var(--hx-sp-5);
  text-align: center;
}
.hx-footer__contact-item { display: flex; flex-direction: column; align-items: center; gap: var(--hx-sp-1); min-width: 0; }
.hx-footer__contact-label {
  margin: 0;
  color: #fff;
  font-size: var(--hx-fs-sm);
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.4;
  text-transform: uppercase;
}
.hx-footer__contact-item a,
.hx-footer__contact-item span {
  color: rgba(255,255,255,0.68);
  font-size: var(--hx-fs-sm);
  line-height: 1.6;
  text-decoration: none;
}
.hx-footer__contact-item a:hover,
.hx-footer__contact-item a:focus-visible { color: #fff; }
@media (max-width: 767px) {
  .hx-footer__contact { grid-template-columns: minmax(0, 1fr); gap: var(--hx-sp-4); }
}
.hx-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hx-sp-4);
  padding-block-start: var(--hx-sp-5);
  border-block-start: 1px solid rgba(255,255,255,0.14);
}
.hx-footer__copy {
  margin: 0;
  color: rgba(255,255,255,0.55);
  font-size: var(--hx-fs-xs);
  line-height: 1.6;
}

.hx-footer__payments {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hx-sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.hx-footer__payment {
  margin: 0;
  padding: 3px 10px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--hx-radius);
  color: rgba(255,255,255,0.75);
  font-size: var(--hx-fs-xs);
  font-weight: 700;
  line-height: 1.5;
}
.hx-footer__payment--logo {
  display: inline-flex;
  align-items: center;
  padding: 3px 6px;
  background: #fff;
  border-color: #fff;
}
.hx-footer__payment--logo img { display: block; width: auto; height: 24px; }

@media (max-width: 900px) {
  .hx-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--hx-sp-8);
    row-gap: var(--hx-sp-8);
  }
  .hx-footer__brand { grid-column: 1 / -1; max-width: 440px; }
}
@media (max-width: 767px) {
  .hx-footer { margin-block-start: var(--hx-sp-12); }
  .hx-footer__grid { padding-block-end: var(--hx-sp-8); }
  .hx-footer__bottom { align-items: flex-start; flex-direction: column; gap: var(--hx-sp-2); }
}
@media (max-width: 420px) {
  .hx-footer__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--hx-sp-6); }
  .hx-footer__brand { grid-column: auto; }
  .hx-footer__heading { margin-block-end: var(--hx-sp-2); }
}

/* Pagination: the_posts_pagination() => nav.pagination > h2.screen-reader-text + div.nav-links;
   WooCommerce => nav.woocommerce-pagination > ul.page-numbers > li > a|span.page-numbers */
.pagination, .woocommerce-pagination {
  display: block; margin-block-start: var(--hx-sp-10); text-align: center;
}
.pagination .nav-links,
.woocommerce-pagination ul.page-numbers {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--hx-sp-2); margin: 0; padding: 0; list-style: none; border: 0;
}
.woocommerce-pagination ul.page-numbers li { margin: 0; padding: 0; border: 0; display: block; }
.pagination a.page-numbers, .pagination span.page-numbers,
.woocommerce-pagination a.page-numbers, .woocommerce-pagination span.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 var(--hx-sp-3); box-sizing: border-box;
  border-radius: var(--hx-radius); background: #fff; line-height: 1;
  border: 1px solid var(--hx-line); font-weight: 600; font-size: 15px;
  color: var(--hx-ink-muted); text-decoration: none; font-variant-numeric: tabular-nums;
  transition: background-color var(--hx-dur) var(--hx-ease), color var(--hx-dur) var(--hx-ease), border-color var(--hx-dur) var(--hx-ease);
}
.pagination a.page-numbers:hover, .pagination a.page-numbers:focus-visible,
.woocommerce-pagination a.page-numbers:hover, .woocommerce-pagination a.page-numbers:focus-visible {
  background: var(--hx-primary-soft); border-color: var(--hx-primary-border); color: var(--hx-primary-dark);
}
.pagination .page-numbers.current, .woocommerce-pagination .page-numbers.current {
  background: var(--hx-primary-fill); color: #fff; border-color: var(--hx-primary); cursor: default;
}
.pagination .page-numbers.dots, .woocommerce-pagination .page-numbers.dots {
  background: transparent; border-color: transparent; min-width: 24px; padding: 0;
}
.pagination .page-numbers.prev, .pagination .page-numbers.next,
.woocommerce-pagination .page-numbers.prev, .woocommerce-pagination .page-numbers.next { padding: 0 var(--hx-sp-4); }
@media (max-width: 480px) {
  .pagination a.page-numbers, .pagination span.page-numbers,
  .woocommerce-pagination a.page-numbers, .woocommerce-pagination span.page-numbers { min-width: 36px; min-height: 40px; padding: 0 8px; }
  .pagination .page-numbers.prev, .pagination .page-numbers.next,
  .woocommerce-pagination .page-numbers.prev, .woocommerce-pagination .page-numbers.next { padding: 0 8px; }
  .pagination .nav-links, .woocommerce-pagination ul.page-numbers { gap: 6px; }
}

/* WooCommerce ships higher-specificity rules (nav.woocommerce-pagination ul li a ...): match them. */
.woocommerce nav.woocommerce-pagination, .woocommerce-page nav.woocommerce-pagination { text-align: center; }
.woocommerce nav.woocommerce-pagination ul.page-numbers,
.woocommerce-page nav.woocommerce-pagination ul.page-numbers {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--hx-sp-2);
  white-space: normal; border: 0; margin: 0; padding: 0; float: none; clear: none; overflow: visible;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers::before,
.woocommerce nav.woocommerce-pagination ul.page-numbers::after { content: none; display: none; }
.woocommerce nav.woocommerce-pagination ul.page-numbers li,
.woocommerce-page nav.woocommerce-pagination ul.page-numbers li {
  display: block; float: none; border: 0; margin: 0; padding: 0; overflow: visible;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers li a.page-numbers,
.woocommerce nav.woocommerce-pagination ul.page-numbers li span.page-numbers {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  min-width: 44px; min-height: 44px; padding: 0 var(--hx-sp-3); margin: 0; line-height: 1;
  font-size: 15px; font-weight: 600; text-decoration: none;
  background: #fff; color: var(--hx-ink-muted);
  border: 1px solid var(--hx-line); border-radius: var(--hx-radius);
}
.woocommerce nav.woocommerce-pagination ul.page-numbers li a.page-numbers:hover,
.woocommerce nav.woocommerce-pagination ul.page-numbers li a.page-numbers:focus-visible {
  background: var(--hx-primary-soft); border-color: var(--hx-primary-border); color: var(--hx-primary-dark);
}
.woocommerce nav.woocommerce-pagination ul.page-numbers li span.page-numbers.current {
  background: var(--hx-primary-fill); border-color: var(--hx-primary); color: #fff; cursor: default;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers li span.page-numbers.dots {
  background: transparent; border-color: transparent; min-width: 24px; padding: 0;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers li a.page-numbers.prev,
.woocommerce nav.woocommerce-pagination ul.page-numbers li a.page-numbers.next { padding: 0 var(--hx-sp-4); font-size: 18px; }
@media (max-width: 480px) {
  .woocommerce nav.woocommerce-pagination ul.page-numbers { gap: 4px; }
  .woocommerce nav.woocommerce-pagination ul.page-numbers li a.page-numbers,
  .woocommerce nav.woocommerce-pagination ul.page-numbers li span.page-numbers { min-width: 34px; min-height: 40px; padding: 0 6px; }
  .woocommerce nav.woocommerce-pagination ul.page-numbers li a.page-numbers.prev,
  .woocommerce nav.woocommerce-pagination ul.page-numbers li a.page-numbers.next { padding: 0 6px; }
}

.hx-comments {
  background: #fff; padding: var(--hx-sp-8);
  border-radius: var(--hx-radius-lg); box-shadow: var(--hx-shadow-sm);
  margin-block-start: var(--hx-sp-8);
}
.hx-comments__title { font-size: var(--hx-fs-2xl); margin-block-end: var(--hx-sp-6); }

.hx-comments .commentlist {
  display: flex;
  flex-direction: column;
  gap: var(--hx-sp-4);
  margin-block-end: var(--hx-sp-8);
}

.hx-comments .comment-body {
  position: relative;
  padding: var(--hx-sp-4);
  background: var(--hx-bg-alt);
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius-md);
  overflow: hidden;
}

.hx-comments .comment-author {
  display: flex;
  align-items: center;
  gap: var(--hx-sp-3);
  margin-bottom: var(--hx-sp-1);
}

.hx-comments .comment-author img.avatar {
  float: none;
  margin: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.hx-comments .comment-author .fn {
  font-weight: 700;
  font-style: normal;
  color: var(--hx-ink);
  font-size: var(--hx-fs-base);
}

.hx-comments .comment-author .says {
  display: none;
}

.hx-comments .comment-meta {
  font-size: var(--hx-fs-xs);
  color: var(--hx-ink-muted);
  margin-bottom: var(--hx-sp-2);
  margin-inline-start: 52px;
}

.hx-comments .comment-meta a {
  color: var(--hx-ink-muted);
  text-decoration: none;
}

.hx-comments .comment-meta a:hover {
  color: var(--hx-brand-text);
}

.hx-comments .comment-content {
  margin-inline-start: 52px;
}

.hx-comments .comment-content p {
  margin-bottom: var(--hx-sp-2);
  font-size: var(--hx-fs-base);
  line-height: 1.6;
  color: var(--hx-ink);
}

.hx-comments .comment-content p:last-child {
  margin-bottom: 0;
}

.hx-comments .reply {
  margin-inline-start: 52px;
  margin-top: var(--hx-sp-2);
}

.hx-comments .comment-reply-link {
  display: inline-block;
  font-size: var(--hx-fs-xs);
  font-weight: 700;
  color: var(--hx-brand-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hx-comments .children {
  padding: 0;
  margin: 0;
  padding-inline-start: var(--hx-sp-6);
  margin-top: var(--hx-sp-3);
  list-style: none;
}

.hx-comments #respond {
  padding: var(--hx-sp-6);
  background: var(--hx-bg-alt);
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius-md);
  margin-block-start: var(--hx-sp-6);
}

.hx-comments #reply-title {
  font-size: var(--hx-fs-xl);
  font-weight: 800;
  margin-block-end: var(--hx-sp-2);
  color: var(--hx-ink);
}

.hx-comments .comment-notes {
  font-size: var(--hx-fs-sm);
  color: var(--hx-ink-muted);
  margin-block-end: var(--hx-sp-5);
}

.hx-comments .comment-form {
  display: flex;
  flex-direction: column;
  gap: var(--hx-sp-4);
}

.hx-comments .comment-form label {
  display: block;
  font-size: var(--hx-fs-sm);
  font-weight: 700;
  margin-block-end: var(--hx-sp-2);
  color: var(--hx-ink);
}

.hx-comments .comment-form input[type="text"],
.hx-comments .comment-form input[type="email"],
.hx-comments .comment-form input[type="url"],
.hx-comments .comment-form textarea {
  width: 100%;
  padding: var(--hx-sp-3) var(--hx-sp-4);
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius-sm);
  background: #fff;
  font-size: var(--hx-fs-base);
  color: var(--hx-ink);
  transition: border-color var(--hx-dur) var(--hx-ease), box-shadow var(--hx-dur) var(--hx-ease);
}

.hx-comments .comment-form input:focus,
.hx-comments .comment-form textarea:focus {
  outline: none;
  border-color: var(--hx-primary);
  box-shadow: 0 0 0 3px var(--hx-primary-soft);
}

.hx-comments .comment-form textarea {
  min-height: 140px;
  resize: vertical;
}

.hx-comments .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--hx-sp-2);
}

.hx-comments .comment-form-cookies-consent input {
  margin-top: 0.3em;
}

.hx-comments .form-submit {
  margin-block-start: var(--hx-sp-2);
}

.hx-comments .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--hx-sp-3) var(--hx-sp-8);
  background: var(--hx-primary-fill);
  color: #fff;
  border: none;
  border-radius: var(--hx-radius);
  font-size: var(--hx-fs-base);
  font-weight: 800;
  cursor: pointer;
  transition: background-color var(--hx-dur) var(--hx-ease);
}

.hx-comments .submit:hover {
  background: var(--hx-primary-dark);
}

@media (min-width: 640px) {
  .hx-comments .comment-form-author,
  .hx-comments .comment-form-email {
    display: inline-block;
    width: calc(50% - var(--hx-sp-2));
    vertical-align: top;
  }
  .hx-comments .comment-form-author {
    margin-inline-end: calc(var(--hx-sp-4) - 2px);
  }
}

.woocommerce-notices-wrapper { margin-bottom: var(--hx-sp-6); }
.hx-product-purchase .woocommerce-notices-wrapper {
  margin-top: var(--hx-sp-4);
  margin-bottom: 0;
  flex: 1 1 100%;
  width: 100%;
}

/* Hide only the add-to-cart success notice; keep other WooCommerce notices visible. */
.woocommerce-notices-wrapper .woocommerce-message:has(a.wc-forward) {
  display: none !important;
}

.woocommerce-notices-wrapper:has(> .woocommerce-message:only-child a.wc-forward) {
  display: none !important;
}

.woocommerce-message, .woocommerce-info, .woocommerce-error {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  padding: var(--hx-sp-4) var(--hx-sp-5) !important;
  margin: 0 0 var(--hx-sp-4) !important;
  border-radius: var(--hx-radius-md) !important;
  border: 1px solid transparent !important;
  border-inline-start: 4px solid transparent !important;
  background: #fff !important;
  list-style: none !important;
  box-shadow: var(--hx-shadow-sm) !important;
  box-sizing: border-box !important;
}

.woocommerce-message { border-color: #bbf7d0 !important; border-inline-start-color: #22c55e !important; background: #f0fdf4 !important; }
.woocommerce-info { border-color: #bfdbfe !important; border-inline-start-color: #3b82f6 !important; background: #eff6ff !important; }
.woocommerce-error { border-color: #fecaca !important; border-inline-start-color: #ef4444 !important; background: #fef2f2 !important; }

.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before {
  display: none !important;
}

.woocommerce-message li, .woocommerce-info li, .woocommerce-error li {
  display: flex !important;
  align-items: flex-start !important;
  gap: var(--hx-sp-3) !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  font-size: var(--hx-fs-sm) !important;
  color: var(--hx-ink) !important;
  line-height: 1.5 !important;
  width: 100%;
}

.woocommerce-message li::before, .woocommerce-info li::before, .woocommerce-error li::before {
  content: '' !important;
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0 !important;
  margin-top: -2px !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.woocommerce-message li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E") !important;
}

.woocommerce-info li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E") !important;
}

.woocommerce-error li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E") !important;
}

.woocommerce-message li + li, .woocommerce-info li + li, .woocommerce-error li + li {
  margin-top: var(--hx-sp-2) !important;
}

.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-result-count { color: var(--hx-ink-muted); font-size: var(--hx-fs-sm); }
.woocommerce-ordering select {
  padding: var(--hx-sp-2) var(--hx-sp-3);
  border: 1px solid var(--hx-line); border-radius: var(--hx-radius-sm);
  background: #fff; font-size: var(--hx-fs-sm); color: var(--hx-ink);
}
.woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .woocommerce #respond input#submit {
  background: var(--hx-primary-fill); color: #fff;
  border-radius: var(--hx-radius); padding: var(--hx-sp-3) var(--hx-sp-5);
  font-weight: 800; transition: all var(--hx-dur) var(--hx-ease); border: none;
  min-height: 44px;
}
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover, .woocommerce #respond input#submit:hover {
  background: var(--hx-primary-dark); color: #fff;
}

.hx-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  height: 16px;
  width: 16px;
  background: var(--hx-ink-light);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") center/contain no-repeat;
  cursor: pointer;
}

.hx-archive__grid--search {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: var(--hx-sp-4);
}
.hx-post-card--search {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: var(--hx-sp-4);
  padding: var(--hx-sp-4);
  background: #fff;
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius-md);
  align-items: start;
  transition: border-color var(--hx-dur) var(--hx-ease), box-shadow var(--hx-dur) var(--hx-ease);
}
.hx-post-card--search:hover {
  border-color: var(--hx-primary-border);
  box-shadow: var(--hx-shadow-md);
  transform: none;
}
.hx-post-card--search .hx-post-card__media {
  width: 110px;
  height: 110px;
  aspect-ratio: 1;
  border-radius: var(--hx-radius-sm);
  overflow: hidden;
  background: var(--hx-bg-alt);
}
.hx-post-card--search .hx-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hx-post-card--search.hx-post-card--no-media {
  grid-template-columns: minmax(0, 1fr);
}
.hx-post-card--search .hx-post-card__body {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--hx-sp-1);
}
.hx-post-card--search .hx-post-card__title {
  font-size: var(--hx-fs-base);
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}
.hx-post-card--search .hx-post-card__title a:hover {
  color: var(--hx-brand-text);
}
.hx-post-card--search .hx-post-card__excerpt {
  font-size: var(--hx-fs-sm);
  color: var(--hx-ink-muted);
  margin: 0;
}
.hx-search-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--hx-sp-3);
  margin-top: var(--hx-sp-2);
  padding-top: var(--hx-sp-2);
  border-top: 1px solid var(--hx-line);
}
.hx-search-card__cta {
  padding: var(--hx-sp-2) var(--hx-sp-4) !important;
  font-size: var(--hx-fs-sm) !important;
  min-height: 44px !important;
  box-shadow: none;
}
.hx-search-card__stock {
  font-size: var(--hx-fs-sm);
  font-weight: 700;
  color: var(--hx-badge);
}
.hx-search-card__date {
  font-size: var(--hx-fs-xs);
  color: var(--hx-ink-light);
}

.hx-none {
  text-align: center;
  padding: var(--hx-sp-12) var(--hx-sp-4);
  background: #fff;
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius-lg);
}
.hx-none__title {
  font-size: var(--hx-fs-2xl);
  font-weight: 800;
  margin: 0 0 var(--hx-sp-3);
}
.hx-none__text {
  color: var(--hx-ink-muted);
  font-size: var(--hx-fs-base);
  max-width: 520px;
  margin: 0 auto var(--hx-sp-5);
  line-height: 1.7;
}
.hx-none__text strong { color: var(--hx-ink); }
.hx-none__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hx-sp-3);
  justify-content: center;
}

body.admin-bar .hx-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .hx-header { top: 46px; }
}

@media (max-width: 1023px) {
  ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .hx-archive__title { font-size: var(--hx-fs-2xl); }
  .hx-post, .hx-page { padding: var(--hx-sp-6) var(--hx-sp-5); }
  .hx-post__title, .hx-page__title { font-size: var(--hx-fs-2xl); }
  .hx-post__content { font-size: var(--hx-fs-base); }
}

@media (max-width: 991px) {
  .hx-search { display: none; }
  .hx-navbar { display: none; }
  .hx-burger { display: flex; }
  .hx-action__label {
    position: absolute; 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;
  }
  .hx-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--hx-sp-3);
  }
  .hx-actions { justify-content: flex-end; }
  .hx-announce { font-size: var(--hx-fs-xs); }
  .hx-announce__inner { padding-block: var(--hx-sp-1); }
}

@media (max-width: 767px) {
  ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: var(--hx-sp-3) !important; }
  .hx-footer__inner { text-align: start; }
  .hx-header__logo .hx-logo-text { font-size: var(--hx-fs-lg); }
  .hx-action { padding: var(--hx-sp-1) var(--hx-sp-2); }
  .hx-card__title,
  .woocommerce ul.products li.product .hx-card__title.woocommerce-loop-product__title { font-size: var(--hx-fs-base); }
  .hx-category-title { font-size: var(--hx-fs-2xl); }
}

@media (max-width: 600px) {
  .hx-post-card--search {
    grid-template-columns: 90px minmax(0, 1fr);
    padding: var(--hx-sp-3);
  }
  .hx-post-card--search.hx-post-card--no-media {
    grid-template-columns: minmax(0, 1fr);
  }
  .hx-post-card--search .hx-post-card__media {
    width: 90px;
    height: 90px;
  }
  .hx-post-card--search .hx-post-card__title {
    font-size: var(--hx-fs-sm);
  }
  .hx-none {
    padding: var(--hx-sp-8) var(--hx-sp-3);
  }
  .hx-none__title {
    font-size: var(--hx-fs-xl);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hx-card:hover,
  .hx-post-card:hover,
  .hx-btn:hover,
  .hx-404__btn:hover,
  .hx-category-filter__apply:hover { transform: none; }
  .hx-card:hover .hx-card__media img,
  .hx-post-card:hover .hx-post-card__media img { transform: none; }
}